summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Poslavsky <alexander.poslavsky@gmail.com>2007-11-02 10:02:07 +0000
committerAlexander Poslavsky <alexander.poslavsky@gmail.com>2007-11-02 10:02:07 +0000
commit5e22762db6347206298a823199d6e523d2dbf9e7 (patch)
treef8dd45f6b52f0eee42aec840e9127098213642a1
parentdfaa2a667a33027459e46bc9808350607892b4d2 (diff)
downloadacf-shorewall-5e22762db6347206298a823199d6e523d2dbf9e7.tar.bz2
acf-shorewall-5e22762db6347206298a823199d6e523d2dbf9e7.tar.xz
added service model, should be able to start/stop shorewall
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@256 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--Makefile8
-rw-r--r--config.mk1
-rw-r--r--firewall.srv5
3 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 317c99c..2884d94 100644
--- a/Makefile
+++ b/Makefile
@@ -6,11 +6,17 @@ APP_DIST=\
shorewall-controller.lua \
shorewall-html.lsp \
shorewall-read-html.lsp \
+ shorewall-restart-html.lsp \
+ shorewall-start-html.lsp \
+ shorewall-stop-html.lsp \
shorewall.menu
APP_CFG=\
firewall.cfg
+APP_SRV=\
+ firewall.srv
+
EXTRA_DIST=Makefile config.mk
DISTFILES=$(APP_DIST) $(EXTRA_DIST)
@@ -32,6 +38,8 @@ install:
cp -a $(APP_DIST) "$(install_dir)"
mkdir -p "$(cfgdir)"
cp -a $(APP_CFG) "$(cfgdir)"
+ mkdir -p "$(srvdir)"
+ cp -a $(APP_SRV) "$(srvdir)"
$(tarball): $(DISTFILES)
rm -rf $(P)
diff --git a/config.mk b/config.mk
index f67accc..2cd6b46 100644
--- a/config.mk
+++ b/config.mk
@@ -7,5 +7,6 @@ wwwdir=${acfdir}/www
cgibindir=${acfdir}/cgi-bin
appdir=${acfdir}/app
cfgdir=${appdir}/cfgfile
+srvdir=${appdir}/service
acflibdir=${acfdir}/lib
sessionsdir=${localstatedir}/lib/acf/sessions
diff --git a/firewall.srv b/firewall.srv
new file mode 100644
index 0000000..0a3d456
--- /dev/null
+++ b/firewall.srv
@@ -0,0 +1,5 @@
+{ app="firewall", name="shorewall", initd="shorewall",
+ status="initd", start="initd", stop="initd" },
+
+-- vim: set filetype=lua :
+