summaryrefslogtreecommitdiff
path: root/security/openssh/Makefile
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-11-25 19:25:28 +0000
committerxtraeme <xtraeme>2004-11-25 19:25:28 +0000
commit44223c0de4f765fa40f85c6bfbb66a7110f01fbb (patch)
tree35e24add7cf2d8b2c401faeaf64f937e96453193 /security/openssh/Makefile
parent63021c7280e5dbe50992450bff17a315dc943343 (diff)
downloadpkgsrc-44223c0de4f765fa40f85c6bfbb66a7110f01fbb.tar.gz
Convert to use bsd.options.mk with the following options:
hpn-patch kerberos PAM (only Linux) The hpn-patch option uses the patch available in: http://www.psc.edu/networking/projects/hpn-ssh/ to enable high performance connections. Also use VARBASE intead of hardcoding /var. Bump PKGREVISION.
Diffstat (limited to 'security/openssh/Makefile')
-rw-r--r--security/openssh/Makefile25
1 files changed, 5 insertions, 20 deletions
diff --git a/security/openssh/Makefile b/security/openssh/Makefile
index c8773850982..1217dc9711f 100644
--- a/security/openssh/Makefile
+++ b/security/openssh/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.144 2004/10/24 02:52:15 grant Exp $
+# $NetBSD: Makefile,v 1.145 2004/11/25 19:25:28 xtraeme Exp $
DISTNAME= openssh-3.9p1
PKGNAME= openssh-3.9.1
-PKGREVISION= 2
+PKGREVISION= 3
SVR4_PKGNAME= ossh
CATEGORIES= security
MASTER_SITES= ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/ \
@@ -29,9 +29,8 @@ CRYPTO= yes
# retain the following line, for IPv6-ready pkgsrc webpage
BUILD_DEFS+= USE_INET6
-BUILD_DEFS+= KERBEROS
-.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
INSTALL_TARGET= install-nokeys
PLIST_SRC= # empty
@@ -40,7 +39,7 @@ MESSAGE_SRC= ${.CURDIR}/MESSAGE
PKG_USERS= ${OPENSSH_USER}:${OPENSSH_GROUP}:${OPENSSH_UID}:sshd\\ privsep:${OPENSSH_CHROOT}:${NOLOGIN}
PKG_GROUPS= ${OPENSSH_GROUP}:${OPENSSH_GID}
-SSH_PID_DIR= /var/run # default directory for PID files
+SSH_PID_DIR= ${VARBASE}/run # default directory for PID files
PKG_SYSCONFSUBDIR= ssh
MANDIR= man
@@ -59,15 +58,6 @@ 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 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
# linker directly results in undefined symbols for obvious reasons.
@@ -86,11 +76,6 @@ CONFIGURE_ARGS+= --with-skey=${BUILDLINK_PREFIX.skey}
CONFIGURE_ARGS+= --without-skey
.endif
-.if defined(KERBEROS)
-. include "../../mk/krb5.buildlink3.mk"
-CONFIGURE_ARGS+= --with-kerberos5=${KRB5BASE}
-.endif
-
.if (${OPSYS} == "NetBSD") && exists(/usr/include/utmpx.h)
# if we have utmpx et al do not try to use login()
CONFIGURE_ARGS+= --disable-libutil
@@ -163,7 +148,7 @@ post-install:
cd ${WRKSRC}; for file in ${CONFS} ${SUPPS}; do \
${INSTALL_DATA} $${file}.out ${EGDIR}/$${file}; \
done
-.if defined(USE_PAM) && ${OPSYS} == "Linux"
+.if !empty(PKG_OPTIONS:MPAM) && ${OPSYS} == "Linux"
${INSTALL_DATA} ${WRKSRC}/contrib/sshd.pam.generic ${EGDIR}/sshd.pam
.endif