
Hello, heres is the thing I do to build Debian packages: [Makefile snippet] install: ./setup.py install --prefix=/tmp/usr --exec-prefix=/tmp/usr cp -a /tmp/usr/* $(DESTIDR)/usr # install misc additional files install -c -m 755 linkchecker $(DESTDIR)/usr/bin ... Yes, its a hack, but it works. Bastian -- Bastian Kleineidam -- Debian Linux bug squasher .~. http://fsinfo.cs.uni-sb.de/~calvin/official/ /V\ // \\ /( )\ ^`~'^

On 25 April 2000, Bastian Kleineidam said:
heres is the thing I do to build Debian packages:
[reformatted for readability]
[Makefile snippet] install: ./setup.py install --prefix=/tmp/usr --exec-prefix=/tmp/usr cp -a /tmp/usr/* $(DESTIDR)/usr # install misc additional files install -c -m 755 linkchecker $(DESTDIR)/usr/bin ...
Yes, its a hack, but it works.
Umm, I don't get it. How does this generate a Debian package? (Ie. what command spits out a .deb file that Joe Luser can download and install trivially?) (Disclaimer: I am completely ignorant about Debian packages. I tried Debian once, and was utterly stumped by the death-defyingly mysterious "dpkg" interface. Gave up after a few hours and fled back to friendly old Red Hat with RPM's wonderful command-line interface.) Oh, BTW: "If --exec-prefix is not supplied, it defaults to --prefix". (An actual quote from the actual documentation!) Greg -- Greg Ward - Linux nerd gward@python.net http://starship.python.net/~gward/ A day for firm decisions!!!!! Or is it?

Umm, I don't get it. How does this generate a Debian package? (Ie. what command spits out a .deb file that Joe Luser can download and install trivially?)
That would be "debian/rules binary". The rules script calls $(MAKE) install DESTDIR=`pwd`/debian/tmp and expects that this call installs everything in debian/tmp. Output of the rules script is a .deb package in the parent directory. You install .deb packages with "dpkg --install blubb_0.1.0_i386.deb". You deinstall packages with "dpkg --remove blubb". You purge packages with "dpkg --purge blubb". Purging additionally removes any config files of the package while --remove leaves them so you do not have to reconfigure if you install the package again. Bastian -- Bastian Kleineidam -- Isch hab noch viel krasseres System... .~. http://fsinfo.cs.uni-sb.de/~calvin/official/ /V\ // \\ /( )\ ^`~'^
participants (2)
-
Bastian Kleineidam
-
Greg Ward