wok-backports view openssh/receipt @ rev 46

Add numlockx
author Richard Dunbar <mojo@slitaz.org>
date Fri Apr 17 18:43:25 2015 -0400 (2015-04-17)
parents
children
line source
1 # SliTaz package receipt.
3 PACKED_SIZE="504.0K"
4 UNPACKED_SIZE="3.9M"
5 PACKAGE="openssh"
6 VERSION="6.7p1"
7 CATEGORY="security"
8 SHORT_DESC="Openbsd Secure Shell."
9 MAINTAINER="pascal.bellard@slitaz.org"
10 LICENSE="BSD"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://www.openssh.org/"
13 WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL"
14 CONFIG_FILES="/etc/ssh /etc/inetd.conf"
15 TAGS="ssh security"
16 HOST_ARCH="i486 arm"
18 PROVIDE="ssh"
19 DEPENDS="sftp-server libcrypto zlib"
20 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev"
21 TAZPANEL_DAEMON="man::sshd|edit::/etc/ssh/sshd_config|options|web::$WEB_SITE"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 unset LD # for cross compiling with --disable-strip
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc/ssh \
30 --libexecdir=/usr/sbin \
31 --with-privsep-user=nobody \
32 --with-xauth=/usr/bin/xauth \
33 --with-privsep-path=/var/run/sshd \
34 --without-pam \
35 --disable-strip \
36 $CONFIGURE_ARGS &&
37 make STRIP_OPT="" &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh
45 cp -a $install/usr/sbin $install/usr/bin $fs/usr
46 rm -f $fs/usr/sbin/sftp-server
47 cp -a $install/etc $fs
48 cp $stuff/openssh $fs/etc/init.d
49 sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
50 $fs/etc/ssh/sshd_config
51 }
53 post_install()
54 {
55 grep -q ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
56 #ssh stream tcp nowait root sshd sshd -i
57 EOT
58 while read dropbear openssh ; do
59 [ -s $1$dropbear ] || continue
60 dropbearconvert dropbear openssh $1$dropbear $1$openssh
61 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
62 dropbearkey -y -f $1$dropbear | grep Fingerprint
63 done <<EOT
64 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
65 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
66 EOT
67 ssh-keygen -A
68 }
70 post_remove()
71 {
72 grep -q sshd $1/etc/inetd.conf && sed -i '/sshd/d' $1/etc/inetd.conf
73 }