wok diff shellinabox/receipt @ rev 20102

Add plsh & pypdf2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 09 13:07:28 2017 +0200 (2017-10-09)
parents d32cd5bcfcf1
children 8dd8bab3f0ca
line diff
     1.1 --- a/shellinabox/receipt	Mon Feb 01 23:23:12 2016 +0100
     1.2 +++ b/shellinabox/receipt	Mon Oct 09 13:07:28 2017 +0200
     1.3 @@ -13,13 +13,14 @@
     1.4  
     1.5  DEPENDS="zlib"
     1.6  BUILD_DEPENDS="zlib-dev"
     1.7 +SUGGESTED="ssh knock"
     1.8  
     1.9  # Rules to configure and make the package.
    1.10  compile_rules()
    1.11  {
    1.12  	./configure --prefix=/usr \
    1.13 -	--mandir=/usr/share/man \
    1.14 -	$CONFIGURE_ARGS &&
    1.15 +		--mandir=/usr/share/man \
    1.16 +		$CONFIGURE_ARGS &&
    1.17  	make &&
    1.18  	make DESTDIR=$DESTDIR install
    1.19  }
    1.20 @@ -27,6 +28,26 @@
    1.21  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.22  genpkg_rules()
    1.23  {
    1.24 -	mkdir -p $fs/usr/bin
    1.25 +	mkdir -p $fs/usr/bin $fs/usr/share/shellinabox $fs/etc/init.d
    1.26  	cp -a $install/usr/bin $fs/usr
    1.27 +	cp $install/usr/share/doc/shellinabox/*black*.css $fs/usr/share/shellinabox
    1.28 +	cp $stuff/*.css $fs/usr/share/shellinabox
    1.29 +	cp $stuff/shellinabox $fs/etc/init.d/
    1.30  }
    1.31 +
    1.32 +# Pre and post install commands for Tazpkg.
    1.33 +# We stop the server by default in case of upgarde.
    1.34 +pre_install()
    1.35 +{
    1.36 +	[ -z "$1" ] && [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
    1.37 +}
    1.38 +
    1.39 +post_install()
    1.40 +{
    1.41 +	[ "$1" ] || /etc/init.d/$PACKAGE start
    1.42 +}
    1.43 +
    1.44 +pre_remove()
    1.45 +{
    1.46 +	[ "$1" ] || /etc/init.d/$PACKAGE stop
    1.47 +}