Re: she-bang in non-executable scripts

Jonathan Underwood
Wed, 03 Aug 2011 13:27:32 -0000

Hi Togan,

I package shorewall for the Fedora repositories, and so I can answer
from the perspective of those packages, rather than Tom''s:

On 3 August 2011 11:27, Togan Muftuoglu <toganm@users.sourceforge.net>
wrote:
> Is there any reason why you copy ifupdown scripts in the %post section
> of shorewall-init.spec. Why not list them in the %files section?
>

In the Fedora package we do as you suggest, list them in %files and
install them during %install.

>
> The following files have the she-bang yet they are installed
> non-executable. Is it Ok to remove the she-bang from them
>
> /usr/share/shorewall/prog.header*
> /usr/share/shorewall/lib.*
> /usr/share/shorewall6/lib.*
> /usr/share/shorewall-lite/lib.*
> /usr/share/shorewall6-lite/lib.*
> /etc/shorewall/scfilter
> /etc/shorewall6/scfilter
> /usr/share/shorewall/configfiles/scfilter
> usr/share/shorewall6/configfiles/scfilter

We generally remove the shebang from these (though note Tom''s email
about scfilter).

J.