diff options
author | obache <obache@pkgsrc.org> | 2008-09-05 07:23:44 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2008-09-05 07:23:44 +0000 |
commit | 092710dff6a45a96c6b86c832add644e124ce543 (patch) | |
tree | 85a7c2d19bddf400f75c7cb6de224950cffdfd48 /mail/enma | |
parent | fc610f7d8f72066858f7f5e6a9fcb44c05f0f609 (diff) | |
download | pkgsrc-092710dff6a45a96c6b86c832add644e124ce543.tar.gz |
Import enma-1.0.0 as mail/enma.
ENMA is a milter program for the domain authentication technologies.
It authenticates sender's address with SPF and Sender ID, then
labels the result onto the Authentication-Results: field.
ENMA implements the following RFCs and an Internet Draft:
- RFC4406 (Sender ID)
- RFC4407 (PRA)
- RFC4408 (SPF)
- draft-kucherawy-sender-auth-header-15
(the Authentication-Results: field)
ENMA is developed by IIJ. IIJ has been using several domain
authentication software, though, all of them appeared unstable. ENMA
is designed and implemented in order to stand large ISP's operation
and is well-tested.
Diffstat (limited to 'mail/enma')
-rw-r--r-- | mail/enma/DESCR | 16 | ||||
-rw-r--r-- | mail/enma/Makefile | 61 | ||||
-rw-r--r-- | mail/enma/PLIST | 7 | ||||
-rw-r--r-- | mail/enma/distinfo | 7 | ||||
-rw-r--r-- | mail/enma/files/enma.sh | 19 | ||||
-rw-r--r-- | mail/enma/patches/patch-aa | 12 | ||||
-rw-r--r-- | mail/enma/patches/patch-ab | 15 |
7 files changed, 137 insertions, 0 deletions
diff --git a/mail/enma/DESCR b/mail/enma/DESCR new file mode 100644 index 00000000000..e09384a82ae --- /dev/null +++ b/mail/enma/DESCR @@ -0,0 +1,16 @@ +ENMA is a milter program for the domain authentication technologies. +It authenticates sender's address with SPF and Sender ID, then +labels the result onto the Authentication-Results: field. + +ENMA implements the following RFCs and an Internet Draft: + +- RFC4406 (Sender ID) +- RFC4407 (PRA) +- RFC4408 (SPF) +- draft-kucherawy-sender-auth-header-15 + (the Authentication-Results: field) + +ENMA is developed by IIJ. IIJ has been using several domain +authentication software, though, all of them appeared unstable. ENMA +is designed and implemented in order to stand large ISP's operation +and is well-tested. diff --git a/mail/enma/Makefile b/mail/enma/Makefile new file mode 100644 index 00000000000..911a1718ade --- /dev/null +++ b/mail/enma/Makefile @@ -0,0 +1,61 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/09/05 07:23:44 obache Exp $ +# + +DISTNAME= enma-1.0.0 +CATEGORIES= mail +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=enma/} + +MAINTAINER= obache@NetBSD.org +HOMEPAGE= http://enma.sourceforge.net/ +COMMENT= Sender authentication milter supporting SPF and Sender ID + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_TOOLS+= gmake + +CONFIGURE_ARGS+= --with-libmilter=${BUILDLINK_PREFIX.libmilter} +#CONFIGURE_ARGS+= --with-libbind=${BUILDLINK_PREFIX.bind} +CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/share/examples/enma + +BUILDLINK_TRANSFORM+= rename:-lbind:${RESOLV_LDFLAGS} + +BUILD_DEFS+= VARBASE + +CONF_FILES+= share/examples/enma/enma.conf.sample ${PKG_SYSCONFDIR}/enma.conf +RCD_SCRIPTS= enma + +.include "../../mk/bsd.prefs.mk" + +ENMA_USER?= daemon +ENMA_GROUP?= daemon + +PKG_GROUPS_VARS= ENMA_GROUP +PKG_USERS_VARS= ENMA_USER + +PKG_GROUPS= ${ENMA_GROUP} +PKG_USERS= ${ENMA_USER}:${ENMA_GROUP} + +SUBST_CLASSES+= varbase +SUBST_STAGE.varbase= post-configure +SUBST_FILES.varbase= enma/etc/enma.conf.sample +SUBST_FILES.varbase+= enma/man/enma.1 enma/man/enma.ja.1 +SUBST_FILES.varbase+= enma/src/enma_config.c +SUBST_SED.varbase= -e 's;/var/;${VARBASE}/;g' + +SUBST_CLASSES+= daemon +SUBST_STAGE.daemon= post-configure +SUBST_FILES.daemon= enma/etc/enma.conf.sample +SUBST_SED.daemon= -e 's;daemon;${ENMA_USER};g' + +OWN_DIRS_PERMS+= ${VARBASE}/run/enma ${ENMA_USER} ${ENMA_GROUP} 0700 + +INSTALLATION_DIRS+= ${PKGMANDIR}/ja_JP.EUC/man1 + +post-install: + ${INSTALL_MAN} ${WRKSRC}/enma/man/enma.ja.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/ja_JP.EUC/man1/enma.1 + +.include "../../mail/libmilter/buildlink3.mk" +.include "../../mk/resolv.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/enma/PLIST b/mail/enma/PLIST new file mode 100644 index 00000000000..d46a5440336 --- /dev/null +++ b/mail/enma/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/09/05 07:23:44 obache Exp $ +bin/enma +bin/sidfquery +man/ja_JP.EUC/man1/enma.1 +man/man1/enma.1 +share/examples/enma/enma.conf.sample +share/examples/rc.d/enma diff --git a/mail/enma/distinfo b/mail/enma/distinfo new file mode 100644 index 00000000000..1f9594999b5 --- /dev/null +++ b/mail/enma/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/09/05 07:23:44 obache Exp $ + +SHA1 (enma-1.0.0.tar.gz) = a792ea302df81aec7940dae8665584086145ec15 +RMD160 (enma-1.0.0.tar.gz) = 35a9ff9ad0594561d9597788ddaca2b7d1ef8721 +Size (enma-1.0.0.tar.gz) = 161566 bytes +SHA1 (patch-aa) = 0ab42bca38fbc52a1fffe00f9809da67ffb76eda +SHA1 (patch-ab) = 2f6413b6c167198de118741c41f29c6bf76b1f06 diff --git a/mail/enma/files/enma.sh b/mail/enma/files/enma.sh new file mode 100644 index 00000000000..c3235b5aa4d --- /dev/null +++ b/mail/enma/files/enma.sh @@ -0,0 +1,19 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: enma.sh,v 1.1.1.1 2008/09/05 07:23:44 obache Exp $ +# +# PROVIDE: enma +# REQUIRE: NETWORK +# + +. /etc/rc.subr + +name="enma" +rcvar=${name} +command="@PREFIX@/bin/enma" +pidfile="@VARBASE@/run/enma/${name}.pid" +required_files="@PKG_SYSCONFDIR@/enma.conf" +command_args="-c @PKG_SYSCONFDIR@/enma.conf" + +load_rc_config ${name} +run_rc_command "$1" diff --git a/mail/enma/patches/patch-aa b/mail/enma/patches/patch-aa new file mode 100644 index 00000000000..fa2a3b723a0 --- /dev/null +++ b/mail/enma/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/09/05 07:23:44 obache Exp $ + +--- libsidf/src/sidfrequest.c.orig 2008-08-13 15:44:32.000000000 +0000 ++++ libsidf/src/sidfrequest.c +@@ -18,6 +18,7 @@ RCSID("$Id: sidfrequest.c 348 2008-08-13 + #include <assert.h> + #include <sys/socket.h> + #include <arpa/nameser.h> ++#include <netinet/in.h> + #include <netdb.h> + #include <resolv.h> + // #include <isc/misc.h> diff --git a/mail/enma/patches/patch-ab b/mail/enma/patches/patch-ab new file mode 100644 index 00000000000..4357ad80dc4 --- /dev/null +++ b/mail/enma/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/09/05 07:23:44 obache Exp $ + +--- enma/etc/Makefile.in.orig 2008-08-21 14:22:29.000000000 +0000 ++++ enma/etc/Makefile.in +@@ -29,8 +29,8 @@ OBJS := $(patsubst %.c,%.o,$(SRCS)) + all: + + install: +- $(INSTALL) -d $(sysconfdir) +- $(INSTALL_DATA) -c enma.conf.sample $(sysconfdir) ++ $(INSTALL) -d $(DESTDIR)$(sysconfdir) ++ $(INSTALL_DATA) -c enma.conf.sample $(DESTDIR)$(sysconfdir) + + clean: + rm -rf *~ |