wok-current view openssh-pam/receipt @ rev 14657
Normalize LICENSE according to wok/licenses package (bsd part)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 05 16:21:04 2013 +0200 (2013-06-05) |
parents | 16a37101eab9 |
children | e9130cce9043 |
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 DEPENDS="sftp-server libcrypto zlib pam"
14 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev pam pam-dev"
15 PROVIDE="openssh:pam ssh:pam"
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=$DESTDIR 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
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/ssh/sshd_config
38 }
40 # Pre and post install commands for Tazpkg.
41 pre_install()
42 {
43 mkdir -p /var/run/sshd
44 }
46 post_install()
47 {
48 while read dropbear openssh ; do
49 [ -s $dropbear ] || continue
50 dropbearconvert dropbear openssh $1$dropbear $1$openssh
51 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
52 dropbearkey -y -f $1$dropbear | grep Fingerprint
53 done <<EOT
54 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
55 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
56 EOT
57 }
59 # Pre and post remove commands for Tazpkg.
60 post_remove()
61 {
62 rm -fr /var/run/sshd
63 }