pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/lsh Support checking passwords using either K...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0863de06cf93
branches:  trunk
changeset: 514702:0863de06cf93
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Jun 16 18:43:18 2006 +0000

description:
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:

 security/lsh/Makefile   |   8 ++++++--
 security/lsh/PLIST      |   4 +++-
 security/lsh/options.mk |  30 ++++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+), 3 deletions(-)

diffs (77 lines):

diff -r bd4f27e1dc64 -r 0863de06cf93 security/lsh/Makefile
--- a/security/lsh/Makefile     Fri Jun 16 17:48:47 2006 +0000
+++ b/security/lsh/Makefile     Fri Jun 16 18:43:18 2006 +0000
@@ -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 @@
 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 -r bd4f27e1dc64 -r 0863de06cf93 security/lsh/PLIST
--- a/security/lsh/PLIST        Fri Jun 16 17:48:47 2006 +0000
+++ b/security/lsh/PLIST        Fri Jun 16 18:43:18 2006 +0000
@@ -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/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 -r bd4f27e1dc64 -r 0863de06cf93 security/lsh/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lsh/options.mk   Fri Jun 16 18:43:18 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index