~mdw
/
firewall
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0850e50
)
local.mk: Add install rule.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 7 Jan 2009 19:04:52 +0000
(19:04 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 7 Jan 2009 19:04:52 +0000
(19:04 +0000)
local.mk
patch
|
blob
|
blame
|
history
diff --git
a/local.mk
b/local.mk
index
ccdd6a4
..
c413cdb
100644
(file)
--- a/
local.mk
+++ b/
local.mk
@@
-4,3
+4,15
@@
MAIN_M4_SOURCES += local.m4
HOSTS += metalzone
HOSTS += vampire
+
+ROOT = become root
+
+## Installation.
+install: all
+ firewall_script=./`hostname`.sh && \
+ firewall_failsafe=/etc/init.d/firewall && \
+ export firewall_script firewall_failsafe && \
+ $(ROOT) ./$$firewall_script
+ for i in $(HOSTS); do \
+ $(ROOT) scp $$i.sh $$i:/etc/init.d/firewall; \
+ done