diff options
author | Johann Schmitz <ercpe@gentoo.org> | 2013-11-12 17:42:27 +0000 |
---|---|---|
committer | Johann Schmitz <ercpe@gentoo.org> | 2013-11-12 17:42:27 +0000 |
commit | 2af54adc05432290f05515fa2a2097ada42fd5a7 (patch) | |
tree | 118ff20b34293967eea1a9b56849525b45dcbb57 /net-misc/openvpn-auth-ldap | |
parent | docbook-xml-dtd: Add ~ppc-aix keyword. (diff) | |
download | historical-2af54adc05432290f05515fa2a2097ada42fd5a7.tar.gz historical-2af54adc05432290f05515fa2a2097ada42fd5a7.tar.bz2 historical-2af54adc05432290f05515fa2a2097ada42fd5a7.zip |
LDAP authentication plugin for OpenVPN. Big thanks to jlec for fixing the build system.
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0x77C501ED
Diffstat (limited to 'net-misc/openvpn-auth-ldap')
-rw-r--r-- | net-misc/openvpn-auth-ldap/ChangeLog | 11 | ||||
-rw-r--r-- | net-misc/openvpn-auth-ldap/Manifest | 20 | ||||
-rw-r--r-- | net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-gentoo.patch | 47 | ||||
-rw-r--r-- | net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-objc.patch | 33 | ||||
-rw-r--r-- | net-misc/openvpn-auth-ldap/metadata.xml | 11 | ||||
-rw-r--r-- | net-misc/openvpn-auth-ldap/openvpn-auth-ldap-2.0.4_pre20131110.ebuild | 53 |
6 files changed, 175 insertions, 0 deletions
diff --git a/net-misc/openvpn-auth-ldap/ChangeLog b/net-misc/openvpn-auth-ldap/ChangeLog new file mode 100644 index 000000000000..15ff75f8e11d --- /dev/null +++ b/net-misc/openvpn-auth-ldap/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-misc/openvpn-auth-ldap +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn-auth-ldap/ChangeLog,v 1.1 2013/11/12 17:42:23 ercpe Exp $ + +*openvpn-auth-ldap-2.0.4_pre20131110 (12 Nov 2013) + + 12 Nov 2013; Johann Schmitz <ercpe@gentoo.org> + +files/2.0.4_pre20131110-gentoo.patch, +files/2.0.4_pre20131110-objc.patch, + +metadata.xml, +openvpn-auth-ldap-2.0.4_pre20131110.ebuild: + LDAP authentication plugin for OpenVPN. Big thanks to jlec for fixing the + build system. diff --git a/net-misc/openvpn-auth-ldap/Manifest b/net-misc/openvpn-auth-ldap/Manifest new file mode 100644 index 000000000000..e8f3af27dcf7 --- /dev/null +++ b/net-misc/openvpn-auth-ldap/Manifest @@ -0,0 +1,20 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +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 1118 SHA256 b0295381a0710f9ac438d8a4778933f79ee84f4afc88363355544f62fa5c2f83 SHA512 bdde587188aa918cc3acf36053c11719a030f8d0150210861eb70e42b8d4ddfef7dc15522d13cfb1db8067a661f6f9e22729a3b8de095f3d53373678fa0a2223 WHIRLPOOL d1c0578d6296f065032c39c87301f41f235da5072d03180ba626fbeff8c8ddaee68a171ff3032f1fcb8908218985660c072a13c351752862d7bc84376d16e91a +MISC ChangeLog 557 SHA256 ec6d5e3788ebac2f1887002a4353cc3a6d9aae1ce86d2dfcd524d2f90f39738c SHA512 36f8166b6039b23cc518a20e53cd7a418d7fbb63894bba3a08e6978edb89fd2ebf8162691b703b89aa9452400849bc82fdea48b0a323f6f85d90ede7322f191e WHIRLPOOL 461b1d46323819055236084413ea1825f54be3988ff6c4070d1441cee001c56f4c8fb3a9e1ce2547c7fec2e1e1f11aba8334546c233891937773acda7360b70c +MISC metadata.xml 327 SHA256 9d8b5fdd813ae662c24bd8dc9bd5c5d9044091855bd3d1f5c304f3f8f7782ef4 SHA512 33eccf570c582fff733f441169dd98e86d6823861b2351446b741bf6cfae063ab56c813d7a6bdf14743a5d8946f74fd00cea21f18ac7cd63e3c292af6eaca477 WHIRLPOOL 65cbf59ac896bebe0b505e71ef3997afbea83e2d103c75ef1e7eeb37c6692059e774f6ae06a77db650f3155dbbffc5108d00e238b7f58e74cbd2a1d80451d4b1 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQEcBAEBCAAGBQJSgmiAAAoJEKCEBkJ3xQHtLv0IAJkbbaLrYBmvIRvF1MyEHwLX +XjN/g804pKUocWOIq9vaEDsYhja/T8fCIfoU0XSOZTHke2o0qlmLVLza9Iqnsjai +/6G6R6XVHKpb3I7r2FEUU8j7pTi212V8bsdRVR4ym59aADLxhJ3Xh3z3/4hRT+93 +z2O0rzx5mrhazz7p8Evd0AhSxrcthnpo/8nb3F7F3WKksjzvvre/qCkD6wcenBtZ +/qikzAAN1aLFG4I24eYOwBnRTerLKGTLfpAHpSmdn1N6LPTP5Q+Jwya2icHDWNTN +XXfBz3MSWCVtT9iOegh8Z5sA6Wm9BYLFHlDBlCAhjeeBmIJHj9dwuxDk4obm67g= +=HX4X +-----END PGP SIGNATURE----- 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 <objc/objc.h> +- #include <objc/objc-api.h> + ], [ + 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 <objc/objc.h> +- #include <objc/objc-api.h> + ], [ + 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 <stdlib.h> +- ++#include <stdarg.h> + #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..3e7867df9601 --- /dev/null +++ b/net-misc/openvpn-auth-ldap/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>ercpe@gentoo.org</email> + <name>Johann Schmitz (ercpe)</name> + </maintainer> + <upstream> + <remote-id type="google-code">openvpn-auth-ldap</remote-id> + </upstream> +</pkgmetadata> 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..315bea594b8e --- /dev/null +++ b/net-misc/openvpn-auth-ldap/openvpn-auth-ldap-2.0.4_pre20131110.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn-auth-ldap/openvpn-auth-ldap-2.0.4_pre20131110.ebuild,v 1.1 2013/11/12 17:42:23 ercpe Exp $ + +EAPI=5 + +inherit eutils autotools flag-o-matic + +DESCRIPTION="LDAP authentication and authorization plugin for OpenVPN 2.x" +HOMEPAGE="https://code.google.com/p/openvpn-auth-ldap/" +SRC_URI="http://dev.gentoo.org/~ercpe/distfiles/${CATEGORY}/${PN}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +RDEPEND="net-misc/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 +} |