diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-05-25 22:11:34 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-05-25 22:11:34 +0000 |
commit | 07087d62a72a1c32d73e387705ca09690cae64c3 (patch) | |
tree | 96751854b00a5ecef5a07253a1b10ef09037690c /mail/dkim-milter | |
parent | 84ec1175a588dc9594b7b733e82f9f40cbdad4dc (diff) | |
download | ports-07087d62a72a1c32d73e387705ca09690cae64c3.tar.gz ports-07087d62a72a1c32d73e387705ca09690cae64c3.zip |
Notes
Diffstat (limited to 'mail/dkim-milter')
-rw-r--r-- | mail/dkim-milter/Makefile | 94 | ||||
-rw-r--r-- | mail/dkim-milter/Makefile.features | 80 | ||||
-rw-r--r-- | mail/dkim-milter/distinfo | 6 | ||||
-rw-r--r-- | mail/dkim-milter/files/milter-dkim.sh.in | 17 | ||||
-rw-r--r-- | mail/dkim-milter/files/patch-dkim-filter-Makefile.m4 | 11 | ||||
-rw-r--r-- | mail/dkim-milter/files/patch-libdkim-Makefile.m4 | 15 | ||||
-rw-r--r-- | mail/dkim-milter/files/site.config.m4 | 10 | ||||
-rw-r--r-- | mail/dkim-milter/files/site.config.m4.milter | 4 |
8 files changed, 119 insertions, 118 deletions
diff --git a/mail/dkim-milter/Makefile b/mail/dkim-milter/Makefile index 179c8c44a2f2..9e4cdeda3ef9 100644 --- a/mail/dkim-milter/Makefile +++ b/mail/dkim-milter/Makefile @@ -13,7 +13,7 @@ ## base system, building this port may fail. PORTNAME= dkim-milter -PORTVERSION= 0.6.6 +PORTVERSION= 1.0.0 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -43,17 +43,26 @@ 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 SUB_FILES= milter-dkim.sh WCONF= ${WRKSRC}/devtools/Site +MAN5= dkim-filter.conf.5 MAN8= dkim-filter.8 PLIST_FILES= libexec/dkim-filter sbin/gentxt-dkim \ + etc/mail/dkim-filter.conf.sample \ %%STATS%%libexec/dkim-stats +PLIST_DIRS= etc/mail PORTDOCS= FEATURES INSTALL KNOWNBUGS LICENSE README RELEASE_NOTES \ autorespond.csh \ draft-allman-dkim-ssp-02.txt draft-hoffman-dac-vbr-00.txt \ - draft-ietf-dkim-base-10.txt draft-ietf-dkim-overview-04.txt \ - draft-ietf-dkim-ssp-requirements-02.txt rfc4686.txt + draft-ietf-dkim-overview-04.txt \ + draft-ietf-dkim-ssp-requirements-02.txt rfc4686.txt rfc4871.txt .if !defined(NOPORTDOCS) LIBDOCS= ${DOCSDIR_REL}/libdkim/index.html \ ${DOCSDIR_REL}/libdkim/overview.html \ @@ -61,24 +70,40 @@ LIBDOCS= ${DOCSDIR_REL}/libdkim/index.html \ ${DOCSDIR_REL}/libdkim/dkim_alg_t.html \ ${DOCSDIR_REL}/libdkim/dkim_body.html \ ${DOCSDIR_REL}/libdkim/dkim_canon_t.html \ + ${DOCSDIR_REL}/libdkim/dkim_cbstat.html \ ${DOCSDIR_REL}/libdkim/dkim_close.html \ ${DOCSDIR_REL}/libdkim/dkim_eoh.html \ ${DOCSDIR_REL}/libdkim/dkim_eom.html \ ${DOCSDIR_REL}/libdkim/dkim_free.html \ ${DOCSDIR_REL}/libdkim/dkim_getcanonlen.html \ - ${DOCSDIR_REL}/libdkim/dkim_getidentity.html \ ${DOCSDIR_REL}/libdkim/dkim_getkeysize.html \ + ${DOCSDIR_REL}/libdkim/dkim_getselector.html \ + ${DOCSDIR_REL}/libdkim/dkim_getsigdomain.html \ ${DOCSDIR_REL}/libdkim/dkim_getsighdr.html \ ${DOCSDIR_REL}/libdkim/dkim_getsignalg.html \ ${DOCSDIR_REL}/libdkim/dkim_getsigntime.html \ ${DOCSDIR_REL}/libdkim/dkim_header.html \ ${DOCSDIR_REL}/libdkim/dkim_init.html \ ${DOCSDIR_REL}/libdkim/dkim_lib.html \ + ${DOCSDIR_REL}/libdkim/dkim_ohdrs.html \ ${DOCSDIR_REL}/libdkim/dkim_options.html \ + ${DOCSDIR_REL}/libdkim/dkim_param_t.html \ ${DOCSDIR_REL}/libdkim/dkim_policy.html \ ${DOCSDIR_REL}/libdkim/dkim_policy_t.html \ ${DOCSDIR_REL}/libdkim/dkim_query_t.html \ ${DOCSDIR_REL}/libdkim/dkim_reportinfo.html \ + ${DOCSDIR_REL}/libdkim/dkim_set_dns_callback.html \ + ${DOCSDIR_REL}/libdkim/dkim_set_key_lookup.html \ + ${DOCSDIR_REL}/libdkim/dkim_set_policy_lookup.html \ + ${DOCSDIR_REL}/libdkim/dkim_set_prescreen.html \ + ${DOCSDIR_REL}/libdkim/dkim_set_signature_handle.html \ + ${DOCSDIR_REL}/libdkim/dkim_set_signature_handle_free.html \ + ${DOCSDIR_REL}/libdkim/dkim_set_signature_tagvalues.html \ + ${DOCSDIR_REL}/libdkim/dkim_set_signer.html \ + ${DOCSDIR_REL}/libdkim/dkim_set_user_context.html \ + ${DOCSDIR_REL}/libdkim/dkim_sig_getcontext.html \ + ${DOCSDIR_REL}/libdkim/dkim_sig_ignore.html \ + ${DOCSDIR_REL}/libdkim/dkim_siginfo.html \ ${DOCSDIR_REL}/libdkim/dkim_sigkey_t.html \ ${DOCSDIR_REL}/libdkim/dkim_sign.html \ ${DOCSDIR_REL}/libdkim/dkim_ssl_version.html \ @@ -94,24 +119,58 @@ 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_VERIFY_DOMAINKEYS) && !defined(WITHOUT_VERIFY_DOMAINKEYS) LIBDK_PORT= mail/dk-milter BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/${LIBDK_PORT}:patch -DKMILTER_DISTNAME!= cd ${PORTSDIR}/${LIBDK_PORT} && ${MAKE} -V DISTNAME -LIBDK_PATH= ${PORTSDIR}/${LIBDK_PORT}/work/${DKMILTER_DISTNAME}/libdk +LIBDK_PATH!= cd ${PORTSDIR}/${LIBDK_PORT} && ${MAKE} -V WRKSRC +SITE_SUB+= -e '\|bld_VERIFY_DOMAINKEYS|s/^dnl //' .endif .if defined(WITH_STATS) && !defined(WITHOUT_STATS) +MAN8+= dkim-stats.8 PLIST_SUB+= STATS="" .else PLIST_SUB+= STATS="@comment " .endif +.if defined(WITH_POPAUTH) \ + || defined(WITH_QUERY_CACHE) \ + || defined(WITH_STATS) +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 + pre-fetch: .if defined(SENDMAIL_WITHOUT_MILTER) @${ECHO_MSG} @@ -125,6 +184,7 @@ pre-fetch: @${ECHO_MSG} "which is requied in the latest specification." @${ECHO_MSG} @${ECHO_MSG} "dkim-milter has the following tunable option(s):" + @${ECHO_MSG} " WITH_POPAUTH=yes Query POP-before-SMTP authentication database" @${ECHO_MSG} " WITH_VERIFY_DOMAINKEYS=yes Verify DomainKeys using dk-milter's libdk" @${ECHO_MSG} " SENDMAIL_MILTER_IN_BASE=yes Build to run with base sendmail" @${ECHO_MSG} " WITH_POSTFIX=yes Build to run with postfix port" @@ -134,32 +194,32 @@ pre-fetch: post-extract: @${CP} ${WRKSRC}/dkim-filter/autorespond.csh ${WRKSRC} +.include "${.CURDIR}/Makefile.features" post-patch: @${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" \ - -e "s|%%OPENSSLINC%%|${OPENSSLINC}|g" \ - -e "s|%%OPENSSLLIB%%|${OPENSSLLIB}|g" \ + @${SED} ${SITE_SUB} -e '\|^dnl |d' -e '/^dnl$$/d' \ ${SITE} > ${WCONF}/site.config.m4 .if defined(WITH_VERIFY_DOMAINKEYS) && !defined(WITHOUT_VERIFY_DOMAINKEYS) - @${REINPLACE_CMD} -e "/bldPUSH_SMLIB(\`dk')/s|^dnl ||" \ - -e "/-I\.\.\/libdk\//s|^dnl ||" \ - -e '/-DVERIFY_DOMAINKEYS/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 - ${LN} -s ${LIBDK_PATH} ${WRKSRC}/ + ${LN} -s ${LIBDK_PATH}/libdk ${WRKSRC}/ .endif -.include "${.CURDIR}/Makefile.features" - post-install: +.if !defined(WITH_DEBUG) @${STRIP_CMD} ${PREFIX}/libexec/dkim-filter +.endif ${INSTALL_SCRIPT} ${WRKSRC}/dkim-filter/gentxt.csh \ ${PREFIX}/sbin/gentxt-dkim + @${MKDIR} ${PREFIX}/etc/mail + ${INSTALL_DATA} ${WRKSRC}/dkim-filter/dkim-filter.conf.sample ${PREFIX}/etc/mail/ +.for i in ${MAN5} + @${RM} -f ${MANPREFIX}/man/cat5/${i} ${MANPREFIX}/man/cat5/${i}.gz + ${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man5/ +.endfor .for i in ${MAN8} @${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz ${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man8/ diff --git a/mail/dkim-milter/Makefile.features b/mail/dkim-milter/Makefile.features index 5d77eb61e49b..934c31a7a0c3 100644 --- a/mail/dkim-milter/Makefile.features +++ b/mail/dkim-milter/Makefile.features @@ -8,101 +8,53 @@ # .if defined(WITH_ALLMAN_SSP_02) && !defined(WITHOUT_ALLMAN_SSP_02) - @${REINPLACE_CMD} -e '/-D_FFR_ALLMAN_SSP_02/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 \ - ${WRKSRC}/libdkim/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_ALLMAN_SSP_02/s|^dnl ||' .endif .if defined(WITH_ANTICIPATE_SENDMAIL_MUNGE) && !defined(WITHOUT_ANTICIPATE_SENDMAIL_MUNGE) - @${REINPLACE_CMD} -e '/-D_FFR_ANTICIPATE_SENDMAIL_MUNGE/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_ANTICIPATE_SENDMAIL_MUNGE/s|^dnl ||' .endif .if defined(WITH_CAPTURE_UNKNOWN_ERRORS) && !defined(WITHOUT_CAPTURE_UNKNOWN_ERRORS) - @${REINPLACE_CMD} -e '/-D_FFR_CAPTURE_UNKNOWN_ERRORS/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_CAPTURE_UNKNOWN_ERRORS/s|^dnl ||' .endif .if defined(WITH_FLUSH_HEADERS) && !defined(WITHOUT_FLUSH_HEADERS) - @${REINPLACE_CMD} -e '/-D_FFR_FLUSH_HEADERS/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_FLUSH_HEADERS/s|^dnl ||' .endif .if defined(WITH_HASH_BUFFERING) && !defined(WITHOUT_HASH_BUFFERING) - @${REINPLACE_CMD} -e '/-D_FFR_HASH_BUFFERING/s|^dnl ||' \ - ${WRKSRC}/libdkim/Makefile.m4 -.endif - -.if defined(WITH_LOG_SSL_ERRORS) && !defined(WITHOUT_LOG_SSL_ERRORS) - @${REINPLACE_CMD} -e '/-D_FFR_LOG_SSL_ERRORS/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 -.endif - -.if defined(WITH_MULTIPLE_KEYS) && !defined(WITHOUT_MULTIPLE_KEYS) - @${REINPLACE_CMD} -e '/-D_FFR_MULTIPLE_KEYS/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 -.endif - -.if defined(WITH_OMIT_HEADERS) && !defined(WITHOUT_OMIT_HEADERS) - @${REINPLACE_CMD} -e '/-D_FFR_OMIT_HEADERS/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_HASH_BUFFERING/s|^dnl ||' .endif .if defined(WITH_QUERY_CACHE) && !defined(WITHOUT_QUERY_CACHE) - @${REINPLACE_CMD} -e '/-D_FFR_QUERY_CACHE/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 \ - ${WRKSRC}/libdkim/Makefile.m4 -.endif - -.if defined(WITH_QUERY_FILE) && !defined(WITHOUT_QUERY_FILE) - @${REINPLACE_CMD} -e '/-D_FFR_QUERY_FILE/s|^dnl ||' \ - ${WRKSRC}/libdkim/Makefile.m4 -.endif - -.if defined(WITH_QUARANTINE) && !defined(WITHOUT_QUARANTINE) - @${REINPLACE_CMD} -e '/-D_FFR_QUARANTINE/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 -.endif - -.if defined(WITH_REPORTINFO) && !defined(WITHOUT_REPORTINFO) - @${REINPLACE_CMD} -e '/-D_FFR_REPORTINFO/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_QUERY_CACHE/s|^dnl ||' .endif .if defined(WITH_REQUIRED_HEADERS) && !defined(WITHOUT_REQUIRED_HEADERS) - @${REINPLACE_CMD} -e '/-D_FFR_REQUIRED_HEADERS/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_REQUIRED_HEADERS/s|^dnl ||' .endif .if defined(WITH_SELECT_CANONICALIZATION) && !defined(WITHOUT_SELECT_CANONICALIZATION) - @${REINPLACE_CMD} -e '/-D_FFR_SELECT_CANONICALIZATION/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_SELECT_CANONICALIZATION/s|^dnl ||' .endif .if defined(WITH_SELECT_SIGN_HEADERS) && !defined(WITHOUT_SELECT_SIGN_HEADERS) - @${REINPLACE_CMD} -e '/-D_FFR_SELECT_SIGN_HEADERS/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 -.endif - -.if defined(WITH_SET_DNS_CALLBACK) && !defined(WITHOUT_SET_DNS_CALLBACK) - @${REINPLACE_CMD} -e '/-D_FFR_SET_DNS_CALLBACK/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 \ - ${WRKSRC}/libdkim/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_SELECT_SIGN_HEADERS/s|^dnl ||' .endif .if defined(WITH_SET_REPLY) && !defined(WITHOUT_SET_REPLY) - @${REINPLACE_CMD} -e '/-D_FFR_SET_REPLY/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_SET_REPLY/s|^dnl ||' .endif .if defined(WITH_STATS) && !defined(WITHOUT_STATS) - @${REINPLACE_CMD} -e '/-D_FFR_STATS/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 \ - ${WRKSRC}/libdkim/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_STATS/s|^dnl ||' .endif .if defined(WITH_VBR) && !defined(WITHOUT_VBR) - @${REINPLACE_CMD} -e '/-D_FFR_VBR/s|^dnl ||' \ - ${WRKSRC}/dkim-filter/Makefile.m4 \ - ${WRKSRC}/libdkim/Makefile.m4 +SITE_SUB+= -e '/-D_FFR_VBR/s|^dnl ||' +.endif + +.if defined(WITH_ZTAGS) && !defined(WITHOUT_ZTAGS) +SITE_SUB+= -e '/-D_FFR_ZTAGS/s|^dnl ||' .endif diff --git a/mail/dkim-milter/distinfo b/mail/dkim-milter/distinfo index 6f489e73c807..f2e840718c05 100644 --- a/mail/dkim-milter/distinfo +++ b/mail/dkim-milter/distinfo @@ -1,3 +1,3 @@ -MD5 (dkim-milter-0.6.6.tar.gz) = 7967e57b2df7a3019a4156a24971d5a8 -SHA256 (dkim-milter-0.6.6.tar.gz) = 25705f3fade8ba5db86272c1e937f006a645958467b47b7650b8d89451086bcb -SIZE (dkim-milter-0.6.6.tar.gz) = 492420 +MD5 (dkim-milter-1.0.0.tar.gz) = 7213cbfc39c2420153087248fa0258b1 +SHA256 (dkim-milter-1.0.0.tar.gz) = e813d3e58ce3fe6619bbf11d7ccd165387931b360c397397a5c4735af822ad59 +SIZE (dkim-milter-1.0.0.tar.gz) = 520612 diff --git a/mail/dkim-milter/files/milter-dkim.sh.in b/mail/dkim-milter/files/milter-dkim.sh.in index 1d604fee72a9..487cbba04ebb 100644 --- a/mail/dkim-milter/files/milter-dkim.sh.in +++ b/mail/dkim-milter/files/milter-dkim.sh.in @@ -19,6 +19,7 @@ # milterdkim_profiles (list): Set to "" by default. # Define your profiles here. # milterdkim_socket (str): Path to the milter socket. +# milterdkim_cfgfile (str): Configuration file. Also see dkim-filter.conf(5) # milterdkim_domain (str): Domainpart of From: in mails to sign. # milterdkim_key (str): Path to the private key file to sign with. # milterdkim_selector (str): Selector to use when signing @@ -34,6 +35,7 @@ milterdkim_enable=${milterdkim_enable:-"NO"} milterdkim_uid=${milterdkim_uid:-"mailnull"} milterdkim_profiles=${milterdkim_profiles:-} milterdkim_socket=${milterdkim_socket:-"local:/var/run/milterdkim/filter"} +milterdkim_cfgfile=${milterdkim_cfgfile:-"%%PREFIX%%/etc/mail/dkim-filter.conf"} milterdkim_domain=${milterdkim_domain:-"example.com"} milterdkim_key=${milterdkim_key:-} milterdkim_selector=${milterdkim_selector:-} @@ -65,11 +67,17 @@ if [ -n "$2" ]; then echo "You must define a socket (milterdkim_${profile}_socket)" exit 1 fi + eval milterdkim_cfgfile="\${milterdkim_${profile}_cfgfile:-${milterdkim_cfgfile}}" eval milterdkim_domain="\${milterdkim_${profile}_domain:-${milterdkim_domain}}" eval milterdkim_key="\${milterdkim_${profile}_key:-${milterdkim_key}}" eval milterdkim_selector="\${milterdkim_${profile}_selector:-${milterdkim_selector}}" eval milterdkim_alg="\${milterdkim_${profile}_alg:-${milterdkim_alg}}" eval milterdkim_flags="\${milterdkim_${profile}_flags:-${milterdkim_flags}}" + if [ -f "${milterdkim_cfgfile}" ];then + milterdkim_cfgfile="-x ${milterdkim_cfgfile}" + else + milterdkim_cfgfile="" + fi if [ "x${milterdkim_domain}" != "x" ];then milterdkim_domain="-d ${milterdkim_domain}" fi @@ -82,7 +90,7 @@ if [ -n "$2" ]; then if [ "x${milterdkim_alg}" != "x" ];then milterdkim_alg="-S ${milterdkim_alg}" fi - command_args="-l -p ${milterdkim_socket} -u ${milterdkim_uid} -P ${pidfile} ${milterdkim_domain} ${milterdkim_key} ${milterdkim_selector} ${milterdkim_alg}" + command_args="-l -p ${milterdkim_socket} -u ${milterdkim_uid} -P ${pidfile} ${milterdkim_cfgfile} ${milterdkim_domain} ${milterdkim_key} ${milterdkim_selector} ${milterdkim_alg}" else echo "$0: extra argument ignored" fi @@ -104,6 +112,11 @@ else restart_precmd="" fi else + if [ -f "${milterdkim_cfgfile}" ];then + milterdkim_cfgfile="-x ${milterdkim_cfgfile}" + else + milterdkim_cfgfile="" + fi if [ "x${milterdkim_domain}" != "x" ];then milterdkim_domain="-d ${milterdkim_domain}" fi @@ -116,7 +129,7 @@ else if [ "x${milterdkim_alg}" != "x" ];then milterdkim_alg="-S ${milterdkim_alg}" fi - command_args="-l -p ${milterdkim_socket} -u ${milterdkim_uid} -P ${pidfile} ${milterdkim_domain} ${milterdkim_key} ${milterdkim_selector} ${milterdkim_alg}" + command_args="-l -p ${milterdkim_socket} -u ${milterdkim_uid} -P ${pidfile} ${milterdkim_cfgfile} ${milterdkim_domain} ${milterdkim_key} ${milterdkim_selector} ${milterdkim_alg}" fi fi diff --git a/mail/dkim-milter/files/patch-dkim-filter-Makefile.m4 b/mail/dkim-milter/files/patch-dkim-filter-Makefile.m4 deleted file mode 100644 index d5f514f8aed9..000000000000 --- a/mail/dkim-milter/files/patch-dkim-filter-Makefile.m4 +++ /dev/null @@ -1,11 +0,0 @@ ---- dkim-filter/Makefile.m4.bak Fri Apr 8 21:50:08 2005 -+++ dkim-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(`dkim') - APPENDDEF(`confINCDIRS', `-I../libdkim/ ') diff --git a/mail/dkim-milter/files/patch-libdkim-Makefile.m4 b/mail/dkim-milter/files/patch-libdkim-Makefile.m4 deleted file mode 100644 index 18238533d663..000000000000 --- a/mail/dkim-milter/files/patch-libdkim-Makefile.m4 +++ /dev/null @@ -1,15 +0,0 @@ ---- libdkim/Makefile.m4.bak Sat Sep 4 00:39:01 2004 -+++ libdkim/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/dkim-milter/files/site.config.m4 b/mail/dkim-milter/files/site.config.m4 index 23dee76199f5..5a47ce8894a0 100644 --- a/mail/dkim-milter/files/site.config.m4 +++ b/mail/dkim-milter/files/site.config.m4 @@ -4,7 +4,9 @@ define(`confMANROOTMAN',`%%PREFIX%%/man/man') define(`confUBINDIR',`%%PREFIX%%/libexec') define(`confLIBDIR',`%%PREFIX%%/lib') define(`confDONT_INSTALL_CATMAN',`True') -APPENDDEF(`confINCDIRS', `-I%%OPENSSLINC%%') -APPENDDEF(`confLIBDIRS', `-L%%OPENSSLLIB%%') -APPENDDEF(`confINCDIRS', `-I%%OPENSSLINC%%') -APPENDDEF(`confLIBDIRS', `-L%%OPENSSLLIB%%') +%%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%% -R%%OPENSSLLIB%%') +%%OPENSSL%%APPENDDEF(`confINCDIRS', `-I%%OPENSSLINC%%') diff --git a/mail/dkim-milter/files/site.config.m4.milter b/mail/dkim-milter/files/site.config.m4.milter index b02c20ecfe0a..6d09c8b89817 100644 --- a/mail/dkim-milter/files/site.config.m4.milter +++ b/mail/dkim-milter/files/site.config.m4.milter @@ -1,2 +1,2 @@ -APPENDDEF(`confENVDEF',`-I%%LOCALBASE%%/include') -APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib') +APPENDDEF(`bld_dkim_filter_INCDIRS',`-I%%LOCALBASE%%/include') +APPENDDEF(`bld_dkim_filter_LIBDIRS', `-L%%LOCALBASE%%/lib') |