diff options
author | Eray Aslan <eras@gentoo.org> | 2012-08-05 15:31:55 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2012-08-05 15:31:55 +0000 |
commit | a4b317471853a2a4a14ef01d4919faa85a94d562 (patch) | |
tree | 3e769ec76b4ba870d068b688bcedd119b7603d87 /mail-filter/milter-regex | |
parent | arm stable, bug #418589 (diff) | |
download | gentoo-2-a4b317471853a2a4a14ef01d4919faa85a94d562.tar.gz gentoo-2-a4b317471853a2a4a14ef01d4919faa85a94d562.tar.bz2 gentoo-2-a4b317471853a2a4a14ef01d4919faa85a94d562.zip |
Version bump. Respect CC - bug #429934
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'mail-filter/milter-regex')
-rw-r--r-- | mail-filter/milter-regex/ChangeLog | 8 | ||||
-rw-r--r-- | mail-filter/milter-regex/files/milter-regex-1.9-gentoo.patch | 38 | ||||
-rw-r--r-- | mail-filter/milter-regex/milter-regex-1.9.ebuild | 62 |
3 files changed, 107 insertions, 1 deletions
diff --git a/mail-filter/milter-regex/ChangeLog b/mail-filter/milter-regex/ChangeLog index dd0d5b0a31bc..20cdd08d3a3c 100644 --- a/mail-filter/milter-regex/ChangeLog +++ b/mail-filter/milter-regex/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-filter/milter-regex # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/milter-regex/ChangeLog,v 1.11 2012/06/04 23:54:25 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/milter-regex/ChangeLog,v 1.12 2012/08/05 15:31:54 eras Exp $ + +*milter-regex-1.9 (05 Aug 2012) + + 05 Aug 2012; Eray Aslan <eras@gentoo.org> +milter-regex-1.9.ebuild, + +files/milter-regex-1.9-gentoo.patch: + Version bump. Respect CC - bug #429934 04 Jun 2012; Zac Medico <zmedico@gentoo.org> milter-regex-1.7-r2.ebuild, milter-regex-1.8.ebuild: diff --git a/mail-filter/milter-regex/files/milter-regex-1.9-gentoo.patch b/mail-filter/milter-regex/files/milter-regex-1.9-gentoo.patch new file mode 100644 index 000000000000..38ba17af0d88 --- /dev/null +++ b/mail-filter/milter-regex/files/milter-regex-1.9-gentoo.patch @@ -0,0 +1,38 @@ +--- Makefile.linux 2011-07-16 16:51:34.000000000 +0300 ++++ Makefile.linux 2012-08-05 18:15:30.906378968 +0300 +@@ -6,28 +6,27 @@ + # see milter-regex.init for an init script for RedHat/Fedora + # (contributed by admin@2ka.mipt.ru) + +-CFLAGS= -g +-LDFLAGS= -L/usr/lib/libmilter -lmilter -lpthread ++LIBS= -lmilter -lpthread + + all: milter-regex milter-regex.cat8 + + milter-regex: milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o +- gcc -o milter-regex milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o $(LDFLAGS) ++ $(CC) $(LDFLAGS) -o milter-regex milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o $(LIBS) + + milter-regex.o: milter-regex.c eval.h +- gcc $(CFLAGS) -c milter-regex.c ++ $(CC) $(CFLAGS) -c milter-regex.c + + eval.o: eval.c eval.h +- gcc $(CFLAGS) -c eval.c ++ $(CC) $(CFLAGS) -c eval.c + + strlcat.o: strlcat.c +- gcc $(CFLAGS) -c strlcat.c ++ $(CC) $(CFLAGS) -c strlcat.c + + strlcpy.o: strlcpy.c +- gcc $(CFLAGS) -c strlcpy.c ++ $(CC) $(CFLAGS) -c strlcpy.c + + y.tab.o: y.tab.c +- gcc $(CFLAGS) -c y.tab.c ++ $(CC) $(CFLAGS) -c y.tab.c + + y.tab.c: parse.y + yacc -d parse.y diff --git a/mail-filter/milter-regex/milter-regex-1.9.ebuild b/mail-filter/milter-regex/milter-regex-1.9.ebuild new file mode 100644 index 000000000000..54f119b7cb50 --- /dev/null +++ b/mail-filter/milter-regex/milter-regex-1.9.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/milter-regex/milter-regex-1.9.ebuild,v 1.1 2012/08/05 15:31:55 eras Exp $ + +EAPI=4 + +inherit eutils user + +DESCRIPTION="A milter-based regular expression filter" +HOMEPAGE="http://www.benzedrine.cx/milter-regex.html" +SRC_URI="http://www.benzedrine.cx/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )" +DEPEND="${RDEPEND} + virtual/yacc" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_compile() { + emake CC="$(tc-getCC)" -f Makefile.linux milter-regex || die "emake failed" +} + +src_install() { + exeinto /usr/bin + doexe milter-regex + + keepdir /var/run/milter-regex + + insinto /etc/mail + newins rules milter-regex.conf + + newconfd "${FILESDIR}"/milter-regex-conf milter-regex + newinitd "${FILESDIR}"/milter-regex-init milter-regex + + doman *.8 +} + +pkg_preinst() { + enewgroup milter + # mail-milter/spamass-milter creates milter user with this home directory + # For consistency reasons, milter user must be created here with this home directory + # even though this package doesn't need a home directory for this user (#280571) + enewuser milter -1 -1 /var/lib/milter milter + + fowners milter:milter /var/run/milter-regex +} + +pkg_postinst() { + elog "If you're using Sendmail, you'll need to add this to your sendmail.mc:" + elog " INPUT_MAIL_FILTER(\`milter-regex', \`S=unix:/var/run/milter-regex/milter-regex.sock, T=S:30s;R:2m')" + elog + elog "If you are using Postfix, you'll need to add this to your main.cf:" + elog " smtpd_milters = unix:/var/run/milter-regex/milter-regex.sock" + elog " non_smtpd_milters = unix:/var/run/milter-regex/milter-regex.sock" +} |