wok-6.x view openssh-pam/receipt @ rev 16681

Create some /var/run/<dir> in /etc/init.d/<daemon> scritps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 18 20:24:07 2014 +0000 (2014-05-18)
parents 99f12c8f02ec
children 620808340f7a
line source
1 # SliTaz package receipt.
3 PACKAGE="openssh-pam"
4 VERSION="6.5p1"
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 post_install()
43 {
44 [ "$1" ] || while read dropbear openssh ; do
45 [ -s $dropbear ] || continue
46 dropbearconvert dropbear openssh $1$dropbear $1$openssh
47 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
48 dropbearkey -y -f $1$dropbear | grep Fingerprint
49 done <<EOT
50 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
51 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
52 EOT
53 }