From 692c36bf991f7ef456a6d73b85fde34144996d77 Mon Sep 17 00:00:00 2001 From: krion Date: Mon, 16 Feb 2004 09:52:52 +0000 Subject: - Fix package build Submitted by: bento via kris Approved by: maintainer --- mail/dcc-dccd/Makefile | 8 ++++++++ mail/dcc-dccd/pkg-plist | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'mail/dcc-dccd') 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 -- cgit