diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2019-06-16 16:08:12 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2019-06-16 16:08:12 +0200 |
commit | fe699000ab8a8d1dfbab923acb8093f64558fb4f (patch) | |
tree | 552bf5d344aeafc5f330f39e56def0c7516189f0 /mail-filter | |
parent | media-tv/tvbrowser: Remove last-rited package, bug 581720 (diff) | |
download | gentoo-fe699000ab8a8d1dfbab923acb8093f64558fb4f.tar.gz gentoo-fe699000ab8a8d1dfbab923acb8093f64558fb4f.tar.bz2 gentoo-fe699000ab8a8d1dfbab923acb8093f64558fb4f.zip |
mail-filter/mimedefang: remove last-rited package, bug 629450
Bug: https://bugs.gentoo.org/629450
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'mail-filter')
-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 | 64 | ||||
-rw-r--r-- | mail-filter/mimedefang/mimedefang-2.74.ebuild | 62 | ||||
-rw-r--r-- | mail-filter/mimedefang/mimedefang-2.75.ebuild | 62 |
8 files changed, 0 insertions, 471 deletions
diff --git a/mail-filter/mimedefang/Manifest b/mail-filter/mimedefang/Manifest deleted file mode 100644 index c3246e65d14f..000000000000 --- a/mail-filter/mimedefang/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST mimedefang-2.73.tar.gz 356601 BLAKE2B 75d945f549e4e60c17c2de33de2bab27d93a62e150a60abcec5f45aeab7fc0c37cbf9875f088bf4d07a399ac305e08ff1bda43b6f440fc648233939ec8e2aa5e SHA512 c20ee35235107342d4bce5a95cca01fc6c45365bf270b11c2bfe44a614ec39bcdd2a7b71836a092d6df88519194dbb3e93e293144b740e95e9846ebe0302cf5e -DIST mimedefang-2.74.tar.gz 362500 BLAKE2B 745536aeb511f8025e738443b18b2922666af417ed8c6ac0a62096ef8c1b01b532dfad4984bae18b33fecc890bd264695190cb44a10ffd6f7df33c0a89b1b9a9 SHA512 0168c4e664fcd2df7f08e4f7d110114d907f8f37d50986c89b33f5a575c87291574d0b5dff0197fb5666281f4fe1b67a61e8719a470bd01c5b7f2fc354f066b4 -DIST mimedefang-2.75.tar.gz 363535 BLAKE2B 7ede4ca1c2797630672adc00f7cfc8dd1daa0a2756b6c8fe24c4b6bce382fe713a21be90ef6b5f0cedfa4c1f46109b4011ccf6f862f2f3b7ea1cf29b656393b6 SHA512 a8b5c83116d973ea8971df8682d4ba26a37a47fd58cf740eecc1b70aa68a8aa765f7fa2415542d54f147990310b68e64d1e949d3b988cee24c4c2c5194123d98 diff --git a/mail-filter/mimedefang/files/mimedefang-2.72-ldflags.patch b/mail-filter/mimedefang/files/mimedefang-2.72-ldflags.patch deleted file mode 100644 index 998b3183e661..000000000000 --- a/mail-filter/mimedefang/files/mimedefang-2.72-ldflags.patch +++ /dev/null @@ -1,38 +0,0 @@ ---- 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 deleted file mode 100644 index 49ccef7be077..000000000000 --- a/mail-filter/mimedefang/files/mimedefang.conf +++ /dev/null @@ -1,131 +0,0 @@ -# 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 deleted file mode 100644 index efe52c673cb1..000000000000 --- a/mail-filter/mimedefang/files/mimedefang.init +++ /dev/null @@ -1,102 +0,0 @@ -#!/sbin/openrc-run -# -# 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 deleted file mode 100644 index 812025210606..000000000000 --- a/mail-filter/mimedefang/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<!-- maintainer-needed --> -<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 deleted file mode 100644 index c87ab3177048..000000000000 --- a/mail-filter/mimedefang/mimedefang-2.73.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 - -inherit eutils user - -DESCRIPTION="Antispam, antivirus and other customizable filters 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 deleted file mode 100644 index 24f01e24f08f..000000000000 --- a/mail-filter/mimedefang/mimedefang-2.74.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 - -inherit eutils user - -DESCRIPTION="Antispam, antivirus and other customizable filters 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 deleted file mode 100644 index fe9400a104bc..000000000000 --- a/mail-filter/mimedefang/mimedefang-2.75.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit eutils user - -DESCRIPTION="Antispam, antivirus and other customizable filters 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 -} |