wok-6.x annotate openssh/receipt @ rev 14657
Normalize LICENSE according to wok/licenses package (bsd part)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 05 16:21:04 2013 +0200 (2013-06-05) |
parents | ad75caa9d2b8 |
children | e9130cce9043 |
rev | line source |
---|---|
pascal@860 | 1 # SliTaz package receipt. |
pascal@860 | 2 |
pascal@860 | 3 PACKAGE="openssh" |
slaxemulator@11063 | 4 VERSION="5.9p1" |
pascal@860 | 5 CATEGORY="security" |
pascal@860 | 6 SHORT_DESC="Openbsd Secure Shell." |
pascal@860 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14657 | 8 LICENSE="BSD" |
pascal@860 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1597 | 10 WEB_SITE="http://www.openssh.org/" |
pascal@860 | 11 WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL" |
pascal@3628 | 12 DEPENDS="sftp-server libcrypto zlib" |
pascal@1514 | 13 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev" |
pascal@4904 | 14 PROVIDE="ssh" |
jozee@4970 | 15 TAGS="ssh" |
pascal@860 | 16 |
pascal@860 | 17 # Rules to configure and make the package. |
pascal@860 | 18 compile_rules() |
pascal@860 | 19 { |
pascal@860 | 20 cd $src |
pascal@2188 | 21 ./configure --prefix=/usr --sysconfdir=/etc/ssh --without-pam \ |
pascal@860 | 22 --with-privsep-user=nobody --with-privsep-path=/var/run/sshd \ |
pankso@2213 | 23 --libexecdir=/usr/sbin \ |
pascal@1514 | 24 $CONFIGURE_ARGS && |
pascal@1514 | 25 make && |
slaxemulator@11063 | 26 make DESTDIR=$DESTDIR install |
pascal@860 | 27 } |
pascal@860 | 28 |
pascal@860 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@860 | 30 genpkg_rules() |
pascal@860 | 31 { |
mojo@14532 | 32 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh |
pankso@5183 | 33 cp -a $_pkg/usr/sbin $_pkg/usr/bin $fs/usr |
pascal@3628 | 34 rm -f $fs/usr/sbin/sftp-server |
pascal@860 | 35 cp -a $_pkg/etc $fs |
slaxemulator@11063 | 36 cp $stuff/openssh $fs/etc/init.d |
pascal@2598 | 37 sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \ |
pascal@2598 | 38 $fs/etc/ssh/sshd_config |
pascal@860 | 39 } |
pascal@860 | 40 |
pascal@7303 | 41 # Pre and post install commands for Tazpkg. |
mojo@14532 | 42 pre_install() |
mojo@14532 | 43 { |
mojo@14532 | 44 mkdir -p /var/run/sshd |
mojo@14532 | 45 } |
mojo@14532 | 46 |
pascal@7303 | 47 post_install() |
pascal@7303 | 48 { |
mojo@14532 | 49 while read dropbear openssh ; do |
pascal@7303 | 50 [ -s $dropbear ] || continue |
pascal@7303 | 51 dropbearconvert dropbear openssh $1$dropbear $1$openssh |
pascal@7303 | 52 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub |
pascal@7303 | 53 dropbearkey -y -f $1$dropbear | grep Fingerprint |
mojo@14532 | 54 done <<EOT |
pascal@7303 | 55 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key |
pascal@7305 | 56 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key |
pascal@7303 | 57 EOT |
pascal@7303 | 58 } |
mojo@14532 | 59 |
mojo@14532 | 60 # Pre and post remove commands for Tazpkg. |
mojo@14532 | 61 post_remove() |
mojo@14532 | 62 { |
mojo@14532 | 63 rm -fr /var/run/sshd |
mojo@14532 | 64 } |
mojo@14532 | 65 |