wok-6.x view openssh/receipt @ rev 16458

slitaz-tools-boxes: we dont have any gtkdialog boxes anymore
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 19 22:03:30 2014 +0200 (2014-04-19)
parents 99f12c8f02ec
children 0d8a1a3edc72
line source
1 # SliTaz package receipt.
3 PACKAGE="openssh"
4 VERSION="6.5p1"
5 CATEGORY="security"
6 SHORT_DESC="Openbsd Secure Shell."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.openssh.org/"
11 WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL"
12 TAGS="ssh security"
13 HOST_ARCH="i486 arm"
15 PROVIDE="ssh"
16 DEPENDS="sftp-server libcrypto zlib"
17 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev"
18 TAZPANEL_DAEMON="man::sshd|edit::/etc/ssh/sshd_config|options|web::$WEB_SITE"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 unset LD # for cross compiling with --disable-strip
24 ./configure \
25 --prefix=/usr \
26 --sysconfdir=/etc/ssh \
27 --libexecdir=/usr/sbin \
28 --with-privsep-user=nobody \
29 --with-privsep-path=/var/run/sshd \
30 --without-pam \
31 --disable-strip \
32 $CONFIGURE_ARGS &&
33 make STRIP_OPT="" &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh
41 cp -a $install/usr/sbin $install/usr/bin $fs/usr
42 rm -f $fs/usr/sbin/sftp-server
43 cp -a $install/etc $fs
44 cp $stuff/openssh $fs/etc/init.d
45 sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
46 $fs/etc/ssh/sshd_config
47 }
49 # Pre and post install commands for Tazpkg.
50 pre_install()
51 {
52 mkdir -p $1/var/run/sshd
53 }
55 post_install()
56 {
57 [ "$1" ] || while read dropbear openssh ; do
58 [ -s $dropbear ] || continue
59 dropbearconvert dropbear openssh $1$dropbear $1$openssh
60 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
61 dropbearkey -y -f $1$dropbear | grep Fingerprint
62 done <<EOT
63 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
64 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
65 EOT
66 }
68 # Pre and post remove commands for Tazpkg.
69 post_remove()
70 {
71 rm -fr $1/var/run/sshd
72 }