Added libsrs_alt-1.0-r1.
This commit is contained in:
		
							parent
							
								
									354f95d963
								
							
						
					
					
						commit
						79c58746da
					
				
							
								
								
									
										5
									
								
								mail-filter/libsrs_alt/Manifest
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mail-filter/libsrs_alt/Manifest
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
AUX libsrs_alt-1.0-ftime.patch 313 BLAKE2B f634abd1e527a199374fc55bf84927c5e38730f79d1b13f7cb0199ce338f825902df662248fa99bb3baf4c4c07117031b52e3e986a7ad0b2816ca28cfe7601b2 SHA512 2566c9b7e9187a243f5eb6b4b67d649bc081538350f647f1afa69812892a8ff8ef889068ccb73f019cf287e9e6ae3999bc62b2003d197963606a4c30ebecd214
 | 
			
		||||
AUX libsrs_alt-1.0-link-fix.patch 748 BLAKE2B ebfbdc88ff9aab28aeb3cf7db06f15f61147048abb69667c2cd3ea4d5138af322cc5fe92924b18e16a856f4b5189816cc3b57341df5c3377f5949562745a2328 SHA512 89a477ca6f7f8cdac5f4cec83c144a62eccded6ee8d4411e30c1faec69a202bb65bc04e3cc9b590f41601207144996b12617d112c59d4cdcd37a7841ed335256
 | 
			
		||||
DIST libsrs_alt-1.0.tar.bz2 237984 BLAKE2B e55b01f28fdf240ccf2fea8b43e930bc02a78bfb82a2b9fe573c1c09e0839f89a0bdb51844dae237ed66e4bda925b5b3b93842462987e7f300f6f5d763adf382 SHA512 1e15f8b12c2174c8ee085fc5adae4cb267f69dd5656066d33af106ad4940769552e04cfc67af4ad9650eece2519c03ef383290f36a22df7d9e03fa2186262404
 | 
			
		||||
EBUILD libsrs_alt-1.0-r1.ebuild 1204 BLAKE2B ef43a5c832d0f86c95a429e408ca59f845198fb2151007ed735d5675da795aa996126ffbab682890596e7b7772f0101909230b1ecf6b1a4f7242a8aeb97b4c6f SHA512 bfb6056cf5149443442d0afe52133c1ea1ca59eee7fd57f6480f26c832ac13e40e7f7b9712d9465b3e08bf6a4c5e1875461297dce2232ac490533d4febaf831b
 | 
			
		||||
MISC metadata.xml 507 BLAKE2B 0a0d1684581e0460cbe78fc42dd0627548d5a8176cb9fa5c7fdf69a19ba193f953ccb5801a0edcd3ef5a0a0ea2783ada102282a1ddca46dd00b9e36b603b57c2 SHA512 3490d808988044db42fc88cca0eb9007af495fe8954bd5668ff1ff939d3616c5fa059a5369c94b577d5ac55b2317eef334a7ea6ab852979a3f33fdf886f481fc
 | 
			
		||||
							
								
								
									
										12
									
								
								mail-filter/libsrs_alt/files/libsrs_alt-1.0-ftime.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								mail-filter/libsrs_alt/files/libsrs_alt-1.0-ftime.patch
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
diff --git a/configure.ac b/configure.ac
 | 
			
		||||
index 5a43896..d0e106c 100644
 | 
			
		||||
--- a/configure.ac
 | 
			
		||||
+++ b/configure.ac
 | 
			
		||||
@@ -31,6 +31,7 @@ AC_FUNC_FORK
 | 
			
		||||
 AC_TYPE_SIGNAL
 | 
			
		||||
 AC_FUNC_STRNLEN
 | 
			
		||||
 AC_CHECK_LIB(socket, bind)
 | 
			
		||||
+AC_CHECK_LIB(compat, ftime)
 | 
			
		||||
 AC_CHECK_FUNCS([ftime memset socket strchr strdup strncasecmp])
 | 
			
		||||
 AC_TYPE_SIZE_T
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										32
									
								
								mail-filter/libsrs_alt/files/libsrs_alt-1.0-link-fix.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								mail-filter/libsrs_alt/files/libsrs_alt-1.0-link-fix.patch
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,32 @@
 | 
			
		|||
From 5fe95ee063c1f29037cdaacd2d96aea4759b57c1 Mon Sep 17 00:00:00 2001
 | 
			
		||||
From: orbea <orbea@riseup.net>
 | 
			
		||||
Date: Sat, 27 Mar 2021 08:28:11 -0700
 | 
			
		||||
Subject: [PATCH] build: Correctly use .la files and LDADD.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 Makefile.am | 6 ++----
 | 
			
		||||
 1 file changed, 2 insertions(+), 4 deletions(-)
 | 
			
		||||
 | 
			
		||||
diff --git a/Makefile.am b/Makefile.am
 | 
			
		||||
index 46de31a..5bdf9d3 100644
 | 
			
		||||
--- a/Makefile.am
 | 
			
		||||
+++ b/Makefile.am
 | 
			
		||||
@@ -1,13 +1,11 @@
 | 
			
		||||
 SUBDIRS = lib src .
 | 
			
		||||
 EXTRA_DIST = MTAs
 | 
			
		||||
 
 | 
			
		||||
-LDADD = lib/libcompat.a
 | 
			
		||||
-
 | 
			
		||||
 bin_PROGRAMS = srs
 | 
			
		||||
 noinst_PROGRAMS = test
 | 
			
		||||
 
 | 
			
		||||
 test_SOURCES = test.c
 | 
			
		||||
-test_LDFLAGS = src/.libs/libsrs_alt.a
 | 
			
		||||
+test_LDADD = lib/libcompat.la src/libsrs_alt.la
 | 
			
		||||
 
 | 
			
		||||
 srs_SOURCES = srs.c
 | 
			
		||||
-srs_LDFLAGS = src/.libs/libsrs_alt.a
 | 
			
		||||
+srs_LDADD = lib/libcompat.la src/libsrs_alt.la
 | 
			
		||||
-- 
 | 
			
		||||
2.26.3
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										54
									
								
								mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,54 @@
 | 
			
		|||
# Copyright 1999-2021 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="https://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 ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
 | 
			
		||||
IUSE="static-libs"
 | 
			
		||||
 | 
			
		||||
RDEPEND="!dev-perl/Mail-SRS"
 | 
			
		||||
 | 
			
		||||
src_prepare() {
 | 
			
		||||
	eapply "${FILESDIR}"/${P}-ftime.patch
 | 
			
		||||
	eapply "${FILESDIR}"/${P}-link-fix.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
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										13
									
								
								mail-filter/libsrs_alt/metadata.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								mail-filter/libsrs_alt/metadata.xml
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 | 
			
		||||
<pkgmetadata>
 | 
			
		||||
	<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>
 | 
			
		||||
		Loading…
	
		Reference in a new issue