aboutsummaryrefslogtreecommitdiffstats
path: root/mail/dcc-dccd
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-02-16 17:52:52 +0800
committerkrion <krion@FreeBSD.org>2004-02-16 17:52:52 +0800
commit692c36bf991f7ef456a6d73b85fde34144996d77 (patch)
tree1ffbf0cbe01ffff19dbe93962d631587f29b4fda /mail/dcc-dccd
parentaafcf4a1d21fe675b9e80484ebf9bf858d7bea80 (diff)
downloadfreebsd-ports-gnome-692c36bf991f7ef456a6d73b85fde34144996d77.tar.gz
freebsd-ports-gnome-692c36bf991f7ef456a6d73b85fde34144996d77.tar.zst
freebsd-ports-gnome-692c36bf991f7ef456a6d73b85fde34144996d77.zip
- Fix package build
Submitted by: bento via kris Approved by: maintainer
Diffstat (limited to 'mail/dcc-dccd')
-rw-r--r--mail/dcc-dccd/Makefile8
-rw-r--r--mail/dcc-dccd/pkg-plist4
2 files changed, 10 insertions, 2 deletions
diff --git a/mail/dcc-dccd/Makefile b/mail/dcc-dccd/Makefile
index 71133cf0fcaa..b7290958cbcd 100644
--- a/mail/dcc-dccd/Makefile
+++ b/mail/dcc-dccd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dcc-dccd
PORTVERSION= 1.2.28
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.rhyolite.com/anti-spam/dcc/source/ \
http://www.wa.apana.org.au/~dean/sources/ \
@@ -24,6 +25,13 @@ MAN8= cdcc.8 dcc.8 dccd.8 \
dccm.8 dccproc.8 dccsight.8 \
dccifd.8 dbclean.8 dblist.8
+.if exists(/usr/lib/libmilter.a) || exists(${LOCALBASE}/lib/libmilter.a)
+PLIST_SUB+= WITH_SENDMAIL=""
+.else
+CONFIGURE_ARGS+= --disable-dccm --disable-dccifd
+PLIST_SUB+= WITH_SENDMAIL="@comment"
+.endif
+
post-patch:
${FIND} ${WRKSRC} -type f -exec \
${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' {} \;
diff --git a/mail/dcc-dccd/pkg-plist b/mail/dcc-dccd/pkg-plist
index 81fc7d1250c9..ca0ebfe4f1c7 100644
--- a/mail/dcc-dccd/pkg-plist
+++ b/mail/dcc-dccd/pkg-plist
@@ -5,9 +5,9 @@ dcc/libexec/fetch-testmsg-whitelist
dcc/libexec/updatedcc
dcc/libexec/dbclean
dcc/libexec/dccd
-dcc/libexec/dccm
+%%WITH_SENDMAIL%%dcc/libexec/dccm
dcc/libexec/dblist
-dcc/libexec/dccifd
+%%WITH_SENDMAIL%%dcc/libexec/dccifd
dcc/libexec/dccsight
dcc/libexec/wlist
dcc/libexec/cron-dccd