Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Sep 2008 04:04:14 +0900
From:      Hirohisa Yamaguchi <umq@ueo.co.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/127158: [new port] mail/enma 1.0.0
Message-ID:  <86prnhhz9t.wl%umq@ueo.co.jp>
Resent-Message-ID: <200809061910.m86JA3nS077060@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         127158
>Category:       ports
>Synopsis:       [new port] mail/enma 1.0.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 06 19:10:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Hirohisa Yamaguchi
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: FreeBSD calliope.****.org 8.0-CURRENT FreeBSD 8.0-CURRENT #17: Thu Jul 10 06:27:38 JST 2008 root@calliope.****.org:/usr/obj/usr/src/sys/CALLIOPE64 amd64

>Description:
	ENMA is a milter program that checks SPF and SendeID.
	WWW: https://sourceforge.net/projects/enma/
>How-To-Repeat:
	N/A
>Fix:

	The skeleton is attached.



--Multipart_Sun_Sep__7_04:04:14_2008-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="mail_enma.shar"
Content-Transfer-Encoding: 7bit

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mail/enma/
#	mail/enma/Makefile
#	mail/enma/distinfo
#	mail/enma/pkg-descr
#	mail/enma/files
#	mail/enma/files/milter-enma.sh.in
#	mail/enma/files/patch-enma_etc_enma.conf.sample
#	mail/enma/files/patch-build_build_all.sh
#
echo c - mail/enma/
mkdir -p mail/enma/ > /dev/null 2>&1
echo x - mail/enma/Makefile
sed 's/^X//' >mail/enma/Makefile << '404b833ea52f2d1bb487080b1c151bc8'
X# New ports collection makefile for:	enma
X# Date created:				7 Sep 2008
X# Whom:					Hirohisa Yamaguchi <umq@ueo.co.jp>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	enma
XPORTVERSION=	1.0.0
XCATEGORIES=	mail
XMASTER_SITES=	SF
X
XMAINTAINER=	umq@ueo.co.jp
XCOMMENT=	A sender authentication milter supporting SPF and Sender ID
X
XBUILD_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/dns/bind94:fetch \
X		${NONEXISTENT}:${PORTSDIR}/mail/sendmail:fetch
X
X.if defined(WITH_POSTFIX_MILTER) || defined(WITH_POSTFIX) || defined(WITH_POSTFIX_CURRENT)
XCONF_SUB=	${REINPLACE_CMD} -e '/milter\.postfix/s/false/true/' ${WRKSRC}/enma/etc/enma.conf.sample
X.if defined(WITH_POSTFIX_CURRENT)
XRUN_DEPENDS+=	${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix-current
X.else
XRUN_DEPENDS+=	${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix
X.endif
X.endif
X
XBIND_SRC_CMD=	cd ${PORTSDIR}/dns/bind94 && ${MAKE} -V DISTFILES | ${CUT} -d ' ' -f 1
XSENDMAIL_SRC_CMD=	cd ${PORTSDIR}/mail/sendmail && make -V DISTFILES
X
XUSE_RC_SUBR=	milter-enma.sh
XMAN1=		enma.1
XMANCOMPRESSED=	no
XPLIST_FILES=	bin/enma bin/sidfquery etc/enma.conf.sample
XPORTDOCS=	ChangeLog INSTALL LICENSE README TODO
XSUB_FILES=	milter-enma.sh
X
X.include <bsd.port.pre.mk>
X
Xpre-configure:
X	${LN} -s ${DISTDIR}/$$(${BIND_SRC_CMD}) ${WRKSRC}/build
X	${LN} -s ${DISTDIR}/$$(${SENDMAIL_SRC_CMD}) ${WRKSRC}/build
X	$$(${CONF_SUB})
X
Xdo-build:
X	cd ${WRKSRC}/build && ./build_all.sh --prefix=${PREFIX}
X
Xdo-install:
X	cd ${WRKSRC}/build && ./build_all.sh install
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X.for f in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
404b833ea52f2d1bb487080b1c151bc8
echo x - mail/enma/distinfo
sed 's/^X//' >mail/enma/distinfo << 'fa5cfafc115e8c0d34c2ca8fd9861a62'
XMD5 (enma-1.0.0.tar.gz) = d447cb470176cf0f1c7599ade11af404
XSHA256 (enma-1.0.0.tar.gz) = facfb7dcad5d3a8eb1ad33cdb936828b6b4358e2b11cbb5cdbb4224b803ead92
XSIZE (enma-1.0.0.tar.gz) = 161566
fa5cfafc115e8c0d34c2ca8fd9861a62
echo x - mail/enma/pkg-descr
sed 's/^X//' >mail/enma/pkg-descr << '5700c74db9095a3dfc42b1209635cd19'
XENMA is a milter program for the domain authentication technologies.
XIt authenticates sender's address with SPF and Sender ID, then labels
Xthe result onto the Authentication-Results: field.
X
XWWW: http://sourceforge.net/projects/enma/
5700c74db9095a3dfc42b1209635cd19
echo c - mail/enma/files
mkdir -p mail/enma/files > /dev/null 2>&1
echo x - mail/enma/files/milter-enma.sh.in
sed 's/^X//' >mail/enma/files/milter-enma.sh.in << '44d86aa24f964c7961a70437113cf329'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: milterenma
X# REQUIRE: DAEMON
X# BEFORE: mail localpkg
X# KEYWORD: shutdown
X
X# Define these milterenma_* variables in one of these files:
X#	/etc/rc.conf
X#	/etc/rc.conf.local
X#	/etc/rc.conf.d/milterenma
X#
X# milterenma_enable (bool):   Set to "NO" by default.
X#                             Set it to "YES" to enable enma
X# milterenma_cfgfile (str):   Configuration file.
X# milterenma_pid (str):       Set pid file path.
X# milterenma_uid (str):       Set username to run milter.
X#
X# DO NOT CHANGE THESE DEFAULT VALUES HERE
X#
Xmilterenma_enable=${milterenma_enable:-"NO"}
Xmilterenma_cfgfile=${milterenma_cfgfile:-"%%PREFIX%%/etc/enma.conf"}
Xmilterenma_pid=${milterenma_pid:-"/var/run/milterenma/enma.pid"}
Xmilterenma_uid=${milterenma_uid:-"mailnull"}
X
X. %%RC_SUBR%%
X
Xname="milterenma"
Xrcvar=`set_rcvar`
X
Xload_rc_config $name
X
Xif [ -f "${milterenma_cfgfile}" ];then
X    milterenma_cfgfile="-c ${milterenma_cfgfile}"
Xelse
X    echo "milterenma_cfgfile is not correctly set"
X    exit 1
Xfi
Xpidfile=${milterenma_pid}
Xcommand="%%PREFIX%%/bin/enma"
Xcommand_args="${milterenma_cfgfile}"
Xstart_precmd="enma_precmd"
Xstop_postcmd="enma_postcmd"
X_piddir=$(dirname ${pidfile})
X
Xenma_precmd ()
X{
X    if [ ! -d ${_piddir} ] ; then
X	mkdir -p ${_piddir}
X    fi
X    if [ -n "${milterenma_uid}" ] ; then
X	chown ${milterenma_uid} ${_piddir}
X    fi
X}
X
Xenma_postcmd()
X{
X    # just if the directory is empty
X    rmdir ${_piddir} > /dev/null 2>&1
X}
X
Xrun_rc_command "$1"
44d86aa24f964c7961a70437113cf329
echo x - mail/enma/files/patch-enma_etc_enma.conf.sample
sed 's/^X//' >mail/enma/files/patch-enma_etc_enma.conf.sample << 'b545a03bd1521a0825d50f174222b7f2'
X--- ./enma/etc/enma.conf.sample.orig	2008-08-08 14:57:14.000000000 +0900
X+++ ./enma/etc/enma.conf.sample	2008-09-07 01:09:31.000000000 +0900
X@@ -6,8 +6,8 @@
X 
X ## Milter ##
X milter.socket:  inet:10025@127.0.0.1
X-milter.user:    daemon
X-milter.pidfile: /var/run/enma/enma.pid
X+milter.user:    mailnull
X+milter.pidfile: /var/run/milterenma/enma.pid
X milter.chdir:   /var/tmp
X milter.timeout: 7210
X milter.loglevel:   0
b545a03bd1521a0825d50f174222b7f2
echo x - mail/enma/files/patch-build_build_all.sh
sed 's/^X//' >mail/enma/files/patch-build_build_all.sh << '6777e995fb39d49604bdc258acf757e0'
X--- ./build/build_all.sh.orig	2008-08-26 15:14:49.000000000 +0900
X+++ ./build/build_all.sh	2008-09-07 01:09:10.000000000 +0900
X@@ -100,6 +100,7 @@
X         ./configure \
X             --prefix=${WORK}/tmp_install \
X             --enable-threads \
X+            --mandir=${PREFIX}/man \
X             ${CONFIGURE_OPTION} && \
X         ${MAKE_CMD} && \
X         ${MAKE_CMD} install
X@@ -135,6 +136,7 @@
X         cd ../ && \
X         ./configure \
X             --prefix=${PREFIX} \
X+            --mandir=${PREFIX}/man \
X             --with-libmilter=${WORK}/tmp_install \
X             --with-libbind=${WORK}/tmp_install \
X             ${CONFIGURE_OPTION} && \
6777e995fb39d49604bdc258acf757e0
exit

--Multipart_Sun_Sep__7_04:04:14_2008-1--
>Release-Note:
>Audit-Trail:
>Unformatted:
 --Multipart_Sun_Sep__7_04:04:14_2008-1
 Content-Type: text/plain; charset=US-ASCII
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86prnhhz9t.wl%umq>