wok 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 | d5a39f30f9f1 |
children | 771fc2222413 |
files | busybox-httpd-ctrl/description.txt busybox-httpd-ctrl/receipt busybox-httpd-ctrl/stuff/usr/bin/httpd-start.txt busybox-httpd-ctrl/stuff/usr/bin/httpd-stop.txt busybox-httpd-ctrl/stuff/usr/share/applications/httpd-start.desktop busybox-httpd-ctrl/stuff/usr/share/applications/httpd-stop.desktop |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/busybox-httpd-ctrl/description.txt Wed Jul 13 11:40:02 2016 -0300 1.3 @@ -0,0 +1,10 @@ 1.4 +Busybox Httpd Control 1.5 + 1.6 +Add menu entry to start and stop the Busybox httpd web server. 1.7 + 1.8 + Menu > Network: 1.9 + 1.10 + - httpd start 1.11 + - httpd stop 1.12 + 1.13 +http://www.busybox.net/
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/busybox-httpd-ctrl/receipt Wed Jul 13 11:40:02 2016 -0300 2.3 @@ -0,0 +1,48 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="busybox-httpd-ctrl" 2.7 +VERSION="1.23.2" 2.8 +CATEGORY="network" 2.9 +SHORT_DESC="Add menu entry to control the Busybox Httpd Web Server." 2.10 +MAINTAINER="hackdorte@sapo.pt" 2.11 +LICENSE="GPL2" 2.12 +WEB_SITE="http://www.busybox.net/" 2.13 + 2.14 +TAGS="busybox control web server" 2.15 + 2.16 +DEPENDS="busybox" 2.17 +BUILD_DEPENDS="" 2.18 + 2.19 +# Rules to configure and make the package. 2.20 +compile_rules() 2.21 +{ 2.22 + 2.23 + mkdir -p $install/usr/bin 2.24 + mkdir -p $install/usr/share/applications 2.25 + 2.26 +} 2.27 + 2.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.29 +genpkg_rules() 2.30 +{ 2.31 + 2.32 + cp -a $stuff/usr/bin/httpd-start.txt \ 2.33 + $install/usr/bin/httpd-ctrl-start 2.34 + 2.35 + cp -a $stuff/usr/bin/httpd-stop.txt \ 2.36 + $install/usr/bin/httpd-ctrl-stop 2.37 + 2.38 + cp -a $stuff/usr/share/applications/* \ 2.39 + $install/usr/share/applications 2.40 + 2.41 + cp -a $install/* $fs/ 2.42 + 2.43 +} 2.44 + 2.45 +post_install() 2.46 +{ 2.47 + 2.48 + chmod +x $1/usr/bin/httpd-ctrl-start 2.49 + chmod +x $1/usr/bin/httpd-ctrl-stop 2.50 + 2.51 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/busybox-httpd-ctrl/stuff/usr/bin/httpd-start.txt Wed Jul 13 11:40:02 2016 -0300 3.3 @@ -0,0 +1,3 @@ 3.4 +#!/bin/sh 3.5 +"/etc/init.d/httpd" "start" 3.6 +browser "http://localhost/" 3.7 \ No newline at end of file
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/busybox-httpd-ctrl/stuff/usr/bin/httpd-stop.txt Wed Jul 13 11:40:02 2016 -0300 4.3 @@ -0,0 +1,3 @@ 4.4 +#!/bin/sh 4.5 +"/etc/init.d/httpd" "stop" 4.6 +browser "http://localhost/" 4.7 \ No newline at end of file
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/busybox-httpd-ctrl/stuff/usr/share/applications/httpd-start.desktop Wed Jul 13 11:40:02 2016 -0300 5.3 @@ -0,0 +1,6 @@ 5.4 +[Desktop Entry] 5.5 +Type=Application 5.6 +Name=httpd start 5.7 +Exec=tazbox su httpd-ctrl-start 5.8 +Icon=network-server 5.9 +Categories=Network; 5.10 \ No newline at end of file
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/busybox-httpd-ctrl/stuff/usr/share/applications/httpd-stop.desktop Wed Jul 13 11:40:02 2016 -0300 6.3 @@ -0,0 +1,6 @@ 6.4 +[Desktop Entry] 6.5 +Type=Application 6.6 +Name=httpd stop 6.7 +Exec=tazbox su httpd-ctrl-stop 6.8 +Icon=network-server 6.9 +Categories=Network; 6.10 \ No newline at end of file