Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/libsrs_alt/
Date: Thu, 31 Oct 2019 19:57:02
Message-Id: 1572551811.efb5ecbb9c1b7699ae08c3dcf5bacfc9fac41ad2.grobian@gentoo
1 commit: efb5ecbb9c1b7699ae08c3dcf5bacfc9fac41ad2
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 31 19:56:33 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 31 19:56:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efb5ecbb
7
8 mail-filter/libsrs_alt: EAPI-bump, take maintainership, bug #697318
9
10 Closes: https://bugs.gentoo.org/697318
11 Package-Manager: Portage-2.3.76, Repoman-2.3.16
12 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
13
14 mail-filter/libsrs_alt/Manifest | 1 +
15 mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild | 53 +++++++++++++++++++++++++
16 mail-filter/libsrs_alt/metadata.xml | 16 ++++----
17 3 files changed, 63 insertions(+), 7 deletions(-)
18
19 diff --git a/mail-filter/libsrs_alt/Manifest b/mail-filter/libsrs_alt/Manifest
20 index 43dd8826427..6a611bab7a9 100644
21 --- a/mail-filter/libsrs_alt/Manifest
22 +++ b/mail-filter/libsrs_alt/Manifest
23 @@ -1 +1,2 @@
24 +DIST libsrs_alt-1.0.tar.bz2 237984 BLAKE2B e55b01f28fdf240ccf2fea8b43e930bc02a78bfb82a2b9fe573c1c09e0839f89a0bdb51844dae237ed66e4bda925b5b3b93842462987e7f300f6f5d763adf382 SHA512 1e15f8b12c2174c8ee085fc5adae4cb267f69dd5656066d33af106ad4940769552e04cfc67af4ad9650eece2519c03ef383290f36a22df7d9e03fa2186262404
25 DIST libsrs_alt-1.0.tar.gz 337225 BLAKE2B 1fb10130eb44c8edfc3757b9ba6d8a77659d1ba53fa620da2f7c5fe6cb01fe3f9c1ac0aac5a49db7d9f1b8308ac4c07778e03e4aa6ad9c0204a0871dff40047f SHA512 c202b2cbd28ce0b1296a8000b9f2ae19f4fff259a2d9ea43674cab11b947d0f85a0fdbb13e5fef2a52b1ae675a8fa35b492b233f97f5e365a9c076a337010629
26
27 diff --git a/mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild b/mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild
28 new file mode 100644
29 index 00000000000..00557d6ce5a
30 --- /dev/null
31 +++ b/mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild
32 @@ -0,0 +1,53 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools
39 +
40 +MY_PV=${PV}
41 +MY_RC=${PV}
42 +S=${WORKDIR}/${PN}-${MY_PV}
43 +
44 +DESCRIPTION="Sender Rewriting Scheme library for use with Exim"
45 +HOMEPAGE="http://opsec.eu/src/srs/"
46 +SRC_URI="https://opsec.eu/src/srs/libsrs_alt-${MY_PV}.tar.bz2"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
51 +IUSE="static-libs"
52 +
53 +RDEPEND="!dev-perl/Mail-SRS"
54 +
55 +src_prepare() {
56 + eapply "${FILESDIR}"/${P}-ftime.patch
57 +
58 + # add missing header
59 + sed -i -e '/timeb.h>/ a #include <stdlib.h>' test.c
60 +
61 + eapply_user
62 +
63 + eautoreconf
64 +}
65 +
66 +src_configure() {
67 + # Since the primary intended consumers of this library are MTAs,
68 + # use non-standard separator characters (--with-base64compat).
69 + # This breaks "SRS Compliancy", which is a rough standard at
70 + # best.
71 + econf --with-base64compat
72 +}
73 +
74 +src_compile() {
75 + # Makefile rules are h0rk3ned, but this is such a tiny package, that
76 + # it hardly makes sense to fix this.
77 + emake -j1
78 +}
79 +
80 +src_install() {
81 + default
82 + dodoc "${S}"/MTAs/README.EXIM
83 +
84 + use static-libs || rm "${ED}"/usr/$(get_libdir)/libsrs_alt.a
85 +}
86
87 diff --git a/mail-filter/libsrs_alt/metadata.xml b/mail-filter/libsrs_alt/metadata.xml
88 index 13a98c827bf..becb078db1a 100644
89 --- a/mail-filter/libsrs_alt/metadata.xml
90 +++ b/mail-filter/libsrs_alt/metadata.xml
91 @@ -1,11 +1,13 @@
92 <?xml version="1.0" encoding="UTF-8"?>
93 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
94 <pkgmetadata>
95 -<!-- maintainer-needed -->
96 -<longdescription>
97 -This is a complete standalone C implementation of the SRS (Sender Rewriting
98 -Scheme) and includes a command line utility and daemon, test utility and static
99 -and dynamic libraries. SRS is a stop-gap for users of SPF (Sender Policy
100 -Framework).
101 -</longdescription>
102 + <maintainer type="person">
103 + <email>grobian@g.o</email>
104 + </maintainer>
105 + <longdescription>
106 + This is a complete standalone C implementation of the SRS
107 + (Sender Rewriting Scheme) and includes a command line utility
108 + and daemon, test utility and static and dynamic libraries.
109 + SRS is a stop-gap for users of SPF (Sender Policy Framework).
110 + </longdescription>
111 </pkgmetadata>