debhelper

Debian packaging: deploying files to the user home directory

别来无恙 提交于 2020-08-04 06:01:28
问题 I use Debhelper to create Debian packages. To deploy files and directories, I use the debian/install and debian/dirs files. Now I would like my package to deploy the default user configuration file to $HOME/.mypackagerc (just like .bashrc and friends). Does Debhelper provide a way to do this, or should I just: Do it in postinst script Or even do this in my program, at first execution 回答1: You should do it in your own program. You can't get debhelper to do this. A postinst script may be able

Debian packaging: deploying files to the user home directory

◇◆丶佛笑我妖孽 提交于 2020-08-04 06:01:06
问题 I use Debhelper to create Debian packages. To deploy files and directories, I use the debian/install and debian/dirs files. Now I would like my package to deploy the default user configuration file to $HOME/.mypackagerc (just like .bashrc and friends). Does Debhelper provide a way to do this, or should I just: Do it in postinst script Or even do this in my program, at first execution 回答1: You should do it in your own program. You can't get debhelper to do this. A postinst script may be able

Install multiple .service files with dh_systemd packaging

我怕爱的太早我们不能终老 提交于 2020-01-13 05:10:50
问题 I'm currently packaging a python app with dh_virtualenv, to deploy it on Ubuntu 16.04, daemonized with systemd. I use the dh_systemd plugin to automatically install the file my_app.service will install the .deb package, but I'd like to run another process in a different service that schedules tasks for my app, using celery. So, I created another service file, my_app.scheduler.service, but I don't know how to declare this file/app/service in my debian packaging rules, so that while installing

is it possible to get python purple running either in cygwin or on a linux that isn't debian?

女生的网名这么多〃 提交于 2019-12-25 01:58:57
问题 python purple says it needs dbms and debhelper in order to run, but I don't run debian. Is there a way to get this running on a different linux? or in cygwin? 回答1: Both cdbs and debhelper are only needed if you are trying to build a debian package. Just do a regular python setup.py build , and it should work fine (assuming you have the other prerequisites available). 来源: https://stackoverflow.com/questions/1224726/is-it-possible-to-get-python-purple-running-either-in-cygwin-or-on-a-linux-that

dpkg: How to use trigger?

最后都变了- 提交于 2019-12-18 04:34:23
问题 I have written a little cdn server that shall rebuild his pool registry if new stuff (pool-content-packages) is installed into the pool. Instead that every pool-content-package call the init.d of the cdn-server, I'd like to use triggers. Than it would restarted the server only one time at end of an installation run after all packages are installed. What have I to do to use trigger in my packages with debhelper support? 回答1: What you are looking for is dpkg-triggers. One solution with use of

Prevent creation of conffiles

喜你入骨 提交于 2019-12-10 15:35:49
问题 I'm trying to build a package which has some files under /etc that are not configuration. They are included in the conffiles automatically even if I create an empty package.conffiles in the debian directory. How can I stop dh_installdeb from doing that? 回答1: Originally, this answer suggested providing your own debian/conffiles files only listing actual configuration files to be installed. Apparently that only serves to add more configuration files but won't override the whole conffiles file.

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

别说谁变了你拦得住时间么 提交于 2019-12-09 06:58:03
问题 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

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

dpkg: How to use trigger?

萝らか妹 提交于 2019-11-29 05:55:20
I have written a little cdn server that shall rebuild his pool registry if new stuff (pool-content-packages) is installed into the pool. Instead that every pool-content-package call the init.d of the cdn-server, I'd like to use triggers. Than it would restarted the server only one time at end of an installation run after all packages are installed. What have I to do to use trigger in my packages with debhelper support? TLindig What you are looking for is dpkg-triggers. One solution with use of debhelper to build the debian packages is this: Step 1) Create file debian/<serverPackageName>

Is there a standard way to create Debian packages for distributing Python programs?

点点圈 提交于 2019-11-28 03:05:38
There is a ton of information on how to do this, but since "there is more than one way to skin a cat" , and all the tutorials/manuals that cover a bit of the process seem to make certain assumptions which are different from other tutorials, I still didn't manage to grasp it. So far this is what I think I understood. My final goal should be that of creating a "binary" .deb package. Such package will be platform-independent (32/64 bit) as all Python programs are such. To create a "binary" package I need first to create a source package. To create the source package I can use either CDBS or