diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /mail-filter/mimedefang | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'mail-filter/mimedefang')
-rw-r--r-- | mail-filter/mimedefang/Manifest | 3 | ||||
-rw-r--r-- | mail-filter/mimedefang/files/mimedefang-2.72-ldflags.patch | 38 | ||||
-rw-r--r-- | mail-filter/mimedefang/files/mimedefang.conf | 131 | ||||
-rw-r--r-- | mail-filter/mimedefang/files/mimedefang.init | 102 | ||||
-rw-r--r-- | mail-filter/mimedefang/metadata.xml | 9 | ||||
-rw-r--r-- | mail-filter/mimedefang/mimedefang-2.73.ebuild | 65 | ||||
-rw-r--r-- | mail-filter/mimedefang/mimedefang-2.74.ebuild | 63 | ||||
-rw-r--r-- | mail-filter/mimedefang/mimedefang-2.75.ebuild | 63 |
8 files changed, 474 insertions, 0 deletions
diff --git a/mail-filter/mimedefang/Manifest b/mail-filter/mimedefang/Manifest new file mode 100644 index 000000000000..65dd16b66e03 --- /dev/null +++ b/mail-filter/mimedefang/Manifest @@ -0,0 +1,3 @@ +DIST mimedefang-2.73.tar.gz 356601 SHA256 88a0f294e517348b692b0e0f226b60f90fa94eb0e771e02ab716c8e50d8cf714 SHA512 c20ee35235107342d4bce5a95cca01fc6c45365bf270b11c2bfe44a614ec39bcdd2a7b71836a092d6df88519194dbb3e93e293144b740e95e9846ebe0302cf5e WHIRLPOOL 56339d0cdbc0ab33a4a8eb37847ef00169b0db865ea7847172ee485090639fa2e0fea2361e615902013e10c2b1efbf2679c286d5bc4e189d68ae3cce53a69abc +DIST mimedefang-2.74.tar.gz 362500 SHA256 eb35d200d291cf7d456c644b94c9d4825ca2d0e345193539d63cd971adeb8605 SHA512 0168c4e664fcd2df7f08e4f7d110114d907f8f37d50986c89b33f5a575c87291574d0b5dff0197fb5666281f4fe1b67a61e8719a470bd01c5b7f2fc354f066b4 WHIRLPOOL 293580d3ae64752867a16fdaa01a0aee14a87d3a5d4888963cb657ebbc6d1737616cc289fd1eead16b42aa458bfb06a2e63914df041447d002af3e2a91218151 +DIST mimedefang-2.75.tar.gz 363535 SHA256 7852da1039ed22bc8df4e43c3094ee8c6d6ba154479efd37b643d488a3c85a42 SHA512 a8b5c83116d973ea8971df8682d4ba26a37a47fd58cf740eecc1b70aa68a8aa765f7fa2415542d54f147990310b68e64d1e949d3b988cee24c4c2c5194123d98 WHIRLPOOL 512014b1664249ff0e40e7a6b86764e729e8db07338a8750d45f81e04ab0c1e72306530ca6333851089cd23f4907df7f64a73548cfa8cd9b6d80992ee0d20813 diff --git a/mail-filter/mimedefang/files/mimedefang-2.72-ldflags.patch b/mail-filter/mimedefang/files/mimedefang-2.72-ldflags.patch new file mode 100644 index 000000000000..998b3183e661 --- /dev/null +++ b/mail-filter/mimedefang/files/mimedefang-2.72-ldflags.patch @@ -0,0 +1,38 @@ +--- mimedefang-2.72/Makefile.in.orig ++++ mimedefang-2.72/Makefile.in +@@ -52,7 +52,7 @@ + all: mimedefang mimedefang-multiplexor md-mx-ctrl pod2man + + mimedefang-multiplexor: mimedefang-multiplexor.o event.o event_tcp.o drop_privs_nothread.o notifier.o syslog-fac.o utils.o $(EMBPERLOBJS) +- $(CC) $(CFLAGS) -o mimedefang-multiplexor mimedefang-multiplexor.o event.o event_tcp.o drop_privs_nothread.o syslog-fac.o notifier.o utils.o $(EMBPERLOBJS) $(LIBS_WITHOUT_PTHREAD) $(EMBPERLLDFLAGS) $(EMBPERLLIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o mimedefang-multiplexor mimedefang-multiplexor.o event.o event_tcp.o drop_privs_nothread.o syslog-fac.o notifier.o utils.o $(EMBPERLOBJS) $(LIBS_WITHOUT_PTHREAD) $(EMBPERLLDFLAGS) $(EMBPERLLIBS) + + embperl.o: embperl.c + $(CC) $(CFLAGS) $(EMBPERLCFLAGS) $(PTHREAD_FLAG) $(DEFS) $(MINCLUDE) -c -o embperl.o $(srcdir)/embperl.c +@@ -67,7 +67,7 @@ + $(CC) $(CFLAGS) $(EMBPERLCFLAGS) $(PTHREAD_FLAG) $(DEFS) $(MINCLUDE) -c -o test-embed-perl.o $(srcdir)/test-embed-perl.c + + te: test-embed-perl.o +- $(CC) $(CFLAGS) -o te test-embed-perl.o $(LIBS_WITHOUT_PTHREAD) $(EMBPERLLDFLAGS) $(EMBPERLLIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o te test-embed-perl.o $(LIBS_WITHOUT_PTHREAD) $(EMBPERLLDFLAGS) $(EMBPERLLIBS) + rm_r.o: rm_r.c + $(CC) $(CFLAGS) $(PTHREAD_FLAG) $(DEFS) $(MINCLUDE) -c -o rm_r.o $(srcdir)/rm_r.c + +@@ -75,7 +75,7 @@ + $(CC) $(CFLAGS) $(PTHREAD_FLAG) $(DEFS) $(MINCLUDE) -c -o syslog-fac.o $(srcdir)/syslog-fac.c + + md-mx-ctrl: md-mx-ctrl.o +- $(CC) $(CFLAGS) -o md-mx-ctrl md-mx-ctrl.o $(LIBS_WITHOUT_PTHREAD) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o md-mx-ctrl md-mx-ctrl.o $(LIBS_WITHOUT_PTHREAD) + + md-mx-ctrl.o: md-mx-ctrl.c + $(CC) $(CFLAGS) $(DEFS) $(MINCLUDE) -c -o md-mx-ctrl.o $(srcdir)/md-mx-ctrl.c +@@ -99,7 +99,7 @@ + $(CC) $(CFLAGS) $(DEFS) $(MINCLUDE) -c -o mimedefang-multiplexor.o $(srcdir)/mimedefang-multiplexor.c + + mimedefang: mimedefang.o drop_privs_threaded.o utils.o rm_r.o syslog-fac.o dynbuf.o milter_cap.o gen_id.o +- $(CC) $(CFLAGS) $(PTHREAD_FLAG) -o mimedefang mimedefang.o drop_privs_threaded.o utils.o rm_r.o syslog-fac.o dynbuf.o milter_cap.o gen_id.o $(LDFLAGS) -lmilter $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(PTHREAD_FLAG) -o mimedefang mimedefang.o drop_privs_threaded.o utils.o rm_r.o syslog-fac.o dynbuf.o milter_cap.o gen_id.o $(LDFLAGS) -lmilter $(LIBS) + + mimedefang.o: mimedefang.c mimedefang.h + $(CC) $(CFLAGS) $(PTHREAD_FLAG) $(DEFS) $(MINCLUDE) -c -o mimedefang.o $(srcdir)/mimedefang.c diff --git a/mail-filter/mimedefang/files/mimedefang.conf b/mail-filter/mimedefang/files/mimedefang.conf new file mode 100644 index 000000000000..49ccef7be077 --- /dev/null +++ b/mail-filter/mimedefang/files/mimedefang.conf @@ -0,0 +1,131 @@ +# Additional options for MIMEDefang. +# read man pages mimedefang(8) for additional informations. + +# Locale should be set to "C" for generating valid date headers +LC_ALL=C +export LC_ALL + +# The settings which follow are defaults. You can override them by +# placing assignments in /etc/mail/mimedefang.conf + +# The socket used by mimedefang to communicate with sendmail +# SOCKET=$SPOOLDIR/mimedefang.sock + +# Run the multiplexor and filters as this user, not root. RECOMMENDED +MX_USER=defang + +# Syslog facility +# SYSLOG_FACILITY=mail + +# If you want to keep spool directories around if the filter fails, +# set the next one to yes +# KEEP_FAILED_DIRECTORIES=no + +# "yes" turns on the multiplexor relay checking function +# MX_RELAY_CHECK=no + +# "yes" turns on the multiplexor HELO checking function +# MX_HELO_CHECK=no + +# "yes" turns on the multiplexor sender checking function +# MX_SENDER_CHECK=no + +# "yes" turns on the multiplexor recipient checking function +# MX_RECIPIENT_CHECK=no + +# Set to yes if you want the multiplexor to log events to syslog +MX_LOG=yes + +# Set to yes if you want to use an embedded Perl interpreter +# MX_EMBED_PERL=yes + +# Set to full path of socket for Sendmail's SOCKETMAP map, if you +# want to use it with MIMEDefang +# MX_MAP_SOCKET=$SPOOLDIR/map.sock + +# The multiplexor does not start all slaves at the same time. Instead, +# it starts one slave every MX_SLAVE_DELAY seconds when the system is idle. +# (If the system is busy, the multiplexor starts slaves as incoming mail +# requires attention.) +# MX_SLAVE_DELAY=3 + +# The next setting is an absolute limit on slave activation. The multiplexor +# will NEVER activate a slave within MX_MIN_SLAVE_DELAY seconds of another. +# The default of zero means that the multiplexor will activate slaves as +# quickly as necessary to keep up with incoming mail. +# MX_MIN_SLAVE_DELAY=0 + +# Set to yes if you want the multiplexor to log stats in +# /var/log/mimedefang/stats The /var/log/mimedefang directory must +# exist and be writable by the user you're running MIMEDefang as. +# MX_STATS=no + +# Number of slaves reserved for connections from loopback. Use -1 +# for default behaviour, 0 to allow loopback connections to queue, +# or >0 to reserve slaves for loopback connections +LOOPBACK_RESERVED_CONNECTIONS=-1 + +# Set to yes if you want the stats file flushed after each entry +# MX_FLUSH_STATS=no + +# Set to yes if you want the multiplexor to log stats to syslog +# MX_STATS_SYSLOG=no + +# The socket used by the multiplexor +# MX_SOCKET=$SPOOLDIR/mimedefang-multiplexor.sock + +# Maximum # of requests a process handles +# MX_REQUESTS=200 + +# Minimum number of processes to keep. The default of 0 is probably +# too low; we suggest 2 instead. +MX_MINIMUM=2 + +# Maximum number of processes to run (mail received while this many +# processes are running is rejected with a temporary failure, so be +# wary of how many emails you receive at a time). This applies only +# if you DO use the multiplexor. The default value of 2 is probably +# too low; we suggest 10 instead +MX_MAXIMUM=10 + +# Uncomment to log slave status; it will be logged every +# MX_LOG_SLAVE_STATUS_INTERVAL seconds +# MX_LOG_SLAVE_STATUS_INTERVAL=30 + +# Uncomment next line to have busy slaves send status updates to the +# multiplexor. NOTE: Consumes one extra file descriptor per slave, plus +# a bit of CPU time. +# MX_STATUS_UPDATES=yes + +# Limit slave processes' resident-set size to this many kilobytes. Default +# is unlimited. +# MX_MAX_RSS=10000 + +# Limit total size of slave processes' memory space to this many kilobytes. +# Default is unlimited. +# MX_MAX_AS=30000 + +# If you want to use the "notification" facility, set the appropriate port. +# See the mimedefang-notify man page for details. +# MX_NOTIFIER=inet:4567 + +# Number of seconds a process should be idle before checking for +# minimum number and killed +# MX_IDLE=300 + +# Number of seconds a process is allowed to scan an email before it is +# considered dead. The default is 30 seconds; we suggest 600. +MX_BUSY=600 + +# Extra sendmail macros to pass. Actually, you can add any extra +# mimedefang options here... +# MD_EXTRA="-a auth_author" + +# Multiplexor queue size -- default is 0 (no queueing) +# MX_QUEUE_SIZE=10 + +# Multiplexor queue timeout -- default is 30 seconds +# MX_QUEUE_TIMEOUT=30 + +# SUBFILTER specifies which filter rules file to use +# SUBFILTER=/etc/mail/mimedefang-filter diff --git a/mail-filter/mimedefang/files/mimedefang.init b/mail-filter/mimedefang/files/mimedefang.init new file mode 100644 index 000000000000..19819a9fd6c9 --- /dev/null +++ b/mail-filter/mimedefang/files/mimedefang.init @@ -0,0 +1,102 @@ +#!/sbin/runscript +# +# Generic start/stop script for MIMEDefang. Should work on most +# flavors of UNIX. + +RETVAL=0 +prog='mimedefang' +PROGDIR=/usr/bin +SPOOLDIR='/var/spool/MIMEDefang' +PID="$SPOOLDIR/$prog.pid" +MXPID="$SPOOLDIR/$prog-multiplexor.pid" + +# Make sure required vars are set +SOCKET=${SOCKET:=$SPOOLDIR/$prog.sock} +MX_SOCKET=${MX_SOCKET:=$SPOOLDIR/$prog-multiplexor.sock} + +depend() { + use antivirus +} + +start() { + if test -r $PID ; then + if kill -0 `cat $PID` > /dev/null 2>&1 ; then + echo "mimedefang (`cat $PID`) seems to be running." + return 1 + fi + fi + if test -r $MXPID ; then + if kill -0 `cat $MXPID` > /dev/null 2>&1 ; then + echo "mimedefang-multiplexor (`cat $MXPID`) seems to be running." + return 1 + fi + fi + + rm -f $MX_SOCKET > /dev/null 2>&1 + if [ "$MX_EMBED_PERL" = "yes" ] ; then + EMBEDFLAG=-E + else + EMBEDFLAG="" + fi + + ebegin "Starting mimedefang-multiplexor" + start-stop-daemon --start --quiet \ + --exec $PROGDIR/$prog-multiplexor -- -p $MXPID \ + $EMBEDFLAG \ + `[ -n "$SPOOLDIR" ] && echo "-z $SPOOLDIR"` \ + `[ -n "$FILTER" ] && echo "-f $FILTER"` \ + `[ -n "$SYSLOG_FACILITY" ] && echo "-S $SYSLOG_FACILITY"` \ + `[ -n "$SUBFILTER" ] && echo "-F $SUBFILTER"` \ + `[ -n "$MX_MINIMUM" ] && echo "-m $MX_MINIMUM"` \ + `[ -n "$MX_MAXIMUM" ] && echo "-x $MX_MAXIMUM"` \ + `[ -n "$MX_MAP_SOCKET" ] && echo "-N $MX_MAP_SOCKET"` \ + `[ -n "$MX_LOG_SLAVE_STATUS_INTERVAL" ] && echo "-L $MX_LOG_SLAVE_STATUS_INTERVAL"` \ + `[ -n "$MX_USER" ] && echo "-U $MX_USER"` \ + `[ -n "$MX_IDLE" ] && echo "-i $MX_IDLE"` \ + `[ -n "$MX_BUSY" ] && echo "-b $MX_BUSY"` \ + `[ -n "$MX_REQUESTS" ] && echo "-r $MX_REQUESTS"` \ + `[ -n "$MX_SLAVE_DELAY" ] && echo "-w $MX_SLAVE_DELAY"` \ + `[ -n "$MX_MIN_SLAVE_DELAY" ] && echo "-W $MX_MIN_SLAVE_DELAY"` \ + `[ -n "$MX_MAX_RSS" ] && echo "-R $MX_MAX_RSS"` \ + `[ -n "$MX_MAX_AS" ] && echo "-M $MX_MAX_AS"` \ + `[ "$MX_LOG" = "yes" ] && echo "-l"` \ + `[ "$MX_STATS" = "yes" ] && echo "-t /var/log/mimedefang/stats"` \ + `[ "$MX_STATS" = "yes" -a "$MX_FLUSH_STATS" = "yes" ] && echo "-u"` \ + `[ "$MX_STATS_SYSLOG" = "yes" ] && echo "-T"` \ + `[ "$MX_STATUS_UPDATES" = "yes" ] && echo "-Z"` \ + `[ -n "$MX_QUEUE_SIZE" ] && echo "-q $MX_QUEUE_SIZE"` \ + `[ -n "$MX_QUEUE_TIMEOUT" ] && echo "-Q $MX_QUEUE_TIMEOUT"` \ + `[ -n "$MX_NOTIFIER" ] && echo "-O $MX_NOTIFIER"` \ + -s $MX_SOCKET + eend $? "Failed to start mimedefang-multiplexor" + + # Start mimedefang + rm -f $SOCKET > /dev/null 2>&1 + ebegin "Starting mimedefang" + start-stop-daemon --start --quiet \ + --exec $PROGDIR/$prog -- -P $PID \ + -R $LOOPBACK_RESERVED_CONNECTIONS \ + -m $MX_SOCKET \ + `[ -n "$SPOOLDIR" ] && echo "-z $SPOOLDIR"` \ + `[ -n "$MX_USER" ] && echo "-U $MX_USER"` \ + `[ -n "$SYSLOG_FACILITY" ] && echo "-S $SYSLOG_FACILITY"` \ + `[ "$MX_RELAY_CHECK" = "yes" ] && echo "-r"` \ + `[ "$MX_HELO_CHECK" = "yes" ] && echo "-H"` \ + `[ "$MX_SENDER_CHECK" = "yes" ] && echo "-s"` \ + `[ "$MX_RECIPIENT_CHECK" = "yes" ] && echo "-t"` \ + `[ "$KEEP_FAILED_DIRECTORIES" = "yes" ] && echo "-k"` \ + `[ "$MD_EXTRA" != "" ] && echo $MD_EXTRA` \ + `[ "$ALLOW_NEW_CONNECTIONS_TO_QUEUE" = "yes" ] && echo "-q"` \ + -p $SOCKET + eend $? "Failed to start mimedefang" +} + +stop() { + ebegin "Stopping mimedefang" + start-stop-daemon --stop --quiet --pidfile $PID + eend $? "Failed to stop mimedefang" + + ebegin "Stopping mimedefang-multiplexor" + start-stop-daemon --stop --quiet --pidfile $MXPID + eend $? "Failed to stop mimedefang-multiplexor" +} diff --git a/mail-filter/mimedefang/metadata.xml b/mail-filter/mimedefang/metadata.xml new file mode 100644 index 000000000000..c38fa00ff26e --- /dev/null +++ b/mail-filter/mimedefang/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-mail</herd> +<longdescription>A program for Milter supported mail servers that implements antispam, antivirus and other customizable filtering on email messages</longdescription> +<use> + <flag name='poll'>Use poll instead of select</flag> +</use> +</pkgmetadata> diff --git a/mail-filter/mimedefang/mimedefang-2.73.ebuild b/mail-filter/mimedefang/mimedefang-2.73.ebuild new file mode 100644 index 000000000000..a93989b5bda5 --- /dev/null +++ b/mail-filter/mimedefang/mimedefang-2.73.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils user + +DESCRIPTION="Antispam, antivirus and other customizable filtering for MTAs with Milter support" +HOMEPAGE="http://www.mimedefang.org/" +SRC_URI="http://www.mimedefang.org/static/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="clamav +poll" + +DEPEND=">=dev-perl/MIME-tools-5.412 + dev-perl/IO-stringy + virtual/perl-MIME-Base64 + dev-perl/Digest-SHA1 + clamav? ( app-antivirus/clamav ) + || ( mail-filter/libmilter mail-mta/sendmail )" +RDEPEND="${DEPEND}" +RESTRICT="test" + +pkg_setup() { + enewgroup defang + enewuser defang -1 -1 -1 defang +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.72-ldflags.patch +} + +src_configure() { + econf \ + --with-user=defang \ + $(use_enable poll) \ + $(use_enable clamav) \ + $(use_enable clamav clamd) +} + +src_install() { + emake DESTDIR="${D}" INSTALL_STRIP_FLAG="" install + + fowners defang:defang /etc/mail/mimedefang-filter + fperms 644 /etc/mail/mimedefang-filter + insinto /etc/mail/ + insopts -m 644 + newins "${S}"/SpamAssassin/spamassassin.cf sa-mimedefang.cf + + keepdir /var/spool/{MD-Quarantine,MIMEDefang} + fowners defang:defang /var/spool/{MD-Quarantine,MIMEDefang} + fperms 700 /var/spool/{MD-Quarantine,MIMEDefang} + + dodir /var/log/mimedefang + keepdir /var/log/mimedefang + + newinitd "${FILESDIR}"/${PN}.init ${PN} + newconfd "${FILESDIR}"/${PN}.conf ${PN} + + docinto examples + dodoc examples/* +} diff --git a/mail-filter/mimedefang/mimedefang-2.74.ebuild b/mail-filter/mimedefang/mimedefang-2.74.ebuild new file mode 100644 index 000000000000..b3aecae5376a --- /dev/null +++ b/mail-filter/mimedefang/mimedefang-2.74.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils user + +DESCRIPTION="Antispam, antivirus and other customizable filtering for MTAs with Milter support" +HOMEPAGE="http://www.mimedefang.org/" +SRC_URI="http://www.mimedefang.org/static/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="clamav +poll" + +DEPEND=">=dev-perl/MIME-tools-5.412 + dev-perl/IO-stringy + virtual/perl-MIME-Base64 + dev-perl/Digest-SHA1 + clamav? ( app-antivirus/clamav ) + || ( mail-filter/libmilter mail-mta/sendmail )" +RDEPEND="${DEPEND}" +RESTRICT="test" + +pkg_setup() { + enewgroup defang + enewuser defang -1 -1 -1 defang +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.72-ldflags.patch +} + +src_configure() { + econf \ + --with-user=defang \ + $(use_enable poll) \ + $(use_enable clamav) \ + $(use_enable clamav clamd) +} + +src_install() { + emake DESTDIR="${D}" INSTALL_STRIP_FLAG="" install + + fowners defang:defang /etc/mail/mimedefang-filter + fperms 644 /etc/mail/mimedefang-filter + insinto /etc/mail/ + insopts -m 644 + newins "${S}"/SpamAssassin/spamassassin.cf sa-mimedefang.cf + + keepdir /var/spool/{MD-Quarantine,MIMEDefang} + fowners defang:defang /var/spool/{MD-Quarantine,MIMEDefang} + fperms 700 /var/spool/{MD-Quarantine,MIMEDefang} + + keepdir /var/log/mimedefang + + newinitd "${FILESDIR}"/${PN}.init ${PN} + newconfd "${FILESDIR}"/${PN}.conf ${PN} + + dodoc -r examples +} diff --git a/mail-filter/mimedefang/mimedefang-2.75.ebuild b/mail-filter/mimedefang/mimedefang-2.75.ebuild new file mode 100644 index 000000000000..4cc8e9e348c7 --- /dev/null +++ b/mail-filter/mimedefang/mimedefang-2.75.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils user + +DESCRIPTION="Antispam, antivirus and other customizable filtering for MTAs with Milter support" +HOMEPAGE="http://www.mimedefang.org/" +SRC_URI="http://www.mimedefang.org/static/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="clamav +poll" + +DEPEND=">=dev-perl/MIME-tools-5.412 + dev-perl/IO-stringy + virtual/perl-MIME-Base64 + dev-perl/Digest-SHA1 + clamav? ( app-antivirus/clamav ) + || ( mail-filter/libmilter mail-mta/sendmail )" +RDEPEND="${DEPEND}" +RESTRICT="test" + +pkg_setup() { + enewgroup defang + enewuser defang -1 -1 -1 defang +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.72-ldflags.patch +} + +src_configure() { + econf \ + --with-user=defang \ + $(use_enable poll) \ + $(use_enable clamav) \ + $(use_enable clamav clamd) +} + +src_install() { + emake DESTDIR="${D}" INSTALL_STRIP_FLAG="" install + + fowners defang:defang /etc/mail/mimedefang-filter + fperms 644 /etc/mail/mimedefang-filter + insinto /etc/mail/ + insopts -m 644 + newins "${S}"/SpamAssassin/spamassassin.cf sa-mimedefang.cf + + keepdir /var/spool/{MD-Quarantine,MIMEDefang} + fowners defang:defang /var/spool/{MD-Quarantine,MIMEDefang} + fperms 700 /var/spool/{MD-Quarantine,MIMEDefang} + + keepdir /var/log/mimedefang + + newinitd "${FILESDIR}"/${PN}.init ${PN} + newconfd "${FILESDIR}"/${PN}.conf ${PN} + + dodoc -r examples +} |