diff options
author | manu <manu@pkgsrc.org> | 2009-10-30 19:06:06 +0000 |
---|---|---|
committer | manu <manu@pkgsrc.org> | 2009-10-30 19:06:06 +0000 |
commit | dd655bb959044a560ca40a173239f8e051674b26 (patch) | |
tree | b477ee5032ed61bcef2a027f87a89c76e14da6c5 /net/openvpn | |
parent | a370246d7ae44779d973e1dde171dd163186d135 (diff) | |
download | pkgsrc-dd655bb959044a560ca40a173239f8e051674b26.tar.gz |
Add a pam option for the PAM plugin
Diffstat (limited to 'net/openvpn')
-rw-r--r-- | net/openvpn/Makefile | 5 | ||||
-rw-r--r-- | net/openvpn/PLIST | 3 | ||||
-rw-r--r-- | net/openvpn/options.mk | 22 |
3 files changed, 25 insertions, 5 deletions
diff --git a/net/openvpn/Makefile b/net/openvpn/Makefile index ee9ea80199e..1322cc23195 100644 --- a/net/openvpn/Makefile +++ b/net/openvpn/Makefile @@ -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_FILES.pkitool= easy-rsa/2.0/pkitool 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 --git a/net/openvpn/PLIST b/net/openvpn/PLIST index eba9d83b435..b6351ad2737 100644 --- a/net/openvpn/PLIST +++ b/net/openvpn/PLIST @@ -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/revoke-full 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 --git a/net/openvpn/options.mk b/net/openvpn/options.mk index 2fe596bc77a..6145c8b8306 100644 --- a/net/openvpn/options.mk +++ b/net/openvpn/options.mk @@ -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 @@ PKG_SUGGESTED_OPTIONS= # 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 |