wok view openssh-pam/receipt @ rev 16970

apache-ant: Up (1.9.4)
author Yuri Pourre <yuripourre@gmail.com>
date Mon Aug 04 14:34:03 2014 -0300 (2014-08-04)
parents 620808340f7a
children 95ae6a87842c
line source
1 # SliTaz package receipt.
3 PACKAGE="openssh-pam"
4 VERSION="6.6p1"
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 --with-xauth=/usr/bin/xauth \
26 --libexecdir=/usr/sbin \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh
36 cp -a $install/usr/sbin $install/usr/bin $fs/usr
37 rm -f $fs/usr/sbin/sftp-server
38 cp -a $install/etc $fs
39 cp ../$SOURCE/stuff/openssh $fs/etc/init.d
40 sed -i 's/.*UsePAM.*/UsePAM yes/' $fs/etc/ssh/sshd_config
41 }
43 post_install()
44 {
45 while read dropbear openssh ; do
46 [ -s $1$dropbear ] || continue
47 dropbearconvert dropbear openssh $1$dropbear $1$openssh
48 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
49 dropbearkey -y -f $1$dropbear | grep Fingerprint
50 done <<EOT
51 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
52 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
53 EOT
54 }