wok-6.x view openssh-pam/receipt @ rev 8688
Fix bdep: spandsp need intltool to compile
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Thu Feb 17 18:59:56 2011 +0100 (2011-02-17) |
parents | 81e3b916d353 |
children | 129bb5b11a7e |
line source
1 # SliTaz package receipt.
3 PACKAGE="openssh-pam"
4 VERSION="5.8p1"
5 CATEGORY="security"
6 SHORT_DESC="Openbsd Secure Shell using PAM."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="openssh"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.openssh.org/"
11 WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL"
12 DEPENDS="sftp-server libcrypto zlib pam"
13 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev pam pam-dev"
14 PROVIDE="openssh:pam ssh:pam"
15 SRC_WANTED="$SOURCE"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam \
22 --with-privsep-user=nobody --with-privsep-path=/var/run/sshd \
23 --libexecdir=/usr/sbin \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh $fs/var/run/sshd
33 cp -a $_pkg/usr/sbin $_pkg/usr/bin $fs/usr
34 rm -f $fs/usr/sbin/sftp-server
35 cp -a $_pkg/etc $fs
36 cp ../$SOURCE/stuff/openssh $fs/etc/init.d
37 sed -i 's/.*UsePAM.*/UsePAM yes/' $fs/etc/sshd/sshd_config
38 }
40 # Pre and post install commands for Tazpkg.
41 post_install()
42 {
43 while read dropbear openssh ; do
44 [ -s $dropbear ] || continue
45 dropbearconvert dropbear openssh $1$dropbear $1$openssh
46 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
47 dropbearkey -y -f $1$dropbear | grep Fingerprint
48 done <<EOT
49 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
50 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
51 EOT
52 }