diff options
Diffstat (limited to 'mail/mailfromd')
-rw-r--r-- | mail/mailfromd/Makefile | 70 | ||||
-rw-r--r-- | mail/mailfromd/distinfo | 3 | ||||
-rw-r--r-- | mail/mailfromd/files/mailfromd.in | 24 | ||||
-rw-r--r-- | mail/mailfromd/pkg-descr | 14 | ||||
-rw-r--r-- | mail/mailfromd/pkg-plist | 41 |
5 files changed, 152 insertions, 0 deletions
diff --git a/mail/mailfromd/Makefile b/mail/mailfromd/Makefile new file mode 100644 index 000000000000..9ffb1014907f --- /dev/null +++ b/mail/mailfromd/Makefile @@ -0,0 +1,70 @@ +# Created by: Zeus Panchenko <zeus@gnu.org.ua> +# $FreeBSD$ + +PORTNAME= mailfromd +PORTVERSION= 8.1 +CATEGORIES= mail +MASTER_SITES= http://download.gnu.org.ua/pub/release/${PORTNAME}/ + +MAINTAINER= zeus@gnu.org.ua +COMMENT= Mail filtering daemon for Sendmail, Postfix, and MeTA1 + +LICENSE= GPLv3+ + +LIB_DEPENDS= libmailutils.so:mail/mailutils + +USES= gmake localbase readline tar:xz +GNU_CONFIGURE= yes +CONFIGURE_ENV= DEFAULT_STATE_DIR="${DATABASEDIR}" \ + DEFAULT_SOCKET="unix:${MFD_RUN_DIR}/${PORTNAME}.sock" \ + DEFAULT_USER=mailnull +USE_RC_SUBR= ${PORTNAME} + +DATABASEDIR?= /var/db/${PORTNAME} +MFD_RUN_DIR?= /var/run/${PORTNAME} + +PLIST_SUB+= DATABASEDIR=${DATABASEDIR} \ + MFD_RUN_DIR=${MFD_RUN_DIR} \ + VERSION=${PORTVERSION} +SUB_LIST+= MFD_RUN_DIR=${MFD_RUN_DIR} + +INFO= ${PORTNAME} +PORTDOCS= AUTHORS ChangeLog NEWS README THANKS TODO + +OPTIONS_DEFINE= DOCS DSPAM GEOIP NLS +OPTIONS_DEFAULT= BDB +OPTIONS_MULTI= DB +OPTIONS_MULTI_DB= BDB GDBM +OPTIONS_SUB= yes + +BDB_DESC= Berkeley DB v4.8 support (last working one) +DB_DESC= Database configuration + +DSPAM_DESC= DSPAM spam filter library support +DSPAM_LIB_DEPENDS= libdspam.so:mail/dspam +DSPAM_USES= pkgconfig +DSPAM_CONFIGURE_WITH= dspam + +GEOIP_LIB_DEPENDS= libGeoIP.so:net/GeoIP +GEOIP_CONFIGURE_WITH= geoip + +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls + +BDB_USES= bdb:48 +BDB_CONFIGURE_WITH= berkeley-db +BDB_CPPFLAGS= -I${BDB_INCLUDE_DIR} +BDB_LDFLAGS= -L${BDB_LIB_DIR} +INVALID_BDB_VER= 5+ + +GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm +GDBM_CONFIGURE_WITH= gdbm + +post-install: + @${MKDIR} ${STAGEDIR}${DATABASEDIR} ${STAGEDIR}${MFD_RUN_DIR} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/mail/mailfromd/distinfo b/mail/mailfromd/distinfo new file mode 100644 index 000000000000..073909e9267d --- /dev/null +++ b/mail/mailfromd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1481666642 +SHA256 (mailfromd-8.1.tar.xz) = 6d83038a17e9d9009da2545a76898ba62a386d0d0b9f558be76765eeabeaf5c2 +SIZE (mailfromd-8.1.tar.xz) = 1040704 diff --git a/mail/mailfromd/files/mailfromd.in b/mail/mailfromd/files/mailfromd.in new file mode 100644 index 000000000000..6307d7995dbd --- /dev/null +++ b/mail/mailfromd/files/mailfromd.in @@ -0,0 +1,24 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: mailfromd +# REQUIRE: DAEMON +# BEFORE: mail +# KEYWORD: shutdown +# + +. /etc/rc.subr + +name="mailfromd" +rcvar=mailfromd_enable +command="%%PREFIX%%/sbin/${name}" + +load_rc_config ${name} + +: ${mailfromd_enable="NO"} +: ${mailfromd_flags} +: ${mailfromd_runpath="%%MFD_RUN_DIR%%"} +pidfile="${mailfromd_runpath}/${name}.pid" + +run_rc_command "$1" diff --git a/mail/mailfromd/pkg-descr b/mail/mailfromd/pkg-descr new file mode 100644 index 000000000000..c522fb405915 --- /dev/null +++ b/mail/mailfromd/pkg-descr @@ -0,0 +1,14 @@ +Mailfromd is a general-purpose mail filtering daemon for Sendmail, Postfix, +and MeTA1. It is able to filter both incoming and outgoing messages using +criteria of arbitrary complexity, supplied by the administrator in the form +of a script file. The daemon interacts with the MTA via Milter or PMilter +protocols. Some of its features: + + - Flexible programming language for writing MTA extensions + - Sender address verification (call-out) + - Greylisting and whitelisting + - Mail sending rate control + - Local account verification + - Native language support + +WWW: http://puszcza.gnu.org.ua/software/mailfromd/ diff --git a/mail/mailfromd/pkg-plist b/mail/mailfromd/pkg-plist new file mode 100644 index 000000000000..1f7700616da0 --- /dev/null +++ b/mail/mailfromd/pkg-plist @@ -0,0 +1,41 @@ +bin/mfdbtool +bin/mtasim +etc/mailfromd.mf +sbin/calloutd +sbin/mailfromd +%%NLS%%share/locale/fr/LC_MESSAGES/mailfromd.mo +%%NLS%%share/locale/id/LC_MESSAGES/mailfromd.mo +%%NLS%%share/locale/pl/LC_MESSAGES/mailfromd.mo +%%NLS%%share/locale/uk/LC_MESSAGES/mailfromd.mo +%%NLS%%share/locale/vi/LC_MESSAGES/mailfromd.mo +%%DATADIR%%/%%VERSION%%/include/_register.mf +%%DATADIR%%/%%VERSION%%/include/callout.mf +%%DATADIR%%/%%VERSION%%/include/dns.mf +%%DSPAM%%%%DATADIR%%/%%VERSION%%/include/dspam.mf +%%DATADIR%%/%%VERSION%%/include/gettext.mf +%%DATADIR%%/%%VERSION%%/include/header_rename.mf +%%DATADIR%%/%%VERSION%%/include/heloarg_test.mf +%%DATADIR%%/%%VERSION%%/include/is_ip.mf +%%DATADIR%%/%%VERSION%%/include/localdomain.mf +%%DATADIR%%/%%VERSION%%/include/match_cidr.mf +%%DATADIR%%/%%VERSION%%/include/match_dnsbl.mf +%%DATADIR%%/%%VERSION%%/include/match_rhsbl.mf +%%DATADIR%%/%%VERSION%%/include/poll.mf +%%DATADIR%%/%%VERSION%%/include/portprobe.mf +%%DATADIR%%/%%VERSION%%/include/pp-setup +%%DATADIR%%/%%VERSION%%/include/rateok.mf +%%DATADIR%%/%%VERSION%%/include/revip.mf +%%DATADIR%%/%%VERSION%%/include/sa.mf +%%DATADIR%%/%%VERSION%%/include/safedb.mf +%%DATADIR%%/%%VERSION%%/include/sieve.mf +%%DATADIR%%/%%VERSION%%/include/sockmap.mf +%%DATADIR%%/%%VERSION%%/include/spf.mf +%%DATADIR%%/%%VERSION%%/include/status.mf +%%DATADIR%%/%%VERSION%%/include/status.mfh +%%DATADIR%%/%%VERSION%%/include/strip_domain_part.mf +%%DATADIR%%/%%VERSION%%/include/syslog.mf +%%DATADIR%%/%%VERSION%%/include/valid_domain.mf +%%DATADIR%%/%%VERSION%%/include/verp.mf +%%DATADIR%%/postfix-macros.sed +@dir(mailnull,mail,775) %%DATABASEDIR%% +@dir(mailnull,mail,775) %%MFD_RUN_DIR%% |