Bug 127158 - [new port] mail/enma 1.0.0
Summary: [new port] mail/enma 1.0.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-06 20:10 UTC by Hirohisa Yamaguchi
Modified: 2008-09-07 17:10 UTC (History)
0 users

See Also:


Attachments
mail_enma_127158.shar (6.33 KB, application/octet-stream)
2008-09-07 10:05 UTC, Hirohisa Yamaguchi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hirohisa Yamaguchi 2008-09-06 20:10:03 UTC
	ENMA is a milter program that checks SPF and SendeID.
	WWW: https://sourceforge.net/projects/enma/

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



--Multipart_Sun_Sep__7_04:04:14_2008-1----zzR3OOLm1Izw3qHX9V9Ya48ylI1Wu6xYWMAXDmTjzGyi6R1c
Content-Type: text/plain; name="file.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.shar"

# 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
How-To-Repeat: 	N/A
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2008-09-06 20:31:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2008-09-06 21:20:26 UTC
State Changed
From-To: open->feedback


Hi, 

Build failed full: 
http://amd64.miwibox.org/index.php?action=describe_port&id=2056 
http://i386.miwibox.org/index.php?action=describe_port&id=2063 

- Martin
Comment 3 Hirohisa Yamaguchi 2008-09-07 10:05:57 UTC
At Sat, 6 Sep 2008 20:21:35 GMT,
miwi@FreeBSD.org wrote:
> Build failed full:
> http://amd64.miwibox.org/index.php?action=describe_port&id=2056
> http://i386.miwibox.org/index.php?action=describe_port&id=2063

I attach an updated skeleton.

-- 

	Hirohisa Yamaguchi
	  umq@ueo.co.jp
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2008-09-07 17:05:17 UTC
State Changed
From-To: feedback->closed

New port added, with minor changes. Thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2008-09-07 17:05:34 UTC
miwi        2008-09-07 16:05:21 UTC

  FreeBSD ports repository

  Modified files:
    mail                 Makefile 
  Added files:
    mail/enma            Makefile distinfo pkg-descr 
    mail/enma/files      milter-enma.in patch-build_build_all.sh 
                         patch-enma_etc_enma.conf.sample 
  Log:
  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.
  
  WWW: http://sourceforge.net/projects/enma/
  
  PR:             ports/127158
  Submitted by:   Hirohisa Yamaguchi <umq at ueo.co.jp>
  
  Revision  Changes    Path
  1.924     +1 -0      ports/mail/Makefile
  1.1       +60 -0     ports/mail/enma/Makefile (new)
  1.1       +3 -0      ports/mail/enma/distinfo (new)
  1.1       +65 -0     ports/mail/enma/files/milter-enma.in (new)
  1.1       +18 -0     ports/mail/enma/files/patch-build_build_all.sh (new)
  1.1       +13 -0     ports/mail/enma/files/patch-enma_etc_enma.conf.sample (new)
  1.1       +5 -0      ports/mail/enma/pkg-descr (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"