wok annotate 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 |
rev | line source |
---|---|
pascal@2188 | 1 # SliTaz package receipt. |
pascal@2188 | 2 |
pascal@2188 | 3 PACKAGE="openssh-pam" |
slaxemulator@11063 | 4 VERSION="5.9p1" |
pascal@2188 | 5 CATEGORY="security" |
pascal@2188 | 6 SHORT_DESC="Openbsd Secure Shell using PAM." |
pascal@2188 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14657 | 8 LICENSE="BSD" |
pascal@2188 | 9 SOURCE="openssh" |
pascal@2188 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2188 | 11 WEB_SITE="http://www.openssh.org/" |
pascal@2188 | 12 WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL" |
pascal@3628 | 13 DEPENDS="sftp-server libcrypto zlib pam" |
pascal@2188 | 14 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev pam pam-dev" |
pascal@4904 | 15 PROVIDE="openssh:pam ssh:pam" |
pascal@2188 | 16 |
pascal@2188 | 17 # Rules to configure and make the package. |
pascal@2188 | 18 compile_rules() |
pascal@2188 | 19 { |
pascal@2188 | 20 cd $src |
pascal@2188 | 21 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam \ |
pascal@2188 | 22 --with-privsep-user=nobody --with-privsep-path=/var/run/sshd \ |
pankso@2213 | 23 --libexecdir=/usr/sbin \ |
pascal@2188 | 24 $CONFIGURE_ARGS && |
pascal@2188 | 25 make && |
slaxemulator@11063 | 26 make DESTDIR=$DESTDIR install |
pascal@2188 | 27 } |
pascal@2188 | 28 |
pascal@2188 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2188 | 30 genpkg_rules() |
pascal@2188 | 31 { |
mojo@14531 | 32 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh |
pankso@2213 | 33 cp -a $_pkg/usr/sbin $_pkg/usr/bin $fs/usr |
pascal@3628 | 34 rm -f $fs/usr/sbin/sftp-server |
pascal@2188 | 35 cp -a $_pkg/etc $fs |
slaxemulator@9701 | 36 cp ../$SOURCE/stuff/openssh $fs/etc/init.d |
slaxemulator@9003 | 37 sed -i 's/.*UsePAM.*/UsePAM yes/' $fs/etc/ssh/sshd_config |
pascal@2188 | 38 } |
pascal@2188 | 39 |
pascal@7303 | 40 # Pre and post install commands for Tazpkg. |
mojo@14531 | 41 pre_install() |
mojo@14531 | 42 { |
mojo@14531 | 43 mkdir -p /var/run/sshd |
mojo@14531 | 44 } |
mojo@14531 | 45 |
pascal@7303 | 46 post_install() |
pascal@7303 | 47 { |
mojo@14531 | 48 while read dropbear openssh ; do |
pascal@7303 | 49 [ -s $dropbear ] || continue |
pascal@7303 | 50 dropbearconvert dropbear openssh $1$dropbear $1$openssh |
pascal@7303 | 51 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub |
pascal@7303 | 52 dropbearkey -y -f $1$dropbear | grep Fingerprint |
mojo@14531 | 53 done <<EOT |
pascal@7303 | 54 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key |
pascal@7305 | 55 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key |
pascal@7303 | 56 EOT |
pascal@7303 | 57 } |
mojo@14531 | 58 |
mojo@14531 | 59 # Pre and post remove commands for Tazpkg. |
mojo@14531 | 60 post_remove() |
mojo@14531 | 61 { |
mojo@14531 | 62 rm -fr /var/run/sshd |
mojo@14531 | 63 } |