wok view openssh/receipt @ rev 14714
lib[a-n]*: add LICENSE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 11 10:41:23 2013 +0200 (2013-06-11) |
parents | ad75caa9d2b8 |
children | e9130cce9043 |
line source
1 # SliTaz package receipt.
3 PACKAGE="openssh"
4 VERSION="5.9p1"
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 DEPENDS="sftp-server libcrypto zlib"
13 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev"
14 PROVIDE="ssh"
15 TAGS="ssh"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr --sysconfdir=/etc/ssh --without-pam \
22 --with-privsep-user=nobody --with-privsep-path=/var/run/sshd \
23 --libexecdir=/usr/sbin \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh
33 cp -a $_pkg/usr/sbin $_pkg/usr/bin $fs/usr
34 rm -f $fs/usr/sbin/sftp-server
35 cp -a $_pkg/etc $fs
36 cp $stuff/openssh $fs/etc/init.d
37 sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
38 $fs/etc/ssh/sshd_config
39 }
41 # Pre and post install commands for Tazpkg.
42 pre_install()
43 {
44 mkdir -p /var/run/sshd
45 }
47 post_install()
48 {
49 while read dropbear openssh ; do
50 [ -s $dropbear ] || continue
51 dropbearconvert dropbear openssh $1$dropbear $1$openssh
52 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
53 dropbearkey -y -f $1$dropbear | grep Fingerprint
54 done <<EOT
55 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
56 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
57 EOT
58 }
60 # Pre and post remove commands for Tazpkg.
61 post_remove()
62 {
63 rm -fr /var/run/sshd
64 }