diff --git a/Shorewall-perl/compiler.pl b/Shorewall-perl/compiler.pl index 4541211b6..40f4db7f8 100755 --- a/Shorewall-perl/compiler.pl +++ b/Shorewall-perl/compiler.pl @@ -800,6 +800,7 @@ sub compiler( $ ) { # E x e c u t i o n S t a r t s H e r e # +my $objectfile = $ARGV[0]; # # Get shorewall.conf and capabilities. # @@ -807,4 +808,4 @@ get_configuration( $export ); # # Compile/Check the configuration. # -compiler $ARGV[0]; +compiler $objectfile; diff --git a/Shorewall-perl/install.sh b/Shorewall-perl/install.sh index 573df49b2..4532b1639 100755 --- a/Shorewall-perl/install.sh +++ b/Shorewall-perl/install.sh @@ -185,6 +185,7 @@ for f in prog.* ; do echo "Program skeleton file ${f#*.} installed as ${PREFIX}/usr/share/shorewall-perl/$f" done +echo $VERSION > ${PREFIX}/usr/share/shorewall-perl/version # # Report Success # diff --git a/Shorewall-perl/shorewall-perl.spec b/Shorewall-perl/shorewall-perl.spec index e6521ed82..d19e6567e 100644 --- a/Shorewall-perl/shorewall-perl.spec +++ b/Shorewall-perl/shorewall-perl.spec @@ -58,6 +58,7 @@ rm -rf $RPM_BUILD_ROOT %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.footer +%attr(0644,root,root) /usr/share/shorewall-perl/version %attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Accounting.pm %attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Actions.pm %attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Chains.pm