Rename fallback Ports.pm

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6642 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-06-21 22:58:15 +00:00
parent 57db98c4f6
commit b28153d99c
4 changed files with 13 additions and 12 deletions

View File

@ -76,7 +76,7 @@ Other changes in Shorewall 4.0.0 Beta 6
/usr/share/shorewall-perl/Shorewall/Ports.pm, using your /usr/share/shorewall-perl/Shorewall/Ports.pm, using your
/etc/protocols and /etc/services as input. /etc/protocols and /etc/services as input.
To re-generate the more from those two files: To re-generate the module from those two files:
1. Backup your current /usr/share/shorewall-perl/Shorewall/Ports.pm 1. Backup your current /usr/share/shorewall-perl/Shorewall/Ports.pm
file. file.
@ -84,15 +84,16 @@ Other changes in Shorewall 4.0.0 Beta 6
/usr/share/shorewall-perl/Shorewall/Ports.pm /usr/share/shorewall-perl/Shorewall/Ports.pm
Note: If the buildports.pl program fails to run to a successful Note: If the buildports.pl program fails to run to a successful
completion during installation, a default version of completion during installation, a fallback version of
module will be installed. That default module was generated from the module will be installed. That fallback module was generated from
/etc/protocols and /etc/services shipped with Ubuntu Feisty Fawn. the /etc/protocols and /etc/services shipped with Ubuntu Feisty
Fawn.
Even if the buildports.pl program runs successfully, the default Even if the buildports.pl program runs successfully, the fallback
module is also installed as module is also installed as
/usr/share/shorewall-perl/Shorewall/DefaultPorts.pm. So if you /usr/share/shorewall-perl/Shorewall/FallbackPorts.pm. So if you
encounter problems with the generated module, simply copy the encounter problems with the generated module, simply copy the
default module to /usr/share/shorewall-perl/Shorewall/Ports.pm. fallback module to /usr/share/shorewall-perl/Shorewall/Ports.pm.
Migration Considerations: Migration Considerations:

View File

@ -199,8 +199,8 @@ 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
chmod 0644 ${PREFIX}/usr/share/shorewall-perl/Shorewall/Ports.pm chmod 0644 ${PREFIX}/usr/share/shorewall-perl/Shorewall/Ports.pm
else else
echo "The buildports.pl tool failed -- installing the default Protocol/Ports Module" echo "The buildports.pl tool failed -- installing the fallback Protocol/Ports Module"
cp -a ${PREFIX}/usr/share/shorewall-perl/Shorewall/DefaultPorts.pm ${PREFIX}/usr/share/shorewall-perl/Shorewall/Ports.pm cp -a ${PREFIX}/usr/share/shorewall-perl/Shorewall/FallbackPorts.pm ${PREFIX}/usr/share/shorewall-perl/Shorewall/Ports.pm
fi fi
fi fi

View File

@ -49,8 +49,8 @@ rm -rf $RPM_BUILD_ROOT
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 0555 /usr/share/shorewall-perl/Shorewall/Ports.pm
else else
echo "The buildports.pl tool failed -- installing the default Protocol/Ports Module" echo "The buildports.pl tool failed -- installing the fallback Protocol/Ports Module"
cp -a /usr/share/shorewall-perl/Shorewall/DefaultPorts.pm /usr/share/shorewall-perl/Shorewall/Ports.pm cp -a /usr/share/shorewall-perl/Shorewall/FallbackPorts.pm /usr/share/shorewall-perl/Shorewall/Ports.pm
fi fi
%preun %preun
@ -73,7 +73,7 @@ fi
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Common.pm %attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Common.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Compiler.pm %attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Compiler.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Config.pm %attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Config.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/DefaultPorts.pm %attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/FallbackPorts.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Hosts.pm %attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Hosts.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Interfaces.pm %attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Interfaces.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/IPAddrs.pm %attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/IPAddrs.pm