wok view openssh/receipt @ rev 15217

Add pidgin-otr
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 16 12:39:13 2013 +0000 (2013-09-16)
parents ad59999b3fce
children 64ae641ba66c
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 TAZPANEL_DAEMON="man::sshd|edit::/etc/ssh/sshd_config|options|web::$WEB_SITE"
13 PROVIDE="ssh"
14 TAGS="ssh"
16 DEPENDS="sftp-server libcrypto zlib"
17 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./configure --prefix=/usr --sysconfdir=/etc/ssh --without-pam \
24 --with-privsep-user=nobody --with-privsep-path=/var/run/sshd \
25 --libexecdir=/usr/sbin \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh
35 cp -a $install/usr/sbin $install/usr/bin $fs/usr
36 rm -f $fs/usr/sbin/sftp-server
37 cp -a $install/etc $fs
38 cp $stuff/openssh $fs/etc/init.d
39 sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
40 $fs/etc/ssh/sshd_config
41 }
43 # Pre and post install commands for Tazpkg.
44 pre_install()
45 {
46 mkdir -p $1/var/run/sshd
47 }
49 post_install()
50 {
51 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 }
62 # Pre and post remove commands for Tazpkg.
63 post_remove()
64 {
65 rm -fr $1/var/run/sshd
66 }