deb

How to add PyPi dependencies to DEB package

狂风中的少年 提交于 2019-12-04 07:39:57
I created some python app using autobahn and packaged it using baazar builddeb . In python setup.py file I added requires tag with all the required dependencies. Is it possible to tell debian package installer to install these packages? I added some of deps to debian/control>Depends but: dpkg -i my_package does not install dependencies. Just shows the error and I need to install these deps manually. some packages does not exists in standard Ubuntu repos. For example autobahn. And in general I'd like to have installed all python dependencies by pip/easy_install I am using DistUtilsExtra.auto

I need my Debian rules file to simply copy files to it's target

谁都会走 提交于 2019-12-04 07:36:48
问题 I have a large project where we have the following files: A few 3rd party pre-compiled binaries Our own in-house binaries A collection of Ruby scripts A sizable Ruby on Rails project This product will be installed on appliance hardware that my employer has already selected, using Ubuntu Linux (Lucid) as the target O.S., with our goal of distributing the archive as a Debian package to ease installation and upgrades. Additionally, we have a number of ERB templates that we need to "fill-in" with

Debian 安装包的简单制作

时光毁灭记忆、已成空白 提交于 2019-12-03 14:18:40
Debian 安装包的简单制作 在Linux分发软件有两种形式,一种是源码,一种是安装包。当目标机器不带有编译环境,且不能联网时,安装包就是唯一可选的方案了。 Linux 下的安装包有多种格式,不同Linux使用的格式并不完全相同。市场上主流的安装包格式是 *.deb *.rpm 其中 deb 是debian系列的安装包, rpm 是CentOS系列的安装包。 本文主要介绍的是一种简单的 deb 安装包的制作方法,使用范围有限。如需了解更多可以阅读 Debian 新维护人员手册 所需工具 如果没有安装 dpkg 工具包的话,就先安装(一般是默认安装的) sudo apt-get install dpkg 文件结构 example-package ├── DEBIAN (必须) │ ├── control (必须) │ └── md5sums └── usr ├── local │ ├── bin (可执行文件安装位置) │ └── lib (使用到的相关库,目标机器没有安装) └── share (非必须) └── doc └── example-package 准备相关文件 程序编译完成后,将编译后的文件放到 example-package/usr/local/bin 下 根据需要按上方的文件结构添加内容 编写control 文件 Package: example-package

How to create a simply debian package (just compress/extract sources or any files with debian packaging)

若如初见. 提交于 2019-12-03 08:55:01
I need to create a new .deb package of Realxtend project ( https://github.com/realXtend/naali ). It's a huge project with a lot of dependencies and a automatic bash script (/tools/Linux/build-deps.bash) to download, compile and install all deps and executables. So I try many tutorials but I often some errors and i'm stuck because tutorials are outdated (with new 'rules' file mainly) ...and also because i'm not a dev initialy. So, for beginning, I just need create a .deb file exactly like an simple archive ie not interpret any building process, 'makefile', or others kind of things. I would like

I need my Debian rules file to simply copy files to it's target

落花浮王杯 提交于 2019-12-02 14:30:33
I have a large project where we have the following files: A few 3rd party pre-compiled binaries Our own in-house binaries A collection of Ruby scripts A sizable Ruby on Rails project This product will be installed on appliance hardware that my employer has already selected, using Ubuntu Linux (Lucid) as the target O.S., with our goal of distributing the archive as a Debian package to ease installation and upgrades. Additionally, we have a number of ERB templates that we need to "fill-in" with appropriate values on a per-customer basis, so the use of the postinst script will be particularly

Making a .deb file from a Python file

混江龙づ霸主 提交于 2019-12-02 12:01:14
After following http://ubuntuforums.org/showthread.php?t=406069 I got to know how to make a .deb file which automatically places the Python file as an executable to /usr/bin directory. I want my program to have a structure like that of "grep". Which libraries should I use, and what should be the structure of the programs. At libraries, do I have to use Get::Opt library? By the "grep structure" I mean the following: program-name func-name -a arg1 --b arg2 should work man program-name should open the man page and program-name should open an in interactive help shell... pwan There are lots of

制作Debian风格的Tengine deb包

跟風遠走 提交于 2019-12-02 06:39:50
前面尝试了一下tengine的动态加载模块的功能,觉得这样就有可能有大量部署的机会了,之前没用nginx是因为每次需要添加新的功能都需要重新编译一次,虽然nginx在性能上比apache好,但是如果有上百台机器部署了nginx就不好搞了,每个部门的web需求都不一样,所需要的模块也不一样,即使把所有自带模块都编译进去,但是还是会遇到一些很好的第三方模块的,现在tengine支持动态加载模块,就有希望了,一两台编译是可以接受的,大量部署tengine还是用包管理的比较好。 下面开始制作以debian6系统为基础的tengine deb包,tengine包风格还是类似于debian一般web服务器软件包的风格。 要把所有支持动态加载的模块都编译进去,需要以下包的支持: apt-get install libxml2 apt-get install libxslt1.1 apt-get install libxslt1-dev apt-get install libgd2-xpm libgd2-xpm-dev apt-get install libgeoip1 libgeoip-dev apt-get install libssl-dev apt-get install libpcre3 libpcre3-dev apt-get install libssl0.9.8 首先,在

sudo: effective uid is not 0, is sudo installed setuid root?

寵の児 提交于 2019-12-01 02:08:12
I am trying to create deb package from LXC rootfs, and after creating it I want to install that package any computer. Up to this point I achieved packaging and installing deb package, however after installation of LXC package, I cannot be superuser in that lxc. I get this error when I use "sudo" command. sudo: effective uid is not 0, is sudo installed setuid root? thanks in advance. I just had this same exact problem on Mac OS after strangely deciding to screw my own system by doing: sudo chmod -R /usr/bin . If that's someone else's case just open Disk Utility , select your OS disk ("Macintosh

How to create .deb packages on Mac OS X

六月ゝ 毕业季﹏ 提交于 2019-11-30 06:37:22
I am trying to upload my app on Cydia and it requires .deb package. I am unable to figure out how to make .deb packages on mac. I am using 10.6.3 when I write this command on terminal dpkg-deb -b MyProgram Terminal output is -bash: dpkg-deb: command not found I've install fink, Mac ports insert Mac DVD to find out but nothing helps. It's available on Homebrew: brew install dpkg If you don't have Homebrew installed, go to brew.sh . It's a simple one-liner to install. Homebrew is less invasive, less complicated, and more popular than Macports or similar. Zeeshan I installed mac ports 1.7 through

How to build debian package with CPack to execute setup.py?

≯℡__Kan透↙ 提交于 2019-11-29 23:13:06
Until now, my project had only .cpp files that were compiled into different binaries and I managed to configure CPack to build a proper debian package without any problems. Recently I wrote a couple of python applications and added them to the project, as well as some custom modules that I would also like to incorporate to the package. After writing a setup.py script, I'm wondering how to add these files to the CPack configuration in a way that setup.py get's executed automatically when the user installs the package on the system with dpkg -i package.deb . I'm struggling to find relevant