--- /dev/null
+VERSION=0.1
+ARCHIVE=mailman-filter-$(VERSION).tar.gz
+
+all:
+
+release:
+ git tag v$(VERSION)
+ git push --tags
+ git archive --format=tar --prefix=mailman-filter-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
+ scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
+ ssh jw "cd www && bin/release-prog mailman-filter $(VERSION)"
+ mv $(ARCHIVE) ~/archives/mj/
--- /dev/null
+mailman-filter (0.1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Martin Mares <mj@ucw.cz> Fri, 21 Oct 2011 20:13:36 +0200
--- /dev/null
+Source: mailman-filter
+Section: ucw
+Priority: optional
+Maintainer: Martin Mares <mj@ucw.cz>
+Standards-Version: 2.1.0.0
+Build-Depends: debhelper (>= 7.0)
+
+Package: mailman-filter
+Architecture: all
+Depends: mailman
+Description: Filtering module for Mailman
+ This is a module for Mailman, which can call external filter scripts
+ on incoming mail messages and decide upon their results, whether the
+ message should be accepted, discarded or held for moderation.
--- /dev/null
+Mailman custom filter plugin
+(c) 2011 Jan Moskyto Matejka <moskyto@atrey.karlin.mff.cuni.cz>
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+A full copy of the GNU GPL can be found in /usr/share/common-licenses on
+Debian systems.
--- /dev/null
+#!/usr/bin/make -f
+# Rules for building of mailman-filter Debian package
+# (c) 2011 Martin Mares <mj@ucw.cz>
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+# $(MAKE)
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+# $(MAKE) clean
+ dh_clean
+
+binary-arch:
+
+binary-indep: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs usr/lib/mailman/Mailman/Handlers
+
+ install -m 644 Filter.py debian/mailman-filter/usr/lib/mailman/Mailman/Handlers/
+
+ dh_installchangelogs
+ dh_installdocs README
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary