aboutsummaryrefslogtreecommitdiffstats
path: root/mail/dk-milter
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2007-06-02 22:46:41 +0800
committerdinoex <dinoex@FreeBSD.org>2007-06-02 22:46:41 +0800
commit95e77b604794db52e580c629b2ef9891a4f8e7b7 (patch)
tree3d87a4217b855aa36f68ccc9b881915ebaba8141 /mail/dk-milter
parentcd91c941dbc8a801a20236a31b46648e5f049040 (diff)
downloadfreebsd-ports-gnome-95e77b604794db52e580c629b2ef9891a4f8e7b7.tar.gz
freebsd-ports-gnome-95e77b604794db52e580c629b2ef9891a4f8e7b7.tar.zst
freebsd-ports-gnome-95e77b604794db52e580c629b2ef9891a4f8e7b7.zip
- update to 0.6.0
- new options: WITH_DEBUG, WITHOUT_ARLIB, WITH_POPAUTH - new features: WITH_ANTICIPATE_SENDMAIL_MUNGE, WITH_FLUSH_HEADERS, WITH_MULTIPLE_KEYS, WITH_REQUIRED_HEADERS, WITH_SELECT_CANONICALIZATION PR: 113242 Submitted by: Hirohisa Yamaguchi
Diffstat (limited to 'mail/dk-milter')
-rw-r--r--mail/dk-milter/Makefile48
-rw-r--r--mail/dk-milter/Makefile.features28
-rw-r--r--mail/dk-milter/distinfo6
-rw-r--r--mail/dk-milter/files/patch-dk-filter-Makefile.m411
-rw-r--r--mail/dk-milter/files/patch-libar-Makefile.m410
-rw-r--r--mail/dk-milter/files/patch-libdk-Makefile.m415
-rw-r--r--mail/dk-milter/files/site.config.m46
-rw-r--r--mail/dk-milter/files/site.config.m4.milter4
-rw-r--r--mail/dk-milter/pkg-plist1
9 files changed, 84 insertions, 45 deletions
diff --git a/mail/dk-milter/Makefile b/mail/dk-milter/Makefile
index 4919dd47a3c9..987ad7772971 100644
--- a/mail/dk-milter/Makefile
+++ b/mail/dk-milter/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= dk-milter
-PORTVERSION= 0.5.0
+PORTVERSION= 0.6.0
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dk-milter
@@ -15,6 +15,7 @@ MAINTAINER= dinoex@FreeBSD.org
COMMENT= Domainkeys milter for Sendmail
USE_RC_SUBR= milter-dk.sh
+USE_OPENSSL= yes
IPCCHECK!= ipcrm -q 0 2>&1 || true
.if ${IPCCHECK:Mimplemented}
@@ -40,21 +41,58 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/${SENDMAIL_MILTER_
.endif
.endif
+.if defined(WITH_SENDMAIL_STATIC_MILTER) || !defined(SENDMAIL_WITH_SHARED_MILTER)
+SITE+= -e '\|-static|s|%%STATIC%%||g'
+.else
+SITE+= -e '\|-static|s|%%STATIC%%|dnl |g'
+.endif
+
SENDMAIL_MILTER_PORT?= sendmail
WCONF= ${WRKSRC}/devtools/Site
MAN8= dk-filter.8
DOCSFILES= FEATURES INSTALL KNOWNBUGS LICENSE README RELEASE_NOTES \
- dk-filter/autorespond.csh
+ rfc4870.txt dk-filter/autorespond.csh
SITE+= ${FILESDIR}/site.config.m4
.if !defined(SENDMAIL_MILTER_IN_BASE)
SITE+= ${FILESDIR}/site.config.m4.milter
.endif
+SITE+= ${WRKSRC}/site.config.m4.dist
+SITE_SUB+= -e "s|%%PREFIX%%|${PREFIX}|g" \
+ -e "s|%%LOCALBASE%%|${LOCALBASE}|g"
.include <bsd.port.pre.mk>
SUB_LIST= "RC_SCRIPT=${PREFIX}/etc/rc.d/${USE_RC_SUBR:S/.sh$//}${RC_SUBR_SUFFIX}"
+.if defined(WITH_DEBUG)
+SITE_SUB+= -e '\|confOPTIMIZE.*-g|s/^dnl //g'
+.endif
+.if !defined(WITHOUT_ARLIB)
+SITE_SUB+= -e '\|bld_USE_ARLIB|s/^dnl //g'
+.endif
+.if defined(WITH_POPAUTH) && !defined(WITHOUT_POPAUTH)
+SITE_SUB+= -e '/-DPOPAUTH/s/^dnl //g'
+.endif
+
+.if defined(WITH_POPAUTH)
+USE_BDB= 41+
+INVALID_BDB_VER= 2 3 40
+SITE_SUB+= -e 's|%%BDB%%||g' \
+ -e "s|%%BDB_LIB_DIR%%|${BDB_LIB_DIR}|g" \
+ -e "s|%%BDB_INCLUDE_DIR%%|${BDB_INCLUDE_DIR}|g" \
+ -e "s|%%BDB_LIB_NAME%%|${BDB_LIB_NAME}|g"
+.else
+SITE_SUB+= -e 's|%%BDB%%|dnl |g'
+.endif
+.if defined(WITH_OPENSSL_BASE) || defined(OPENSSL_OVERWRITE_BASE)
+SITE_SUB+= -e 's|%%OPENSSL%%|dnl |g'
+.else
+SITE_SUB+= -e 's|%%OPENSSL%%||g' \
+ -e "s|%%OPENSSLINC%%|${OPENSSLINC}|g" \
+ -e "s|%%OPENSSLLIB%%|${OPENSSLLIB}|g"
+.endif
+
.if defined(SENDMAIL_WITHOUT_MILTER)
pre-fetch:
@${ECHO_MSG}
@@ -63,18 +101,20 @@ pre-fetch:
@${FALSE}
.endif
+.include "${.CURDIR}/Makefile.features"
pre-configure:
${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \
-e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
-e "s|\`-O'|\`${CFLAGS}'|g" \
${WRKSRC}/devtools/OS/FreeBSD
- ${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
- -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
+ ${SED} ${SITE_SUB} -e '\|^dnl |d' -e '/^dnl$$/d' \
${SITE} > ${WCONF}/site.config.m4
post-install:
+.if !defined(WITH_DEBUG)
-${STRIP_CMD} ${PREFIX}/libexec/dk-filter
+.endif
${INSTALL_SCRIPT} ${WRKSRC}/dk-filter/gentxt.csh \
${PREFIX}/sbin/gentxt-dk
.for i in ${MAN8}
diff --git a/mail/dk-milter/Makefile.features b/mail/dk-milter/Makefile.features
new file mode 100644
index 000000000000..a175385be55c
--- /dev/null
+++ b/mail/dk-milter/Makefile.features
@@ -0,0 +1,28 @@
+# Makefile.features
+# Author: Hirohisa Yamaguchi <umq@ueo.co.jp>
+#
+# This file is used to tune build time options.
+# Please refer FEATURES file distributed with the source for details.
+#
+# $FreeBSD$
+#
+
+.if defined(WITH_ANTICIPATE_SENDMAIL_MUNGE) && !defined(WITHOUT_ANTICIPATE_SENDMAIL_MUNGE)
+SITE_SUB+= -e '/-D_FFR_ANTICIPATE_SENDMAIL_MUNGE/s|^dnl ||'
+.endif
+
+.if defined(WITH_FLUSH_HEADERS) && !defined(WITHOUT_FLUSH_HEADERS)
+SITE_SUB+= -e '/-D_FFR_FLUSH_HEADERS/s|^dnl ||'
+.endif
+
+.if defined(WITH_MULTIPLE_KEYS) && !defined(WITHOUT_MULTIPLE_KEYS)
+SITE_SUB+= -e '/-D_FFR_MULTIPLE_KEYS/s|^dnl ||'
+.endif
+
+.if defined(WITH_REQUIRED_HEADERS) && !defined(WITHOUT_REQUIRED_HEADERS)
+SITE_SUB+= -e '/-D_FFR_REQUIRED_HEADERS/s|^dnl ||'
+.endif
+
+.if defined(WITH_SELECT_CANONICALIZATION) && !defined(WITHOUT_SELECT_CANONICALIZATION)
+SITE_SUB+= -e '/-D_FFR_SELECT_CANONICALIZATION/s|^dnl ||'
+.endif
diff --git a/mail/dk-milter/distinfo b/mail/dk-milter/distinfo
index ad2c115a5d7b..0557151ca5de 100644
--- a/mail/dk-milter/distinfo
+++ b/mail/dk-milter/distinfo
@@ -1,3 +1,3 @@
-MD5 (dk-milter-0.5.0.tar.gz) = 3451cfe6460fb90d836cda5afbcea908
-SHA256 (dk-milter-0.5.0.tar.gz) = 91f87e121a078e13b5babe6df4f68bc05b44f814c5b646311eedd5c650deed31
-SIZE (dk-milter-0.5.0.tar.gz) = 347434
+MD5 (dk-milter-0.6.0.tar.gz) = f0fb37e503d34d13893c259867463dd8
+SHA256 (dk-milter-0.6.0.tar.gz) = 1114e9e548a341eda66da92fcca903d665e77763ee63d67e690606af4acce683
+SIZE (dk-milter-0.6.0.tar.gz) = 350417
diff --git a/mail/dk-milter/files/patch-dk-filter-Makefile.m4 b/mail/dk-milter/files/patch-dk-filter-Makefile.m4
deleted file mode 100644
index 8416aab3e840..000000000000
--- a/mail/dk-milter/files/patch-dk-filter-Makefile.m4
+++ /dev/null
@@ -1,11 +0,0 @@
---- dk-filter/Makefile.m4.bak Fri Apr 8 21:50:08 2005
-+++ dk-filter/Makefile.m4 Sun May 22 13:07:23 2005
-@@ -10,7 +10,7 @@
- dnl APPENDDEF(`confLIBDIRS', `-L/usr/local/ssl/lib ')
-
- dnl To use the asynchronous resolver library provided, enable this line:
--dnl bldPUSH_SMLIB(`ar')
-+bldPUSH_SMLIB(`ar')
-
- bldPUSH_SMLIB(`dk')
- APPENDDEF(`confINCDIRS', `-I../libdk/ ')
diff --git a/mail/dk-milter/files/patch-libar-Makefile.m4 b/mail/dk-milter/files/patch-libar-Makefile.m4
deleted file mode 100644
index 04b5b1a6745d..000000000000
--- a/mail/dk-milter/files/patch-libar-Makefile.m4
+++ /dev/null
@@ -1,10 +0,0 @@
---- libar/Makefile.m4.orig Sun Sep 17 01:00:43 2006
-+++ libar/Makefile.m4 Wed Apr 11 16:24:39 2007
-@@ -12,7 +12,6 @@
-
- bldPRODUCT_START(`library', `libar')
- define(`bldSOURCES', `ar.c manual.c ')
--define(`bldINSTALLABLE', `true')
- bldPRODUCT_END
-
- bldPRODUCT_START(`manpage', `ar')
diff --git a/mail/dk-milter/files/patch-libdk-Makefile.m4 b/mail/dk-milter/files/patch-libdk-Makefile.m4
deleted file mode 100644
index 74f6543b267c..000000000000
--- a/mail/dk-milter/files/patch-libdk-Makefile.m4
+++ /dev/null
@@ -1,15 +0,0 @@
---- libdk/Makefile.m4.bak Sat Sep 4 00:39:01 2004
-+++ libdk/Makefile.m4 Sun May 22 13:10:14 2005
-@@ -4,9 +4,9 @@
- define(`confREQUIRE_LIBSM', `true')
-
- dnl Enable these lines to make use of the provided asynchronous resolver:
--dnl bldPUSH_SMLIB(`ar')
--dnl APPENDDEF(`confENVDEF', `-DUSE_ARLIB ')
--dnl APPENDDEF(`confINCDIRS', `-I../libar/ ')
-+bldPUSH_SMLIB(`ar')
-+APPENDDEF(`confENVDEF', `-DUSE_ARLIB ')
-+APPENDDEF(`confINCDIRS', `-I../libar/ ')
-
- dnl Enable and edit this as appropriate for your system:
- dnl APPENDDEF(`confINCDIRS', `-I/usr/local/ssl/include ')
diff --git a/mail/dk-milter/files/site.config.m4 b/mail/dk-milter/files/site.config.m4
index 27e89c0c22a6..f8566dc47a9e 100644
--- a/mail/dk-milter/files/site.config.m4
+++ b/mail/dk-milter/files/site.config.m4
@@ -4,3 +4,9 @@ define(`confMANROOTMAN',`%%PREFIX%%/man/man')
define(`confUBINDIR',`%%PREFIX%%/libexec')
define(`confLIBDIR',`%%PREFIX%%/lib')
define(`confDONT_INSTALL_CATMAN',`True')
+%%STATIC%%APPENDDEF(`confLIBS', `-static ')
+%%BDB%%APPENDDEF(`confLIBDIRS', `-L%%BDB_LIB_DIR%% ')
+%%BDB%%APPENDDEF(`confINCDIRS', `-I%%BDB_INCLUDE_DIR%% ')
+%%BDB%%APPENDDEF(`confLIBS', `-l%%BDB_LIB_NAME%% ')
+%%OPENSSL%%APPENDDEF(`confLIBDIRS', `-L%%OPENSSLLIB%% ')
+%%OPENSSL%%APPENDDEF(`confINCDIRS', `-I%%OPENSSLINC%% ')
diff --git a/mail/dk-milter/files/site.config.m4.milter b/mail/dk-milter/files/site.config.m4.milter
index b02c20ecfe0a..10b6411190cd 100644
--- a/mail/dk-milter/files/site.config.m4.milter
+++ b/mail/dk-milter/files/site.config.m4.milter
@@ -1,2 +1,2 @@
-APPENDDEF(`confENVDEF',`-I%%LOCALBASE%%/include')
-APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
+APPENDDEF(`bld_dk_filter_INCDIRS',`-I%%LOCALBASE%%/include')
+APPENDDEF(`bld_dk_filter_LIBDIRS', `-L%%LOCALBASE%%/lib')
diff --git a/mail/dk-milter/pkg-plist b/mail/dk-milter/pkg-plist
index e6cf82c79cbc..8109371e8525 100644
--- a/mail/dk-milter/pkg-plist
+++ b/mail/dk-milter/pkg-plist
@@ -7,4 +7,5 @@ sbin/gentxt-dk
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES
%%PORTDOCS%%%%DOCSDIR%%/autorespond.csh
+%%PORTDOCS%%%%DOCSDIR%%/rfc4870.txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%