initial checkin of new hdw-linux development cvs repository
[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         # add the sshd user
14         echo "adding user sshd ..."
15         [ -z "`cat $root/etc/passwd | grep sshd`" ] && useradd sshd
16         echo "done."
17                 }
18
19 confopt="$confopt --with-md5-passwords --without-pam --with-tcp-wrappers \
20                 --disable-suid-ssh --with-xauth=/usr/X11R6/bin/xauth \
21                 --sysconfdir=$root/etc/ssh"
22
23 install_conf="$install_conf install-nokeys"
24
25 post_install()  {
26         # ssh host key
27         echo "creating ssh host keys ..."
28         [ ! -f $root/etc/ssh_host_dsa_key ] && \
29         $root/usr/bin/ssh-keygen -d -b 1024 -f $root//etc/ssh_host_dsa_key -N ""
30         [ ! -f $root/etc/ssh_host_key ] && \
31         $root/usr/bin/ssh-keygen -d -b 1024 -f $root/etc/ssh_host_key -N ""
32         echo "done. "
33                 }