summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-misc/openvpn-auth-ldap
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-misc/openvpn-auth-ldap')
-rw-r--r--net-misc/openvpn-auth-ldap/Manifest1
-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, 145 insertions, 0 deletions
diff --git a/net-misc/openvpn-auth-ldap/Manifest b/net-misc/openvpn-auth-ldap/Manifest
new file mode 100644
index 000000000000..3dde1de73488
--- /dev/null
+++ b/net-misc/openvpn-auth-ldap/Manifest
@@ -0,0 +1 @@
+DIST openvpn-auth-ldap-2.0.4_pre20131110.tar.bz2 170168 SHA256 4631b2a3cf344d188882f4ff9b87d5e27b21b7e24d094a6c5660a81132772dc2 SHA512 116422d9f1bee8f04f848438d4486acef262bc7a34e17c23a6b341b866c2361875092e40c1ac0e29458bca3a098cf6f00b94372d809e657819555badc7acab6c WHIRLPOOL f0aba5f972a02366cfc07c0a25e5104b78dcbbb1c7156b0e6d9d8ddb93b98e2c1734fbae5c187a169dc6ebe727d999e32836d7093df994145a6b878282882294
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..bcf6d90f8def
--- /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
+# $Id$
+
+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
+}