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.
This commit is contained in:
Adrian Portelli 2005-02-24 13:05:46 +00:00 committed by Thomas Klausner
parent 7adb650733
commit 2794f5cc30
7 changed files with 165 additions and 0 deletions

9
dk-milter/DESCR Normal file
View file

@ -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.

68
dk-milter/Makefile Normal file
View file

@ -0,0 +1,68 @@
# $NetBSD: Makefile,v 1.1.1.1 2005/02/24 13:05:46 adrian_p Exp $
DISTNAME= dk-milter-0.2.6
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dk-milter/}
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://sendmail.net/dk-milter/
COMMENT= Open source implementation of DomainKeys for sendmail
DEPENDS+= sendmail>=8.13.0:../../mail/sendmail
BUILDLINK_DEPENDS.libmilter+= libmilter>=8.13.0
USE_BUILDLINK3= YES
USE_BUILTIN.libmilter= NO
LICENSE= no-profit
BUILD_DEFS+= USE_INET6
USE_GNU_TOOLS+= m4
MAKE_ENV+= M4="${M4}"
LDFLAGS+= -lpthread
PTHREAD_OPTS+= require
SUBST_CLASSES+= libs
SUBST_STAGE.libs= pre-build
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"
SUBST_MESSAGE.libs= "Fixing paths."
.include "../../mk/bsd.prefs.mk"
.if defined(USE_INET6) && ${USE_INET6} == "YES"
SUBST_SED.libs+= -e "s|@DNL@||g"
.else
SUBST_SED.libs+= -e "s|@DNL@|dnl |g"
.endif
.include "../../security/openssl/buildlink3.mk"
.include "../../mail/libmilter/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
post-extract:
@${CP} ${FILESDIR}/dk-filter.m4 ${WRKSRC}/dk-filter/Makefile.m4
@${CP} ${FILESDIR}/libdk.m4 ${WRKSRC}/libdk/Makefile.m4
do-build:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ./Build)
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dk-milter
${INSTALL_LIB} ${WRKSRC}/${DKWORK}/libar/libar.a ${PREFIX}/lib
${INSTALL_MAN} ${WRKSRC}/${DKWORK}/libar/ar.0 ${PREFIX}/man/cat3/
${INSTALL_PROGRAM} ${WRKSRC}/${DKWORK}/dk-filter/dk-filter ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${DKWORK}/dk-filter/dk-filter.0 \
${PREFIX}/man/cat8/
${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 "../../mk/bsd.pkg.mk"
# Has to be below include for bsd.pkg.mk, else substition fails
DKWORK!= ${ECHO} obj.`${UNAME} -srm | ${TR} \ . | ${TR} \/ -`

11
dk-milter/PLIST Normal file
View file

@ -0,0 +1,11 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2005/02/24 13:05:46 adrian_p Exp $
bin/dk-filter
lib/libar.a
man/cat3/ar.0
man/cat8/dk-filter.0
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
@dirrm share/doc/dk-milter

2
dk-milter/TODO Normal file
View file

@ -0,0 +1,2 @@
- Needs testing
- Needs rc.d script (see sid-milter)

4
dk-milter/distinfo Normal file
View file

@ -0,0 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2005/02/24 13:05:46 adrian_p Exp $
SHA1 (dk-milter-0.2.6.tar.gz) = 4a26de535c9665b04fddf1acdc0b3ee65a52c8ca
Size (dk-milter-0.2.6.tar.gz) = 300283 bytes

View file

@ -0,0 +1,48 @@
# $NetBSD: dk-filter.m4,v 1.1.1.1 2005/02/24 13:05:46 adrian_p Exp $
include(confBUILDTOOLSDIR`/M4/switch.m4')
define(`confMT', `TRUE')
define(`confREQUIRE_LIBSM', `true')
APPENDDEF(`confLIBS', `-lssl -lcrypto -lpthread')
APPENDDEF(`confINCDIRS', `-I@SSLBASE@/include ')
APPENDDEF(`confLIBDIRS', `-L@SSLBASE@/lib ')
APPENDDEF(`confLIBDIRS', `-L@PTHREAD@/lib ')
dnl To use the asynchronous resolver library provided, enable this line:
dnl bldPUSH_SMLIB(`ar')
bldPUSH_SMLIB(`dk')
APPENDDEF(`confINCDIRS', `-I../libdk/ ')
bldPUSH_SMLIB(`sm')
APPENDDEF(`confINCDIRS', `-I@LMBASE@/include')
APPENDDEF(`confLIBDIRS', `-L@LMBASE@/lib')
dnl Enable for IPv6 support:
@DNL@APPENDDEF(`confENVDEF', `-DNETINET6 ')
dnl Compile time options, especially FFRs:
dnl APPENDDEF(`confENVDEF', `-D_FFR_AUTH_RESULTS ')
dnl APPENDDEF(`confENVDEF', `-D_FFR_EXTERNAL_IGNORE_LIST ')
dnl APPENDDEF(`confENVDEF', `-D_FFR_FLUSH_HEADERS ')
dnl APPENDDEF(`confENVDEF', `-D_FFR_MACRO_LIST ')
dnl APPENDDEF(`confENVDEF', `-D_FFR_MULTIPLE_KEYS ')
dnl APPENDDEF(`confENVDEF', `-D_FFR_POPAUTH ')
dnl APPENDDEF(`confENVDEF', `-D_FFR_REPORTINFO ')
dnl APPENDDEF(`confENVDEF', `-D_FFR_REQUIRED_HEADERS ')
dnl APPENDDEF(`confENVDEF', `-D_FFR_SELECT_CANONICALIZATION ')
bldPRODUCT_START(`executable', `dk-filter')
define(`bldSOURCES', `dk-filter.c util.c ')
PREPENDDEF(`confLIBS', `-lmilter ')
bldPRODUCT_END
bldPRODUCT_START(`manpage', `dk-filter')
define(`bldSOURCES', `dk-filter.8')
bldPRODUCT_END
bldFINISH

23
dk-milter/files/libdk.m4 Normal file
View file

@ -0,0 +1,23 @@
# $NetBSD: libdk.m4,v 1.1.1.1 2005/02/24 13:05:46 adrian_p Exp $
include(confBUILDTOOLSDIR`/M4/switch.m4')
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/ ')
dnl Enable and edit this as appropriate for your system:
APPENDDEF(`confINCDIRS', `-I@SSLBASE@/include ')
define(`confMT', `true')
bldPRODUCT_START(`library', `libdk')
define(`bldSOURCES', `dk.c rfc2822.c util.c ')
bldPRODUCT_END
bldFINISH