summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2009-05-09 12:29:02 +0000
committerAlin Năstac <mrness@gentoo.org>2009-05-09 12:29:02 +0000
commitf6270913d1e7bcf4c9ffb8a5449a52df308b3683 (patch)
treec6e6c2ed83d2881c7333ccfde1de8a8c94b3fb84 /mail-filter
parentUpdate HOMEPAGE and fetch the tarball generated by me over the one provided b... (diff)
downloadhistorical-f6270913d1e7bcf4c9ffb8a5449a52df308b3683.tar.gz
historical-f6270913d1e7bcf4c9ffb8a5449a52df308b3683.tar.bz2
historical-f6270913d1e7bcf4c9ffb8a5449a52df308b3683.zip
Migrate to EAPI 2. Stable on x86.
Package-Manager: portage-2.1.6.7/cvs/Linux x86_64
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/milter-regex/Manifest12
-rw-r--r--mail-filter/sid-milter/ChangeLog9
-rw-r--r--mail-filter/sid-milter/Manifest16
-rw-r--r--mail-filter/sid-milter/files/gentoo.config.m43
-rw-r--r--mail-filter/sid-milter/files/sid-milter-0.2.14-auth.patch173
-rw-r--r--mail-filter/sid-milter/files/sid-milter-0.2.14-postfix-queueID.patch22
-rw-r--r--mail-filter/sid-milter/sid-milter-0.2.14.ebuild61
-rw-r--r--mail-filter/sid-milter/sid-milter-1.0.0-r1.ebuild59
-rw-r--r--mail-filter/sid-milter/sid-milter-1.0.0-r2.ebuild11
9 files changed, 24 insertions, 342 deletions
diff --git a/mail-filter/milter-regex/Manifest b/mail-filter/milter-regex/Manifest
index 39b831c00e8d..7b50ef8e0a4f 100644
--- a/mail-filter/milter-regex/Manifest
+++ b/mail-filter/milter-regex/Manifest
@@ -7,13 +7,13 @@ AUX milter-regex-1.7-yacc.patch 428 RMD160 81e6fa5aec57c9824989ef61af0eefad66b45
AUX milter-regex-conf 177 RMD160 aac67efe1fa295755d85fe313a504bab70ed5dad SHA1 46760523a139d2ab80b9e27a4c7248a28387cee6 SHA256 e26c4c6a876dd8c3c5a15e6093feec5da7e44b396636c96d2b4441f555a8a150
AUX milter-regex-init 824 RMD160 f6fe14f020f8e7e0150183b6fa124f436085fbe7 SHA1 daf51b3cbddc81421e7b29fb919db05a01614ca6 SHA256 cccf793d1c62444d8f82c899e5787090fd048f5b7c56f4dddd04b21e7c06f181
DIST milter-regex-1.7.tar.gz 19321 RMD160 66868b21eb095f203ef8391e99744506d7ee3cc4 SHA1 de337bc12dade1ed4b715657c4317040f08ef902 SHA256 ca64e51c67a27962e2d258a0f69f832ffd56b5270dbe4440f960f457c74bbce6
-EBUILD milter-regex-1.7.ebuild 1693 RMD160 460a48ad60bfd3f592392d3bc4c6b4be221283cf SHA1 1bfa8ba09323c339a842cc53607e55858777b2a7 SHA256 d701fac9959cc4e146e8bbfaadaa863bb6eccd1645a0f940592b254e73720245
-MISC ChangeLog 817 RMD160 66875af436cdfcdddecd40d4c449ce92e325a5f6 SHA1 c070df49d81096bffcb7e4d70ba14b2f2fa5884c SHA256 de56d806681efccbccf8c8f2b2eb1ea1b9f4b1d930304fe26ff9fd7d19a4ad7b
+EBUILD milter-regex-1.7.ebuild 1679 RMD160 40586bdaa05ab2e2da19e047b4255f77f9a18c70 SHA1 1b0b5f2a52e7c999f877f726b71b9627f77832d5 SHA256 4ed6dfaef31ba809e58a0fcfde307148c8727f2e01221c165000831588e6f0ea
+MISC ChangeLog 912 RMD160 09a2db88209bd4f1ffa61fbd81403024dd39e80e SHA1 7b6acbbbc7b85877996e2b94fdda4014cd3c6533 SHA256 d38d660e6b4cfde2d49646c0ab623f72b44c186b8ff36d6f9ec017fafa0ffaf5
MISC metadata.xml 492 RMD160 afd9793c7ad83c56f53e9d5a5b1f596b033b4e8b SHA1 5fba558c4dcabeba151318150772910833860f90 SHA256 5dd05145d4a0eb2d55ba127f97290e7c3b2ebe32bb45ad952358f61b69c4718a
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
+Version: GnuPG v2.0.10 (GNU/Linux)
-iEYEARECAAYFAklBfzYACgkQPrHvTlXvhttOxgCfbnijcJObsMpAoa5VdUqs5BRw
-u04AnjfqWFHDNGjSKYqwenau/xMv63Pz
-=y+ek
+iEYEARECAAYFAkoFk+cACgkQts85UDFmaOWaKACfWLaLxfxUyHizUAdsO1QJNAgO
+uuYAn3gZup1c4VXcBVywqJU5QGo0xii3
+=lpbb
-----END PGP SIGNATURE-----
diff --git a/mail-filter/sid-milter/ChangeLog b/mail-filter/sid-milter/ChangeLog
index 104e50ef94c5..62bf1f92663e 100644
--- a/mail-filter/sid-milter/ChangeLog
+++ b/mail-filter/sid-milter/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for mail-filter/sid-milter
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/sid-milter/ChangeLog,v 1.10 2009/03/08 18:31:50 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/sid-milter/ChangeLog,v 1.11 2009/05/09 12:29:01 mrness Exp $
+
+ 09 May 2009; Alin Năstac <mrness@gentoo.org>
+ -files/sid-milter-0.2.14-auth.patch,
+ -files/sid-milter-0.2.14-postfix-queueID.patch, -files/gentoo.config.m4,
+ -sid-milter-0.2.14.ebuild, -sid-milter-1.0.0-r1.ebuild,
+ sid-milter-1.0.0-r2.ebuild:
+ Migrate to EAPI 2. Stable on x86.
*sid-milter-1.0.0-r2 (08 Mar 2009)
diff --git a/mail-filter/sid-milter/Manifest b/mail-filter/sid-milter/Manifest
index cefa9e198f72..c1939bbc0399 100644
--- a/mail-filter/sid-milter/Manifest
+++ b/mail-filter/sid-milter/Manifest
@@ -2,23 +2,17 @@
Hash: SHA1
AUX gentoo-config.m4 134 RMD160 fa59a3250591c29d575e828deb4c3bb0ebfafd60 SHA1 5a1f335a7dde4665344e92dd9cb55d65585e50d5 SHA256 9c640f53626f42256bc1616d3adcbfc7fb3e37a3bb74863ab2292d9e8658b3df
-AUX gentoo.config.m4 99 RMD160 216f105bdfe0e781fa872ccfec78cef9165b4437 SHA1 653e484704427daaf0b4c83db2877af204cf6aa4 SHA256 43fffe69618d94a0cfa4244ba95d35d51746c481dc449900aa4740a08d896c94
AUX sid-filter.conf 232 RMD160 680ac0ac2c1c34a772e57aec028332f40958049d SHA1 bda5b00650acd6a79c1c56405f06842916aa0781 SHA256 17ac7a949bd06e369ddc9da81dae7d44ece8b83bbfdc587357c92cd368a7cff0
AUX sid-filter.init 561 RMD160 4985cd7b429af32795bb8f36bcdbeca248f33882 SHA1 81cbe378b67e7de2c534b0609fdf72d39165e7fd SHA256 dbdcd808d4c1e486fb314c36142392c54ebe094a6504e452bd7227d47b8c875f
-AUX sid-milter-0.2.14-auth.patch 4871 RMD160 a12bec83c53e1fd5955ebe12999ac78ac997442b SHA1 dd4b0babad87bdf2601858c03f92c2182bb0225b SHA256 eb02d7f6211ed923ba5ac445674d02a87ba63148045e09437eea83f3494e5f0a
-AUX sid-milter-0.2.14-postfix-queueID.patch 652 RMD160 59898e1fd420e9d6cbe11e8b0ea6f36e20cecaa8 SHA1 91ce8b3fb2b62018d4110f1623832445429583b6 SHA256 9179a2044d75be31ae3e809d24f7d910944102cde1a82fd189982595a96c513e
AUX sid-milter-1.0.0-nopra_on_spf1.patch 1777 RMD160 2b87e1759a806ef6f8b09dbbc99d51dc663a80be SHA1 b54ed8bc77cbbeb83af13d7e322c011dfe66fc17 SHA256 2a01bb115496583682e1e6f78370acc267c7e45067bb4dd91daa90dbf7107942
-DIST sid-milter-0.2.14.tar.gz 341800 RMD160 9ec66020cea15d7f3c2148e8965a2d4b07f233db SHA1 99c13d05599c4abeb54f26db2d03e2e83505f5b7 SHA256 018ccf8276245e1311f91d305c563cec6c40430430376b8151bb6a473d8cd90e
DIST sid-milter-1.0.0.tar.gz 351161 RMD160 7aca88c5d1c18581a17a779c87e7dda3d0091e0e SHA1 dd6517b36933083923c3094cf7f09e74825e7dcb SHA256 b303bf0c43afd0cb0c814b8c862b8d22563d1203339ac130036873e79f696376
-EBUILD sid-milter-0.2.14.ebuild 1635 RMD160 701de02cfc1f293327eb4c16ba1e3ffabd161482 SHA1 c5abd5176239658883caee68eba65cf64e7e76cc SHA256 087aee5d6a74804de5230c46797148add80c5ce052b3aa301f54378af98453c3
-EBUILD sid-milter-1.0.0-r1.ebuild 1686 RMD160 19ca84a66cd5a44ad9367d22e24347e06f08e045 SHA1 ba94d1b54089d4ebfcdbf5a919f5ea5beb381319 SHA256 550e1e7ded1536165279bed019f67b8f1ad362b2e2f3d03e1052fe62833effa0
-EBUILD sid-milter-1.0.0-r2.ebuild 1733 RMD160 2cdbf288bc1dd77903fac25a2e5543cd6924e5b2 SHA1 5ef494d06b4254dc93ce7ef8f9c350b42c24ea60 SHA256 6a0e018c4405d85d749d155defe95b3d16c02fb000320e9738e7f200ac52a269
-MISC ChangeLog 1904 RMD160 e4d4aa63cd4870c49703585a7e7754b5f6abf6ec SHA1 5d5d49dbe89a6e7c4a1534c9f619b24ce9125d74 SHA256 0565b3e7a2cb1c58d6402bf3eb8c002a9abfff05cc1ac71ab3a7743306b93d30
+EBUILD sid-milter-1.0.0-r2.ebuild 1688 RMD160 f20cbb84c1f6902064386a66e5d6cce62e01d3ea SHA1 6dbfbf7c31b230d9419981eb93b39122778f6c55 SHA256 4038e07b68d8d8c97e944926eb66dcddc39c14dfbcc08fe8d14acba0c0e49544
+MISC ChangeLog 2191 RMD160 cda1880dac03cb92db78f8dfff43e73e80273093 SHA1 90380d5f4bff78b09a86f746ca7cf056ea4c2b30 SHA256 e7139bb4e2536579a7e48b7afadf3f3daf7c27cd69cf739cf5b19c2f866d76a7
MISC metadata.xml 447 RMD160 d12715bcb22b684ecc8d69400ea109bb1898b068 SHA1 4967c8a01ec72918142454d4795637048283ef63 SHA256 c014f1e81516b87fd0b79be261b843a3ed2d8f981baf0177c3805ef8e51bac17
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (GNU/Linux)
-iEYEARECAAYFAkm0DyAACgkQts85UDFmaOVjeACbBXHr7B5bdF8iN50Nfjok2i0l
-3CcAn3Fy4qopoN+uXO9edubCXNDB5JFR
-=XdpG
+iEYEARECAAYFAkoFkzMACgkQts85UDFmaOXjRQCfXeHlnKEKikOCAkXNpt6GyJEc
+HP4An0qX4TjegfJ6PZThCpmTJemogZy4
+=ELmY
-----END PGP SIGNATURE-----
diff --git a/mail-filter/sid-milter/files/gentoo.config.m4 b/mail-filter/sid-milter/files/gentoo.config.m4
deleted file mode 100644
index 0ac0ecd1355a..000000000000
--- a/mail-filter/sid-milter/files/gentoo.config.m4
+++ /dev/null
@@ -1,3 +0,0 @@
-define(`confNO_MAN_BUILD',`')
-define(`confOPTIMIZE', `@@CFLAGS@@')
-define(`bld_USE_ARLIB', `true')
diff --git a/mail-filter/sid-milter/files/sid-milter-0.2.14-auth.patch b/mail-filter/sid-milter/files/sid-milter-0.2.14-auth.patch
deleted file mode 100644
index fd016df60215..000000000000
--- a/mail-filter/sid-milter/files/sid-milter-0.2.14-auth.patch
+++ /dev/null
@@ -1,173 +0,0 @@
-# HG changeset patch
-# User root@sodarock.com
-# Date Sun Dec 03 22:38:00 2006 -0800
-# Node ID 5edf430464ebbfd54c1985feca5020983635a365
-# parent: eb44f95bb7cd44e331a3c76bee43474533643f15
-Imported the auth patch from Adrian Havill <havill@redhat.com>
-
-
---- a/sid-filter/sid-filter.c Sun Dec 03 22:35:00 2006 -0800
-+++ b/sid-filter/sid-filter.c Sun Dec 03 22:38:00 2006 -0800
-@@ -1928,11 +1928,11 @@ mlfi_eom(SMFICTX *ctx)
- {
- sfsistat ret;
- int status;
-- int sid_result;
-- int spf_result;
-+ int sid_result, spf_result, auth_result;
- int reason;
- Context sic;
- const char *hostname;
-+ char *auth_type, *auth_author, *auth_ssf, *auth_authen;
- const char *expl;
- char *badaddr;
- char *which;
-@@ -1964,6 +1964,13 @@ mlfi_eom(SMFICTX *ctx)
- if (hostname == NULL)
- hostname = HOSTUNKNOWN;
-
-+ auth_authen = smfi_getsymval(ctx, "{auth_authen}");
-+ auth_type = smfi_getsymval(ctx, "{auth_type}");
-+ auth_ssf = smfi_getsymval(ctx, "{auth_ssf}");
-+ auth_author = smfi_getsymval(ctx, "{auth_author}");
-+
-+ auth_result = auth_authen != NULL && strlen(auth_authen) != 0;
-+
- /* assume we're accepting */
- ret = SMFIS_ACCEPT;
-
-@@ -1986,7 +1993,7 @@ mlfi_eom(SMFICTX *ctx)
- snprintf(pra, sizeof pra, "%s@%s", sic->ctx_local, sic->ctx_domain);
- status = sid_marid_check(sic, SM_SCOPE_PRA, ip, pra, &sid_result,
- &reason, &expl);
-- if (status != 0)
-+ if (!auth_result && status != 0)
- {
- if (dolog)
- {
-@@ -2020,20 +2027,64 @@ mlfi_eom(SMFICTX *ctx)
- /* construct the status header's content */
- sm_strlcpy(prahdr, sic->ctx_pra->hdr_hdr, sizeof prahdr);
- sid_lowercase(prahdr);
-- snprintf(stathdr, sizeof stathdr, "%s %s=%s; sender-id=", hostname,
-+ snprintf(stathdr, sizeof stathdr, "%s header.%s=%s; sender-id=", hostname,
- prahdr, pra);
- sid_stat_header(sid_result, reason, expl, stathdr, sizeof stathdr);
-
- /* save error message for use in SMTP reply*/
- sid_stat_header(sid_result, reason, expl, sid_errmsg,
- sizeof sid_errmsg);
-+
-+ /*
-+ ** Put the status header in place.
-+ */
-+
-+ if (!auth_result && stathdr[0] != '\0' &&
-+ smfi_insheader(ctx, 1, AUTHRESULTSHDR, stathdr) != MI_SUCCESS)
-+ {
-+ if (dolog)
-+ {
-+ syslog(LOG_ERR, "%s smfi_insheader() failed",
-+ sic->ctx_jobid);
-+ }
-+
-+ sid_msgcleanup(ctx);
-+ return SMFIS_TEMPFAIL;
-+ }
-+
-+ snprintf(stathdr, sizeof stathdr, "%s smtp.mail=%s", hostname, sic->ctx_sender != NULL && strlen(sic->ctx_sender) != 0 ? sic->ctx_sender : pra /*FIXME*/);
-+
-+ /*
-+ ** Run the SMTP authentication test
-+ */
-+
-+ if (auth_result) {
-+ sm_strlcat(stathdr, "; auth=", sizeof stathdr);
-+
-+ /* positive = pass, 0 = neutral, negative = fail (not used) */
-+
-+ sm_strlcat(stathdr, auth_result > 0 ? "pass" : "fail", sizeof stathdr);
-+
-+ /* plain, cram-md5, etc... */
-+
-+ if (auth_type != NULL && strlen(auth_type) != 0) {
-+ sm_strlcat(stathdr, " (", sizeof stathdr);
-+ sm_strlcat(stathdr, auth_type, sizeof stathdr);
-+ if (auth_ssf != NULL && atoi(auth_ssf) > 1) {
-+ sm_strlcat(stathdr, " ", sizeof stathdr);
-+ sm_strlcat(stathdr, auth_ssf, sizeof stathdr);
-+ sm_strlcat(stathdr, " bits", sizeof stathdr);
-+ }
-+ sm_strlcat(stathdr, ")", sizeof stathdr);
-+ }
-+ }
-
- /*
- ** Run the "SPF classic" query if the envelope sender wasn't
- ** empty.
- */
-
-- if (sic->ctx_sender[0] != '\0')
-+ if (!auth_result && sic->ctx_sender[0] != '\0')
- {
- expl = NULL;
- status = sid_marid_check(sic, SM_SCOPE_SPF, ip,
-@@ -2083,6 +2134,23 @@ mlfi_eom(SMFICTX *ctx)
- }
-
- /*
-+ ** Put the status header in place.
-+ */
-+
-+ if (stathdr[0] != '\0' &&
-+ smfi_insheader(ctx, 1, AUTHRESULTSHDR, stathdr) != MI_SUCCESS)
-+ {
-+ if (dolog)
-+ {
-+ syslog(LOG_ERR, "%s smfi_insheader() failed",
-+ sic->ctx_jobid);
-+ }
-+
-+ sid_msgcleanup(ctx);
-+ return SMFIS_TEMPFAIL;
-+ }
-+
-+ /*
- ** Identify the filter, if requested.
- */
-
-@@ -2109,24 +2177,6 @@ mlfi_eom(SMFICTX *ctx)
- return SMFIS_TEMPFAIL;
- }
- }
--
-- /*
-- ** Put the status header in place.
-- */
--
-- if (stathdr[0] != '\0' &&
-- smfi_insheader(ctx, 1, AUTHRESULTSHDR, stathdr) != MI_SUCCESS)
-- {
-- if (dolog)
-- {
-- syslog(LOG_ERR, "%s %s() failed",
-- sic->ctx_jobid, ADDHEADERFUNCNAME);
-- }
--
-- sid_msgcleanup(ctx);
-- return SMFIS_TEMPFAIL;
-- }
--
-
- sid_msgcleanup(ctx);
-
-@@ -2216,6 +2266,8 @@ mlfi_eom(SMFICTX *ctx)
- }
- break;
- }
-+ if (auth_result > 0)
-+ ret = SMFIS_ACCEPT;
-
- if (ret == SMFIS_REJECT && !testmode)
- {
-
diff --git a/mail-filter/sid-milter/files/sid-milter-0.2.14-postfix-queueID.patch b/mail-filter/sid-milter/files/sid-milter-0.2.14-postfix-queueID.patch
deleted file mode 100644
index b91202ddffa5..000000000000
--- a/mail-filter/sid-milter/files/sid-milter-0.2.14-postfix-queueID.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- sid-filter/sid-filter.c.orig 2006-07-18 09:28:15.000000000 -0700
-+++ sid-filter/sid-filter.c 2006-07-18 09:31:12.000000000 -0700
-@@ -1867,6 +1867,10 @@
- assert(ctx != NULL);
- #endif /* !DEBUG */
-
-+ ret = mlfi_eoh(ctx);
-+ if (ret != SMFIS_CONTINUE)
-+ return ret;
-+
- memset(stathdr, '\0', sizeof stathdr);
-
- sic = (Context) smfi_getpriv(ctx);
-@@ -2236,7 +2240,7 @@
- mlfi_envfrom, /* envelope sender filter */
- NULL, /* envelope recipient filter */
- mlfi_header, /* header filter */
-- mlfi_eoh, /* end of header */
-+ NULL, /* end of header */
- NULL, /* body block filter */
- mlfi_eom, /* end of message */
- NULL, /* message aborted */
diff --git a/mail-filter/sid-milter/sid-milter-0.2.14.ebuild b/mail-filter/sid-milter/sid-milter-0.2.14.ebuild
deleted file mode 100644
index 9391d381210b..000000000000
--- a/mail-filter/sid-milter/sid-milter-0.2.14.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/sid-milter/sid-milter-0.2.14.ebuild,v 1.5 2009/02/28 15:13:52 mrness Exp $
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="A milter-based application provide Sender-ID service"
-HOMEPAGE="http://sourceforge.net/projects/sid-milter/"
-SRC_URI="mirror://sourceforge/sid-milter/${P}.tar.gz"
-
-LICENSE="Sendmail-Open-Source"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RDEPEND="dev-libs/openssl
- >=sys-libs/db-3.2"
-DEPEND="${RDEPEND}
- || ( mail-filter/libmilter mail-mta/sendmail )" # libmilter is a static library
-
-pkg_setup() {
- enewgroup milter
- enewuser milter -1 -1 -1 milter
-}
-
-src_unpack() {
- unpack ${A}
-
- cd "${S}" || die "source dir not found"
-
- # Postfix queue ID patch. See MILTER_README.html#workarounds
- epatch "${FILESDIR}/${P}-postfix-queueID.patch"
-
- epatch "${FILESDIR}/${P}-auth.patch"
-
- sed -e "s:@@CFLAGS@@:${CFLAGS}:" \
- "${FILESDIR}/gentoo.config.m4" > "${S}/devtools/Site/site.config.m4" \
- || die "failed to generate site.config.m4"
-}
-
-src_compile() {
- emake -j1 CC="$(tc-getCC)" || die "emake failed"
-}
-
-src_install() {
- newinitd "${FILESDIR}/sid-filter.init" sid-filter \
- || die "newinitd failed"
- newconfd "${FILESDIR}/sid-filter.conf" sid-filter \
- || die "newconfd failed"
-
- dodir /usr/bin
- emake -j1 DESTDIR="${D}" SUBDIRS=sid-filter \
- SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
- install || die "make install failed"
-
- # man build is broken; do man page installation by hand
- doman */*.8
-
- # some people like docs
- dodoc RELEASE_NOTES *.txt
-}
diff --git a/mail-filter/sid-milter/sid-milter-1.0.0-r1.ebuild b/mail-filter/sid-milter/sid-milter-1.0.0-r1.ebuild
deleted file mode 100644
index f8b1c4fd00a5..000000000000
--- a/mail-filter/sid-milter/sid-milter-1.0.0-r1.ebuild
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/sid-milter/sid-milter-1.0.0-r1.ebuild,v 1.1 2009/03/01 08:46:05 mrness Exp $
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="A milter-based application to provide Sender-ID verification service"
-HOMEPAGE="http://sourceforge.net/projects/sid-milter/"
-SRC_URI="mirror://sourceforge/sid-milter/${P}.tar.gz"
-
-LICENSE="Sendmail-Open-Source"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="ipv6"
-
-RDEPEND="dev-libs/openssl
- >=sys-libs/db-3.2"
-DEPEND="${RDEPEND}
- || ( mail-filter/libmilter mail-mta/sendmail )" # libmilter is a static library
-
-pkg_setup() {
- enewgroup milter
- enewuser milter -1 -1 -1 milter
-}
-
-src_unpack() {
- unpack ${A}
-
- cd "${S}" || die "source dir not found"
-
- local ENVDEF=""
- use ipv6 && ENVDEF="${ENVDEF} -DNETINET6"
- sed -e "s:@@CFLAGS@@:${CFLAGS}:" \
- -e "s:@@ENVDEF@@:${ENVDEF}:" \
- "${FILESDIR}/gentoo-config.m4" > "${S}/devtools/Site/site.config.m4" \
- || die "failed to generate site.config.m4"
-}
-
-src_compile() {
- emake -j1 CC="$(tc-getCC)" || die "emake failed"
-}
-
-src_install() {
- dodir /usr/bin
- emake -j1 DESTDIR="${D}" SUBDIRS=sid-filter \
- SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
- install || die "make install failed"
-
- newinitd "${FILESDIR}/sid-filter.init" sid-filter \
- || die "newinitd failed"
- newconfd "${FILESDIR}/sid-filter.conf" sid-filter \
- || die "newconfd failed"
-
- # man build is broken; do man page installation by hand
- doman */*.8 || die "failed to install man pages"
-
- # some people like docs
- dodoc RELEASE_NOTES *.txt sid-filter/README || die "failed to install docs"
-}
diff --git a/mail-filter/sid-milter/sid-milter-1.0.0-r2.ebuild b/mail-filter/sid-milter/sid-milter-1.0.0-r2.ebuild
index 6627db966cb6..a51b1d7bfd4f 100644
--- a/mail-filter/sid-milter/sid-milter-1.0.0-r2.ebuild
+++ b/mail-filter/sid-milter/sid-milter-1.0.0-r2.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/sid-milter/sid-milter-1.0.0-r2.ebuild,v 1.1 2009/03/08 18:31:50 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/sid-milter/sid-milter-1.0.0-r2.ebuild,v 1.2 2009/05/09 12:29:01 mrness Exp $
+
+EAPI="2"
inherit eutils toolchain-funcs
@@ -10,7 +12,7 @@ SRC_URI="mirror://sourceforge/sid-milter/${P}.tar.gz"
LICENSE="Sendmail-Open-Source"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 x86"
IUSE="ipv6"
RDEPEND="dev-libs/openssl
@@ -23,10 +25,7 @@ pkg_setup() {
enewuser milter -1 -1 -1 milter
}
-src_unpack() {
- unpack ${A}
-
- cd "${S}" || die "source dir not found"
+src_prepare() {
epatch "${FILESDIR}"/${P}-nopra_on_spf1.patch
local ENVDEF=""