From f37cf6063e8508a64ad2568456d8d06393ffb91f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 21 Oct 2011 20:14:43 +0200 Subject: [PATCH] Packaging scripts by MJ --- Makefile | 12 ++++++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 14 ++++++++++++++ debian/copyright | 15 +++++++++++++++ debian/rules | 42 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 89 insertions(+) create mode 100644 Makefile create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/Makefile b/Makefile new file mode 100644 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 index 0000000..5b56a6d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mailman-filter (0.1) unstable; urgency=low + + * Initial release. + + -- Martin Mares Fri, 21 Oct 2011 20:13:36 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e3f4eea --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: mailman-filter +Section: ucw +Priority: optional +Maintainer: Martin Mares +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 index 0000000..6af8328 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,15 @@ +Mailman custom filter plugin +(c) 2011 Jan Moskyto Matejka + +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 index 0000000..4f62b99 --- /dev/null +++ b/debian/rules @@ -0,0 +1,42 @@ +#!/usr/bin/make -f +# Rules for building of mailman-filter Debian package +# (c) 2011 Martin Mares + +# 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 -- 2.39.2