pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/openvpn Add a pam option for the PAM plugin



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8848d8cc4ff7
branches:  trunk
changeset: 400943:8848d8cc4ff7
user:      manu <manu%pkgsrc.org@localhost>
date:      Fri Oct 30 19:06:06 2009 +0000

description:
Add a pam option for the PAM plugin

diffstat:

 net/openvpn/Makefile   |   5 +++--
 net/openvpn/PLIST      |   3 ++-
 net/openvpn/options.mk |  22 ++++++++++++++++++++--
 3 files changed, 25 insertions(+), 5 deletions(-)

diffs (72 lines):

diff -r 181c2ce7fba1 -r 8848d8cc4ff7 net/openvpn/Makefile
--- a/net/openvpn/Makefile      Fri Oct 30 18:48:54 2009 +0000
+++ b/net/openvpn/Makefile      Fri Oct 30 19:06:06 2009 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.31 2009/10/11 17:32:00 jmmv Exp $
+# $NetBSD: Makefile,v 1.32 2009/10/30 19:06:06 manu Exp $
 #
 
 DISTNAME=      openvpn-2.1_rc20
 PKGNAME=       ${DISTNAME:S/_//}
+PKGREVISION=   3
 CATEGORIES=    net
 MASTER_SITES=  http://openvpn.net/release/ \
                http://openvpn.net/release/old/
@@ -61,7 +62,7 @@
 SUBST_SED.pkitool=     -e "s|\\(GREP\\)=.*|\\1=\""${GREP:Q}"\"|"
 SUBST_SED.pkitool+=  -e "s|\\(OPENSSL\\)=.*|\\1=\""${SSLBASE:Q}/bin/openssl"\"|"
 
-post-install:
+post-install: post-install-pam
        cd ${WRKSRC:Q}/easy-rsa/2.0; for file in [a-zR]*; do            \
                case $$file in                                          \
                *.orig) ;;                                              \
diff -r 181c2ce7fba1 -r 8848d8cc4ff7 net/openvpn/PLIST
--- a/net/openvpn/PLIST Fri Oct 30 18:48:54 2009 +0000
+++ b/net/openvpn/PLIST Fri Oct 30 19:06:06 2009 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2009/06/14 18:09:38 joerg Exp $
+@comment $NetBSD: PLIST,v 1.9 2009/10/30 19:06:06 manu Exp $
 man/man8/openvpn.8
 sbin/openvpn
 share/examples/openvpn/config/README
@@ -55,3 +55,4 @@
 share/openvpn/easy-rsa/sign-req
 share/openvpn/easy-rsa/vars
 share/openvpn/easy-rsa/whichopensslcnf
+${PLIST.pam}lib/openvpn/openvpn-auth-pam.so
diff -r 181c2ce7fba1 -r 8848d8cc4ff7 net/openvpn/options.mk
--- a/net/openvpn/options.mk    Fri Oct 30 18:48:54 2009 +0000
+++ b/net/openvpn/options.mk    Fri Oct 30 19:06:06 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.1 2009/09/21 12:33:31 spz Exp $
+# $NetBSD: options.mk,v 1.2 2009/10/30 19:06:06 manu Exp $
 
 PKG_OPTIONS_VAR=        PKG_OPTIONS.openvpn
-PKG_SUPPORTED_OPTIONS=  pkcs11
+PKG_SUPPORTED_OPTIONS=  pkcs11 pam
 PKG_SUGGESTED_OPTIONS=
 
 .include "../../mk/bsd.options.mk"
@@ -14,3 +14,21 @@
 # it would pick it up halfways when installed, and fail building
 CONFIGURE_ARGS+= --disable-pkcs11
 .endif
+
+PLIST_VARS+=   pam
+.if !empty(PKG_OPTIONS:Mpam)
+USE_TOOLS+=    gmake
+BUILD_DIRS+=   plugin/auth-pam
+BUILD_TARGET=  
+INSTALL_DIRS=  ${WRKSRC}
+INSTALL_TARGET=        install
+PLIST.pam=     yes
+post-install-pam:
+       ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib/openvpn &&   \
+       cd ${WRKSRC:Q}/plugin/auth-pam &&                       \
+       ${INSTALL_LIB} openvpn-auth-pam.so                      \
+                      ${DESTDIR}${PREFIX}/lib/openvpn || true
+.include "../../mk/pam.buildlink3.mk"
+.else
+post-install-pam:
+.endif



Home | Main Index | Thread Index | Old Index