wok-6.x view openssh-pam/receipt @ rev 15343
perl: add threads support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 29 15:37:29 2013 +0000 (2013-09-29) |
parents | ad59999b3fce |
children | 595b6d418abe |
line source
1 # SliTaz package receipt.
3 PACKAGE="openssh-pam"
4 VERSION="5.9p1"
5 CATEGORY="security"
6 SHORT_DESC="Openbsd Secure Shell using PAM."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 SOURCE="openssh"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.openssh.org/"
12 WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL"
13 TAZPANEL_DAEMON="man::sshd|edit::/etc/ssh/sshd_config|options::OPENSSH_OPTIONS|web::$WEB_SITE"
14 PROVIDE="openssh:pam ssh:pam"
16 DEPENDS="sftp-server libcrypto zlib pam"
17 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev pam pam-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam \
24 --with-privsep-user=nobody --with-privsep-path=/var/run/sshd \
25 --libexecdir=/usr/sbin \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh
35 cp -a $install/usr/sbin $install/usr/bin $fs/usr
36 rm -f $fs/usr/sbin/sftp-server
37 cp -a $install/etc $fs
38 cp ../$SOURCE/stuff/openssh $fs/etc/init.d
39 sed -i 's/.*UsePAM.*/UsePAM yes/' $fs/etc/ssh/sshd_config
40 }
42 # Pre and post install commands for Tazpkg.
43 pre_install()
44 {
45 mkdir -p $1/var/run/sshd
46 }
48 post_install()
49 {
50 while read dropbear openssh ; do
51 [ -s $dropbear ] || continue
52 dropbearconvert dropbear openssh $1$dropbear $1$openssh
53 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
54 dropbearkey -y -f $1$dropbear | grep Fingerprint
55 done <<EOT
56 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
57 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
58 EOT
59 }
61 # Pre and post remove commands for Tazpkg.
62 post_remove()
63 {
64 rm -fr $1/var/run/sshd
65 }