summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-10-31 20:56:33 +0100
committerFabian Groffen <grobian@gentoo.org>2019-10-31 20:56:51 +0100
commitefb5ecbb9c1b7699ae08c3dcf5bacfc9fac41ad2 (patch)
tree6a7300edcbe90d39c1abf429534c330488e07abf /mail-filter
parentdev-python/jikanpy: 3.4.1; new package. (diff)
downloadgentoo-efb5ecbb9c1b7699ae08c3dcf5bacfc9fac41ad2.tar.gz
gentoo-efb5ecbb9c1b7699ae08c3dcf5bacfc9fac41ad2.tar.bz2
gentoo-efb5ecbb9c1b7699ae08c3dcf5bacfc9fac41ad2.zip
mail-filter/libsrs_alt: EAPI-bump, take maintainership, bug #697318
Closes: https://bugs.gentoo.org/697318 Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/libsrs_alt/Manifest1
-rw-r--r--mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild53
-rw-r--r--mail-filter/libsrs_alt/metadata.xml16
3 files changed, 63 insertions, 7 deletions
diff --git a/mail-filter/libsrs_alt/Manifest b/mail-filter/libsrs_alt/Manifest
index 43dd88264276..6a611bab7a91 100644
--- a/mail-filter/libsrs_alt/Manifest
+++ b/mail-filter/libsrs_alt/Manifest
@@ -1 +1,2 @@
+DIST libsrs_alt-1.0.tar.bz2 237984 BLAKE2B e55b01f28fdf240ccf2fea8b43e930bc02a78bfb82a2b9fe573c1c09e0839f89a0bdb51844dae237ed66e4bda925b5b3b93842462987e7f300f6f5d763adf382 SHA512 1e15f8b12c2174c8ee085fc5adae4cb267f69dd5656066d33af106ad4940769552e04cfc67af4ad9650eece2519c03ef383290f36a22df7d9e03fa2186262404
DIST libsrs_alt-1.0.tar.gz 337225 BLAKE2B 1fb10130eb44c8edfc3757b9ba6d8a77659d1ba53fa620da2f7c5fe6cb01fe3f9c1ac0aac5a49db7d9f1b8308ac4c07778e03e4aa6ad9c0204a0871dff40047f SHA512 c202b2cbd28ce0b1296a8000b9f2ae19f4fff259a2d9ea43674cab11b947d0f85a0fdbb13e5fef2a52b1ae675a8fa35b492b233f97f5e365a9c076a337010629
diff --git a/mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild b/mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild
new file mode 100644
index 000000000000..00557d6ce5a1
--- /dev/null
+++ b/mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+MY_PV=${PV}
+MY_RC=${PV}
+S=${WORKDIR}/${PN}-${MY_PV}
+
+DESCRIPTION="Sender Rewriting Scheme library for use with Exim"
+HOMEPAGE="http://opsec.eu/src/srs/"
+SRC_URI="https://opsec.eu/src/srs/libsrs_alt-${MY_PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="static-libs"
+
+RDEPEND="!dev-perl/Mail-SRS"
+
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-ftime.patch
+
+ # add missing header
+ sed -i -e '/timeb.h>/ a #include <stdlib.h>' test.c
+
+ eapply_user
+
+ eautoreconf
+}
+
+src_configure() {
+ # Since the primary intended consumers of this library are MTAs,
+ # use non-standard separator characters (--with-base64compat).
+ # This breaks "SRS Compliancy", which is a rough standard at
+ # best.
+ econf --with-base64compat
+}
+
+src_compile() {
+ # Makefile rules are h0rk3ned, but this is such a tiny package, that
+ # it hardly makes sense to fix this.
+ emake -j1
+}
+
+src_install() {
+ default
+ dodoc "${S}"/MTAs/README.EXIM
+
+ use static-libs || rm "${ED}"/usr/$(get_libdir)/libsrs_alt.a
+}
diff --git a/mail-filter/libsrs_alt/metadata.xml b/mail-filter/libsrs_alt/metadata.xml
index 13a98c827bf6..becb078db1ae 100644
--- a/mail-filter/libsrs_alt/metadata.xml
+++ b/mail-filter/libsrs_alt/metadata.xml
@@ -1,11 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<!-- maintainer-needed -->
-<longdescription>
-This is a complete standalone C implementation of the SRS (Sender Rewriting
-Scheme) and includes a command line utility and daemon, test utility and static
-and dynamic libraries. SRS is a stop-gap for users of SPF (Sender Policy
-Framework).
-</longdescription>
+ <maintainer type="person">
+ <email>grobian@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ This is a complete standalone C implementation of the SRS
+ (Sender Rewriting Scheme) and includes a command line utility
+ and daemon, test utility and static and dynamic libraries.
+ SRS is a stop-gap for users of SPF (Sender Policy Framework).
+ </longdescription>
</pkgmetadata>