diff options
author | Alexander Leidinger <netchild@FreeBSD.org> | 2003-07-07 14:19:07 +0000 |
---|---|---|
committer | Alexander Leidinger <netchild@FreeBSD.org> | 2003-07-07 14:19:07 +0000 |
commit | 7b5c95f90d9c2ac78e23bc42832a4068efe3ec8f (patch) | |
tree | d759b7d3db0f487b71ffdcb941d5fe5da54c7e51 /security/ssh2/pkg-plist | |
parent | 5c27a2fd83fc242b8b28c96cc72d5790f9e65302 (diff) |
Notes
Diffstat (limited to 'security/ssh2/pkg-plist')
-rw-r--r-- | security/ssh2/pkg-plist | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/security/ssh2/pkg-plist b/security/ssh2/pkg-plist index 93342b159841..99f686a4c729 100644 --- a/security/ssh2/pkg-plist +++ b/security/ssh2/pkg-plist @@ -8,7 +8,9 @@ bin/ssh-add2 bin/ssh-signer2 bin/ssh-probe2 bin/sftp-server2 +%%STATIC%%bin/sftp-server2.static bin/ssh-dummy-shell +%%STATIC%%bin/ssh-dummy-shell.static bin/ssh bin/ssh-agent bin/ssh-add @@ -20,24 +22,34 @@ bin/sftp-server bin/ssh-signer bin/ssh-probe etc/rc.d/sshd.sh +@unexec if cmp -s %D/etc/ssh2/sshd2_config %D/etc/ssh2/sshd2_config.example; then rm -f %D/etc/ssh2/sshd2_config; fi etc/ssh2/sshd2_config.example +@exec [ -f %B/sshd2_config ] || cp %B/%f %B/sshd2_config +@unexec if cmp -s %D/etc/ssh2/ssh2_config %D/etc/ssh2/ssh2_config.example; then rm -f %D/etc/ssh2/ssh2_config; fi etc/ssh2/ssh2_config.example +@exec [ -f %B/ssh2_config ] || cp %B/%f %B/ssh2_config etc/ssh2/ssh_dummy_shell.out etc/ssh2/subconfig/anonymous.example etc/ssh2/subconfig/host_ext.example etc/ssh2/subconfig/host_int.example etc/ssh2/subconfig/user.example +@exec [ -d %D/etc/ssh2/hostkeys ] || mkdir %D/etc/ssh2/hostkeys +@exec [ -d %D/etc/ssh2/knownhosts ] || mkdir %D/etc/ssh2/knownhosts sbin/sshd2 sbin/sshd-check-conf sbin/sshd -@exec if [ ! -f %D/etc/ssh2/hostkey ]; then umask 022; echo "Generating 1024 bit host key."; %D/bin/ssh-keygen2 -P -b 1024 -t dsa %D/etc/ssh2/hostkey; fi -%%PORTDOCS%%share/doc/ssh2/CHANGES -%%PORTDOCS%%share/doc/ssh2/FAQ -%%PORTDOCS%%share/doc/ssh2/INSTALL -%%PORTDOCS%%share/doc/ssh2/LICENSE -%%PORTDOCS%%share/doc/ssh2/MANIFEST -%%PORTDOCS%%share/doc/ssh2/NEWS -%%PORTDOCS%%share/doc/ssh2/README -%%PORTDOCS%%share/doc/ssh2/REGEX-SYNTAX -%%PORTDOCS%%share/doc/ssh2/SSH2.QUICKSTART -%%PORTDOCS%%@dirrm share/doc/ssh2 +@exec if [ ! -f %D/etc/ssh2/hostkey ]; then umask 022; echo "Generating host key."; %D/bin/ssh-keygen2 -P -t dsa "DSA hostkey" %D/etc/ssh2/hostkey; fi +%%PORTDOCS%%%%DATADIR%%/CHANGES +%%PORTDOCS%%%%DATADIR%%/FAQ +%%PORTDOCS%%%%DATADIR%%/INSTALL +%%PORTDOCS%%%%DATADIR%%/LICENSE +%%PORTDOCS%%%%DATADIR%%/MANIFEST +%%PORTDOCS%%%%DATADIR%%/NEWS +%%PORTDOCS%%%%DATADIR%%/README +%%PORTDOCS%%%%DATADIR%%/REGEX-SYNTAX +%%PORTDOCS%%%%DATADIR%%/SSH2.QUICKSTART +%%PORTDOCS%%@dirrm %%DATADIR%% +@unexec rmdir %D/etc/ssh2/hostkeys 2> /dev/null || true +@unexec rmdir %D/etc/ssh2/knownhosts 2> /dev/null || true +@unexec rmdir %D/etc/ssh2/subconfig 2> /dev/null || true +@unexec rmdir %D/etc/ssh2 2> /dev/null || echo "If permanently deleting this package, %D/etc/ssh2 and its contents must be removed manually." |