svn commit: r376369 - in head/security/openvpn-auth-ldap: . files

Matthias Andree mandree at FreeBSD.org
Mon Jan 5 23:03:43 UTC 2015


Author: mandree
Date: Mon Jan  5 23:03:40 2015
New Revision: 376369
URL: https://svnweb.freebsd.org/changeset/ports/376369
QAT: https://qat.redports.org/buildarchive/r376369/

Log:
  Update to upstream SVN revision 1379 and refresh patches.
  
  Needs real-world testing, so is still marked BROKEN.
  If there are positive test results from reporter or third parties,
  the BROKEN can be removed.
  
  PR:		190497

Added:
  head/security/openvpn-auth-ldap/files/patch-src_TRLocalPacketFilter.m   (contents, props changed)
  head/security/openvpn-auth-ldap/files/patch-src_TRString.h   (contents, props changed)
  head/security/openvpn-auth-ldap/files/patch-tests_Makefile.in   (contents, props changed)
Deleted:
  head/security/openvpn-auth-ldap/files/patch-tests__Makefile.in
Modified:
  head/security/openvpn-auth-ldap/Makefile
  head/security/openvpn-auth-ldap/distinfo

Modified: head/security/openvpn-auth-ldap/Makefile
==============================================================================
--- head/security/openvpn-auth-ldap/Makefile	Mon Jan  5 23:00:05 2015	(r376368)
+++ head/security/openvpn-auth-ldap/Makefile	Mon Jan  5 23:03:40 2015	(r376369)
@@ -2,38 +2,40 @@
 # $FreeBSD$
 
 PORTNAME=	openvpn-auth-ldap
-PORTVERSION=	2.0.3
-PORTREVISION=	9
+PORTVERSION=	2.0.4.0.s1379
 CATEGORIES=	security
-MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
+#MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
+MASTER_SITES=	LOCAL/mandree
 DISTNAME=	auth-ldap-${PORTVERSION}
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	LDAP authentication plugin for OpenVPN
 
-# Older GCC used to provide +alloc and other methods on the Object
-# class, newer GCC/libobjc version no longer to that.  The software
-# needs to learn to use the new Objective C world order:
-BROKEN=		Needs to be ported to a new Object base-class with +alloc.
-
-USES=		objc
+LICENSE=	BSD3CLAUSE
 
 BUILD_DEPENDS=	re2c:${PORTSDIR}/devel/re2c \
-		${NONEXISTENT}:${PORTSDIR}/security/openvpn:extract
+		${NONEXISTENT}:${PORTSDIR}/security/openvpn:extract \
+		libcheck>=0:${PORTSDIR}/devel/libcheck
+
+BROKEN=		Untested SVN-based port, report success on https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190497
+
+USES=		objc tar:xz
 
 GNU_CONFIGURE=	yes
+USE_AUTOTOOLS=	autoconf autoheader
 USE_OPENLDAP=	yes
 OPENVPN_WRKSRC=	`cd ${PORTSDIR}/security/openvpn; make -V WRKSRC`
 CONFIGURE_ARGS+=	--with-openldap=${LOCALBASE} \
 			--with-openvpn=${OPENVPN_WRKSRC}/include \
 			--with-objc-runtime=GNU
 # this issue would cause run-time trouble, so turn it into an error:
-OBJCFLAGS+=	-Werror=objc-method-access
+#OBJCFLAGS+=	-Werror=objc-method-access
 
 PORTDOCS=	README
 PORTEXAMPLES=	auth-ldap.conf
 PLIST_FILES=	lib/openvpn-auth-ldap.so
-OBJCFLAGS+=	-L/usr/local/lib
+OBJCFLAGS+=	-L${LOCALBASE}/lib -I${LOCALBASE}/include -fPIC
+CFLAGS+=	-fPIC
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 .include <bsd.port.options.mk>
@@ -41,7 +43,7 @@ OPTIONS_DEFINE=	DOCS EXAMPLES
 CONFIGURE_ENV+=	OBJC="${CC}"
 
 post-patch:
