[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

trouble with packaging



I've never made a "real" package before, so I apologize in advance if I'm making a noob mistake. I have tried to read through the debian maintainers documentation and various documentation and walkthroughs I can find....

So basically I'm trying to make a debian package of the monit-5.0.3 release. I am able to compile the program just fine with the standard "./configure make && make install", but when I get to generating a package the .deb does not contain /usr/bin/monit or /usr/sbin/monit as it should, but all the documentation, etc seems to be correctly created. Here is what dpkg --contents shows:

drwxr-xr-x root/root         0 2009-06-01 16:54 ./
drwxr-xr-x root/root         0 2009-06-01 16:54 ./usr/
drwxr-xr-x root/root         0 2009-06-01 16:54 ./usr/bin/
drwxr-xr-x root/root         0 2009-06-01 16:54 ./usr/sbin/
drwxr-xr-x root/root         0 2009-06-01 16:54 ./usr/share/
drwxr-xr-x root/root         0 2009-06-01 16:54 ./usr/share/doc/
drwxr-xr-x root/root         0 2009-06-01 16:54 ./usr/share/doc/monit/
-rw-r--r-- root/root 26231 2009-05-25 16:53 ./usr/share/doc/monit/ CHANGES.txt.gz -rw-r--r-- root/root 3213 2008-03-31 17:13 ./usr/share/doc/monit/ README.SSL.gz -rw-r--r-- root/root 1827 2009-02-13 08:06 ./usr/share/doc/monit/ README -rw-r--r-- root/root 161 2009-06-01 16:42 ./usr/share/doc/monit/ changelog.Debian.gz -rw-r--r-- root/root 6424 2008-11-19 13:30 ./usr/share/doc/monit/ FAQ.txt.gz -rw-r--r-- root/root 2155 2008-03-31 17:13 ./usr/share/doc/monit/ README.DEVELOPER.gz -rw-r--r-- root/root 26229 2009-05-25 16:53 ./usr/share/doc/monit/ changelog.gz -rw-r--r-- root/root 1065 2009-06-01 16:41 ./usr/share/doc/monit/ copyright
drwxr-xr-x root/root         0 2009-06-01 16:54 ./usr/share/man/
drwxr-xr-x root/root         0 2009-06-01 16:54 ./usr/share/man/man1/
-rw-r--r-- root/root 44350 2009-06-01 16:54 ./usr/share/man/man1/ monit.1.gz

I feel like I'm missing something in debian/rules but I've tweaked a few things but it has had no effect.

The commands I ran to produce the package above are roughly like this (removed random things like dependency installation and my typing mistakes....):

1048 wget http://www.mmonit.com/monit/dist/monit-5.0.3.tar.gz
1050 tar -xvzf monit-5.0.3.tar.gz
1060 cd monit-5.0.3
1074 dh_make -e brendan.martens@crosscomm.net -n -s
1075 vi debian/changelog    (added some changelog description....)
1076 vi debian/control (edited a few package description fields, added dependencies)
1077 apt-cache policy libc6
1079 apt-cache policy libssl0.9.8
1081 vi debian/control
1083 cd debian/
1085 rm README* rm *.ex *.EX
1088 cd ../
1099 debuild -us -uc
1100 dpkg --contents ../monit_5.0.3_amd64.deb
1106 debuild -us -uc -rfakeroot (At this point I had a package, but it didn't contain the executable, so I tried the below command because I had seen the command being run with fakeroot... )
1107 dpkg --contents ../monit_5.0.3_amd64.deb


Any help is greatly appreciated!

Brendan Martens


Reply to: