- Use DISTVERSION - Add most configuration in OPTIONS - Enable support to libedit in sftp [1] - Add OPTIONS to HPN patches [2] - Add new rc.d script [3] - New rc.d script are responsible to check configuration and create host keys - Using USE_RC_SUBR - Modify pkg-message to reflect new rc.d script - Fix pkg-plist Reviewd by: dougb [3] Submitted by: vs [1], brooks [2] Tested by: me, John E Hein
28 lines
1.4 KiB
Text
28 lines
1.4 KiB
Text
@comment slogin must be deleted first
|
|
bin/slogin
|
|
bin/scp
|
|
bin/sftp
|
|
bin/ssh
|
|
bin/ssh-add
|
|
bin/ssh-agent
|
|
bin/ssh-keygen
|
|
bin/ssh-keyscan
|
|
%%NOTBASE%%etc/ssh/moduli
|
|
%%NOTBASE%%@exec if [ -f %D/etc/ssh_config -a ! -f %D/etc/ssh/ssh_config ]; then ln %D/etc/ssh_config %D/etc/ssh/ssh_config ; fi
|
|
%%NOTBASE%%@exec if [ -f %D/etc/sshd_config -a ! -f %D/etc/ssh/sshd_config ]; then ln %D/etc/sshd_config %D/etc/ssh/sshd_config ; fi
|
|
%%NOTBASE%%@unexec if cmp -s %D/etc/ssh/ssh_config %D/etc/ssh/ssh_config-dist; then rm -f %D/etc/ssh/ssh_config; fi
|
|
%%NOTBASE%%@unexec if cmp -s %D/etc/ssh/sshd_config %D/etc/ssh/sshd_config-dist; then rm -f %D/etc/ssh/sshd_config; fi
|
|
%%NOTBASE%%etc/ssh/ssh_config-dist
|
|
%%NOTBASE%%etc/ssh/sshd_config-dist
|
|
%%NOTBASE%%@exec if [ ! -f %D/etc/ssh/ssh_config ]; then cp -p %D/etc/ssh/ssh_config-dist %D/etc/ssh/ssh_config ; fi
|
|
%%NOTBASE%%@exec if [ ! -f %D/etc/ssh/sshd_config ]; then cp -p %D/etc/ssh/sshd_config-dist %D/etc/ssh/sshd_config ; fi
|
|
%%NOTBASE%%@dirrmtry etc/ssh
|
|
sbin/sshd
|
|
share/Ssh.bin
|
|
libexec/sftp-server
|
|
libexec/ssh-keysign
|
|
%%NOTBASE%%@exec mkdir -p %D/empty
|
|
%%NOTBASE%%@dirrm empty
|
|
%%BASE%%@exec if [ ! -d %%EMPTYDIR%% ]; then mkdir -p %%EMPTYDIR%% ; fi
|
|
@exec if ! pw groupshow sshd 2>/dev/null; then pw groupadd sshd -g 22; fi
|
|
@exec if ! pw usershow sshd 2>/dev/null; then pw useradd sshd -g sshd -u 22 -h - -d %%EMPTYDIR%% -s /nonexistent -c "sshd privilege separation"; fi
|