aboutsummaryrefslogtreecommitdiffstats
path: root/mail/tumgreyspf/Makefile
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-09-02 20:52:56 +0800
committergarga <garga@FreeBSD.org>2005-09-02 20:52:56 +0800
commit32e309e664ad62783538df78e9cdfa66c4dd888e (patch)
tree7d4c237ba86d71d1a5408f19bc168d9cac39a964 /mail/tumgreyspf/Makefile
parenta682dbbefba0ae99039ea8d49c4cf8d4d61e8c5b (diff)
downloadfreebsd-ports-gnome-32e309e664ad62783538df78e9cdfa66c4dd888e.tar.gz
freebsd-ports-gnome-32e309e664ad62783538df78e9cdfa66c4dd888e.tar.zst
freebsd-ports-gnome-32e309e664ad62783538df78e9cdfa66c4dd888e.zip
Add tumgreyspf 1.09, external policy checker for the postfix mail
server. PR: ports/85587 Submitted by: Marcus Grando <marcus@corp.grupos.com.br>
Diffstat (limited to 'mail/tumgreyspf/Makefile')
-rw-r--r--mail/tumgreyspf/Makefile76
1 files changed, 76 insertions, 0 deletions
diff --git a/mail/tumgreyspf/Makefile b/mail/tumgreyspf/Makefile
new file mode 100644
index 000000000000..04548a637818
--- /dev/null
+++ b/mail/tumgreyspf/Makefile
@@ -0,0 +1,76 @@
+# New ports collection makefile for: tumgreyspf
+# Date created: 31 Aug 2005
+# Whom: Marcus Grando <marcus@corp.grupos.com.br>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tumgreyspf
+PORTVERSION= 1.09
+CATEGORIES= mail
+MASTER_SITES= ftp://ftp.tummy.com/pub/tummy/tumgreyspf/
+
+MAINTAINER= marcus@corp.grupos.com.br
+COMMENT= External policy checker for the postfix mail server
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/spf.py:${PORTSDIR}/mail/py-spf
+
+USE_PYTHON= 2.1+
+NO_BUILD= yes
+USE_REINPLACE= yes
+
+TUMGREYSPF_DIR?= /var/db/${PORTNAME}
+TUMGREYSPF_USER?= nobody
+TUMGREYSPF_GROUP?= nobody
+
+PKGMESSAGE= ${WRKSRC}/pkg-message
+PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
+PKGINSTALL= ${WRKDIR}/pkg-install
+
+SUB_FILES= pkg-message pkg-deinstall pkg-install
+SUB_LIST+= TUMGREYSPF_DIR=${TUMGREYSPF_DIR} \
+ TUMGREYSPF_USER=${TUMGREYSPF_USER} \
+ TUMGREYSPF_GROUP=${TUMGREYSPF_GROUP}
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
+
+pre-everything::
+ @${ECHO_MSG}
+ @${ECHO_MSG} "You may set following options:"
+ @${ECHO_MSG}
+ @${ECHO_MSG} "TUMGREYSPF_DIR=/var/db/${PORTNAME} Local are used to greylist"
+ @${ECHO_MSG} "TUMGREYSPF_USER=nobody User to run ${PORTNAME} (Default: nobody)"
+ @${ECHO_MSG} "TUMGREYSPF_GROUP=nobody Group to run ${PORTNAME} (Default: nobody)"
+ @${ECHO_MSG}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%TUMGREYSPF_DIR%%|${TUMGREYSPF_DIR}|g" \
+ ${WRKSRC}/tumgreyspfsupp.py ${WRKSRC}/tumgreyspf.conf
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/tumgreyspfsupp.py ${PYTHONPREFIX_SITELIBDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/tumgreyspf ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/tumgreyspf-clean ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/tumgreyspf-configtest ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/gentest ${PREFIX}/bin/tumgreyspf-gentest
+ ${INSTALL_SCRIPT} ${WRKSRC}/tumgreyspf-stat ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/tumgreyspf.conf ${PREFIX}/etc/tumgreyspf.conf.default
+. if !exists(${PREFIX}/etc/tumgreyspf.conf)
+ ${INSTALL_SCRIPT} ${WRKSRC}/tumgreyspf.conf ${PREFIX}/etc
+. endif
+
+post-install:
+ @${MKDIR} ${DATADIR}
+ @${INSTALL_DATA} ${WRKSRC}/__default__.dist ${DATADIR}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/README* ${DOCSDIR}
+.endif
+ @${CAT} ${PKGMESSAGE}
+.if !defined(PACKAGE_BUILDING)
+ @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
+
+.include <bsd.port.mk>