On 03/13/2013 02:27 PM, Mr Dash Four wrote:
> 
>> I just installed on Fedora 18 using the tarball installer, and both
>> /sbin/ifup-local and /sbin/ifdown-local were created.
>>   
> shorewall-init-4.5.13-1.fc19.noarch.rpm (the latest offering from 
> Fedora) doesn't have /sbin/ifup-local or /sbin/ifdown-local in it and 
> "rpm --scripts -qp shorewall-init-4.5.13-1.fc19.noarch.rpm" tells me:
> 
> postinstall scriptlet (using /bin/sh):
> 
> if [ $1 -eq 1 ] ; then
>         # Initial installation
>         /usr/bin/systemctl preset shorewall-init.service >/dev/null 2>&1 
> || :
> fi
> preuninstall scriptlet (using /bin/sh):
> 
> if [ $1 -eq 0 ] ; then
>         # Package removal, not upgrade
>         /usr/bin/systemctl --no-reload disable shorewall-init.service > 
> /dev/null 2>&1 || :
>         /usr/bin/systemctl stop shorewall-init.service > /dev/null 2>&1 
> || :
> fi
> postuninstall scriptlet (using /bin/sh):
> 
> /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
> if [ $1 -ge 1 ] ; then
>         # Package upgrade, not uninstall
>         /usr/bin/systemctl try-restart shorewall-init.service >/dev/null 
> 2>&1 || :
> fi
> 
> 
> So I don't see how these two files could have been generated/installed 
> using standard Fedora installation and I am pretty certain that 
> "rpmbuild -bb shorewall.spec" doesn't generate these either as that is 
> what shorewall.spec tells me:
> 
> %files init
> %doc shorewall-init-%{version}/{COPYING,changelog.txt,releasenotes.txt}
> %{_sbindir}/shorewall-init
> %{_sysconfdir}/NetworkManager/dispatcher.d/01-shorewall
> %config(noreplace) %{_sysconfdir}/sysconfig/shorewall-init
> %{_sysconfdir}/logrotate.d/shorewall-init
> %{_mandir}/man8/shorewall-init.8.*
> %{_datadir}/shorewall-init
> %{_libexecdir}/shorewall-init
> %{_unitdir}/shorewall-init.service
> 
> As tou can notice, there is no %{_sbindir}/ifup-* - only "shorewall-init".

Okay -- that seems to be a Fedora packaging issue. The .spec file that I
release is intended to work on both RedHat/Fedora and on SuSE. Because
the installation requirements are so different on these two distro
families, I use logic in %post to install the ifupdown script in the
proper places.

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to