wok-current view openssh/receipt @ rev 16737
Up openssh (6.6p1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 05 12:21:15 2014 +0200 (2014-06-05) |
parents | 0d8a1a3edc72 |
children | cc59f73ce42d |
line source
1 # SliTaz package receipt.
3 PACKAGE="openssh"
4 VERSION="6.6p1"
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 post_install()
50 {
51 [ "$1" ] || while read dropbear openssh ; do
52 [ -s $dropbear ] || continue
53 dropbearconvert dropbear openssh $1$dropbear $1$openssh
54 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
55 dropbearkey -y -f $1$dropbear | grep Fingerprint
56 done <<EOT
57 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
58 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
59 EOT
60 }