wok-current annotate openssh/receipt @ rev 16381
ARM: add openvpn, openssh, fuse, sshfs-fuse and more
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 15 04:46:37 2014 +0200 (2014-04-15) |
parents | 99f12c8f02ec |
children | 0d8a1a3edc72 |
rev | line source |
---|---|
pascal@860 | 1 # SliTaz package receipt. |
pascal@860 | 2 |
pascal@860 | 3 PACKAGE="openssh" |
pascal@15973 | 4 VERSION="6.5p1" |
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" |
pankso@16381 | 12 TAGS="ssh security" |
pankso@16381 | 13 HOST_ARCH="i486 arm" |
pankso@16381 | 14 |
pascal@14772 | 15 PROVIDE="ssh" |
pascal@3628 | 16 DEPENDS="sftp-server libcrypto zlib" |
pascal@1514 | 17 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev" |
pankso@16381 | 18 TAZPANEL_DAEMON="man::sshd|edit::/etc/ssh/sshd_config|options|web::$WEB_SITE" |
pascal@860 | 19 |
pascal@860 | 20 # Rules to configure and make the package. |
pascal@860 | 21 compile_rules() |
pascal@860 | 22 { |
pankso@16381 | 23 unset LD # for cross compiling with --disable-strip |
pankso@16381 | 24 ./configure \ |
pankso@16381 | 25 --prefix=/usr \ |
pankso@16381 | 26 --sysconfdir=/etc/ssh \ |
pankso@2213 | 27 --libexecdir=/usr/sbin \ |
pankso@16381 | 28 --with-privsep-user=nobody \ |
pankso@16381 | 29 --with-privsep-path=/var/run/sshd \ |
pankso@16381 | 30 --without-pam \ |
pankso@16381 | 31 --disable-strip \ |
pascal@1514 | 32 $CONFIGURE_ARGS && |
pankso@16381 | 33 make STRIP_OPT="" && |
slaxemulator@11063 | 34 make DESTDIR=$DESTDIR install |
pascal@860 | 35 } |
pascal@860 | 36 |
pascal@860 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@860 | 38 genpkg_rules() |
pascal@860 | 39 { |
mojo@14532 | 40 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh |
pascal@14772 | 41 cp -a $install/usr/sbin $install/usr/bin $fs/usr |
pascal@3628 | 42 rm -f $fs/usr/sbin/sftp-server |
pascal@14772 | 43 cp -a $install/etc $fs |
slaxemulator@11063 | 44 cp $stuff/openssh $fs/etc/init.d |
pascal@2598 | 45 sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \ |
pascal@2598 | 46 $fs/etc/ssh/sshd_config |
pascal@860 | 47 } |
pascal@860 | 48 |
pascal@7303 | 49 # Pre and post install commands for Tazpkg. |
mojo@14532 | 50 pre_install() |
mojo@14532 | 51 { |
pascal@14772 | 52 mkdir -p $1/var/run/sshd |
mojo@14532 | 53 } |
mojo@14532 | 54 |
pascal@7303 | 55 post_install() |
pascal@7303 | 56 { |
pascal@15973 | 57 [ "$1" ] || while read dropbear openssh ; do |
pascal@7303 | 58 [ -s $dropbear ] || continue |
pascal@7303 | 59 dropbearconvert dropbear openssh $1$dropbear $1$openssh |
pascal@7303 | 60 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub |
pascal@7303 | 61 dropbearkey -y -f $1$dropbear | grep Fingerprint |
mojo@14532 | 62 done <<EOT |
pascal@7303 | 63 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key |
pascal@7305 | 64 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key |
pascal@7303 | 65 EOT |
pascal@7303 | 66 } |
mojo@14532 | 67 |
mojo@14532 | 68 # Pre and post remove commands for Tazpkg. |
mojo@14532 | 69 post_remove() |
mojo@14532 | 70 { |
pascal@14772 | 71 rm -fr $1/var/run/sshd |
mojo@14532 | 72 } |
mojo@14532 | 73 |