Fix build and uninstall-trigger for '--without ipv6' option
This commit is contained in:
parent
2f90639ba4
commit
75d4e0e339
10
quagga.spec
10
quagga.spec
@ -137,6 +137,8 @@ export CXXFLAGS="$RPM_OPT_FLAGS $CPPFLAGS"
|
||||
%configure \
|
||||
%if %with_ipv6
|
||||
--enable-ipv6=yes \
|
||||
%else
|
||||
--enable-ipv6=no \
|
||||
%endif
|
||||
%if %with_snmp
|
||||
--enable-snmp=yes \
|
||||
@ -313,6 +315,12 @@ fi
|
||||
/sbin/chkconfig --del bgpd >/dev/null 2>&1 || :
|
||||
/sbin/chkconfig --del ospfd >/dev/null 2>&1 || :
|
||||
/sbin/chkconfig --del watchquagga >/dev/null 2>&1 || :
|
||||
%if !%with_ipv6
|
||||
/sbin/service ospf6d stop >/dev/null 2>&1 || :
|
||||
/sbin/service ripngd stop >/dev/null 2>&1 || :
|
||||
%endif
|
||||
/sbin/chkconfig --del ospf6d >/dev/null 2>&1 || :
|
||||
/sbin/chkconfig --del ripngd >/dev/null 2>&1 || :
|
||||
/bin/systemctl try-restart zebra.service >/dev/null 2>&1 || :
|
||||
/bin/systemctl try-restart isisd.service >/dev/null 2>&1 || :
|
||||
/bin/systemctl try-restart ripd.service >/dev/null 2>&1 || :
|
||||
@ -320,8 +328,6 @@ fi
|
||||
/bin/systemctl try-restart ospfd.service >/dev/null 2>&1 || :
|
||||
/bin/systemctl try-restart watchquagga.service >/dev/null 2>&1 || :
|
||||
%if %with_ipv6
|
||||
/sbin/chkconfig --del ospf6d >/dev/null 2>&1 || :
|
||||
/sbin/chkconfig --del ripngd >/dev/null 2>&1 || :
|
||||
/bin/systemctl try-restart ospf6d.service >/dev/null 2>&1 || :
|
||||
/bin/systemctl try-restart ripngd.service >/dev/null 2>&1 || :
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user