forked from extern/shorewall_code
Many changes to .spec and install scripts
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6739 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
516f3d99ad
commit
26cd32fd6f
@ -231,7 +231,7 @@ else
|
|||||||
first_install="Yes"
|
first_install="Yes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install_file_with_backup shorewall ${PREFIX}/sbin/shorewall 0555 ${PREFIX}/var/lib/shorewall-${VERSION}.bkout
|
install_file_with_backup shorewall ${PREFIX}/sbin/shorewall 0755 ${PREFIX}/var/lib/shorewall-${VERSION}.bkout
|
||||||
|
|
||||||
echo "shorewall control program installed in ${PREFIX}/sbin/shorewall"
|
echo "shorewall control program installed in ${PREFIX}/sbin/shorewall"
|
||||||
|
|
||||||
@ -304,7 +304,7 @@ delete_file ${PREFIX}/usr/share/shorewall/prog.footer
|
|||||||
# Install wait4ifup
|
# Install wait4ifup
|
||||||
#
|
#
|
||||||
|
|
||||||
install_file wait4ifup ${PREFIX}/usr/share/shorewall/wait4ifup 0555
|
install_file wait4ifup ${PREFIX}/usr/share/shorewall/wait4ifup 0755
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "wait4ifup installed in ${PREFIX}/usr/share/shorewall/wait4ifup"
|
echo "wait4ifup installed in ${PREFIX}/usr/share/shorewall/wait4ifup"
|
||||||
@ -687,13 +687,13 @@ rm -f *.gz
|
|||||||
|
|
||||||
for f in *.5; do
|
for f in *.5; do
|
||||||
gzip $f
|
gzip $f
|
||||||
run_install -D -m 0444 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz
|
run_install -D -m 0644 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz
|
||||||
echo "Man page $f.gz installed to /usr/share/man/man5/$f.gz"
|
echo "Man page $f.gz installed to /usr/share/man/man5/$f.gz"
|
||||||
done
|
done
|
||||||
|
|
||||||
for f in *.8; do
|
for f in *.8; do
|
||||||
gzip $f
|
gzip $f
|
||||||
run_install -D -m 0444 $f.gz ${PREFIX}/usr/share/man/man8/$f.gz
|
run_install -D -m 0644 $f.gz ${PREFIX}/usr/share/man/man8/$f.gz
|
||||||
echo "Man page $f.gz installed to /usr/share/man/man8/$f.gz"
|
echo "Man page $f.gz installed to /usr/share/man/man8/$f.gz"
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -704,7 +704,7 @@ echo "Man Pages Installed"
|
|||||||
#
|
#
|
||||||
# Install the firewall script
|
# Install the firewall script
|
||||||
#
|
#
|
||||||
install_file firewall ${PREFIX}/usr/share/shorewall/firewall 0555
|
install_file firewall ${PREFIX}/usr/share/shorewall/firewall 0755
|
||||||
|
|
||||||
if [ -z "$PREFIX" -a -n "$first_install" ]; then
|
if [ -z "$PREFIX" -a -n "$first_install" ]; then
|
||||||
if [ -n "$DEBIAN" ]; then
|
if [ -n "$DEBIAN" ]; then
|
||||||
|
@ -23,9 +23,11 @@ The Shoreline Firewall, more commonly known as "Shorewall", is a Netfilter
|
|||||||
(iptables) based firewall that can be used on a dedicated firewall system,
|
(iptables) based firewall that can be used on a dedicated firewall system,
|
||||||
a multi-function gateway/ router/server or on a standalone GNU/Linux system.
|
a multi-function gateway/ router/server or on a standalone GNU/Linux system.
|
||||||
|
|
||||||
This package contains those Shorewall components required by both of the
|
Shorewall offers two alternative firewall compilers, shorewall-perl and
|
||||||
available compiler packages. To be fully functional, this package requires
|
shorewall-shell. The shorewall-perl compilers is suggested for new installed
|
||||||
installation of either shorewall-shell or shorewall-perl
|
systems and shorewall-shell is provided for backwards compability and smooth
|
||||||
|
system upgrades because shorewall perl is not fully compatible with all legacy
|
||||||
|
configurations.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
@ -106,19 +108,19 @@ fi
|
|||||||
%attr(0600,root,root) %config(noreplace) /etc/shorewall/tcdevices
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/tcdevices
|
||||||
%attr(0600,root,root) /etc/shorewall/Makefile
|
%attr(0600,root,root) /etc/shorewall/Makefile
|
||||||
|
|
||||||
%attr(0555,root,root) /sbin/shorewall
|
%attr(0755,root,root) /sbin/shorewall
|
||||||
|
|
||||||
%attr(0644,root,root) /usr/share/shorewall/version
|
%attr(0644,root,root) /usr/share/shorewall/version
|
||||||
%attr(0644,root,root) /usr/share/shorewall/actions.std
|
%attr(0644,root,root) /usr/share/shorewall/actions.std
|
||||||
%attr(0644,root,root) /usr/share/shorewall/action.Drop
|
%attr(0644,root,root) /usr/share/shorewall/action.Drop
|
||||||
%attr(0644,root,root) /usr/share/shorewall/action.Reject
|
%attr(0644,root,root) /usr/share/shorewall/action.Reject
|
||||||
%attr(0644,root,root) /usr/share/shorewall/action.template
|
%attr(0644,root,root) /usr/share/shorewall/action.template
|
||||||
%attr(0555,root,root) /usr/share/shorewall/firewall
|
%attr(0755,root,root) /usr/share/shorewall/firewall
|
||||||
%attr(0777,root,root) /usr/share/shorewall/functions
|
%attr(0777,root,root) /usr/share/shorewall/functions
|
||||||
%attr(0444,root,root) /usr/share/shorewall/lib.base
|
%attr(0644,root,root) /usr/share/shorewall/lib.base
|
||||||
%attr(0444,root,root) /usr/share/shorewall/lib.cli
|
%attr(0644,root,root) /usr/share/shorewall/lib.cli
|
||||||
%attr(0444,root,root) /usr/share/shorewall/lib.config
|
%attr(0644,root,root) /usr/share/shorewall/lib.config
|
||||||
%attr(0444,root,root) /usr/share/shorewall/lib.dynamiczones
|
%attr(0644,root,root) /usr/share/shorewall/lib.dynamiczones
|
||||||
%attr(0644,root,root) /usr/share/shorewall/macro.AllowICMPs
|
%attr(0644,root,root) /usr/share/shorewall/macro.AllowICMPs
|
||||||
%attr(0644,root,root) /usr/share/shorewall/macro.Amanda
|
%attr(0644,root,root) /usr/share/shorewall/macro.Amanda
|
||||||
%attr(0644,root,root) /usr/share/shorewall/macro.Auth
|
%attr(0644,root,root) /usr/share/shorewall/macro.Auth
|
||||||
@ -184,7 +186,7 @@ fi
|
|||||||
%attr(0644,root,root) /usr/share/shorewall/modules
|
%attr(0644,root,root) /usr/share/shorewall/modules
|
||||||
%attr(0644,root,root) /usr/share/shorewall/rfc1918
|
%attr(0644,root,root) /usr/share/shorewall/rfc1918
|
||||||
%attr(0644,root,root) /usr/share/shorewall/configpath
|
%attr(0644,root,root) /usr/share/shorewall/configpath
|
||||||
%attr(0555,root,root) /usr/share/shorewall/wait4ifup
|
%attr(0755,root,root) /usr/share/shorewall/wait4ifup
|
||||||
|
|
||||||
%attr(0644,root,root) /usr/share/shorewall/configfiles/shorewall.conf
|
%attr(0644,root,root) /usr/share/shorewall/configfiles/shorewall.conf
|
||||||
%attr(0644,root,root) /usr/share/shorewall/configfiles/zones
|
%attr(0644,root,root) /usr/share/shorewall/configfiles/zones
|
||||||
@ -220,35 +222,35 @@ fi
|
|||||||
%attr(0644,root,root) /usr/share/shorewall/configfiles/tcdevices
|
%attr(0644,root,root) /usr/share/shorewall/configfiles/tcdevices
|
||||||
%attr(0644,root,root) /usr/share/shorewall/configfiles/Makefile
|
%attr(0644,root,root) /usr/share/shorewall/configfiles/Makefile
|
||||||
|
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-accounting.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-accounting.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-actions.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-actions.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-blacklist.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-blacklist.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall.conf.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall.conf.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-ecn.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-ecn.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-exclusion.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-exclusion.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-hosts.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-hosts.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-interfaces.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-interfaces.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-maclist.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-maclist.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-masq.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-masq.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-nat.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-nat.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-nesting.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-nesting.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-netmap.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-netmap.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-params.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-params.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-policy.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-policy.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-providers.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-providers.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-proxyarp.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-proxyarp.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-rfc1918.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-rfc1918.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-route_rules.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-route_rules.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-routestopped.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-routestopped.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-rules.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-rules.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-tcclasses.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-tcclasses.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-tcdevices.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-tcdevices.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-tcrules.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-tcrules.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-tos.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-tos.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-tunnels.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-tunnels.5.gz
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-zones.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-zones.5.gz
|
||||||
|
|
||||||
%attr(0444,root,root) %{_mandir}/man8/shorewall.8.gz
|
%attr(0644,root,root) %{_mandir}/man8/shorewall.8.gz
|
||||||
|
|
||||||
%doc COPYING INSTALL changelog.txt releasenotes.txt tunnel ipsecvpn Samples
|
%doc COPYING INSTALL changelog.txt releasenotes.txt tunnel ipsecvpn Samples
|
||||||
|
|
||||||
|
@ -308,7 +308,7 @@ echo "Common functions linked through ${PREFIX}/usr/share/shorewall-lite/functio
|
|||||||
# Install Shorecap
|
# Install Shorecap
|
||||||
#
|
#
|
||||||
|
|
||||||
install_file shorecap ${PREFIX}/usr/share/shorewall-lite/shorecap 0555
|
install_file shorecap ${PREFIX}/usr/share/shorewall-lite/shorecap 0755
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Capability file builder installed in ${PREFIX}/usr/share/shorewall-lite/shorecap"
|
echo "Capability file builder installed in ${PREFIX}/usr/share/shorewall-lite/shorecap"
|
||||||
@ -317,7 +317,7 @@ echo "Capability file builder installed in ${PREFIX}/usr/share/shorewall-lite/sh
|
|||||||
# Install wait4ifup
|
# Install wait4ifup
|
||||||
#
|
#
|
||||||
|
|
||||||
install_file wait4ifup ${PREFIX}/usr/share/shorewall-lite/wait4ifup 0555
|
install_file wait4ifup ${PREFIX}/usr/share/shorewall-lite/wait4ifup 0755
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "wait4ifup installed in ${PREFIX}/usr/share/shorewall-lite/wait4ifup"
|
echo "wait4ifup installed in ${PREFIX}/usr/share/shorewall-lite/wait4ifup"
|
||||||
@ -338,13 +338,13 @@ rm -f *.gz
|
|||||||
|
|
||||||
for f in *.5; do
|
for f in *.5; do
|
||||||
gzip $f
|
gzip $f
|
||||||
run_install -D -m 444 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz
|
run_install -D -m 644 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz
|
||||||
echo "Man page $f.gz installed to /usr/share/man/man5/$f.gz"
|
echo "Man page $f.gz installed to /usr/share/man/man5/$f.gz"
|
||||||
done
|
done
|
||||||
|
|
||||||
for f in *.8; do
|
for f in *.8; do
|
||||||
gzip $f
|
gzip $f
|
||||||
run_install -D -m 444 $f.gz ${PREFIX}/usr/share/man/man8/$f.gz
|
run_install -D -m 644 $f.gz ${PREFIX}/usr/share/man/man8/$f.gz
|
||||||
echo "Man page $f.gz installed to /usr/share/man/man8/$f.gz"
|
echo "Man page $f.gz installed to /usr/share/man/man8/$f.gz"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
%define name shorewall-lite
|
%define name shorewall-lite
|
||||||
%define version 4.0.0
|
%define version 4.0.0
|
||||||
%define release 0RC1
|
%define release 0RC1
|
||||||
%define prefix /usr
|
|
||||||
|
|
||||||
Summary: Shoreline Firewall Lite is an iptables-based firewall for Linux systems.
|
Summary: Shoreline Firewall Lite is an iptables-based firewall for Linux systems.
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
Prefix: %{prefix}
|
|
||||||
License: GPL
|
License: GPL
|
||||||
Packager: Tom Eastep <teastep@shorewall.net>
|
Packager: Tom Eastep <teastep@shorewall.net>
|
||||||
Group: Networking/Utilities
|
Group: Networking/Utilities
|
||||||
@ -29,6 +27,7 @@ administrators to centralize the configuration of Shorewall-based firewalls.
|
|||||||
%prep
|
%prep
|
||||||
|
|
||||||
%setup
|
%setup
|
||||||
|
Prefix: %{prefix}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -81,24 +80,26 @@ fi
|
|||||||
%attr(0755,root,root) %dir /usr/share/shorewall-lite
|
%attr(0755,root,root) %dir /usr/share/shorewall-lite
|
||||||
%attr(0700,root,root) %dir /var/lib/shorewall-lite
|
%attr(0700,root,root) %dir /var/lib/shorewall-lite
|
||||||
|
|
||||||
%attr(0555,root,root) /sbin/shorewall-lite
|
%attr(0755,root,root) /sbin/shorewall-lite
|
||||||
|
|
||||||
%attr(0644,root,root) /usr/share/shorewall-lite/version
|
%attr(0644,root,root) /usr/share/shorewall-lite/version
|
||||||
%attr(0644,root,root) /usr/share/shorewall-lite/configpath
|
%attr(0644,root,root) /usr/share/shorewall-lite/configpath
|
||||||
%attr(0777,root,root) /usr/share/shorewall-lite/functions
|
%attr(0777,root,root) /usr/share/shorewall-lite/functions
|
||||||
%attr(0444,root,root) /usr/share/shorewall-lite/lib.base
|
%attr(0644,root,root) /usr/share/shorewall-lite/lib.base
|
||||||
%attr(0444,root,root) /usr/share/shorewall-lite/lib.cli
|
%attr(0644,root,root) /usr/share/shorewall-lite/lib.cli
|
||||||
%attr(0444,root,root) /usr/share/shorewall-lite/modules
|
%attr(0644,root,root) /usr/share/shorewall-lite/modules
|
||||||
%attr(0544,root,root) /usr/share/shorewall-lite/shorecap
|
%attr(0544,root,root) /usr/share/shorewall-lite/shorecap
|
||||||
%attr(0555,root,root) /usr/share/shorewall-lite/wait4ifup
|
%attr(0755,root,root) /usr/share/shorewall-lite/wait4ifup
|
||||||
|
|
||||||
%attr(0444,root,root) %{_mandir}/man5/shorewall-lite.conf.5.gz
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-lite.conf.5.gz
|
||||||
|
|
||||||
%attr(0444,root,root) %{_mandir}/man8/shorewall-lite.8.gz
|
%attr(0644,root,root) %{_mandir}/man8/shorewall-lite.8.gz
|
||||||
|
|
||||||
%doc COPYING changelog.txt releasenotes.txt
|
%doc COPYING changelog.txt releasenotes.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 02 2007 Tom Eastep tom@shorewall.net
|
||||||
|
- Updated to 4.0.0-0RC1
|
||||||
* Sun Jun 24 2007 Tom Eastep tom@shorewall.net
|
* Sun Jun 24 2007 Tom Eastep tom@shorewall.net
|
||||||
- Updated to 4.0.0-0Beta7
|
- Updated to 4.0.0-0Beta7
|
||||||
* Wed Jun 20 2007 Tom Eastep tom@shorewall.net
|
* Wed Jun 20 2007 Tom Eastep tom@shorewall.net
|
||||||
|
@ -169,7 +169,7 @@ chmod 755 ${PREFIX}/usr/share/shorewall-perl/Shorewall
|
|||||||
# Install the Compiler
|
# Install the Compiler
|
||||||
#
|
#
|
||||||
|
|
||||||
install_file compiler.pl ${PREFIX}/usr/share/shorewall-perl/compiler.pl 0555
|
install_file compiler.pl ${PREFIX}/usr/share/shorewall-perl/compiler.pl 0755
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Compiler installed in ${PREFIX}/usr/share/shorewall-perl/compiler.pl"
|
echo "Compiler installed in ${PREFIX}/usr/share/shorewall-perl/compiler.pl"
|
||||||
@ -179,7 +179,7 @@ echo "Compiler installed in ${PREFIX}/usr/share/shorewall-perl/compiler.pl"
|
|||||||
#
|
#
|
||||||
for f in Shorewall/*.pm ; do
|
for f in Shorewall/*.pm ; do
|
||||||
install_file $f ${PREFIX}/usr/share/shorewall-perl/$f 0644
|
install_file $f ${PREFIX}/usr/share/shorewall-perl/$f 0644
|
||||||
echo "Library ${f%.*} file installed as ${PREFIX}/usr/share/shorewall-perl/$f"
|
echo "Module ${f%.*} installed as ${PREFIX}/usr/share/shorewall-perl/$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -193,7 +193,7 @@ done
|
|||||||
#
|
#
|
||||||
# Install buildports.pl and create Shorewall::Ports
|
# Install buildports.pl and create Shorewall::Ports
|
||||||
#
|
#
|
||||||
install_file buildports.pl ${PREFIX}/usr/share/shorewall-perl/buildports.pl 0555
|
install_file buildports.pl ${PREFIX}/usr/share/shorewall-perl/buildports.pl 0755
|
||||||
|
|
||||||
if [ -n "$INSTALL_PORTS_PM" ]; then
|
if [ -n "$INSTALL_PORTS_PM" ]; then
|
||||||
if ./buildports.pl > ${PREFIX}/usr/share/shorewall-perl/Shorewall/Ports.pm; then
|
if ./buildports.pl > ${PREFIX}/usr/share/shorewall-perl/Shorewall/Ports.pm; then
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
%define name shorewall-perl
|
%define name shorewall-perl
|
||||||
%define version 4.0.0
|
%define version 4.0.0
|
||||||
%define release 0RC1
|
%define release 0RC1
|
||||||
%define prefix /usr
|
|
||||||
|
|
||||||
Summary: Shoreline Firewall Perl-based compiler.
|
Summary: Shoreline Firewall Perl-based compiler.
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
Prefix: %{prefix}
|
|
||||||
License: GPL
|
License: GPL
|
||||||
Packager: Tom Eastep <teastep@shorewall.net>
|
Packager: Tom Eastep <teastep@shorewall.net>
|
||||||
Group: Networking/Utilities
|
Group: Networking/Utilities
|
||||||
@ -15,8 +13,9 @@ Source: %{name}-%{version}.tgz
|
|||||||
URL: http://www.shorewall.net/
|
URL: http://www.shorewall.net/
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
Requires: perl shorewall_common
|
Requires: perl shorewall-common >= 4.0.0
|
||||||
Provides: shorewall_compiler
|
Conflicts: shorewall < 3.4.2
|
||||||
|
Provides: shorewall_compiler = %{version}-%{release}
|
||||||
Provides: shorewall = %{version}-%{release}
|
Provides: shorewall = %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -25,8 +24,8 @@ The Shoreline Firewall, more commonly known as "Shorewall", is a Netfilter
|
|||||||
(iptables) based firewall that can be used on a dedicated firewall system,
|
(iptables) based firewall that can be used on a dedicated firewall system,
|
||||||
a multi-function gateway/ router/server or on a standalone GNU/Linux system.
|
a multi-function gateway/ router/server or on a standalone GNU/Linux system.
|
||||||
|
|
||||||
Shorewall-perl is a companion product to Shorewall that allows faster
|
Shorewall-perl is a part of Shorewall that allows faster compilation and
|
||||||
compilation and execution.
|
execution than the legacy shorewall-shell compiler.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
@ -48,7 +47,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%post
|
%post
|
||||||
|
|
||||||
if /usr/share/shorewall-perl/buildports.pl > /usr/share/shorewall-perl/Shorewall/Ports.pm; then
|
if /usr/share/shorewall-perl/buildports.pl > /usr/share/shorewall-perl/Shorewall/Ports.pm; then
|
||||||
chmod 0555 /usr/share/shorewall-perl/Shorewall/Ports.pm
|
chmod 0744 /usr/share/shorewall-perl/Shorewall/Ports.pm
|
||||||
else
|
else
|
||||||
echo "The buildports.pl tool failed -- installing the fallback Protocol/Ports Module"
|
echo "The buildports.pl tool failed -- installing the fallback Protocol/Ports Module"
|
||||||
cp -a /usr/share/shorewall-perl/Shorewall/FallbackPorts.pm /usr/share/shorewall-perl/Shorewall/Ports.pm
|
cp -a /usr/share/shorewall-perl/Shorewall/FallbackPorts.pm /usr/share/shorewall-perl/Shorewall/Ports.pm
|
||||||
@ -62,32 +61,32 @@ fi
|
|||||||
%attr(0755,root,root) %dir /usr/share/shorewall-perl
|
%attr(0755,root,root) %dir /usr/share/shorewall-perl
|
||||||
%attr(0755,root,root) %dir /usr/share/shorewall-perl/Shorewall
|
%attr(0755,root,root) %dir /usr/share/shorewall-perl/Shorewall
|
||||||
|
|
||||||
%attr(555,root,root) /usr/share/shorewall-perl/buildports.pl
|
%attr(755,root,root) /usr/share/shorewall-perl/buildports.pl
|
||||||
%attr(555,root,root) /usr/share/shorewall-perl/compiler.pl
|
%attr(755,root,root) /usr/share/shorewall-perl/compiler.pl
|
||||||
%attr(0644,root,root) /usr/share/shorewall-perl/prog.header
|
%attr(0644,root,root) /usr/share/shorewall-perl/prog.header
|
||||||
%attr(0644,root,root) /usr/share/shorewall-perl/prog.functions
|
%attr(0644,root,root) /usr/share/shorewall-perl/prog.functions
|
||||||
%attr(0644,root,root) /usr/share/shorewall-perl/prog.footer
|
%attr(0644,root,root) /usr/share/shorewall-perl/prog.footer
|
||||||
%attr(0644,root,root) /usr/share/shorewall-perl/version
|
%attr(0644,root,root) /usr/share/shorewall-perl/version
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Accounting.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Accounting.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Actions.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Actions.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Chains.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Chains.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Common.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Common.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Compiler.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Compiler.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Config.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Config.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/FallbackPorts.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/FallbackPorts.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Hosts.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Hosts.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Interfaces.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Interfaces.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/IPAddrs.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/IPAddrs.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Macros.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Macros.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Nat.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Nat.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Policy.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Policy.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Proc.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Proc.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Providers.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Providers.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Proxyarp.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Proxyarp.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Rules.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Rules.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Tc.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Tc.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Tunnels.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Tunnels.pm
|
||||||
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Zones.pm
|
%attr(0744,root,root) /usr/share/shorewall-perl/Shorewall/Zones.pm
|
||||||
|
|
||||||
%doc COPYING releasenotes.txt
|
%doc COPYING releasenotes.txt
|
||||||
|
|
||||||
|
@ -224,7 +224,7 @@ chmod 755 ${PREFIX}/usr/share/shorewall-shell
|
|||||||
# Install the Compiler
|
# Install the Compiler
|
||||||
#
|
#
|
||||||
|
|
||||||
install_file compiler ${PREFIX}/usr/share/shorewall-shell/compiler 0555
|
install_file compiler ${PREFIX}/usr/share/shorewall-shell/compiler 0755
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Compiler installed in ${PREFIX}/usr/share/shorewall-shell/compiler"
|
echo "Compiler installed in ${PREFIX}/usr/share/shorewall-shell/compiler"
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
%define name shorewall-shell
|
%define name shorewall-shell
|
||||||
%define version 4.0.0
|
%define version 4.0.0
|
||||||
%define release 0RC1
|
%define release 0RC1
|
||||||
%define prefix /usr
|
|
||||||
|
|
||||||
Summary: Shoreline Firewall is an iptables-based firewall for Linux systems.
|
Summary: Shoreline Firewall is an iptables-based firewall for Linux systems.
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
Prefix: %{prefix}
|
|
||||||
License: GPL
|
License: GPL
|
||||||
Packager: Tom Eastep <teastep@shorewall.net>
|
Packager: Tom Eastep <teastep@shorewall.net>
|
||||||
Group: Networking/Utilities
|
Group: Networking/Utilities
|
||||||
@ -15,8 +13,8 @@ Source: %{name}-%{version}.tgz
|
|||||||
URL: http://www.shorewall.net/
|
URL: http://www.shorewall.net/
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
Requires: iptables iproute shorewall_common
|
Requires: iptables iproute shorewall-common >= 4.0.0
|
||||||
Provides: shorewall_compiler
|
Provides: shorewall_compiler = %{version}-%{release}
|
||||||
Provides: shorewall = %{version}-%{release}
|
Provides: shorewall = %{version}-%{release}
|
||||||
Obsoletes: shorewall < 4.0.0-0Beta7
|
Obsoletes: shorewall < 4.0.0-0Beta7
|
||||||
|
|
||||||
@ -49,16 +47,16 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
%attr(0755,root,root) %dir /usr/share/shorewall-shell
|
%attr(0755,root,root) %dir /usr/share/shorewall-shell
|
||||||
|
|
||||||
%attr(0555,root,root) /usr/share/shorewall-shell/compiler
|
%attr(0755,root,root) /usr/share/shorewall-shell/compiler
|
||||||
%attr(0444,root,root) /usr/share/shorewall-shell/lib.accounting
|
%attr(0644,root,root) /usr/share/shorewall-shell/lib.accounting
|
||||||
%attr(0444,root,root) /usr/share/shorewall-shell/lib.actions
|
%attr(0644,root,root) /usr/share/shorewall-shell/lib.actions
|
||||||
%attr(0444,root,root) /usr/share/shorewall-shell/lib.maclist
|
%attr(0644,root,root) /usr/share/shorewall-shell/lib.maclist
|
||||||
%attr(0444,root,root) /usr/share/shorewall-shell/lib.nat
|
%attr(0644,root,root) /usr/share/shorewall-shell/lib.nat
|
||||||
%attr(0444,root,root) /usr/share/shorewall-shell/lib.providers
|
%attr(0644,root,root) /usr/share/shorewall-shell/lib.providers
|
||||||
%attr(0444,root,root) /usr/share/shorewall-shell/lib.proxyarp
|
%attr(0644,root,root) /usr/share/shorewall-shell/lib.proxyarp
|
||||||
%attr(0444,root,root) /usr/share/shorewall-shell/lib.tc
|
%attr(0644,root,root) /usr/share/shorewall-shell/lib.tc
|
||||||
%attr(0444,root,root) /usr/share/shorewall-shell/lib.tcrules
|
%attr(0644,root,root) /usr/share/shorewall-shell/lib.tcrules
|
||||||
%attr(0444,root,root) /usr/share/shorewall-shell/lib.tunnels
|
%attr(0644,root,root) /usr/share/shorewall-shell/lib.tunnels
|
||||||
%attr(0644,root,root) /usr/share/shorewall-shell/prog.footer
|
%attr(0644,root,root) /usr/share/shorewall-shell/prog.footer
|
||||||
%attr(0644,root,root) /usr/share/shorewall-shell/prog.header
|
%attr(0644,root,root) /usr/share/shorewall-shell/prog.header
|
||||||
%attr(0644,root,root) /usr/share/shorewall-shell/version
|
%attr(0644,root,root) /usr/share/shorewall-shell/version
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="Upgrading">
|
<section id="Upgrading">
|
||||||
<title>Upgrading</title>
|
<title>Upgrading Shorewall</title>
|
||||||
|
|
||||||
<section id="faq66">
|
<section id="faq66">
|
||||||
<title>(FAQ 66) I'm trying to upgrade to Shorewall 4.0; where is the
|
<title>(FAQ 66) I'm trying to upgrade to Shorewall 4.0; where is the
|
||||||
@ -101,7 +101,7 @@
|
|||||||
|
|
||||||
<section id="faq66a">
|
<section id="faq66a">
|
||||||
<title>(FAQ 66a) I'm trying to upgrade to Shorewall 4.0; do I have to
|
<title>(FAQ 66a) I'm trying to upgrade to Shorewall 4.0; do I have to
|
||||||
uninstall the 'shorewall package'?</title>
|
uninstall the 'shorewall' package?</title>
|
||||||
|
|
||||||
<para><emphasis role="bold">Answer</emphasis>: Please see the <ulink
|
<para><emphasis role="bold">Answer</emphasis>: Please see the <ulink
|
||||||
url="upgrade_issues.htm">upgrade issues.</ulink></para>
|
url="upgrade_issues.htm">upgrade issues.</ulink></para>
|
||||||
|
Loading…
Reference in New Issue
Block a user