wok-current view openssh/receipt @ rev 3876

Postgrey: ensure pidfile is valid
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 10 14:09:59 2009 +0200 (2009-08-10)
parents e444419779c9
children 85210ad650ac
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"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr --sysconfdir=/etc/ssh --without-pam \
19 --with-privsep-user=nobody --with-privsep-path=/var/run/sshd \
20 --libexecdir=/usr/sbin \
21 $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share $fs/etc/init.d $fs/etc/ssh $fs/var/run/sshd
30 cp -a $_pkg/usr/share/Ssh.bin $fs/usr/share
31 cp -a $_pkg/usr/sbin $_pkg/usr/bin $fs/usr
32 rm -f $fs/usr/sbin/sftp-server
33 cp -a $_pkg/etc $fs
34 cp stuff/openssh $fs/etc/init.d
35 sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
36 $fs/etc/ssh/sshd_config
37 }