wok-next diff shellinabox/receipt @ rev 20604

More fix libtool.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 19 13:15:41 2018 +0300 (2018-04-19)
parents c75265fb6c4b
children d5aab818505e
line diff
     1.1 --- a/shellinabox/receipt	Wed Feb 03 17:03:06 2016 +0100
     1.2 +++ b/shellinabox/receipt	Thu Apr 19 13:15:41 2018 +0300
     1.3 @@ -1,53 +1,48 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="shellinabox"
     1.8  VERSION="2.14"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Ajax web based terminal emulator."
    1.11 +SHORT_DESC="Web based AJAX terminal emulator"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="https://code.google.com/archive/p/shellinabox/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://$PACKAGE.googlecode.com/"
    1.18 -WGET_URL="${WEB_SITE}files/$TARBALL"
    1.19 -TAGS="web application"
    1.20 +WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shellinabox/$TARBALL"
    1.21  
    1.22 -DEPENDS="zlib"
    1.23  BUILD_DEPENDS="zlib-dev"
    1.24 -SUGGESTED="ssh knock"
    1.25  
    1.26 -# Rules to configure and make the package.
    1.27 -compile_rules()
    1.28 -{
    1.29 -	./configure --prefix=/usr \
    1.30 -		--mandir=/usr/share/man \
    1.31 -		$CONFIGURE_ARGS &&
    1.32 +compile_rules() {
    1.33 +	./configure $CONFIGURE_ARGS &&
    1.34 +	fix libtool &&
    1.35  	make &&
    1.36 -	make DESTDIR=$DESTDIR install
    1.37 +	make DESTDIR=$DESTDIR install || return 1
    1.38 +
    1.39 +	mkdir -p \
    1.40 +		$install/usr/share/shellinabox/ \
    1.41 +		$install/etc/init.d/
    1.42 +	cp $install/usr/share/doc/shellinabox/*black*.css $install/usr/share/shellinabox/
    1.43 +	cp $stuff/*.css       $install/usr/share/shellinabox/
    1.44 +	cp $stuff/shellinabox $install/etc/init.d/
    1.45  }
    1.46  
    1.47 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.48 -genpkg_rules()
    1.49 -{
    1.50 -	mkdir -p $fs/usr/bin $fs/usr/share/shellinabox $fs/etc/init.d
    1.51 -	cp -a $install/usr/bin $fs/usr
    1.52 -	cp $install/usr/share/doc/shellinabox/*black*.css $fs/usr/share/shellinabox
    1.53 -	cp $stuff/*.css $fs/usr/share/shellinabox
    1.54 -	cp $stuff/shellinabox $fs/etc/init.d/
    1.55 +genpkg_rules() {
    1.56 +	copy @std
    1.57 +	DEPENDS="zlib"
    1.58 +	SUGGESTED="ssh knock"
    1.59 +	TAGS="web application"
    1.60  }
    1.61  
    1.62 -# Pre and post install commands for Tazpkg.
    1.63  # We stop the server by default in case of upgarde.
    1.64 -pre_install()
    1.65 -{
    1.66 -	[ -z "$1" ] && [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
    1.67 +pre_install() {
    1.68 +	[ -z "$1" ] && [ -f /etc/init.d/shellinabox ] && /etc/init.d/shellinabox stop
    1.69  }
    1.70  
    1.71 -post_install()
    1.72 -{
    1.73 -	[ "$1" ] || /etc/init.d/$PACKAGE start
    1.74 +post_install() {
    1.75 +	[ "$1" ] || /etc/init.d/shellinabox start
    1.76  }
    1.77  
    1.78 -pre_remove()
    1.79 -{
    1.80 -	[ "$1" ] || /etc/init.d/$PACKAGE stop
    1.81 +pre_remove() {
    1.82 +	[ "$1" ] || /etc/init.d/shellinabox stop
    1.83  }