summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann Schmitz <ercpe@gentoo.org>2013-11-12 17:42:23 +0000
committerJohann Schmitz <ercpe@gentoo.org>2013-11-12 17:42:23 +0000
commitedb78d1c8ebc240738074654f3b13f7549ae265c (patch)
tree41d00049ef43e695b1284d57d790492b27f29e33 /net-misc/openvpn-auth-ldap
parentdocbook-xml-dtd: Add ~ppc-aix keyword. (diff)
downloadgentoo-2-edb78d1c8ebc240738074654f3b13f7549ae265c.tar.gz
gentoo-2-edb78d1c8ebc240738074654f3b13f7549ae265c.tar.bz2
gentoo-2-edb78d1c8ebc240738074654f3b13f7549ae265c.zip
LDAP authentication plugin for OpenVPN. Big thanks to jlec for fixing the build system.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 77C501ED)
Diffstat (limited to 'net-misc/openvpn-auth-ldap')
-rw-r--r--net-misc/openvpn-auth-ldap/ChangeLog11
-rw-r--r--net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-gentoo.patch47
-rw-r--r--net-misc/openvpn-auth-ldap/files/2.0.4_pre20131110-objc.patch33
-rw-r--r--net-misc/openvpn-auth-ldap/metadata.xml11
-rw-r--r--net-misc/openvpn-auth-ldap/openvpn-auth-ldap-2.0.4_pre20131110.ebuild53
5 files changed, 155 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/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
+}