diff options
author | veego <veego> | 2000-07-17 11:57:32 +0000 |
---|---|---|
committer | veego <veego> | 2000-07-17 11:57:32 +0000 |
commit | 8c8b54d856dbe03e5500a882ece108a6bc479ffd (patch) | |
tree | f46792e0a3fcacc608968ac0c707acc12f12e83b /security/ssh | |
parent | a90e84e9208dcbac44a564ee56d41a8c38fbed89 (diff) | |
download | pkgsrc-8c8b54d856dbe03e5500a882ece108a6bc479ffd.tar.gz |
Add Solaris support.
Diffstat (limited to 'security/ssh')
-rw-r--r-- | security/ssh/Makefile | 20 | ||||
-rw-r--r-- | security/ssh/pkg/PLIST | 6 |
2 files changed, 21 insertions, 5 deletions
diff --git a/security/ssh/Makefile b/security/ssh/Makefile index 936bfbb9e83..f9a87f909b5 100644 --- a/security/ssh/Makefile +++ b/security/ssh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.77 2000/03/26 14:28:12 itojun Exp $ +# $NetBSD: Makefile,v 1.78 2000/07/17 11:57:32 veego Exp $ # FreeBSD Id: Makefile,v 1.47 1997/11/10 22:04:42 dima Exp # @@ -27,7 +27,16 @@ GNU_CONFIGURE= YES # Use SSH_CONF_DIR from /etc/mk.conf, if defined; otherwise default to /etc SSH_CONF_DIR?= /etc -CONFIGURE_ARGS+= --with-etcdir=${SSH_CONF_DIR} --with-libwrap +CONFIGURE_ARGS+= --with-etcdir=${SSH_CONF_DIR} + +.if ${OPSYS} == "NetBSD" +CONFIGURE_ARGS+= --with-libwrap +.endif + +.if ${OPSYS} == "SunOS" +DEPENDS+= zlib-*:../../devel/zlib +CONFIGURE_ENV+= X_CFLAGS="-I${LOCALBASE}/include" +.endif #Uncomment if all your users are in their own group and their homedir #is writeable by that group. Beware the security implications! @@ -126,9 +135,16 @@ CONFIGURE_ARGS+= --disable-asm CFLAGS+= -m68060 .endif +.if ${OPSYS} == "SunOS" +ROOT_GROUP?= root +.else +ROOT_GROUP?= wheel +.endif + DEINSTALL_FILE= ${WRKDIR}/DEINSTALL MESSAGE_FILE= ${WRKDIR}/MESSAGE PLIST_SRC= ${WRKDIR}/PLIST +PLIST_SUBST+= INSTALL="${INSTALL}" ROOT_GROUP="${ROOT_GROUP}" pre-patch: @${MV} -f ${WRKSRC}/make-ssh-known-hosts.pl \ diff --git a/security/ssh/pkg/PLIST b/security/ssh/pkg/PLIST index 7d54d57a9cf..709eb454e5b 100644 --- a/security/ssh/pkg/PLIST +++ b/security/ssh/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.6 1998/06/15 10:24:16 tron Exp $ +@comment $NetBSD: PLIST,v 1.7 2000/07/17 11:57:33 veego Exp $ bin/ssh bin/ssh1 bin/scp @@ -34,7 +34,7 @@ sbin/sshd1 share/examples/ssh/ssh_config share/examples/ssh/sshd_config @exec if [ ! -d @SSH_CONF_DIR@ ]; then echo "Creating directory @SSH_CONF_DIR@ for ssh config files.." ; mkdir -p @SSH_CONF_DIR@; fi -@exec if [ ! -f @SSH_CONF_DIR@/ssh_config ]; then echo "Installing example ssh_config in @SSH_CONF_DIR@.." ; /usr/bin/install -c -o root -g wheel -m 0644 %D/share/examples/ssh/ssh_config @SSH_CONF_DIR@; fi -@exec if [ ! -f @SSH_CONF_DIR@/sshd_config ]; then echo "Installing example sshd_config in @SSH_CONF_DIR@.." ; /usr/bin/install -c -o root -g wheel -m 0644 %D/share/examples/ssh/sshd_config @SSH_CONF_DIR@; fi +@exec if [ ! -f @SSH_CONF_DIR@/ssh_config ]; then echo "Installing example ssh_config in @SSH_CONF_DIR@.." ; ${INSTALL} -c -o root -g ${ROOT_GROUP} -m 0644 %D/share/examples/ssh/ssh_config @SSH_CONF_DIR@; fi +@exec if [ ! -f @SSH_CONF_DIR@/sshd_config ]; then echo "Installing example sshd_config in @SSH_CONF_DIR@.." ; ${INSTALL} -c -o root -g ${ROOT_GROUP} -m 0644 %D/share/examples/ssh/sshd_config @SSH_CONF_DIR@; fi @exec if [ ! -f @SSH_CONF_DIR@/ssh_host_key ]; then echo "Generating a secret host key in @SSH_CONF_DIR@.." ; %D/bin/ssh-keygen -N "" -f @SSH_CONF_DIR@/ssh_host_key; fi @dirrm share/examples/ssh |