-	${REINPLACE_CMD} 's|-export-dynamic|-Wl,-export-dynamic|' ${WRKSRC}/configure
+	${REINPLACE_CMD} 's|-export-dynamic|-Wl,-export-dynamic|' ${WRKSRC}/configure.ac
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/openvpn-auth-ldap.so
@@ -55,5 +57,20 @@ post-install:
 .endif
 
 .include <bsd.port.pre.mk>
+
 CC+=		${DEBUG_FLAGS}
+
+# this is a local target to build a tarball from SVN
+# and another target to upload it
+build-tarball: ${DISTFILES}
+${DISTFILES}:
+	${RM} -rf ${WRKSRC}
+	svn export -r${PORTVERSION:E:C/^s//} \
+	    http://openvpn-auth-ldap.googlecode.com/svn/trunk/ ${WRKSRC}
+	tar -C ${WRKSRC}/.. -cvf - ${WRKSRC:T} | ${XZ_CMD} -vvc >${DISTFILES} || \
+	    { ${RM} -f ${DISTFILES} ; exit 1 ; }
+
+upload-tarball: build-tarball
+	scp ${DISTFILES} freefall.freebsd.org:public_distfiles/
+
 .include <bsd.port.post.mk>

Modified: head/security/openvpn-auth-ldap/distinfo
==============================================================================
--- head/security/openvpn-auth-ldap/distinfo	Mon Jan  5 23:00:05 2015	(r376368)
+++ head/security/openvpn-auth-ldap/distinfo	Mon Jan  5 23:03:40 2015	(r376369)
@@ -1,2 +1,2 @@
-SHA256 (auth-ldap-2.0.3.tar.gz) = 2b258610b0f3fe9ce097b0e88b4c78e402e5f3f814b7d327392ba72574d1b63a
-SIZE (auth-ldap-2.0.3.tar.gz) = 261832
+SHA256 (auth-ldap-2.0.4.0.s1379.tar.xz) = 8d35eb540482d8d2bf36d0d310241b69633691f28477867ecee28c76912476cc
+SIZE (auth-ldap-2.0.4.0.s1379.tar.xz) = 163724

Added: head/security/openvpn-auth-ldap/files/patch-src_TRLocalPacketFilter.m
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvpn-auth-ldap/files/patch-src_TRLocalPacketFilter.m	Mon Jan  5 23:03:40 2015	(r376369)
@@ -0,0 +1,10 @@
+--- src/TRLocalPacketFilter.m.orig	2012-03-03 19:17:45 UTC
++++ src/TRLocalPacketFilter.m
+@@ -43,6 +43,7 @@
+ #import <errno.h>
+ #import <assert.h>
+ 
++#import "TRLog.h"
+ 
+ /* Private Methods */
+ 

Added: head/security/openvpn-auth-ldap/files/patch-src_TRString.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvpn-auth-ldap/files/patch-src_TRString.h	Mon Jan  5 23:03:40 2015	(r376369)
@@ -0,0 +1,10 @@
+--- src/TRString.h.orig	2012-08-15 13:55:46 UTC
++++ src/TRString.h
+@@ -34,6 +34,7 @@
+ #import <config.h>
+ #endif
+ 
++#import <stdarg.h>
+ #import <stdlib.h>
+ 
+ #import "TRObject.h"

Added: head/security/openvpn-auth-ldap/files/patch-tests_Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvpn-auth-ldap/files/patch-tests_Makefile.in	Mon Jan  5 23:03:40 2015	(r376369)
@@ -0,0 +1,11 @@
+--- tests/Makefile.in.orig	2012-03-04 04:55:05 UTC
++++ tests/Makefile.in
+@@ -35,7 +35,7 @@ TEST_OBJS=	tests.o \
+ CFLAGS+=	-DTEST_DATA=\"${srcdir}/data\"
+ OBJCFLAGS+=	-DTEST_DATA=\"${srcdir}/data\"
+ 
+-LIBS+=		-L${top_builddir}/src -lauth-ldap \
++LIBS+=		-L${top_builddir}/src -lauth-ldap -lcheck \
+ 		$(OBJC_LIBS) $(LDAP_LIBS)
+ 
+ LDFLAGS+=	 $(LIBS)


More information about the svn-ports-all mailing list