aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-05-31 14:06:11 +0200
committerJohannes Berg <johannes@sipsolutions.net>2008-05-31 14:06:11 +0200
commita958acd9de7b474b8249998551113c18ef7f9d0a (patch)
treed26709f90dda43604328c15c3cbbe1e1cb1721b0
parent49ca41506147278ed8b3c8de2b2d95bb51805a3d (diff)
downloaddovecot-antispam-a958acd9de7b474b8249998551113c18ef7f9d0a.tar.gz
dovecot-antispam-a958acd9de7b474b8249998551113c18ef7f9d0a.tar.xz
dovecot-antispam-a958acd9de7b474b8249998551113c18ef7f9d0a.zip
add preliminary debian packaging
-rw-r--r--.gitignore2
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control46
-rw-r--r--debian/copyright43
-rw-r--r--debian/dovecot-antispam-crm114.files1
-rw-r--r--debian/dovecot-antispam-crm114.manpages1
-rw-r--r--debian/dovecot-antispam-crm114.substvars1
-rw-r--r--debian/dovecot-antispam-dspam.files1
-rw-r--r--debian/dovecot-antispam-dspam.manpages1
-rw-r--r--debian/dovecot-antispam-dspam.substvars1
-rw-r--r--debian/dovecot-antispam-mailtrain.files1
-rw-r--r--debian/dovecot-antispam-mailtrain.manpages1
-rw-r--r--debian/dovecot-antispam-mailtrain.substvars1
-rw-r--r--debian/files3
-rwxr-xr-xdebian/rules93
16 files changed, 202 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 3651e9b..e4c6e0e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,5 @@
*~
dovecot-version.h
dovecot-version
+*.log
+debian/dovecot-antispam-*/
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..338bce3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+dovecot-antispam (1) unstable; urgency=low
+
+ * Initial release to Debian.
+
+ -- Johannes Berg <johannes@sipsolutions.net> Sat, 31 May 2008 12:49:59 +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..f1d6d7a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,46 @@
+Source: dovecot-antispam
+Section: mail
+Priority: optional
+Maintainer: Johannes Berg <johannes@sipsolutions.net>
+Build-Depends: debhelper (>= 6), dovecot-dev
+Standards-Version: 3.7.3
+Homepage: http://johannes.sipsolutions.net/Projects/dovecot-antispam
+
+Package: dovecot-antispam-crm114
+Architecture: any
+Depends: dovecot-imapd, ${shlibs:Depends}
+Provides: dovecot-antispam
+Conflicts: dovecot-antispam
+Description: Dovecot IMAP server antispam plugin
+ The Dovecot IMAP server antispam plugin is an IMAP server extension
+ helping you train your spam filter.
+ .
+ This package contains the crm114 version of the plugin.
+Tag: mail::imap, works-with::mail
+
+Package: dovecot-antispam-dspam
+Architecture: any
+Depends: dovecot-imapd, ${shlibs:Depends}
+Provides: dovecot-antispam
+Conflicts: dovecot-antispam
+Description: Dovecot IMAP server antispam plugin
+ The Dovecot IMAP server antispam plugin is an IMAP server extension
+ helping you train your spam filter.
+ .
+ This package contains the dspam version of the plugin.
+Tag: mail::imap, works-with::mail
+
+Package: dovecot-antispam-mailtrain
+Architecture: any
+Depends: dovecot-imapd, ${shlibs:Depends}
+Provides: dovecot-antispam
+Conflicts: dovecot-antispam
+Description: Dovecot IMAP server antispam plugin
+ The Dovecot IMAP server antispam plugin is an IMAP server extension
+ helping you train your spam filter.
+ .
+ This package contains the mailtrain version of the plugin; due to
+ simply piping the message to the learning process it can also be
+ used with any other spam filter, for example spamassassin (via
+ sa-learn.)
+Tag: mail::imap, works-with::mail
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e6edf3c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,43 @@
+This package was debianized by Johannes Berg <johannes@sipsolutions.net> on
+Sat, 31 May 2008 11:50:41 +0200.
+
+It was downloaded from http://johannes.sipsolutions.net/Projects/dovecot-antispam
+
+Upstream Authors:
+
+ Johannes Berg <johannes@sipsolutions.net>
+ Frank Cusack
+ Benedikt Boehm
+ Andreas Schneider
+ Timo Sirainen
+
+Copyright:
+
+ Copyright (C) 2004-2008 Johannes Berg
+ Copyright (C) 2005 Timo Sirainen
+ Copyright (C) 2006 Frank Cusack
+ Copyright (C) Benedikt Boehm
+ Copyright (C) Andreas Schneider
+
+License:
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License Version 2 as
+ published by the Free Software Foundation.
+
+ 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.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is licensed under the GPL, see above, and has
+the following copyright:
+
+Copyright (C) 2008 Johannes Berg <johannes@sipsolutions.net>
diff --git a/debian/dovecot-antispam-crm114.files b/debian/dovecot-antispam-crm114.files
new file mode 100644
index 0000000..8b36caa
--- /dev/null
+++ b/debian/dovecot-antispam-crm114.files
@@ -0,0 +1 @@
+usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so
diff --git a/debian/dovecot-antispam-crm114.manpages b/debian/dovecot-antispam-crm114.manpages
new file mode 100644
index 0000000..5560851
--- /dev/null
+++ b/debian/dovecot-antispam-crm114.manpages
@@ -0,0 +1 @@
+antispam.7
diff --git a/debian/dovecot-antispam-crm114.substvars b/debian/dovecot-antispam-crm114.substvars
new file mode 100644
index 0000000..36e5a58
--- /dev/null
+++ b/debian/dovecot-antispam-crm114.substvars
@@ -0,0 +1 @@
+shlibs:Depends=libc6 (>= 2.7-1)
diff --git a/debian/dovecot-antispam-dspam.files b/debian/dovecot-antispam-dspam.files
new file mode 100644
index 0000000..8b36caa
--- /dev/null
+++ b/debian/dovecot-antispam-dspam.files
@@ -0,0 +1 @@
+usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so
diff --git a/debian/dovecot-antispam-dspam.manpages b/debian/dovecot-antispam-dspam.manpages
new file mode 100644
index 0000000..5560851
--- /dev/null
+++ b/debian/dovecot-antispam-dspam.manpages
@@ -0,0 +1 @@
+antispam.7
diff --git a/debian/dovecot-antispam-dspam.substvars b/debian/dovecot-antispam-dspam.substvars
new file mode 100644
index 0000000..36e5a58
--- /dev/null
+++ b/debian/dovecot-antispam-dspam.substvars
@@ -0,0 +1 @@
+shlibs:Depends=libc6 (>= 2.7-1)
diff --git a/debian/dovecot-antispam-mailtrain.files b/debian/dovecot-antispam-mailtrain.files
new file mode 100644
index 0000000..8b36caa
--- /dev/null
+++ b/debian/dovecot-antispam-mailtrain.files
@@ -0,0 +1 @@
+usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so
diff --git a/debian/dovecot-antispam-mailtrain.manpages b/debian/dovecot-antispam-mailtrain.manpages
new file mode 100644
index 0000000..5560851
--- /dev/null
+++ b/debian/dovecot-antispam-mailtrain.manpages
@@ -0,0 +1 @@
+antispam.7
diff --git a/debian/dovecot-antispam-mailtrain.substvars b/debian/dovecot-antispam-mailtrain.substvars
new file mode 100644
index 0000000..36e5a58
--- /dev/null
+++ b/debian/dovecot-antispam-mailtrain.substvars
@@ -0,0 +1 @@
+shlibs:Depends=libc6 (>= 2.7-1)
diff --git a/debian/files b/debian/files
new file mode 100644
index 0000000..4d0ac55
--- /dev/null
+++ b/debian/files
@@ -0,0 +1,3 @@
+dovecot-antispam-crm114_1-1_powerpc.deb mail optional
+dovecot-antispam-dspam_1-1_powerpc.deb mail optional
+dovecot-antispam-mailtrain_1-1_powerpc.deb mail optional
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..aa9edc3
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,93 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+INST-crm114=$(CURDIR)/debian/dovecot-antispam-crm114/usr/lib/dovecot/modules/imap
+INST-dspam=$(CURDIR)/debian/dovecot-antispam-dspam/usr/lib/dovecot/modules/imap
+INST-mailtrain=$(CURDIR)/debian/dovecot-antispam-mailtrain/usr/lib/dovecot/modules/imap
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ cp defconfig .config
+
+ touch configure-stamp
+
+
+#Architecture
+build: build-arch
+
+build-arch: build-arch-stamp
+build-arch-stamp: configure-stamp
+ LIBRARY_NAME=crm114.so BACKEND=crm114-exec $(MAKE)
+ LIBRARY_NAME=dspam.so BACKEND=dspam-exec $(MAKE)
+ LIBRARY_NAME=mailtrain.so BACKEND=mailtrain $(MAKE)
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-arch-stamp configure-stamp
+
+ rm -f .config
+
+ $(MAKE) clean
+
+ dh_clean
+
+install: install-arch
+install-arch:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -s
+ dh_installdirs -s
+
+ mkdir -p $(INST-crm114)
+ install -o root -g root -m 0660 crm114.so $(INST-crm114)/lib90_antispam_plugin.so
+ mkdir -p $(INST-dspam)
+ install -o root -g root -m 0660 dspam.so $(INST-dspam)/lib90_antispam_plugin.so
+ mkdir -p $(INST-mailtrain)
+ install -o root -g root -m 0660 mailtrain.so $(INST-mailtrain)/lib90_antispam_plugin.so
+
+ dh_install -s
+# Must not depend on anything. This is to be called by
+# binary-arch
+# in another 'make' thread.
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-arch: build-arch install-arch
+ $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary-indep:
+
+binary: binary-arch
+.PHONY: build clean binary-arch binary install install-arch configure