diff options
author | dinoex <dinoex@FreeBSD.org> | 2002-03-13 01:50:42 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2002-03-13 01:50:42 +0800 |
commit | df19195503a29870a11d4a3a257e56d13bb767ed (patch) | |
tree | 8d6ff71d1d6d7a0ac62e2828e561dc8c31d7ab45 /security/openssh | |
parent | d38ae85ea0f23a8656695ac972274fa540428d68 (diff) | |
download | freebsd-ports-gnome-df19195503a29870a11d4a3a257e56d13bb767ed.tar.gz freebsd-ports-gnome-df19195503a29870a11d4a3a257e56d13bb767ed.tar.zst freebsd-ports-gnome-df19195503a29870a11d4a3a257e56d13bb767ed.zip |
create ssh_config-dist and sshd_config-dist
make sure that package install and deinstall
don't temper existing configuration files.
install sshd.sh now as sample.
Package changed, but no need to update
if you have PORTREVISION=2
Diffstat (limited to 'security/openssh')
-rw-r--r-- | security/openssh/Makefile | 12 | ||||
-rw-r--r-- | security/openssh/pkg-plist | 10 |
2 files changed, 13 insertions, 9 deletions
diff --git a/security/openssh/Makefile b/security/openssh/Makefile index 3fa25a3c27c3..b814a5e0f244 100644 --- a/security/openssh/Makefile +++ b/security/openssh/Makefile @@ -7,7 +7,7 @@ PORTNAME= openssh PORTVERSION= 3.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= security MASTER_SITES= ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/ \ ftp://ftp.usa.openbsd.org/pub/OpenBSD/OpenSSH/ \ @@ -119,12 +119,12 @@ post-install: @${ECHO_MSG} ">> Installing moduli." ${INSTALL_DATA} -c ${FILESDIR}/moduli ${PREFIX}/etc/moduli .endif -.if !exists(${PREFIX}/etc/rc.d/sshd.sh) - @${INSTALL_SCRIPT} ${WRKSRC}/sshd.sh ${PREFIX}/etc/rc.d/ -.endif + ${INSTALL_SCRIPT} ${WRKSRC}/sshd.sh ${PREFIX}/etc/rc.d/sshd.sh.sample + ${INSTALL_DATA} -c ${WRKSRC}/ssh_config ${PREFIX}/etc/ssh_config-dist + ${INSTALL_DATA} -c ${WRKSRC}/sshd_config ${PREFIX}/etc/sshd_config-dist .if !exists(${PREFIX}/etc/ssh_config) && !exists(${PREFIX}/etc/sshd_config) - @cd ${WRKSRC}; \ - ${MAKE} DESTDIR=${PREFIX} distribution + ${INSTALL_DATA} -c ${WRKSRC}/ssh_config ${PREFIX}/etc/ssh_config + ${INSTALL_DATA} -c ${WRKSRC}/sshd_config ${PREFIX}/etc/sshd_config .else @${ECHO_MSG} ">> ${PREFIX}/etc/ssh{,d}_config exists, not being replaced!" @${ECHO_MSG} ">> If this is left over from another version of SSH, you will" diff --git a/security/openssh/pkg-plist b/security/openssh/pkg-plist index d9dff06b993b..7c32f6d1a747 100644 --- a/security/openssh/pkg-plist +++ b/security/openssh/pkg-plist @@ -6,10 +6,14 @@ bin/ssh-add bin/ssh-agent bin/ssh-keygen bin/ssh-keyscan -etc/rc.d/sshd.sh -etc/ssh_config -etc/sshd_config +etc/rc.d/sshd.sh.sample etc/moduli +@unexec if cmp -s %D/etc/ssh_config %D/etc/ssh_config-dist; then rm -f %D/etc/ssh_config; fi +@unexec if cmp -s %D/etc/sshd_config %D/etc/sshd_config-dist; then rm -f %D/etc/sshd_config; fi +etc/ssh_config-dist +etc/sshd_config-dist +@exec [ ! -f %D/etc/ssh_config ] && cp %D/etc/ssh_config-dist %D/etc/ssh_config +@exec [ ! -f %D/etc/sshd_config ] && cp %D/etc/sshd_config-dist %D/etc/sshd_config sbin/sshd libexec/sftp-server libdata/ssh/Ssh.bin |