]> mj.ucw.cz Git - mailman-filter.git/commitdiff
Packaging scripts by MJ
authorMartin Mares <mj@ucw.cz>
Fri, 21 Oct 2011 18:14:43 +0000 (20:14 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 21 Oct 2011 18:14:43 +0000 (20:14 +0200)
Makefile [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..4a51d84
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+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/
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..5b56a6d
--- /dev/null
@@ -0,0 +1,5 @@
+mailman-filter (0.1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Martin Mares <mj@ucw.cz>  Fri, 21 Oct 2011 20:13:36 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..e3f4eea
--- /dev/null
@@ -0,0 +1,14 @@
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..6af8328
--- /dev/null
@@ -0,0 +1,15 @@
+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.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..4f62b99
--- /dev/null
@@ -0,0 +1,42 @@
+#!/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