IGNOREPATH=/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=3.8.1p1 PROGNAME="OpenSSH" DESC="\ openssh (Secure Shell daemon and clients) \n\ \n\ ssh (Secure Shell) is a program for logging into a remote machine and \n\ for executing commands on a remote machine. It is intended to replace \n\ rlogin and rsh, and provide secure encrypted communications between \n\ two untrusted hosts over an insecure network. sshd (SSH Daemon) is \n\ the daemon program for ssh. OpenSSH is based on the last free version \n\ of Tatu Ylonen's SSH, further enhanced and cleaned up by Aaron \n\ Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo de Raadt, and \n\ Dug Song. It has a homepage at http://www.openssh.com/" BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp3.usa.openbsd.org/pub/OpenBSD/OpenSSH/portable/ PKGNAME=openssh-$VERSION-s390-$BUILD TAG=ADD compile() { tar -zxvf $CWD/openssh-$VERSION.tar.gz cd openssh-$VERSION/ chown -R root.root . CFLAGS="-O2 -Wall" \ ./configure --prefix=/usr \ --sysconfdir=/etc/ssh \ --without-pam \ --with-md5-passwords \ --with-tcp-wrappers \ --with-default-path=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin \ --with-ipv4-default \ --with-privsep-path=/var/empty \ --with-privsep-user=sshd \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { make install DESTDIR=/package-openssh # ditch the host keys, since these have to be generated on each machine rm -f /package-openssh/etc/ssh/ssh_host_dsa_key* rm -f /package-openssh/etc/ssh/ssh_host_rsa_key* rm -f /package-openssh/etc/ssh/ssh_host_key* ( cd contrib/ cp -a ssh-copy-id /package-openssh/usr/bin/ssh-copy-id cp ssh-copy-id.1 /package-openssh/usr/man/man1 ) mkdir -p /package-openssh/etc/rc.d/ cp -p $CWD/rc.sshd /package-openssh/etc/rc.d/ chmod 755 /package-openssh/etc/rc.d/rc.sshd ( cd /package-openssh/usr/man for dir in 1 5 8; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) ( cd /package-openssh/usr/man/man1 rm -f slogin.1 ; ln -s ssh.1.gz slogin.1.gz ) mkdir -p /package-openssh/usr/doc/openssh-$VERSION cp -a CREDITS ChangeLog INSTALL LICENCE OVERVIEW README README.privsep \ README.smartcard RFC.nroff TODO WARNING.RNG \ /package-openssh/usr/doc/openssh-$VERSION mv /package-openssh/etc/ssh/ssh_config /package-openssh/etc/ssh/ssh_config.new mv /package-openssh/etc/ssh/sshd_config /package-openssh/etc/ssh/sshd_config.new } attributes() { chown -R root.bin $PKG/package-openssh/usr/bin/ chown -R root.bin $PKG/package-openssh/usr/sbin/ chmod 755 $PKG/package-openssh/usr/bin/ssh-copy-id } special() { cd $PKG mv package-openssh/* ./ rmdir package-openssh/ cd $CTL cat $CWD/slack-desc > slack-desc zcat $CWD/doinst.sh.gz >> doinst.sh sed -e 's%package-openssh/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }