wok-current view openssh/receipt @ rev 17736

prelink: force libpthread link
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 06 12:45:18 2015 +0100 (2015-03-06)
parents 95ae6a87842c
children 7ef2138f2667
line source
1 # SliTaz package receipt.
3 PACKAGE="openssh"
4 VERSION="6.7p1"
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 CONFIG_FILES="/etc/ssh /etc/inetd.conf"
13 TAGS="ssh security"
14 HOST_ARCH="i486 arm"
16 PROVIDE="ssh"
17 DEPENDS="sftp-server libcrypto zlib"
18 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev"
19 TAZPANEL_DAEMON="man::sshd|edit::/etc/ssh/sshd_config|options|web::$WEB_SITE"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 unset LD # for cross compiling with --disable-strip
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc/ssh \
28 --libexecdir=/usr/sbin \
29 --with-privsep-user=nobody \
30 --with-xauth=/usr/bin/xauth \
31 --with-privsep-path=/var/run/sshd \
32 --without-pam \
33 --disable-strip \
34 $CONFIGURE_ARGS &&
35 make STRIP_OPT="" &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh
43 cp -a $install/usr/sbin $install/usr/bin $fs/usr
44 rm -f $fs/usr/sbin/sftp-server
45 cp -a $install/etc $fs
46 cp $stuff/openssh $fs/etc/init.d
47 sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
48 $fs/etc/ssh/sshd_config
49 }
51 post_install()
52 {
53 grep -q ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
54 #ssh stream tcp nowait root sshd sshd -i
55 EOT
56 while read dropbear openssh ; do
57 [ -s $1$dropbear ] || continue
58 dropbearconvert dropbear openssh $1$dropbear $1$openssh
59 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
60 dropbearkey -y -f $1$dropbear | grep Fingerprint
61 done <<EOT
62 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
63 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
64 EOT
65 ssh-keygen -A
66 }
68 post_remove()
69 {
70 grep -q sshd $1/etc/inetd.conf && sed -i '/sshd/d' $1/etc/inetd.conf
71 }