mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
`mail/mailfromd' is mail filtering daemon for Sendmail, Postfix, and MeTA1.
Submitted by: Zeus Panchenko
This commit is contained in:
parent
efacc8d284
commit
993a97308c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=431222
@ -216,6 +216,7 @@
|
||||
SUBDIR += maildrop
|
||||
SUBDIR += mailest
|
||||
SUBDIR += mailfmt
|
||||
SUBDIR += mailfromd
|
||||
SUBDIR += mailfront
|
||||
SUBDIR += mailgraph
|
||||
SUBDIR += mailman
|
||||
|
70
mail/mailfromd/Makefile
Normal file
70
mail/mailfromd/Makefile
Normal file
@ -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>
|
3
mail/mailfromd/distinfo
Normal file
3
mail/mailfromd/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1481666642
|
||||
SHA256 (mailfromd-8.1.tar.xz) = 6d83038a17e9d9009da2545a76898ba62a386d0d0b9f558be76765eeabeaf5c2
|
||||
SIZE (mailfromd-8.1.tar.xz) = 1040704
|
24
mail/mailfromd/files/mailfromd.in
Normal file
24
mail/mailfromd/files/mailfromd.in
Normal file
@ -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"
|
14
mail/mailfromd/pkg-descr
Normal file
14
mail/mailfromd/pkg-descr
Normal file
@ -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/
|
41
mail/mailfromd/pkg-plist
Normal file
41
mail/mailfromd/pkg-plist
Normal file
@ -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%%
|
Loading…
Reference in New Issue
Block a user