2 # SYNTAX: $sv [...] -- $configure_options
3 # DOC: http://shorewall.net/Introduction.html
4 tool
=$
(readlink
-e "${0%/*}/..")
7 "$tool"/local
/apt-get-install shorewall
8 sudo
install -m 644 -o root
-g root
/dev
/stdin \
9 /etc
/default
/shorewall
<<-EOF
17 for conf
in "$tool"/etc
/shorewall
/*
18 do conf
=${conf#"$tool"/etc/shorewall/}
19 sudo
test ! -f "$tool"/etc
/shorewall
/"$conf" ||
20 sudo
install -m 640 -o root
-g root \
21 "$tool"/etc
/shorewall
/"$conf" \
22 /etc
/shorewall
/"$conf"
24 sudo
install -d -m 750 -o root
-g root \
25 /etc
/shorewall
/macro.d
26 for conf
in "$tool"/etc
/shorewall
/macro.d
/*
27 do conf
=${conf#"$tool"/etc/shorewall/macro.d/}
28 sudo
test ! -f "$tool"/etc
/shorewall
/macro.d
/"$conf" ||
29 sudo
install -m 640 -o root
-g root \
30 "$tool"/etc
/shorewall
/macro.d
/"$conf" \
31 /etc
/shorewall
/macro.d
/"$conf"
33 sudo
install -d -m 750 -o root
-g root \
34 /etc
/shorewall
/action.d
35 #for conf in "$tool"/etc/shorewall/action.d/*
36 # do conf=${conf#"$tool"/etc/shorewall/action.d/}
37 # sudo test ! -f "$tool"/etc/shorewall/action.d/"$conf" ||
38 # sudo install -m 640 -o root -g root \
39 # "$tool"/etc/shorewall/action.d/"$conf" \
40 # /etc/shorewall/action.d/"$conf"
42 #sudo shorewall safe-restart