Create /usr/share/shorewall/configfiles

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3965 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-05-30 20:10:52 +00:00
parent a181896cfc
commit b747f50f23
2 changed files with 102 additions and 0 deletions

View File

@ -246,25 +246,32 @@ echo "Shorewall script installed in ${PREFIX}${DEST}/$INIT"
#
mkdir -p ${PREFIX}/etc/shorewall
mkdir -p ${PREFIX}/usr/share/shorewall
mkdir -p ${PREFIX}/usr/share/shorewall/configfiles
mkdir -p ${PREFIX}/var/lib/shorewall
chmod 755 ${PREFIX}/etc/shorewall
chmod 755 ${PREFIX}/usr/share/shorewall
chmod 755 ${PREFIX}/usr/share/shorewall/configfiles
#
# Install the config file
#
run_install $OWNERSHIP -m 0744 shorewall.conf ${PREFIX}/usr/share/shorewall/configfiles/shorewall.conf
if [ ! -f ${PREFIX}/etc/shorewall/shorewall.conf ]; then
run_install $OWNERSHIP -m 0744 shorewall.conf ${PREFIX}/etc/shorewall/shorewall.conf
echo "Config file installed as ${PREFIX}/etc/shorewall/shorewall.conf"
fi
if [ -n "$ARCHLINUX" ] ; then
sed -e 's!LOGFILE=/var/log/messages!LOGFILE=/var/log/messages.log!' -i ${PREFIX}/etc/shorewall/shorewall.conf
fi
#
# Install the zones file
#
run_install $OWNERSHIP -m 0744 zones ${PREFIX}/usr/share/shorewall/configfiles/zones
if [ ! -f ${PREFIX}/etc/shorewall/zones ]; then
run_install $OWNERSHIP -m 0744 zones ${PREFIX}/etc/shorewall/zones
echo "Zones file installed as ${PREFIX}/etc/shorewall/zones"
@ -306,6 +313,8 @@ echo "Help command executor installed in ${PREFIX}/usr/share/shorewall/help"
#
# Install the policy file
#
run_install $OWNERSHIP -m 0600 policy ${PREFIX}/usr/share/shorewall/configfiles/policy
if [ ! -f ${PREFIX}/etc/shorewall/policy ]; then
run_install $OWNERSHIP -m 0600 policy ${PREFIX}/etc/shorewall/policy
echo "Policy file installed as ${PREFIX}/etc/shorewall/policy"
@ -313,6 +322,8 @@ fi
#
# Install the interfaces file
#
run_install $OWNERSHIP -m 0600 interfaces ${PREFIX}/usr/share/shorewall/configfiles/interfaces
if [ ! -f ${PREFIX}/etc/shorewall/interfaces ]; then
run_install $OWNERSHIP -m 0600 interfaces ${PREFIX}/etc/shorewall/interfaces
echo "Interfaces file installed as ${PREFIX}/etc/shorewall/interfaces"
@ -320,6 +331,8 @@ fi
#
# Install the ipsec file
#
run_install $OWNERSHIP -m 0600 ipsec ${PREFIX}/usr/share/shorewall/configfiles/ipsec
if [ ! -f ${PREFIX}/etc/shorewall/ipsec ]; then
run_install $OWNERSHIP -m 0600 ipsec ${PREFIX}/etc/shorewall/ipsec
echo "Dummy IPSEC file installed as ${PREFIX}/etc/shorewall/ipsec"
@ -328,6 +341,8 @@ fi
#
# Install the hosts file
#
run_install $OWNERSHIP -m 0600 hosts ${PREFIX}/usr/share/shorewall/configfiles/hosts
if [ ! -f ${PREFIX}/etc/shorewall/hosts ]; then
run_install $OWNERSHIP -m 0600 hosts ${PREFIX}/etc/shorewall/hosts
echo "Hosts file installed as ${PREFIX}/etc/shorewall/hosts"
@ -335,6 +350,8 @@ fi
#
# Install the rules file
#
run_install $OWNERSHIP -m 0600 rules ${PREFIX}/usr/share/shorewall/configfiles/rules
if [ ! -f ${PREFIX}/etc/shorewall/rules ]; then
run_install $OWNERSHIP -m 0600 rules ${PREFIX}/etc/shorewall/rules
echo "Rules file installed as ${PREFIX}/etc/shorewall/rules"
@ -342,6 +359,8 @@ fi
#
# Install the NAT file
#
run_install $OWNERSHIP -m 0600 nat ${PREFIX}/usr/share/shorewall/configfiles/nat
if [ ! -f ${PREFIX}/etc/shorewall/nat ]; then
run_install $OWNERSHIP -m 0600 nat ${PREFIX}/etc/shorewall/nat
echo "NAT file installed as ${PREFIX}/etc/shorewall/nat"
@ -349,6 +368,8 @@ fi
#
# Install the NETMAP file
#
run_install $OWNERSHIP -m 0600 netmap ${PREFIX}/usr/share/shorewall/configfiles/netmap
if [ ! -f ${PREFIX}/etc/shorewall/netmap ]; then
run_install $OWNERSHIP -m 0600 netmap ${PREFIX}/etc/shorewall/netmap
echo "NETMAP file installed as ${PREFIX}/etc/shorewall/netmap"
@ -356,6 +377,8 @@ fi
#
# Install the Parameters file
#
run_install $OWNERSHIP -m 0600 params ${PREFIX}/usr/share/shorewall/configfiles/params
if [ ! -f ${PREFIX}/etc/shorewall/params ]; then
run_install $OWNERSHIP -m 0600 params ${PREFIX}/etc/shorewall/params
echo "Parameter file installed as ${PREFIX}/etc/shorewall/params"
@ -363,6 +386,8 @@ fi
#
# Install the proxy ARP file
#
run_install $OWNERSHIP -m 0600 proxyarp ${PREFIX}/usr/share/shorewall/configfiles/proxyarp
if [ ! -f ${PREFIX}/etc/shorewall/proxyarp ]; then
run_install $OWNERSHIP -m 0600 proxyarp ${PREFIX}/etc/shorewall/proxyarp
echo "Proxy ARP file installed as ${PREFIX}/etc/shorewall/proxyarp"
@ -370,6 +395,8 @@ fi
#
# Install the Stopped Routing file
#
run_install $OWNERSHIP -m 0600 routestopped ${PREFIX}/usr/share/shorewall/configfiles/routestopped
if [ ! -f ${PREFIX}/etc/shorewall/routestopped ]; then
run_install $OWNERSHIP -m 0600 routestopped ${PREFIX}/etc/shorewall/routestopped
echo "Stopped Routing file installed as ${PREFIX}/etc/shorewall/routestopped"
@ -377,6 +404,8 @@ fi
#
# Install the Mac List file
#
run_install $OWNERSHIP -m 0600 maclist ${PREFIX}/usr/share/shorewall/configfiles/maclist
if [ ! -f ${PREFIX}/etc/shorewall/maclist ]; then
run_install $OWNERSHIP -m 0600 maclist ${PREFIX}/etc/shorewall/maclist
echo "MAC list file installed as ${PREFIX}/etc/shorewall/maclist"
@ -384,6 +413,8 @@ fi
#
# Install the Masq file
#
run_install $OWNERSHIP -m 0600 masq ${PREFIX}/usr/share/shorewall/configfiles/masq
if [ ! -f ${PREFIX}/etc/shorewall/masq ]; then
run_install $OWNERSHIP -m 0600 masq ${PREFIX}/etc/shorewall/masq
echo "Masquerade file installed as ${PREFIX}/etc/shorewall/masq"
@ -404,6 +435,8 @@ fi
#
# Install the TC Rules file
#
run_install $OWNERSHIP -m 0600 tcrules ${PREFIX}/usr/share/shorewall/configfiles/tcrules
if [ ! -f ${PREFIX}/etc/shorewall/tcrules ]; then
run_install $OWNERSHIP -m 0600 tcrules ${PREFIX}/etc/shorewall/tcrules
echo "TC Rules file installed as ${PREFIX}/etc/shorewall/tcrules"
@ -412,6 +445,8 @@ fi
#
# Install the TOS file
#
run_install $OWNERSHIP -m 0600 tos ${PREFIX}/usr/share/shorewall/configfiles/tos
if [ ! -f ${PREFIX}/etc/shorewall/tos ]; then
run_install $OWNERSHIP -m 0600 tos ${PREFIX}/etc/shorewall/tos
echo "TOS file installed as ${PREFIX}/etc/shorewall/tos"
@ -419,6 +454,8 @@ fi
#
# Install the Tunnels file
#
run_install $OWNERSHIP -m 0600 tunnels ${PREFIX}/usr/share/shorewall/configfiles/tunnels
if [ ! -f ${PREFIX}/etc/shorewall/tunnels ]; then
run_install $OWNERSHIP -m 0600 tunnels ${PREFIX}/etc/shorewall/tunnels
echo "Tunnels file installed as ${PREFIX}/etc/shorewall/tunnels"
@ -426,6 +463,8 @@ fi
#
# Install the blacklist file
#
run_install $OWNERSHIP -m 0600 blacklist ${PREFIX}/usr/share/shorewall/configfiles/blacklist
if [ ! -f ${PREFIX}/etc/shorewall/blacklist ]; then
run_install $OWNERSHIP -m 0600 blacklist ${PREFIX}/etc/shorewall/blacklist
echo "Blacklist file installed as ${PREFIX}/etc/shorewall/blacklist"
@ -443,6 +482,8 @@ delete_file ${PREFIX}/usr/share/shorewall/tcstart
#
# Install the Providers file
#
run_install $OWNERSHIP -m 0600 providers ${PREFIX}/usr/share/shorewall/configfiles/providers
if [ ! -f ${PREFIX}/etc/shorewall/providers ]; then
run_install $OWNERSHIP -m 0600 providers ${PREFIX}/etc/shorewall/providers
echo "Providers file installed as ${PREFIX}/etc/shorewall/providers"
@ -451,6 +492,8 @@ fi
#
# Install the Route Rules file
#
run_install $OWNERSHIP -m 0600 route_rules ${PREFIX}/usr/share/shorewall/configfiles/route_rules
if [ ! -f ${PREFIX}/etc/shorewall/route_rules ]; then
run_install $OWNERSHIP -m 0600 route_rules ${PREFIX}/etc/shorewall/route_rules
echo "Routing rules file installed as ${PREFIX}/etc/shorewall/route_rules"
@ -459,6 +502,8 @@ fi
#
# Install the tcclasses file
#
run_install $OWNERSHIP -m 0600 tcclasses ${PREFIX}/usr/share/shorewall/configfiles/tcclasses
if [ ! -f ${PREFIX}/etc/shorewall/tcclasses ]; then
run_install $OWNERSHIP -m 0600 tcclasses ${PREFIX}/etc/shorewall/tcclasses
echo "TC Classes file installed as ${PREFIX}/etc/shorewall/tcclasses"
@ -467,6 +512,8 @@ fi
#
# Install the tcdevices file
#
run_install $OWNERSHIP -m 0600 tcdevices ${PREFIX}/usr/share/shorewall/configfiles/tcdevices
if [ ! -f ${PREFIX}/etc/shorewall/tcdevices ]; then
run_install $OWNERSHIP -m 0600 tcdevices ${PREFIX}/etc/shorewall/tcdevices
echo "TC Devices file installed as ${PREFIX}/etc/shorewall/tcdevices"
@ -485,6 +532,8 @@ echo "Default config path file installed as ${PREFIX}/usr/share/shorewall/config
#
# Install the init file
#
echo "Init file installed as ${PREFIX}/usr/share/shorewall/configfiles/init"
if [ ! -f ${PREFIX}/etc/shorewall/init ]; then
run_install $OWNERSHIP -m 0600 init ${PREFIX}/etc/shorewall/init
echo "Init file installed as ${PREFIX}/etc/shorewall/init"
@ -492,6 +541,8 @@ fi
#
# Install the initdone file
#
run_install $OWNERSHIP -m 0600 initdone ${PREFIX}/usr/share/shorewall/configfiles/initdone
if [ ! -f ${PREFIX}/etc/shorewall/initdone ]; then
run_install $OWNERSHIP -m 0600 initdone ${PREFIX}/etc/shorewall/initdone
echo "Initdone file installed as ${PREFIX}/etc/shorewall/initdone"
@ -499,6 +550,8 @@ fi
#
# Install the start file
#
run_install $OWNERSHIP -m 0600 start ${PREFIX}/usr/share/shorewall/configfiles/start
if [ ! -f ${PREFIX}/etc/shorewall/start ]; then
run_install $OWNERSHIP -m 0600 start ${PREFIX}/etc/shorewall/start
echo "Start file installed as ${PREFIX}/etc/shorewall/start"
@ -506,6 +559,8 @@ fi
#
# Install the stop file
#
run_install $OWNERSHIP -m 0600 stop ${PREFIX}/usr/share/shorewall/configfiles/stop
if [ ! -f ${PREFIX}/etc/shorewall/stop ]; then
run_install $OWNERSHIP -m 0600 stop ${PREFIX}/etc/shorewall/stop
echo "Stop file installed as ${PREFIX}/etc/shorewall/stop"
@ -513,6 +568,8 @@ fi
#
# Install the stopped file
#
run_install $OWNERSHIP -m 0600 stopped ${PREFIX}/usr/share/shorewall/configfiles/stopped
if [ ! -f ${PREFIX}/etc/shorewall/stopped ]; then
run_install $OWNERSHIP -m 0600 stopped ${PREFIX}/etc/shorewall/stopped
echo "Stopped file installed as ${PREFIX}/etc/shorewall/stopped"
@ -520,6 +577,8 @@ fi
#
# Install the ECN file
#
run_install $OWNERSHIP -m 0600 ecn ${PREFIX}/usr/share/shorewall/configfiles/ecn
if [ ! -f ${PREFIX}/etc/shorewall/ecn ]; then
run_install $OWNERSHIP -m 0600 ecn ${PREFIX}/etc/shorewall/ecn
echo "ECN file installed as ${PREFIX}/etc/shorewall/ecn"
@ -527,6 +586,8 @@ fi
#
# Install the Accounting file
#
run_install $OWNERSHIP -m 0600 accounting ${PREFIX}/usr/share/shorewall/configfiles/accounting
if [ ! -f ${PREFIX}/etc/shorewall/accounting ]; then
run_install $OWNERSHIP -m 0600 accounting ${PREFIX}/etc/shorewall/accounting
echo "Accounting file installed as ${PREFIX}/etc/shorewall/accounting"
@ -534,6 +595,8 @@ fi
#
# Install the Continue file
#
run_install $OWNERSHIP -m 0600 continue ${PREFIX}/usr/share/shorewall/configfiles/continue
if [ ! -f ${PREFIX}/etc/shorewall/continue ]; then
run_install $OWNERSHIP -m 0600 continue ${PREFIX}/etc/shorewall/continue
echo "Continue file installed as ${PREFIX}/etc/shorewall/continue"
@ -541,6 +604,8 @@ fi
#
# Install the Started file
#
run_install $OWNERSHIP -m 0600 started ${PREFIX}/usr/share/shorewall/configfiles/started
if [ ! -f ${PREFIX}/etc/shorewall/started ]; then
run_install $OWNERSHIP -m 0600 started ${PREFIX}/etc/shorewall/started
echo "Started file installed as ${PREFIX}/etc/shorewall/started"
@ -554,6 +619,8 @@ echo "Standard actions file installed as ${PREFIX}/etc/shorewall/actions.std"
#
# Install the Actions file
#
run_install $OWNERSHIP -m 0644 actions ${PREFIX}/usr/share/shorewall/configfiles/actions
if [ ! -f ${PREFIX}/etc/shorewall/actions ]; then
run_install $OWNERSHIP -m 0644 actions ${PREFIX}/etc/shorewall/actions
echo "Actions file installed as ${PREFIX}/etc/shorewall/actions"
@ -562,6 +629,7 @@ fi
#
# Install the Makefile
#
run_install $OWNERSHIP -m 0600 Makefile ${PREFIX}/usr/share/shorewall/configfiles/Makefile
run_install $OWNERSHIP -m 0600 Makefile ${PREFIX}/etc/shorewall/Makefile
echo "Makefile installed as ${PREFIX}/etc/shorewall/Makefile"

