bb751ad6f232ecdb439a43a4bec104c572e461ba
[hdw-linux/hdw-linux.git] / packages / security / openssh / openssh
1 # hdw-linux ssh extensions
2
3 # author: hackbard
4
5 # [S] 3-2
6 # [V] 3.8p1
7 # [D] openssh-3.8p1.tar.gz ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/
8
9 flist_pruned="${flist_pruned}|etc/shadow|etc/passwd|etc/group"
10
11 pre_install()   {
12         export LD=gcc
13         useradd -u 1025 -c 'sshd server' sshd || true
14                 }
15
16 confopt="$confopt --with-md5-passwords --without-pam --with-tcp-wrappers \
17                 --disable-suid-ssh --with-xauth=/usr/X11R6/bin/xauth \
18                 --sysconfdir=$root/etc/ssh"
19
20 install_conf="$install_conf install-nokeys"
21
22 post_install()  {
23         # ssh host key
24         echo "creating ssh host keys ..."
25         [ ! -f $root/etc/ssh_host_dsa_key ] && \
26         $root/usr/bin/ssh-keygen -d -b 1024 -f $root//etc/ssh_host_dsa_key -N ""
27         [ ! -f $root/etc/ssh_host_key ] && \
28         $root/usr/bin/ssh-keygen -d -b 1024 -f $root/etc/ssh_host_key -N ""
29         echo "done. "
30                 }