summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-06-16 18:43:18 +0000
committerjlam <jlam@pkgsrc.org>2006-06-16 18:43:18 +0000
commit7d619eb1fefabec0531543b2063a9296a0a3d8c5 (patch)
treee34b6a8774fc000b1eccaab41929d315af9909f8 /security
parent046cb76e13422c730c4fa398b25c133e00177dfc (diff)
downloadpkgsrc-7d619eb1fefabec0531543b2063a9296a0a3d8c5.tar.gz
Support checking passwords using either Kerberos or PAM via PKG_OPTIONS.
This fixes the PLIST on systems that have PAM natively. Bump the PKGREVISION to 5.
Diffstat (limited to 'security')
-rw-r--r--security/lsh/Makefile8
-rw-r--r--security/lsh/PLIST4
-rw-r--r--security/lsh/options.mk30
3 files changed, 39 insertions, 3 deletions
diff --git a/security/lsh/Makefile b/security/lsh/Makefile
index fa883990e74..12e9ce3f3c5 100644
--- a/security/lsh/Makefile
+++ b/security/lsh/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2006/04/05 23:59:33 salo Exp $
+# $NetBSD: Makefile,v 1.14 2006/06/16 18:43:18 jlam Exp $
#
DISTNAME= lsh-1.4.3
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= security
MASTER_SITES= ftp://ftp.lysator.liu.se/pub/security/lsh/
@@ -13,6 +13,10 @@ COMMENT= SSH2 client/server (version 1 of lsh)
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
+.include "options.mk"
+
.include "../../devel/gmp/buildlink3.mk"
.include "../../devel/liboop/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+
.include "../../mk/bsd.pkg.mk"
diff --git a/security/lsh/PLIST b/security/lsh/PLIST
index bf394402516..0a8056dbeb4 100644
--- a/security/lsh/PLIST
+++ b/security/lsh/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2005/04/30 12:23:42 drochner Exp $
+@comment $NetBSD: PLIST,v 1.4 2006/06/16 18:43:18 jlam Exp $
bin/lsftp
bin/lsh
bin/lsh-authorize
@@ -43,6 +43,8 @@ man/man5/SPKI.5
man/man5/secsh.5
man/man8/lshd.8
sbin/lsh-execuv
+${KERBEROS}sbin/lsh-krb-checkpw
+${PAM}sbin/lsh-pam-checkpw
sbin/lsh_proxy
sbin/lshd
sbin/sftp-server
diff --git a/security/lsh/options.mk b/security/lsh/options.mk
new file mode 100644
index 00000000000..61f27a40d93
--- /dev/null
+++ b/security/lsh/options.mk
@@ -0,0 +1,30 @@
+# $NetBSD: options.mk,v 1.1 2006/06/16 18:43:18 jlam Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.lsh
+PKG_SUPPORTED_OPTIONS= kerberos pam
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Kerberos password-checking support
+###
+.if !empty(PKG_OPTIONS:Mkerberos)
+. include "../../mk/krb5.buildlink3.mk"
+CONFIGURE_ARGS+= --enable-kerberos
+PLIST_SUBST+= KERBEROS=
+.else
+CONFIGURE_ARGS+= --disable-kerberos
+PLIST_SUBST+= KERBEROS="@comment "
+.endif
+
+###
+### PAM password-checking support
+###
+.if !empty(PKG_OPTIONS:Mpam)
+. include "../../mk/pam.buildlink3.mk"
+CONFIGURE_ARGS+= --enable-pam
+PLIST_SUBST+= PAM=
+.else
+CONFIGURE_ARGS+= --disable-pam
+PLIST_SUBST+= PAM="@comment "
+.endif