wok-stable view openssh/receipt @ rev 4937

add/improve TAGS h* receipts
author Rohit Joshi <jozee@slitaz.org>
date Tue Feb 16 14:01:36 2010 +0000 (2010-02-16)
parents a975000773d0
children 6ec17b55b59a
line source
1 # SliTaz package receipt.
3 PACKAGE="openssh"
4 VERSION="5.0p1"
5 CATEGORY="security"
6 SHORT_DESC="Openbsd Secure Shell."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.openssh.org/"
10 WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL"
11 DEPENDS="sftp-server libcrypto zlib"
12 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev"
13 PROVIDE="ssh"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr --sysconfdir=/etc/ssh --without-pam \
20 --with-privsep-user=nobody --with-privsep-path=/var/run/sshd \
21 --libexecdir=/usr/sbin \
22 $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share $fs/etc/init.d $fs/etc/ssh $fs/var/run/sshd
31 cp -a $_pkg/usr/share/Ssh.bin $fs/usr/share
32 cp -a $_pkg/usr/sbin $_pkg/usr/bin $fs/usr
33 rm -f $fs/usr/sbin/sftp-server
34 cp -a $_pkg/etc $fs
35 cp stuff/openssh $fs/etc/init.d
36 sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
37 $fs/etc/ssh/sshd_config
38 }