summaryrefslogtreecommitdiff
path: root/security/openssh
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2004-05-21 22:54:43 +0000
committerreed <reed@pkgsrc.org>2004-05-21 22:54:43 +0000
commitec087dd4e3053a9f9f87580fca6fba1cfbd42590 (patch)
tree2eedec2d1be2fdde5f9290f59eacebac2ef9c104 /security/openssh
parent3423492e81bebfb689fe4bad214f45a8822578e2 (diff)
downloadpkgsrc-ec087dd4e3053a9f9f87580fca6fba1cfbd42590.tar.gz
The makefile had a comment saying PAM authentication causes memory
faults, and haven't tracked down why yet. No allow PAM authentication if Linux (and USE_PAM is defined). This will close my 20846 PR from March 2003. Also, install the contrib/sshd.pam.generic file as the example sshd.pam instead of the FreeBSD version, but this okay since it was commented out in the first place. TODO: test the PAM support on other platforms and allow if USE_PAM is defined.
Diffstat (limited to 'security/openssh')
-rw-r--r--security/openssh/Makefile25
1 files changed, 12 insertions, 13 deletions
diff --git a/security/openssh/Makefile b/security/openssh/Makefile
index bf8ac234fb6..ab1bea3b4f6 100644
--- a/security/openssh/Makefile
+++ b/security/openssh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.137 2004/05/10 18:12:23 wiz Exp $
+# $NetBSD: Makefile,v 1.138 2004/05/21 22:54:43 reed Exp $
DISTNAME= openssh-3.8.1p1
PKGNAME= openssh-3.8.1.1
@@ -57,15 +57,14 @@ CONFIGURE_ARGS+= --with-tcp-wrappers=${BUILDLINK_PREFIX.tcp_wrappers}
CONFIGURE_ARGS+= --with-privsep-path=${OPENSSH_CHROOT}
CONFIGURE_ARGS+= --with-privsep-user=${OPENSSH_USER}
-# XXX: PAM authentication causes memory faults, and I haven't tracked down
-# XXX: why yet. For the moment, disable PAM authentication.
-#
-#.if defined(USE_PAM)
-#.include "../../security/PAM/buildlink3.mk"
-#CONFIGURE_ARGS+= --with-pam
-#PLIST_SRC+= ${.CURDIR}/PLIST.pam
-#MESSAGE_SRC+= ${.CURDIR}/MESSAGE.pam
-#.endif
+# XXX: PAM authentication causes memory faults, and haven't tracked down
+# XXX: why yet. For the moment, disable PAM authentication for non-Linux.
+.if defined(USE_PAM) && ${OPSYS} == "Linux"
+.include "../../security/PAM/buildlink3.mk"
+CONFIGURE_ARGS+= --with-pam
+PLIST_SRC+= ${.CURDIR}/PLIST.pam
+MESSAGE_SRC+= ${.CURDIR}/MESSAGE.pam
+.endif
# the openssh configure script finds and uses ${LD} if defined and
# defaults to ${CC} if not. we override LD here, since running the
@@ -149,8 +148,8 @@ post-install:
cd ${WRKSRC}; for file in ${CONFS} ${SUPPS}; do \
${INSTALL_DATA} $${file}.out ${EGDIR}/$${file}; \
done
-#.if defined(USE_PAM)
-# ${INSTALL_DATA} ${WRKSRC}/contrib/sshd.pam.freebsd ${EGDIR}/sshd.pam
-#.endif
+.if defined(USE_PAM) && ${OPSYS} == "Linux"
+ ${INSTALL_DATA} ${WRKSRC}/contrib/sshd.pam.generic ${EGDIR}/sshd.pam
+.endif
.include "../../mk/bsd.pkg.mk"