wok-6.x diff busybox-httpd-ctrl/receipt @ rev 19319

Add busybox-httpd-ctrl (fast to: start and stop in menu)
author Leonardo Laporte <hackdorte@sapo.pt>
date Wed Jul 13 11:40:02 2016 -0300 (2016-07-13)
parents
children f7c899b7a001
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox-httpd-ctrl/receipt	Wed Jul 13 11:40:02 2016 -0300
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="busybox-httpd-ctrl"
     1.7 +VERSION="1.23.2"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Add menu entry to control the Busybox Httpd Web Server."
    1.10 +MAINTAINER="hackdorte@sapo.pt"
    1.11 +LICENSE="GPL2"
    1.12 +WEB_SITE="http://www.busybox.net/"
    1.13 +
    1.14 +TAGS="busybox control web server"
    1.15 +
    1.16 +DEPENDS="busybox"
    1.17 +BUILD_DEPENDS=""
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +
    1.23 +	mkdir -p $install/usr/bin
    1.24 +	mkdir -p $install/usr/share/applications
    1.25 +
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +
    1.32 +	cp -a $stuff/usr/bin/httpd-start.txt \
    1.33 +	$install/usr/bin/httpd-ctrl-start
    1.34 +
    1.35 +	cp -a $stuff/usr/bin/httpd-stop.txt \
    1.36 +	$install/usr/bin/httpd-ctrl-stop
    1.37 +
    1.38 +	cp -a $stuff/usr/share/applications/* \
    1.39 +	$install/usr/share/applications
    1.40 +
    1.41 +	cp -a $install/* $fs/
    1.42 +
    1.43 +}
    1.44 +
    1.45 +post_install()
    1.46 +{
    1.47 +
    1.48 +	chmod +x $1/usr/bin/httpd-ctrl-start
    1.49 +	chmod +x $1/usr/bin/httpd-ctrl-stop
    1.50 +
    1.51 +}