wok annotate openssh-pam/receipt @ rev 16754
openssh: fix xauth path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 16 10:50:45 2014 +0200 (2014-06-16) |
parents | 620808340f7a |
children | 95ae6a87842c |
rev | line source |
---|---|
pascal@2188 | 1 # SliTaz package receipt. |
pascal@2188 | 2 |
pascal@2188 | 3 PACKAGE="openssh-pam" |
pascal@16737 | 4 VERSION="6.6p1" |
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@14772 | 13 TAZPANEL_DAEMON="man::sshd|edit::/etc/ssh/sshd_config|options::OPENSSH_OPTIONS|web::$WEB_SITE" |
pascal@14772 | 14 PROVIDE="openssh:pam ssh:pam" |
pascal@14772 | 15 |
pascal@3628 | 16 DEPENDS="sftp-server libcrypto zlib pam" |
pascal@2188 | 17 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev pam pam-dev" |
pascal@2188 | 18 |
pascal@2188 | 19 # Rules to configure and make the package. |
pascal@2188 | 20 compile_rules() |
pascal@2188 | 21 { |
pascal@2188 | 22 cd $src |
pascal@2188 | 23 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam \ |
pascal@2188 | 24 --with-privsep-user=nobody --with-privsep-path=/var/run/sshd \ |
pascal@16754 | 25 --with-xauth=/usr/bin/xauth \ |
pankso@2213 | 26 --libexecdir=/usr/sbin \ |
pascal@2188 | 27 $CONFIGURE_ARGS && |
pascal@2188 | 28 make && |
slaxemulator@11063 | 29 make DESTDIR=$DESTDIR install |
pascal@2188 | 30 } |
pascal@2188 | 31 |
pascal@2188 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2188 | 33 genpkg_rules() |
pascal@2188 | 34 { |
mojo@14531 | 35 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh |
pascal@14772 | 36 cp -a $install/usr/sbin $install/usr/bin $fs/usr |
pascal@3628 | 37 rm -f $fs/usr/sbin/sftp-server |
pascal@14772 | 38 cp -a $install/etc $fs |
slaxemulator@9701 | 39 cp ../$SOURCE/stuff/openssh $fs/etc/init.d |
slaxemulator@9003 | 40 sed -i 's/.*UsePAM.*/UsePAM yes/' $fs/etc/ssh/sshd_config |
pascal@2188 | 41 } |
pascal@2188 | 42 |
pascal@7303 | 43 post_install() |
pascal@7303 | 44 { |
pascal@16754 | 45 while read dropbear openssh ; do |
pascal@16754 | 46 [ -s $1$dropbear ] || continue |
pascal@7303 | 47 dropbearconvert dropbear openssh $1$dropbear $1$openssh |
pascal@7303 | 48 dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub |
pascal@7303 | 49 dropbearkey -y -f $1$dropbear | grep Fingerprint |
pascal@16754 | 50 done <<EOT |
pascal@7303 | 51 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key |
pascal@7305 | 52 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key |
pascal@7303 | 53 EOT |
pascal@7303 | 54 } |