summaryrefslogtreecommitdiff
path: root/mail/enma/files
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-09-07 16:05:21 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-09-07 16:05:21 +0000
commit3e05742bd0fdcd8b69cd72da92e63f5c23682703 (patch)
tree6d3abdffe8f623fec77426003c6d31826b77f1ab /mail/enma/files
parentSynCE is a project for connecting to devices running Windows CE or Pocket PC. (diff)
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>
Notes
Notes: svn path=/head/; revision=220143
Diffstat (limited to 'mail/enma/files')
-rw-r--r--mail/enma/files/milter-enma.in65
-rw-r--r--mail/enma/files/patch-build_build_all.sh18
-rw-r--r--mail/enma/files/patch-enma_etc_enma.conf.sample13
3 files changed, 96 insertions, 0 deletions
diff --git a/mail/enma/files/milter-enma.in b/mail/enma/files/milter-enma.in
new file mode 100644
index 000000000000..488c02ee0ba9
--- /dev/null
+++ b/mail/enma/files/milter-enma.in
@@ -0,0 +1,65 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: milterenma
+# REQUIRE: DAEMON
+# BEFORE: mail localpkg
+# KEYWORD: shutdown
+
+# Define these milterenma_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/milterenma
+#
+# milterenma_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable enma
+# milterenma_cfgfile (str): Configuration file.
+# milterenma_pid (str): Set pid file path.
+# milterenma_uid (str): Set username to run milter.
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+milterenma_enable=${milterenma_enable:-"NO"}
+milterenma_cfgfile=${milterenma_cfgfile:-"%%PREFIX%%/etc/enma.conf"}
+milterenma_pid=${milterenma_pid:-"/var/run/milterenma/enma.pid"}
+milterenma_uid=${milterenma_uid:-"mailnull"}
+
+. %%RC_SUBR%%
+
+name="milterenma"
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+if [ -f "${milterenma_cfgfile}" ];then
+ milterenma_cfgfile="-c ${milterenma_cfgfile}"
+else
+ echo "milterenma_cfgfile is not correctly set"
+ exit 1
+fi
+pidfile=${milterenma_pid}
+command="%%PREFIX%%/bin/enma"
+command_args="${milterenma_cfgfile}"
+start_precmd="enma_precmd"
+stop_postcmd="enma_postcmd"
+_piddir=$(dirname ${pidfile})
+
+enma_precmd ()
+{
+ if [ ! -d ${_piddir} ] ; then
+ mkdir -p ${_piddir}
+ fi
+ if [ -n "${milterenma_uid}" ] ; then
+ chown ${milterenma_uid} ${_piddir}
+ fi
+}
+
+enma_postcmd()
+{
+ # just if the directory is empty
+ rmdir ${_piddir} > /dev/null 2>&1
+}
+
+run_rc_command "$1"
diff --git a/mail/enma/files/patch-build_build_all.sh b/mail/enma/files/patch-build_build_all.sh
new file mode 100644
index 000000000000..f247a783eb2a
--- /dev/null
+++ b/mail/enma/files/patch-build_build_all.sh
@@ -0,0 +1,18 @@
+--- ./build/build_all.sh.orig 2008-08-26 15:14:49.000000000 +0900
++++ ./build/build_all.sh 2008-09-07 01:09:10.000000000 +0900
+@@ -100,6 +100,7 @@
+ ./configure \
+ --prefix=${WORK}/tmp_install \
+ --enable-threads \
++ --mandir=${PREFIX}/man \
+ ${CONFIGURE_OPTION} && \
+ ${MAKE_CMD} && \
+ ${MAKE_CMD} install
+@@ -135,6 +136,7 @@
+ cd ../ && \
+ ./configure \
+ --prefix=${PREFIX} \
++ --mandir=${PREFIX}/man \
+ --with-libmilter=${WORK}/tmp_install \
+ --with-libbind=${WORK}/tmp_install \
+ ${CONFIGURE_OPTION} && \
diff --git a/mail/enma/files/patch-enma_etc_enma.conf.sample b/mail/enma/files/patch-enma_etc_enma.conf.sample
new file mode 100644
index 000000000000..28b2ca490fbc
--- /dev/null
+++ b/mail/enma/files/patch-enma_etc_enma.conf.sample
@@ -0,0 +1,13 @@
+--- ./enma/etc/enma.conf.sample.orig 2008-08-08 14:57:14.000000000 +0900
++++ ./enma/etc/enma.conf.sample 2008-09-07 01:09:31.000000000 +0900
+@@ -6,8 +6,8 @@
+
+ ## Milter ##
+ milter.socket: inet:10025@127.0.0.1
+-milter.user: daemon
+-milter.pidfile: /var/run/enma/enma.pid
++milter.user: mailnull
++milter.pidfile: /var/run/milterenma/enma.pid
+ milter.chdir: /var/tmp
+ milter.timeout: 7210
+ milter.loglevel: 0