pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/dkim-milter Import dkim-milter from pkgsrc. Pack...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b13882edf130
branches: trunk
changeset: 501740:b13882edf130
user: minskim <minskim%pkgsrc.org@localhost>
date: Thu Oct 27 19:49:07 2005 +0000
description:
Import dkim-milter from pkgsrc. Packaged by iMil.
dkim-milter consists of two parts: A milter-based application
(dkim-filter) which plugs in to Sendmail to provide DomainKeys
Identified Mail service, and a library (libdkim) which can be used to
build DKIM-compliant applications or MTAs.
diffstat:
mail/dkim-milter/DESCR | 4 ++
mail/dkim-milter/Makefile | 52 +++++++++++++++++++++++++++++++++++
mail/dkim-milter/PLIST | 10 ++++++
mail/dkim-milter/distinfo | 7 ++++
mail/dkim-milter/files/dkim-milter.sh | 27 ++++++++++++++++++
mail/dkim-milter/options.mk | 15 ++++++++++
mail/dkim-milter/patches/patch-aa | 37 ++++++++++++++++++++++++
mail/dkim-milter/patches/patch-ab | 14 +++++++++
8 files changed, 166 insertions(+), 0 deletions(-)
diffs (198 lines):
diff -r 51faf4f11813 -r b13882edf130 mail/dkim-milter/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dkim-milter/DESCR Thu Oct 27 19:49:07 2005 +0000
@@ -0,0 +1,4 @@
+dkim-milter consists of two parts: A milter-based application
+(dkim-filter) which plugs in to Sendmail to provide DomainKeys
+Identified Mail service, and a library (libdkim) which can be used to
+build DKIM-compliant applications or MTAs.
diff -r 51faf4f11813 -r b13882edf130 mail/dkim-milter/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dkim-milter/Makefile Thu Oct 27 19:49:07 2005 +0000
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/10/27 19:49:07 minskim Exp $
+
+DISTNAME= dkim-milter-0.1.1
+CATEGORIES= mail
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dkim-milter/}
+
+MAINTAINER= imil%gcu.info@localhost
+HOMEPAGE= http://sourceforge.net/projects/dkim-milter/
+COMMENT= Open source DKIM filter software from Sendmail, Inc
+
+BUILDLINK_DEPENDS.libmilter+= libmilter>=8.13.0
+
+LICENSE= no-profit
+MAKE_ENV+= M4="${M4}"
+RCD_SCRIPTS= dkim-milter
+USE_BUILTIN.libmilter= no
+USE_TOOLS+= gm4
+USE_PKGINSTALL= YES
+
+SUBST_CLASSES+= libs
+SUBST_STAGE.libs= pre-configure
+SUBST_FILES.libs= dkim-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|dkim-filter|dkim-milter|g' \
+ ${WRKSRC}/dkim-filter/dkim-filter.8 \
+ >${WRKSRC}/dkim-filter/dkim-milter.8
+
+do-install:
+ cd ${WRKSRC}/obj.`${UNAME} -srm | ${TR} \ . | ${TR} \/ -` && \
+ ${INSTALL_PROGRAM} dkim-filter/dkim-filter ${PREFIX}/sbin/dkim-milter
+ ${INSTALL_MAN} ${WRKSRC}/dkim-filter/dkim-milter.8 ${PREFIX}/man/man8/
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dkim-milter
+ ${INSTALL_DATA} ${WRKSRC}/FEATURES ${PREFIX}/share/doc/dkim-milter
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/dkim-milter
+ ${INSTALL_DATA} ${WRKSRC}/KNOWNBUGS ${PREFIX}/share/doc/dkim-milter
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dkim-milter
+ ${INSTALL_DATA} ${WRKSRC}/RELEASE_NOTES ${PREFIX}/share/doc/dkim-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 -r 51faf4f11813 -r b13882edf130 mail/dkim-milter/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dkim-milter/PLIST Thu Oct 27 19:49:07 2005 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/27 19:49:07 minskim Exp $
+man/man8/dkim-milter.8
+sbin/dkim-milter
+share/doc/dkim-milter/FEATURES
+share/doc/dkim-milter/INSTALL
+share/doc/dkim-milter/KNOWNBUGS
+share/doc/dkim-milter/README
+share/doc/dkim-milter/RELEASE_NOTES
+share/examples/rc.d/dkim-milter
+@dirrm share/doc/dkim-milter
diff -r 51faf4f11813 -r b13882edf130 mail/dkim-milter/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dkim-milter/distinfo Thu Oct 27 19:49:07 2005 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/10/27 19:49:07 minskim Exp $
+
+SHA1 (dkim-milter-0.1.1.tar.gz) = 6bfb5a3b7530864e09ed55b343fd747c78ddb2fa
+RMD160 (dkim-milter-0.1.1.tar.gz) = c8fae0456b8418ebeafdf6a5be22a86415b74578
+Size (dkim-milter-0.1.1.tar.gz) = 312318 bytes
+SHA1 (patch-aa) = 1d20c660bba8f6a754ca343434daf021559b41bd
+SHA1 (patch-ab) = f254cbee630fb18fc7f18daffd689753eb9dd467
diff -r 51faf4f11813 -r b13882edf130 mail/dkim-milter/files/dkim-milter.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dkim-milter/files/dkim-milter.sh Thu Oct 27 19:49:07 2005 +0000
@@ -0,0 +1,27 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dkim-milter.sh,v 1.1.1.1 2005/10/27 19:49:07 minskim Exp $
+#
+# PROVIDE: dkimmilter
+# REQUIRE: DAEMON
+# BEFORE: mail
+
+dkimmilter_flags="-h -l -p /var/run/dkimmilter.sock"
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="dkimmilter"
+rcvar=$name
+command="@PREFIX@/sbin/dkim-milter"
+pidfile="/var/run/${name}.pid"
+command_args="-P ${pidfile}"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
+ ${command} ${dkimmilter_flags} ${command_args}
+fi
diff -r 51faf4f11813 -r b13882edf130 mail/dkim-milter/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dkim-milter/options.mk Thu Oct 27 19:49:07 2005 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: options.mk,v 1.1.1.1 2005/10/27 19:49:07 minskim 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 -r 51faf4f11813 -r b13882edf130 mail/dkim-milter/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dkim-milter/patches/patch-aa Thu Oct 27 19:49:07 2005 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/10/27 19:49:07 minskim Exp $
+
+--- dkim-filter/Makefile.m4.orig 2005-09-28 13:27:11.000000000 +0200
++++ dkim-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,15 +19,15 @@ 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 ')
+
+ dnl Compile time options, especially FFRs:
+-dnl APPENDDEF(`confENVDEF', `-DNO_SMFI_INSHEADER ')
++@INET6@ APPENDDEF(`confENVDEF', `-DNETINET6 ')
+
+ dnl APPENDDEF(`confENVDEF', `-D_FFR_EXTERNAL_IGNORE_LIST ')
+ dnl APPENDDEF(`confENVDEF', `-D_FFR_FLUSH_HEADERS ')
diff -r 51faf4f11813 -r b13882edf130 mail/dkim-milter/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dkim-milter/patches/patch-ab Thu Oct 27 19:49:07 2005 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/10/27 19:49:07 minskim Exp $
+
+--- libdkim/Makefile.m4.orig 2005-09-28 13:29:30.000000000 +0200
++++ libdkim/Makefile.m4
+@@ -9,8 +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')
+
Home |
Main Index |
Thread Index |
Old Index