View File

@ -178,6 +178,40 @@ fi
%attr(0644,root,root) /usr/share/shorewall/configpath
%attr(0644,root,root) /usr/share/shorewall/xmodules
%attr(0644,root,root) /usr/share/shorewall/configfiles/shorewall.conf
%attr(0600,root,root) /usr/share/shorewall/configfiles/zones
%attr(0600,root,root) /usr/share/shorewall/configfiles/policy
%attr(0600,root,root) /usr/share/shorewall/configfiles/interfaces
%attr(0600,root,root) /usr/share/shorewall/configfiles/ipsec
%attr(0600,root,root) /usr/share/shorewall/configfiles/rules
%attr(0600,root,root) /usr/share/shorewall/configfiles/nat
%attr(0600,root,root) /usr/share/shorewall/configfiles/netmap
%attr(0600,root,root) /usr/share/shorewall/configfiles/params
%attr(0600,root,root) /usr/share/shorewall/configfiles/proxyarp
%attr(0600,root,root) /usr/share/shorewall/configfiles/routestopped
%attr(0600,root,root) /usr/share/shorewall/configfiles/maclist
%attr(0600,root,root) /usr/share/shorewall/configfiles/masq
%attr(0600,root,root) /usr/share/shorewall/configfiles/tcrules
%attr(0600,root,root) /usr/share/shorewall/configfiles/tos
%attr(0600,root,root) /usr/share/shorewall/configfiles/tunnels
%attr(0600,root,root) /usr/share/shorewall/configfiles/hosts
%attr(0600,root,root) /usr/share/shorewall/configfiles/blacklist
%attr(0600,root,root) /usr/share/shorewall/configfiles/init
%attr(0600,root,root) /usr/share/shorewall/configfiles/initdone
%attr(0600,root,root) /usr/share/shorewall/configfiles/start
%attr(0600,root,root) /usr/share/shorewall/configfiles/stop
%attr(0600,root,root) /usr/share/shorewall/configfiles/stopped
%attr(0600,root,root) /usr/share/shorewall/configfiles/ecn
%attr(0600,root,root) /usr/share/shorewall/configfiles/accounting
%attr(0600,root,root) /usr/share/shorewall/configfiles/actions
%attr(0600,root,root) /usr/share/shorewall/configfiles/continue
%attr(0600,root,root) /usr/share/shorewall/configfiles/started
%attr(0600,root,root) /usr/share/shorewall/configfiles/providers
%attr(0600,root,root) /usr/share/shorewall/configfiles/route_rules
%attr(0600,root,root) /usr/share/shorewall/configfiles/tcclasses
%attr(0600,root,root) /usr/share/shorewall/configfiles/tcdevices
%attr(0600,root,root) /usr/share/shorewall/configfiles/Makefile
%doc COPYING INSTALL changelog.txt releasenotes.txt tunnel ipsecvpn Samples
%changelog