On Thursday 30 October 2008 17:15, Frederik Dannemare wrote: > Speaking of packages... I've just finished a Debian package of v1.4. > > I've been an official maintainer for the Debian Project for a couple > of years (although I've been pretty much inactive for more than a > year now), so the quality of my package should be good even if it's > an initial release. > > I currently don't handle starting the filter post-installation as > well as stopping of the filter if the package is later removed. Same > for stopping and starting the filter between upgrades. That will come > with the next release. > > All sources - as well as a binary .deb for i386 - is available at: > http://sentinel.dk/linux/debian/packages/courier-pythonfilter/
I just did a new build (still named 1.4-1, though) with support for stopping and starting the filter at install/deinstall-time and between version upgrades. I also created two tiny man pages for pythonfilter and pythonfilter.quaratine just to make "lintian" shut up. :) Suggestions and general feedback is welcome. Output of build process (in case anybody is interested?) : [EMAIL PROTECTED]:~/debian/courier-pythonfilter-1.4$ dpkg-buildpackage -rfakeroot -k9D9A238E dpkg-buildpackage: source package is courier-pythonfilter dpkg-buildpackage: source version is 1.4-1 dpkg-buildpackage: source changed by Frederik Dannemare <[EMAIL PROTECTED]> dpkg-buildpackage: host architecture i386 dpkg-buildpackage: source version without epoch 1.4-1 fakeroot debian/rules clean dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. python setup.py clean running clean rm -rf build/ dh_clean dpkg-source -b courier-pythonfilter-1.4 dpkg-source: building courier-pythonfilter using existing courier-pythonfilter_1.4.orig.tar.gz dpkg-source: building courier-pythonfilter in courier-pythonfilter_1.4-1.diff.gz dpkg-source: building courier-pythonfilter in courier-pythonfilter_1.4-1.dsc debian/rules build dh_testdir # Add here commands to configure the package. touch configure-stamp dh_testdir # Add here commands to compile the package. python setup.py build running build running build_py creating build creating build/lib creating build/lib/courier copying courier/authdaemon.py -> build/lib/courier copying courier/control.py -> build/lib/courier copying courier/__init__.py -> build/lib/courier copying courier/config.py -> build/lib/courier copying courier/xfilter.py -> build/lib/courier copying courier/quarantine.py -> build/lib/courier creating build/lib/pythonfilter copying filters/deliveredto.py -> build/lib/pythonfilter copying filters/whitelist_relayclients.py -> build/lib/pythonfilter copying filters/greylist.py -> build/lib/pythonfilter copying filters/nosuccessdsn.py -> build/lib/pythonfilter copying filters/localsenders.py -> build/lib/pythonfilter copying filters/spamassassin.py -> build/lib/pythonfilter copying filters/whitelist_auth.py -> build/lib/pythonfilter copying filters/whitelist_dnswl.py -> build/lib/pythonfilter copying filters/noduplicates.py -> build/lib/pythonfilter copying filters/whitelist_block.py -> build/lib/pythonfilter copying filters/ratelimit.py -> build/lib/pythonfilter copying filters/__init__.py -> build/lib/pythonfilter copying filters/privateaddr.py -> build/lib/pythonfilter copying filters/attachments.py -> build/lib/pythonfilter copying filters/TtlDb.py -> build/lib/pythonfilter copying filters/quota.py -> build/lib/pythonfilter copying filters/debug.py -> build/lib/pythonfilter copying filters/clamav.py -> build/lib/pythonfilter copying filters/whitelist_spf.py -> build/lib/pythonfilter copying filters/dialback.py -> build/lib/pythonfilter copying filters/spfcheck.py -> build/lib/pythonfilter copying filters/comeagain.py -> build/lib/pythonfilter copying filters/add_signature.py -> build/lib/pythonfilter copying filters/auto_whitelist.py -> build/lib/pythonfilter running build_scripts creating build/scripts-2.4 copying and adjusting pythonfilter -> build/scripts-2.4 copying and adjusting pythonfilter-quarantine -> build/scripts-2.4 changing mode of build/scripts-2.4/pythonfilter from 644 to 755 changing mode of build/scripts-2.4/pythonfilter-quarantine from 644 to 755 touch build-stamp fakeroot debian/rules binary dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/courier-pythonfilter. python setup.py install --root=debian/courier-pythonfilter running install running build running build_py running build_scripts running install_lib creating debian/courier-pythonfilter/usr/lib/python2.4 creating debian/courier-pythonfilter/usr/lib/python2.4/site-packages creating debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier copying build/lib/courier/authdaemon.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier copying build/lib/courier/control.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier copying build/lib/courier/__init__.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier copying build/lib/courier/config.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier copying build/lib/courier/xfilter.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier copying build/lib/courier/quarantine.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier creating debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/deliveredto.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/whitelist_relayclients.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/greylist.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/nosuccessdsn.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/localsenders.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/spamassassin.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/whitelist_auth.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/whitelist_dnswl.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/noduplicates.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/whitelist_block.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/ratelimit.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/__init__.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/privateaddr.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/attachments.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/TtlDb.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/quota.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/debug.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/clamav.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/whitelist_spf.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/dialback.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/spfcheck.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/comeagain.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/add_signature.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter copying build/lib/pythonfilter/auto_whitelist.py -> debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier/authdaemon.py to authdaemon.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier/control.py to control.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier/__init__.py to __init__.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier/config.py to config.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier/xfilter.py to xfilter.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/courier/quarantine.py to quarantine.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/deliveredto.py to deliveredto.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/whitelist_relayclients.py to whitelist_relayclients.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/greylist.py to greylist.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/nosuccessdsn.py to nosuccessdsn.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/localsenders.py to localsenders.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/spamassassin.py to spamassassin.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/whitelist_auth.py to whitelist_auth.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/whitelist_dnswl.py to whitelist_dnswl.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/noduplicates.py to noduplicates.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/whitelist_block.py to whitelist_block.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/ratelimit.py to ratelimit.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/__init__.py to __init__.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/privateaddr.py to privateaddr.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/attachments.py to attachments.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/TtlDb.py to TtlDb.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/quota.py to quota.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/debug.py to debug.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/clamav.py to clamav.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/whitelist_spf.py to whitelist_spf.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/dialback.py to dialback.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/spfcheck.py to spfcheck.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/comeagain.py to comeagain.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/add_signature.py to add_signature.pyc byte-compiling debian/courier-pythonfilter/usr/lib/python2.4/site-packages/pythonfilter/auto_whitelist.py to auto_whitelist.pyc running install_scripts copying build/scripts-2.4/pythonfilter-quarantine -> debian/courier-pythonfilter/usr/bin copying build/scripts-2.4/pythonfilter -> debian/courier-pythonfilter/usr/bin changing mode of debian/courier-pythonfilter/usr/bin/pythonfilter-quarantine to 755 changing mode of debian/courier-pythonfilter/usr/bin/pythonfilter to 755 running install_data copying pythonfilter.conf -> debian/courier-pythonfilter/etc/ copying pythonfilter-modules.conf -> debian/courier-pythonfilter/etc/ # Install lintian overrides. install -m 644 debian/overrides.lintian debian/courier-pythonfilter/usr/share/lintian/overrides/courier-pythonfilter dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples dh_pysupport dh_installman dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package `courier-pythonfilter' in `../courier-pythonfilter_1.4-1_i386.deb'. signfile courier-pythonfilter_1.4-1.dsc gpg: NOTE: old default options file `/home/sifira/.gnupg/options' ignored You need a passphrase to unlock the secret key for user: "Frederik Dannemare <[EMAIL PROTECTED]>" 1024-bit DSA key, ID 9D9A238E, created 2004-12-10 gpg: gpg-agent is not available in this session dpkg-genchanges dpkg-genchanges: including full source code in upload signfile courier-pythonfilter_1.4-1_i386.changes gpg: NOTE: old default options file `/home/sifira/.gnupg/options' ignored You need a passphrase to unlock the secret key for user: "Frederik Dannemare <[EMAIL PROTECTED]>" 1024-bit DSA key, ID 9D9A238E, created 2004-12-10 gpg: gpg-agent is not available in this session dpkg-buildpackage: full upload (original source is included) ============================================ ============================================ And here's a listing of all contents in the package : [EMAIL PROTECTED]:~/debian/courier-pythonfilter-1.4$ dpkg --contents ../courier-pythonfilter_1.4-1_i386.deb drwxr-xr-x root/root 0 2008-10-31 15:36 ./ drwxr-xr-x root/root 0 2008-10-31 15:36 ./etc/ -rw-r--r-- root/root 2355 2008-07-14 08:47 ./etc/pythonfilter-modules.conf -rw-r--r-- root/root 3393 2008-05-27 05:07 ./etc/pythonfilter.conf drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/bin/ -rwxr-xr-x root/root 2118 2008-10-31 15:36 ./usr/bin/pythonfilter-quarantine -rwxr-xr-x root/root 10166 2008-10-31 15:36 ./usr/bin/pythonfilter drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/share/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/share/python-support/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/share/python-support/courier-pythonfilter/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/share/python-support/courier-pythonfilter/courier/ -rw-r--r-- root/root 5156 2008-07-07 09:13 ./usr/share/python-support/courier-pythonfilter/courier/authdaemon.py -rw-r--r-- root/root 12549 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/courier/control.py -rw-r--r-- root/root 51 2006-09-12 01:22 ./usr/share/python-support/courier-pythonfilter/courier/__init__.py -rw-r--r-- root/root 10906 2008-07-18 19:00 ./usr/share/python-support/courier-pythonfilter/courier/config.py -rw-r--r-- root/root 11702 2008-08-01 00:36 ./usr/share/python-support/courier-pythonfilter/courier/xfilter.py -rw-r--r-- root/root 8036 2008-07-14 08:47 ./usr/share/python-support/courier-pythonfilter/courier/quarantine.py drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/share/python-support/courier-pythonfilter/pythonfilter/ -rw-r--r-- root/root 2106 2008-04-14 00:39 ./usr/share/python-support/courier-pythonfilter/pythonfilter/deliveredto.py -rw-r--r-- root/root 2214 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/whitelist_relayclients.py -rw-r--r-- root/root 7032 2008-07-18 00:01 ./usr/share/python-support/courier-pythonfilter/pythonfilter/greylist.py -rw-r--r-- root/root 2146 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/nosuccessdsn.py -rw-r--r-- root/root 2067 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/localsenders.py -rw-r--r-- root/root 4031 2008-05-27 05:04 ./usr/share/python-support/courier-pythonfilter/pythonfilter/spamassassin.py -rw-r--r-- root/root 2164 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/whitelist_auth.py -rw-r--r-- root/root 2718 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/whitelist_dnswl.py -rw-r--r-- root/root 2002 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/noduplicates.py -rw-r--r-- root/root 2270 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/whitelist_block.py -rw-r--r-- root/root 3271 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/ratelimit.py -rw-r--r-- root/root 0 2006-09-12 01:22 ./usr/share/python-support/courier-pythonfilter/pythonfilter/__init__.py -rw-r--r-- root/root 3249 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/privateaddr.py -rw-r--r-- root/root 2800 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/attachments.py -rw-r--r-- root/root 8300 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/TtlDb.py -rw-r--r-- root/root 3680 2008-07-14 08:25 ./usr/share/python-support/courier-pythonfilter/pythonfilter/quota.py -rw-r--r-- root/root 1801 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/debug.py -rw-r--r-- root/root 2639 2008-03-23 09:06 ./usr/share/python-support/courier-pythonfilter/pythonfilter/clamav.py -rw-r--r-- root/root 2087 2008-07-14 08:16 ./usr/share/python-support/courier-pythonfilter/pythonfilter/whitelist_spf.py -rw-r--r-- root/root 14549 2008-04-14 00:39 ./usr/share/python-support/courier-pythonfilter/pythonfilter/dialback.py -rw-r--r-- root/root 2151 2008-07-14 08:16 ./usr/share/python-support/courier-pythonfilter/pythonfilter/spfcheck.py -rw-r--r-- root/root 3956 2008-04-14 00:39 ./usr/share/python-support/courier-pythonfilter/pythonfilter/comeagain.py -rw-r--r-- root/root 3642 2008-07-14 10:17 ./usr/share/python-support/courier-pythonfilter/pythonfilter/add_signature.py -rw-r--r-- root/root 3974 2008-04-14 00:39 ./usr/share/python-support/courier-pythonfilter/pythonfilter/auto_whitelist.py drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/share/doc/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/share/doc/courier-pythonfilter/ -rw-r--r-- root/root 5135 2008-05-27 04:53 ./usr/share/doc/courier-pythonfilter/README.hacking.gz -rw-r--r-- root/root 7575 2008-08-01 01:44 ./usr/share/doc/courier-pythonfilter/changelog.gz -rw-r--r-- root/root 5288 2008-07-14 08:47 ./usr/share/doc/courier-pythonfilter/README.gz -rw-r--r-- root/root 1031 2008-10-30 11:32 ./usr/share/doc/courier-pythonfilter/copyright -rw-r--r-- root/root 301 2008-10-31 15:15 ./usr/share/doc/courier-pythonfilter/changelog.Debian.gz drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/share/lintian/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/share/lintian/overrides/ -rw-r--r-- root/root 3429 2008-10-31 15:36 ./usr/share/lintian/overrides/courier-pythonfilter drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/share/man/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/share/man/man1/ -rw-r--r-- root/root 627 2008-10-30 14:41 ./usr/share/man/man1/pythonfilter.1.gz -rw-r--r-- root/root 505 2008-10-30 14:35 ./usr/share/man/man1/pythonfilter-quarantine.1.gz drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/lib/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/lib/courier/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./usr/lib/courier/filters/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./var/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./var/lib/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./var/lib/pythonfilter/ drwxr-xr-x root/root 0 2008-10-31 15:36 ./var/lib/pythonfilter/quarantine/ lrwxrwxrwx root/root 0 2008-10-31 15:36 ./usr/lib/courier/filters/pythonfilter -> ../../../bin/pythonfilter Best regards, Frederik Dannemare ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users