wok view openssh-pam/receipt @ rev 15820

Up: bazaar to 2.6.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Jan 24 07:06:04 2014 +0000 (2014-01-24)
parents e9130cce9043
children 99f12c8f02ec
line source
1 # SliTaz package receipt.
3 PACKAGE="openssh-pam"
4 VERSION="6.4p1"
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 }