From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-misc/openvpn-auth-ldap/Manifest | 7 +++ .../files/2.0.4_pre20131110-gentoo.patch | 47 +++++++++++++++++++ .../files/2.0.4_pre20131110-objc.patch | 33 ++++++++++++++ net-misc/openvpn-auth-ldap/metadata.xml | 12 +++++ .../openvpn-auth-ldap-2.0.4_pre20131110.ebuild | 52 ++++++++++++++++++++++ 5 files changed, 151 insertions(+) create mode 100644 net-misc/openvpn-auth-ldap/Manifest create mode 100644 net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-gentoo.patch create mode 100644 net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-objc.patch create mode 100644 net-misc/openvpn-auth-ldap/metadata.xml create mode 100644 net-misc/openvpn-auth-ldap/openvpn-auth-ldap-2.0.4_pre20131110.ebuild (limited to 'net-misc/openvpn-auth-ldap') diff --git a/net-misc/openvpn-auth-ldap/Manifest b/net-misc/openvpn-auth-ldap/Manifest new file mode 100644 index 000000000000..b930969b9bee --- /dev/null +++ b/net-misc/openvpn-auth-ldap/Manifest @@ -0,0 +1,7 @@ +AUX 2.0.4_pre20131110-gentoo.patch 1331 SHA256 92a2a3e87359c4a91a08122be966fdc6f69c72af19400e7efeb72b4c7ded61a6 SHA512 6c99d64749bd2488aa4fe40cfdc0b1eb0e4344f1e0b69db1c27d6e7406331a0f7d5eee8c26396ece6c916a502ec004bf3ddd0c96528b61cce414ab3b3062e868 WHIRLPOOL 1d4ee2ea27fe415628800b9d8a817e60c3ec9a2748283ec8ecc40400ac99afe1824b015cd53c8fdc55b51cd26b8471a48102c526f2c5ae322f0fe7755285bd2b +AUX 2.0.4_pre20131110-objc.patch 1086 SHA256 c2caa2b9ebc0a4df341043533388cdaa59cf7605000d751a60551154cd8c55b9 SHA512 326fd86ca5361d0603f2b3c01be1a3ac184d2bfbde8dc08aedb006d04efecf68444bcec31af106d108c3b6ae6737b4e335216a736deff495829e3a16138a979d WHIRLPOOL fd33728a7692ccf2f7de1aa3a6185eb9a1bd15163ebbe8edb1fcb7c181a06824fae9ead9c0020583dddf670e3f03a0759e70c426ed00d36091e0441f4e89a417 +DIST openvpn-auth-ldap-2.0.4_pre20131110.tar.bz2 170168 SHA256 4631b2a3cf344d188882f4ff9b87d5e27b21b7e24d094a6c5660a81132772dc2 SHA512 116422d9f1bee8f04f848438d4486acef262bc7a34e17c23a6b341b866c2361875092e40c1ac0e29458bca3a098cf6f00b94372d809e657819555badc7acab6c WHIRLPOOL f0aba5f972a02366cfc07c0a25e5104b78dcbbb1c7156b0e6d9d8ddb93b98e2c1734fbae5c187a169dc6ebe727d999e32836d7093df994145a6b878282882294 +EBUILD openvpn-auth-ldap-2.0.4_pre20131110.ebuild 978 SHA256 32dbeb95c6ef9b494238722a460fe08e08829a3c1c3e8b63ac637ff88ac928a9 SHA512 55fc8bc8a10cdc48056f2bf475e554e4dc9ca6cd2f06482dd21f719659f3c1d51aee55b43347f120923045fc77bae27d12aa770bd333a57fddb8df857654cc3f WHIRLPOOL 4326686a3ebdef9e087b2651322e410da3a339bdd14edc411e797e58825950b0d9debf11606847f6bab52810db91ab5b1b655c0e9f03888d73435c78303e640f +MISC ChangeLog 2691 SHA256 2743541779431a23feb8f14e6d04b4a0da32d4841a05fe58408ef8e5560edca0 SHA512 f181065b4e893f2512e84761c0917ed25c9d2a563b6638f787a1ec86155f2517375e50be76f0441e264148ed6358187e5979cb6580a5b65b543c1c59f0d26ac7 WHIRLPOOL df547d35bec648888b734ab521aeed50fa984c2638b1a61f876251769fb5494994f2e6e28e03e65795e9b59a3b42d4ba22b9bb30854b7aba59f0667cff9a8070 +MISC ChangeLog-2015 557 SHA256 ec6d5e3788ebac2f1887002a4353cc3a6d9aae1ce86d2dfcd524d2f90f39738c SHA512 36f8166b6039b23cc518a20e53cd7a418d7fbb63894bba3a08e6978edb89fd2ebf8162691b703b89aa9452400849bc82fdea48b0a323f6f85d90ede7322f191e WHIRLPOOL 461b1d46323819055236084413ea1825f54be3988ff6c4070d1441cee001c56f4c8fb3a9e1ce2547c7fec2e1e1f11aba8334546c233891937773acda7360b70c +MISC metadata.xml 409 SHA256 a2f2a412255d127a9ef50b3c2b2d6122148d3b20596460928ca32e42f18623b2 SHA512 14eb1fce6d7f330a873e42f70e3fde9b54aabcd6c3f139be9feebfc6bf23d48a9ca7595998750a22632a0e54a55850b320ddfd57e786fed182d4c1c3884cc0da WHIRLPOOL c7c2ff722a1f1ecc01243fc931106e2df5e392a0ae99d5f5e65b8f8b5fc438309de34d11c4d2ebd0d8d7ba966aac2711725d6ab76bb9c34869079727f407ed64 diff --git a/net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-gentoo.patch b/net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-gentoo.patch new file mode 100644 index 000000000000..dbebe69ea41a --- /dev/null +++ b/net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-gentoo.patch @@ -0,0 +1,47 @@ + Mk/autoconf.mk.in | 4 ++-- + src/Makefile.in | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/Mk/autoconf.mk.in b/Mk/autoconf.mk.in +index fdbbbfc..db04c70 100644 +--- a/Mk/autoconf.mk.in ++++ b/Mk/autoconf.mk.in +@@ -13,7 +13,7 @@ OBJC_PTHREAD_LIBS = @OBJC_PTHREAD_LIBS@ + OBJC_PTHREAD_CFLAGS = @OBJC_PTHREAD_CFLAGS@ + + PLUGIN_LD = @PLUGIN_LD@ +-PLUGIN_LD_FLAGS = @PLUGIN_LD_FLAGS@ ++PLUGIN_LD_FLAGS = @PLUGIN_LD_FLAGS@ $(LDFLAGS) + PLUGIN_CFLAGS = @PLUGIN_CFLAGS@ + PLUGIN_SUFFIX = @PLUGIN_SUFFIX@ + PLUGIN_FILE = @PLUGIN_FILE@ +@@ -33,7 +33,7 @@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ + + OPENVPN_CFLAGS = @OPENVPN_CFLAGS@ + +-LDFLAGS = @LDFLAGS@ ++LDFLAGS += @LDFLAGS@ + + AR = @AR@ + RANLIB = @RANLIB@ +diff --git a/src/Makefile.in b/src/Makefile.in +index b0eac7b..47c467b 100755 +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -42,14 +42,14 @@ GEN_SRCS= TRConfigParser.m \ + + TEST_OBJS= testplugin.o + +-CFLAGS+= $(LDAP_CFLAGS) $(OPENVPN_CFLAGS) ++CFLAGS+= $(LDAP_CFLAGS) $(OPENVPN_CFLAGS) -fPIC + OBJCFLAGS+= $(LDAP_CFLAGS) $(OPENVPN_CFLAGS) + LIBS+= -L. -lauth-ldap \ + $(LDAP_LIBS) \ + $(OBJC_LIBS) \ + $(FLEX_LIBS) + +-INSTALL_LIB= $(INSTALL) -m 755 ++INSTALL_LIB= $(INSTALL) -m 755 -D + PLUGIN_INSTALL_DIR= $(DESTDIR)$(libdir) + + all:: $(PLUGIN_FILE) $(AUTH_LIB) testplugin diff --git a/net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-objc.patch b/net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-objc.patch new file mode 100644 index 000000000000..0ddcb98167f4 --- /dev/null +++ b/net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-objc.patch @@ -0,0 +1,33 @@ +diff --git a/auth-ldap-2.0.4_pre20131110/aclocal.m4 b/auth-ldap-2.0.4_pre20131110/aclocal.m4 +index e509555..3b73520 100644 +--- a/auth-ldap-2.0.4_pre20131110/aclocal.m4 ++++ b/auth-ldap-2.0.4_pre20131110/aclocal.m4 +@@ -130,7 +130,6 @@ AC_DEFUN([OD_OBJC_RUNTIME],[ + AC_LINK_IFELSE([ + AC_LANG_PROGRAM([ + #include +- #include + ], [ + id class = objc_lookUpClass("Object"); + id obj = @<:@class alloc@:>@; +@@ -157,7 +156,6 @@ AC_DEFUN([OD_OBJC_RUNTIME],[ + AC_LINK_IFELSE([ + AC_LANG_PROGRAM([ + #include +- #include + ], [ + id class = objc_lookup_class("Object"); + id obj = @<:@class alloc@:>@; +diff --git a/auth-ldap-2.0.4_pre20131110/src/TRString.h b/auth-ldap-2.0.4_pre20131110/src/TRString.h +index 6755c63..77d139b 100644 +--- a/auth-ldap-2.0.4_pre20131110/src/TRString.h ++++ b/auth-ldap-2.0.4_pre20131110/src/TRString.h +@@ -35,7 +35,7 @@ + #endif + + #import +- ++#include + #import "TRObject.h" + + @interface TRString : TRObject { diff --git a/net-misc/openvpn-auth-ldap/metadata.xml b/net-misc/openvpn-auth-ldap/metadata.xml new file mode 100644 index 000000000000..e1e2d9a19494 --- /dev/null +++ b/net-misc/openvpn-auth-ldap/metadata.xml @@ -0,0 +1,12 @@ + + + + + ercpe@gentoo.org + Johann Schmitz (ercpe) + + + openvpn-auth-ldap + threerings/openvpn-auth-ldap + + diff --git a/net-misc/openvpn-auth-ldap/openvpn-auth-ldap-2.0.4_pre20131110.ebuild b/net-misc/openvpn-auth-ldap/openvpn-auth-ldap-2.0.4_pre20131110.ebuild new file mode 100644 index 000000000000..1e77248d32e5 --- /dev/null +++ b/net-misc/openvpn-auth-ldap/openvpn-auth-ldap-2.0.4_pre20131110.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils autotools flag-o-matic + +DESCRIPTION="LDAP authentication and authorization plugin for OpenVPN 2.x" +HOMEPAGE="https://github.com/threerings/openvpn-auth-ldap" +SRC_URI="https://dev.gentoo.org/~ercpe/distfiles/${CATEGORY}/${PN}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +RDEPEND="net-vpn/openvpn + net-nds/openldap" +DEPEND="dev-util/re2c + sys-devel/gcc[objc] + ${RDEPEND}" + +S="${WORKDIR}/${P}" + +src_prepare() { + sed \ + -e '/test/d' \ + -i Makefile.in || die + epatch \ + "${FILESDIR}"/${PV}-objc.patch \ + "${FILESDIR}"/${PV}-gentoo.patch + eautoreconf +} + +src_configure() { + econf \ + --with-openvpn="${EPREFIX}/usr/include" \ + --with-openldap="${EPREFIX}/usr/include" \ + --with-objc-runtime=GNU +} + +src_compile() { + emake -C tools + emake -C src TRConfigParser.h + default +} + +src_install() { + default + dodoc auth-ldap.conf +} -- cgit v1.2.3