diff options
author | tv <tv@pkgsrc.org> | 2005-07-20 19:42:50 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-07-20 19:42:50 +0000 |
commit | 21d1c11bbf7036117c223b90f81405b968bde50f (patch) | |
tree | b96973191e2c6c1134a69ece88d9f329d41999d4 /mail | |
parent | 73027ad5bde07403e29b190122ee8924ff7f6057 (diff) | |
download | pkgsrc-21d1c11bbf7036117c223b90f81405b968bde50f.tar.gz |
Add dk-milter 0.3.0, based on adrianp's dk-milter package from
the pkgsrc-wip project. (Take ownership with adrianp's permission.)
=====
The dk-milter package is an open source implementation of the DomainKeys
sender authentication system proposed by Yahoo!, Inc. It consists of a
library that implements the DomainKeys service, and a milter-based filter
application that can plug in to the sendmail MTA to provide that service
to sufficiently recent sendmail MTAs.
An optional asynchronous resolver library is also provided to work around
limitations of the basic BIND resolver which comes installed on most
systems.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/dk-milter/DESCR | 9 | ||||
-rw-r--r-- | mail/dk-milter/Makefile | 52 | ||||
-rw-r--r-- | mail/dk-milter/PLIST | 10 | ||||
-rw-r--r-- | mail/dk-milter/distinfo | 7 | ||||
-rw-r--r-- | mail/dk-milter/files/dk-milter.sh | 24 | ||||
-rw-r--r-- | mail/dk-milter/options.mk | 15 | ||||
-rw-r--r-- | mail/dk-milter/patches/patch-aa | 34 | ||||
-rw-r--r-- | mail/dk-milter/patches/patch-ab | 13 |
8 files changed, 164 insertions, 0 deletions
diff --git a/mail/dk-milter/DESCR b/mail/dk-milter/DESCR new file mode 100644 index 00000000000..a0bf6dfb6c6 --- /dev/null +++ b/mail/dk-milter/DESCR @@ -0,0 +1,9 @@ +The dk-milter package is an open source implementation of the DomainKeys +sender authentication system proposed by Yahoo!, Inc. It consists of a +library that implements the DomainKeys service, and a milter-based filter +application that can plug in to the sendmail MTA to provide that service +to sufficiently recent sendmail MTAs. + +An optional asynchronous resolver library is also provided to work around +limitations of the basic BIND resolver which comes installed on most +systems. diff --git a/mail/dk-milter/Makefile b/mail/dk-milter/Makefile new file mode 100644 index 00000000000..40b3a4b73a9 --- /dev/null +++ b/mail/dk-milter/Makefile @@ -0,0 +1,52 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/07/20 19:42:50 tv Exp $ + +DISTNAME= dk-milter-0.3.0 +CATEGORIES= mail +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dk-milter/} + +MAINTAINER= tv@duh.org +HOMEPAGE= http://sendmail.net/dk-milter/ +COMMENT= Open source implementation of DomainKeys for sendmail + +BUILDLINK_DEPENDS.libmilter+= libmilter>=8.13.0 + +LICENSE= no-profit +MAKE_ENV+= M4="${M4}" +RCD_SCRIPTS= dk-milter +USE_BUILTIN.libmilter= no +USE_TOOLS+= gm4 +USE_PKGINSTALL= YES + +SUBST_CLASSES+= libs +SUBST_STAGE.libs= pre-configure +SUBST_FILES.libs= dk-filter/Makefile.m4 libdk/Makefile.m4 +SUBST_SED.libs= -e 's|@SSLBASE@|${BUILDLINK_PREFIX.openssl}|g' \ + -e 's|@LMBASE@|${BUILDLINK_PREFIX.libmilter}|g' \ + -e 's|@PTHREAD@|${BUILDLINK_PREFIX.pthread}|g' \ + -e 's|@PTHREAD_LDFLAGS@|${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}|g' +SUBST_MESSAGE.libs= "Fixing makefile references." + +do-build: + @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ./Build) + +post-build: + ${SED} -e 's|dk-filter|dk-milter|g' \ + ${WRKSRC}/dk-filter/dk-filter.8 \ + >${WRKSRC}/dk-filter/dk-milter.8 + +do-install: + cd ${WRKSRC}/obj.`${UNAME} -srm | ${TR} \ . | ${TR} \/ -` && \ + ${INSTALL_PROGRAM} dk-filter/dk-filter ${PREFIX}/sbin/dk-milter + ${INSTALL_MAN} ${WRKSRC}/dk-filter/dk-milter.8 ${PREFIX}/man/man8/ + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dk-milter + ${INSTALL_DATA} ${WRKSRC}/FEATURES ${PREFIX}/share/doc/dk-milter + ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/dk-milter + ${INSTALL_DATA} ${WRKSRC}/KNOWNBUGS ${PREFIX}/share/doc/dk-milter + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dk-milter + ${INSTALL_DATA} ${WRKSRC}/RELEASE_NOTES ${PREFIX}/share/doc/dk-milter + +.include "options.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../mail/libmilter/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/dk-milter/PLIST b/mail/dk-milter/PLIST new file mode 100644 index 00000000000..60d2a14fda8 --- /dev/null +++ b/mail/dk-milter/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/07/20 19:42:50 tv Exp $ +man/man8/dk-milter.8 +sbin/dk-milter +share/doc/dk-milter/FEATURES +share/doc/dk-milter/INSTALL +share/doc/dk-milter/KNOWNBUGS +share/doc/dk-milter/README +share/doc/dk-milter/RELEASE_NOTES +share/examples/rc.d/dk-milter +@dirrm share/doc/dk-milter diff --git a/mail/dk-milter/distinfo b/mail/dk-milter/distinfo new file mode 100644 index 00000000000..33c2c2ca430 --- /dev/null +++ b/mail/dk-milter/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/07/20 19:42:50 tv Exp $ + +SHA1 (dk-milter-0.3.0.tar.gz) = bc7a4f9e1a3d9d751bf84e261e4cbe45198671b9 +RMD160 (dk-milter-0.3.0.tar.gz) = 1b1de285dab602bdc0b21e55080f2964924ab646 +Size (dk-milter-0.3.0.tar.gz) = 304023 bytes +SHA1 (patch-aa) = 9f74c271c1f9eb60080864c9ed386f450a40596a +SHA1 (patch-ab) = 357e250bb17fd9680c033ac392cea17957b71997 diff --git a/mail/dk-milter/files/dk-milter.sh b/mail/dk-milter/files/dk-milter.sh new file mode 100644 index 00000000000..df8704a2b03 --- /dev/null +++ b/mail/dk-milter/files/dk-milter.sh @@ -0,0 +1,24 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: dk-milter.sh,v 1.1.1.1 2005/07/20 19:42:50 tv Exp $ +# +# PROVIDE: dkmilter +# REQUIRE: DAEMON + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="dkmilter" +rcvar=$name +command="@PREFIX@/sbin/dk-milter" +pidfile="/var/run/dk-milter.pid" +command_args="-hl -P ${pidfile} -p ${dkmilter_socket-local:/tmp/.dkmilter.sock}" + +if [ -f /etc/rc.subr ]; then + load_rc_config $name + run_rc_command "$1" +else + echo -n " ${name}" + ${command} ${dkmilter_flags} ${command_args} +fi diff --git a/mail/dk-milter/options.mk b/mail/dk-milter/options.mk new file mode 100644 index 00000000000..235a8b7f760 --- /dev/null +++ b/mail/dk-milter/options.mk @@ -0,0 +1,15 @@ +# $NetBSD: options.mk,v 1.1.1.1 2005/07/20 19:42:50 tv Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.dk-milter +PKG_SUPPORTED_OPTIONS= inet6 + +.include "../../mk/bsd.options.mk" + +### +### IPv6 support. +### +.if !empty(PKG_OPTIONS:Minet6) +SUBST_SED.libs+= -e 's|@INET6@||' +.else +SUBST_SED.libs+= -e 's|@INET6@|dnl|' +.endif diff --git a/mail/dk-milter/patches/patch-aa b/mail/dk-milter/patches/patch-aa new file mode 100644 index 00000000000..d5bcf5a5ef5 --- /dev/null +++ b/mail/dk-milter/patches/patch-aa @@ -0,0 +1,34 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/07/20 19:42:50 tv Exp $ + +--- dk-filter/Makefile.m4.orig 2005-07-20 14:55:01.000000000 -0400 ++++ dk-filter/Makefile.m4 +@@ -4,10 +4,10 @@ include(confBUILDTOOLSDIR`/M4/switch.m4' + define(`confMT', `TRUE') + define(`confREQUIRE_LIBSM', `true') + +-APPENDDEF(`confLIBS', `-lssl -lcrypto') ++APPENDDEF(`confLIBS', `-lssl -lcrypto @PTHREAD_LDFLAGS@ ') + dnl Enable and edit these paths as needed: +-dnl APPENDDEF(`confINCDIRS', `-I/usr/local/ssl/include ') +-dnl APPENDDEF(`confLIBDIRS', `-L/usr/local/ssl/lib ') ++APPENDDEF(`confINCDIRS', `-I@SSLBASE@/include -I@PTHREAD@/include ') ++APPENDDEF(`confLIBDIRS', `-L@SSLBASE@/lib -L@PTHREAD@/lib ') + + dnl To use the asynchronous resolver library provided, enable this line: + dnl bldPUSH_SMLIB(`ar') +@@ -19,12 +19,12 @@ bldPUSH_SMLIB(`sm') + + dnl Enable these next line if needed to specify the locations of libmilter.a + dnl and the libmilter include files: +-dnl APPENDDEF(`confINCDIRS', `-I/usr/local/sendmail/include') +-dnl APPENDDEF(`confLIBDIRS', `-L/usr/local/sendmail/lib') ++APPENDDEF(`confINCDIRS', `-I@LMBASE@/include ') ++APPENDDEF(`confLIBDIRS', `-L@LMBASE@/lib') + + + dnl Enable for IPv6 support: +-dnl APPENDDEF(`confENVDEF', `-DNETINET6 ') ++@INET6@ APPENDDEF(`confENVDEF', `-DNETINET6 ') + + dnl Compile time options, especially FFRs: + dnl APPENDDEF(`confENVDEF', `-D_FFR_EXTERNAL_IGNORE_LIST ') diff --git a/mail/dk-milter/patches/patch-ab b/mail/dk-milter/patches/patch-ab new file mode 100644 index 00000000000..88b11aefae0 --- /dev/null +++ b/mail/dk-milter/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/07/20 19:42:50 tv Exp $ + +--- libdk/Makefile.m4.orig 2004-09-03 16:39:01.000000000 -0400 ++++ libdk/Makefile.m4 +@@ -9,7 +9,7 @@ dnl APPENDDEF(`confENVDEF', `-DUSE_ARLIB + dnl APPENDDEF(`confINCDIRS', `-I../libar/ ') + + dnl Enable and edit this as appropriate for your system: +-dnl APPENDDEF(`confINCDIRS', `-I/usr/local/ssl/include ') ++APPENDDEF(`confINCDIRS', `-I@SSLBASE@/include ') + + + define(`confMT', `true') |