wok-next annotate openssh/receipt @ rev 8966

Removed all TARBALL, SRC_WANTED, and some BUILD_DEPENDS in wanted receipts. There not needed to be update.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Mar 02 03:12:51 2011 +0000 (2011-03-02)
parents 6fc060ce8c8c
children 33864a14f229
rev   line source
pascal@860 1 # SliTaz package receipt.
pascal@860 2
pascal@860 3 PACKAGE="openssh"
slaxemulator@8381 4 VERSION="5.8p1"
pascal@860 5 CATEGORY="security"
pascal@860 6 SHORT_DESC="Openbsd Secure Shell."
pascal@860 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@860 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1597 9 WEB_SITE="http://www.openssh.org/"
pascal@860 10 WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL"
pascal@3628 11 DEPENDS="sftp-server libcrypto zlib"
pascal@1514 12 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev"
pascal@4904 13 PROVIDE="ssh"
jozee@4970 14 TAGS="ssh"
pascal@860 15
pascal@860 16 # Rules to configure and make the package.
pascal@860 17 compile_rules()
pascal@860 18 {
pascal@860 19 cd $src
pascal@2188 20 ./configure --prefix=/usr --sysconfdir=/etc/ssh --without-pam \
pascal@860 21 --with-privsep-user=nobody --with-privsep-path=/var/run/sshd \
pankso@2213 22 --libexecdir=/usr/sbin \
pascal@1514 23 $CONFIGURE_ARGS &&
pascal@1514 24 make &&
pascal@860 25 make DESTDIR=$PWD/_pkg install
pascal@860 26 }
pascal@860 27
pascal@860 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@860 29 genpkg_rules()
pascal@860 30 {
pankso@5295 31 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh $fs/var/run/sshd
pankso@5183 32 cp -a $_pkg/usr/sbin $_pkg/usr/bin $fs/usr
pascal@3628 33 rm -f $fs/usr/sbin/sftp-server
pascal@860 34 cp -a $_pkg/etc $fs
pascal@860 35 cp stuff/openssh $fs/etc/init.d
pascal@2598 36 sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
pascal@2598 37 $fs/etc/ssh/sshd_config
pascal@860 38 }
pascal@860 39
pascal@7303 40 # Pre and post install commands for Tazpkg.
pascal@7303 41 post_install()
pascal@7303 42 {
pascal@7303 43 while read dropbear openssh ; do
pascal@7303 44 [ -s $dropbear ] || continue
pascal@7303 45 dropbearconvert dropbear openssh $1$dropbear $1$openssh
pascal@7303 46 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
pascal@7303 47 dropbearkey -y -f $1$dropbear | grep Fingerprint
pascal@7303 48 done <<EOT
pascal@7303 49 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
pascal@7305 50 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
pascal@7303 51 EOT
pascal@7303 52 }