diff options
author | Eray Aslan <eras@gentoo.org> | 2011-06-10 07:53:21 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2011-06-10 07:53:21 +0000 |
commit | 5efbeb293af3cc8c5bc3459ed56f6911142025b4 (patch) | |
tree | 5b1f3dce7c2f87ab9f29766bc83331b8f7370bee /mail-filter/mimedefang | |
parent | Fix dodoc call. Fixes bug #370805. (diff) | |
download | gentoo-2-5efbeb293af3cc8c5bc3459ed56f6911142025b4.tar.gz gentoo-2-5efbeb293af3cc8c5bc3459ed56f6911142025b4.tar.bz2 gentoo-2-5efbeb293af3cc8c5bc3459ed56f6911142025b4.zip |
Respect LDFLAGS - bug #335695. Version bump. EAPI bump.
(Portage version: 2.1.10/cvs/Linux x86_64)
Diffstat (limited to 'mail-filter/mimedefang')
-rw-r--r-- | mail-filter/mimedefang/ChangeLog | 10 | ||||
-rw-r--r-- | mail-filter/mimedefang/files/mimedefang-2.71-ldflags.patch | 29 | ||||
-rw-r--r-- | mail-filter/mimedefang/mimedefang-2.71.ebuild | 69 |
3 files changed, 106 insertions, 2 deletions
diff --git a/mail-filter/mimedefang/ChangeLog b/mail-filter/mimedefang/ChangeLog index fff298099171..44fa038d758e 100644 --- a/mail-filter/mimedefang/ChangeLog +++ b/mail-filter/mimedefang/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-filter/mimedefang -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/mimedefang/ChangeLog,v 1.6 2009/08/22 23:45:11 mrness Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/mimedefang/ChangeLog,v 1.7 2011/06/10 07:53:21 eras Exp $ + +*mimedefang-2.71 (10 Jun 2011) + + 10 Jun 2011; Eray Aslan <eras@gentoo.org> +mimedefang-2.71.ebuild, + +files/mimedefang-2.71-ldflags.patch: + Respect LDFLAGS - bug #335695. Version bump. EAPI bump. *mimedefang-2.67 (22 Aug 2009) diff --git a/mail-filter/mimedefang/files/mimedefang-2.71-ldflags.patch b/mail-filter/mimedefang/files/mimedefang-2.71-ldflags.patch new file mode 100644 index 000000000000..17ade7a2b3d6 --- /dev/null +++ b/mail-filter/mimedefang/files/mimedefang-2.71-ldflags.patch @@ -0,0 +1,29 @@ +--- Makefile.in 2010-06-16 22:06:45.000000000 +0300 ++++ Makefile.in 2011-06-10 09:26:28.725950557 +0300 +@@ -95,7 +95,7 @@ + $(MAKE) all DONT_STRIP=1 + + 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@ + -test "$(DONT_STRIP)" != "1" && strip mimedefang-multiplexor + + embperl.o: embperl.c +@@ -119,7 +119,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@ + -test "$(DONT_STRIP)" != "1" && strip md-mx-ctrl + + md-mx-ctrl.o: md-mx-ctrl.c +@@ -144,7 +144,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@ @PTHREAD_FLAG@ @LDFLAGS@ -o mimedefang mimedefang.o drop_privs_threaded.o utils.o rm_r.o syslog-fac.o dynbuf.o milter_cap.o gen_id.o -lmilter @LIBS@ + -test "$(DONT_STRIP)" != "1" && strip mimedefang + + mimedefang.o: mimedefang.c mimedefang.h diff --git a/mail-filter/mimedefang/mimedefang-2.71.ebuild b/mail-filter/mimedefang/mimedefang-2.71.ebuild new file mode 100644 index 000000000000..588a336cdcc8 --- /dev/null +++ b/mail-filter/mimedefang/mimedefang-2.71.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/mimedefang/mimedefang-2.71.ebuild,v 1.1 2011/06/10 07:53:21 eras Exp $ + +EAPI=4 + +inherit eutils + +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 + dev-perl/IO-stringy + virtual/perl-MIME-Base64 + dev-perl/Digest-SHA1 + clamav? ( app-antivirus/clamav ) + >=mail-mta/postfix-2.4 + || ( mail-filter/libmilter mail-mta/sendmail )" +RDEPEND="${DEPEND}" +RESTRICT="test" + +pkg_setup() { + enewgroup defang + enewuser defang -1 -1 -1 defang +} + +src_prepare() { + epatch "${FILESDIR}/${P}"-ldflags.patch +} + +src_configure() { + econf --with-user=defang \ + $(use_enable poll) \ + $(use_enable clamav) \ + $(use_enable clamav clamd) +} + +src_compile() { + emake unstripped +} + +src_install() { + emake DESTDIR="${D}" 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/* +} |