pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/enma Import enma-1.0.0 as mail/enma.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/66f5e17b90ea
branches:  trunk
changeset: 546584:66f5e17b90ea
user:      obache <obache%pkgsrc.org@localhost>
date:      Fri Sep 05 07:23:44 2008 +0000

description:
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:

 mail/enma/DESCR            |  16 ++++++++++++
 mail/enma/Makefile         |  61 ++++++++++++++++++++++++++++++++++++++++++++++
 mail/enma/PLIST            |   7 +++++
 mail/enma/distinfo         |   7 +++++
 mail/enma/files/enma.sh    |  19 ++++++++++++++
 mail/enma/patches/patch-aa |  12 +++++++++
 mail/enma/patches/patch-ab |  15 +++++++++++
 7 files changed, 137 insertions(+), 0 deletions(-)

diffs (165 lines):

diff -r 84e1c77beb19 -r 66f5e17b90ea mail/enma/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/enma/DESCR   Fri Sep 05 07:23:44 2008 +0000
@@ -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 -r 84e1c77beb19 -r 66f5e17b90ea mail/enma/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/enma/Makefile        Fri Sep 05 07:23:44 2008 +0000
@@ -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@localhost
+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 -r 84e1c77beb19 -r 66f5e17b90ea mail/enma/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/enma/PLIST   Fri Sep 05 07:23:44 2008 +0000
@@ -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 -r 84e1c77beb19 -r 66f5e17b90ea mail/enma/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/enma/distinfo        Fri Sep 05 07:23:44 2008 +0000
@@ -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 -r 84e1c77beb19 -r 66f5e17b90ea mail/enma/files/enma.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/enma/files/enma.sh   Fri Sep 05 07:23:44 2008 +0000
@@ -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 -r 84e1c77beb19 -r 66f5e17b90ea mail/enma/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/enma/patches/patch-aa        Fri Sep 05 07:23:44 2008 +0000
@@ -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 -r 84e1c77beb19 -r 66f5e17b90ea mail/enma/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/enma/patches/patch-ab        Fri Sep 05 07:23:44 2008 +0000
@@ -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 *~



Home | Main Index | Thread Index | Old Index