aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-08-08 12:53:08 +0200
committerJohannes Berg <johannes@sipsolutions.net>2008-08-08 12:53:08 +0200
commit1215f0eb1f06b44ebd419479e6ac7b89fe22a1ef (patch)
treeac5d695167a5ea2cf1ab50d0858ae8cc0a426dfc
parent1e4a4ae2fd3ee36c05ffe599ace6942af4b2916b (diff)
downloaddovecot-antispam-1215f0eb1f06b44ebd419479e6ac7b89fe22a1ef.tar.gz
dovecot-antispam-1215f0eb1f06b44ebd419479e6ac7b89fe22a1ef.tar.xz
dovecot-antispam-1215f0eb1f06b44ebd419479e6ac7b89fe22a1ef.zip
make packages depend on a particular dovecot version
-rw-r--r--debian/control6
-rwxr-xr-xdebian/rules3
2 files changed, 6 insertions, 3 deletions
diff --git a/debian/control b/debian/control
index f1d6d7a..f8ab8d7 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Homepage: http://johannes.sipsolutions.net/Projects/dovecot-antispam
Package: dovecot-antispam-crm114
Architecture: any
-Depends: dovecot-imapd, ${shlibs:Depends}
+Depends: dovecot-imapd (= ${dovecot-dev}), ${shlibs:Depends}
Provides: dovecot-antispam
Conflicts: dovecot-antispam
Description: Dovecot IMAP server antispam plugin
@@ -20,7 +20,7 @@ Tag: mail::imap, works-with::mail
Package: dovecot-antispam-dspam
Architecture: any
-Depends: dovecot-imapd, ${shlibs:Depends}
+Depends: dovecot-imapd (= ${dovecot-dev}), ${shlibs:Depends}
Provides: dovecot-antispam
Conflicts: dovecot-antispam
Description: Dovecot IMAP server antispam plugin
@@ -32,7 +32,7 @@ Tag: mail::imap, works-with::mail
Package: dovecot-antispam-mailtrain
Architecture: any
-Depends: dovecot-imapd, ${shlibs:Depends}
+Depends: dovecot-imapd (= ${dovecot-dev}), ${shlibs:Depends}
Provides: dovecot-antispam
Conflicts: dovecot-antispam
Description: Dovecot IMAP server antispam plugin
diff --git a/debian/rules b/debian/rules
index aa9edc3..65756b3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -80,6 +80,9 @@ binary-common:
dh_makeshlibs
dh_installdeb
dh_shlibdeps
+ @dpkg-query -W dovecot-dev | sed 's/\t/=/' >> debian/dovecot-antispam-dspam.substvars
+ @dpkg-query -W dovecot-dev | sed 's/\t/=/' >> debian/dovecot-antispam-crm114.substvars
+ @dpkg-query -W dovecot-dev | sed 's/\t/=/' >> debian/dovecot-antispam-mailtrain.substvars
dh_gencontrol
dh_md5sums
dh_builddeb