rebuilt with net-snmp 5.9 [release 1.2.4-2mamba;Mon Dec 14 2020]
This commit is contained in:
parent
fc33ac9b2f
commit
f443a6af5e
@ -2,12 +2,9 @@
|
|||||||
|
|
||||||
Quagga is a free software that manages TCP/IP based routing protocol.
|
Quagga is a free software that manages TCP/IP based routing protocol.
|
||||||
It takes multi-server and multi-thread approach to resolve the current complexity of the Internet.
|
It takes multi-server and multi-thread approach to resolve the current complexity of the Internet.
|
||||||
|
|
||||||
Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
|
Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
|
||||||
|
|
||||||
Quagga is intended to be used as a Route Server and a Route Reflector.
|
Quagga is intended to be used as a Route Server and a Route Reflector.
|
||||||
It is not a toolkit, it provides full routing power under a new architecture.
|
It is not a toolkit, it provides full routing power under a new architecture.
|
||||||
Quagga by design has a process for each protocol.
|
Quagga by design has a process for each protocol.
|
||||||
|
|
||||||
Quagga is a fork of GNU Zebra.
|
Quagga is a fork of GNU Zebra.
|
||||||
|
|
||||||
|
154
quagga.spec
154
quagga.spec
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: quagga
|
Name: quagga
|
||||||
Version: 1.2.4
|
Version: 1.2.4
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Quagga Routing Daemon
|
Summary: Quagga Routing Daemon
|
||||||
Group: Network/Routing
|
Group: Network/Routing
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -16,23 +16,42 @@ Patch0: %{name}-0.99.11-conf.patch
|
|||||||
Patch1: %{name}-0.98.1-snmp_headers.patch
|
Patch1: %{name}-0.98.1-snmp_headers.patch
|
||||||
Patch2: %{name}-0.99.18-opaque-refresh-fixes.patch
|
Patch2: %{name}-0.99.18-opaque-refresh-fixes.patch
|
||||||
License: GPL
|
License: GPL
|
||||||
%if %with_snmp
|
|
||||||
Requires: net-snmp >= 5.2
|
|
||||||
%endif
|
|
||||||
# libreadline, libncurses needed by vtysh
|
|
||||||
BuildRequires: libncurses-devel
|
|
||||||
BuildRequires: tetex
|
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: ldconfig
|
||||||
|
BuildRequires: libaudit-devel
|
||||||
|
BuildRequires: libbzip2-devel
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
|
BuildRequires: libcares-devel
|
||||||
|
BuildRequires: libdb53-devel
|
||||||
|
BuildRequires: libe2fs-devel
|
||||||
|
BuildRequires: libelf-devel
|
||||||
|
BuildRequires: libkrb5-devel
|
||||||
|
BuildRequires: liblmdb-devel
|
||||||
|
BuildRequires: liblua-devel
|
||||||
|
BuildRequires: liblzma-devel
|
||||||
BuildRequires: libnetsnmp-devel
|
BuildRequires: libnetsnmp-devel
|
||||||
|
BuildRequires: libnl-devel
|
||||||
|
BuildRequires: libnsl-devel
|
||||||
|
BuildRequires: libnss-devel
|
||||||
BuildRequires: libopenssl-devel
|
BuildRequires: libopenssl-devel
|
||||||
|
BuildRequires: libpam-devel
|
||||||
|
BuildRequires: libpci-devel
|
||||||
|
BuildRequires: libpcre-devel
|
||||||
|
BuildRequires: libperl
|
||||||
|
BuildRequires: libpopt-devel
|
||||||
BuildRequires: libreadline-devel
|
BuildRequires: libreadline-devel
|
||||||
|
BuildRequires: librpm-devel
|
||||||
BuildRequires: libtermcap-devel
|
BuildRequires: libtermcap-devel
|
||||||
BuildRequires: net-snmp
|
BuildRequires: libtirpc-devel
|
||||||
BuildRequires: pam-devel
|
BuildRequires: libwrap-devel
|
||||||
BuildRequires: perl-devel
|
BuildRequires: libz-devel
|
||||||
|
BuildRequires: libzstd-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
|
BuildRequires: libncurses-devel
|
||||||
|
BuildRequires: tetex
|
||||||
|
BuildRequires: libnetsnmp-devel >= 5.9
|
||||||
|
Requires: net-snmp >= 5.9
|
||||||
Requires: pam >= 0.77
|
Requires: pam >= 0.77
|
||||||
Requires(post):%{__install_info}
|
Requires(post):%{__install_info}
|
||||||
Obsoletes: zebra
|
Obsoletes: zebra
|
||||||
@ -42,13 +61,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|||||||
%description
|
%description
|
||||||
Quagga is a free software that manages TCP/IP based routing protocol.
|
Quagga is a free software that manages TCP/IP based routing protocol.
|
||||||
It takes multi-server and multi-thread approach to resolve the current complexity of the Internet.
|
It takes multi-server and multi-thread approach to resolve the current complexity of the Internet.
|
||||||
|
|
||||||
Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
|
Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
|
||||||
|
|
||||||
Quagga is intended to be used as a Route Server and a Route Reflector.
|
Quagga is intended to be used as a Route Server and a Route Reflector.
|
||||||
It is not a toolkit, it provides full routing power under a new architecture.
|
It is not a toolkit, it provides full routing power under a new architecture.
|
||||||
Quagga by design has a process for each protocol.
|
Quagga by design has a process for each protocol.
|
||||||
|
|
||||||
Quagga is a fork of GNU Zebra.
|
Quagga is a fork of GNU Zebra.
|
||||||
|
|
||||||
%package ipv6
|
%package ipv6
|
||||||
@ -59,13 +75,10 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|||||||
%description ipv6
|
%description ipv6
|
||||||
Quagga is a free software that manages TCP/IP based routing protocol.
|
Quagga is a free software that manages TCP/IP based routing protocol.
|
||||||
It takes multi-server and multi-thread approach to resolve the current complexity of the Internet.
|
It takes multi-server and multi-thread approach to resolve the current complexity of the Internet.
|
||||||
|
|
||||||
Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
|
Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
|
||||||
|
|
||||||
Quagga is intended to be used as a Route Server and a Route Reflector.
|
Quagga is intended to be used as a Route Server and a Route Reflector.
|
||||||
It is not a toolkit, it provides full routing power under a new architecture.
|
It is not a toolkit, it provides full routing power under a new architecture.
|
||||||
Quagga by design has a process for each protocol.
|
Quagga by design has a process for each protocol.
|
||||||
|
|
||||||
Quagga is a fork of GNU Zebra.
|
Quagga is a fork of GNU Zebra.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
@ -76,7 +89,6 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|||||||
%description devel
|
%description devel
|
||||||
Quagga is a free software that manages TCP/IP based routing protocol.
|
Quagga is a free software that manages TCP/IP based routing protocol.
|
||||||
It takes multi-server and multi-thread approach to resolve the current complexity of the Internet.
|
It takes multi-server and multi-thread approach to resolve the current complexity of the Internet.
|
||||||
|
|
||||||
The quagga-devel package contains the header and object files neccessary for developing OSPF-API and quagga applications.
|
The quagga-devel package contains the header and object files neccessary for developing OSPF-API and quagga applications.
|
||||||
|
|
||||||
%package contrib
|
%package contrib
|
||||||
@ -88,20 +100,20 @@ Requires: perl-Net-Telnet
|
|||||||
%description contrib
|
%description contrib
|
||||||
Quagga is a free software that manages TCP/IP based routing protocol.
|
Quagga is a free software that manages TCP/IP based routing protocol.
|
||||||
It takes multi-server and multi-thread approach to resolve the current complexity of the Internet.
|
It takes multi-server and multi-thread approach to resolve the current complexity of the Internet.
|
||||||
|
|
||||||
Contributed/3rd party tools which may be of use with quagga.
|
Contributed/3rd party tools which may be of use with quagga.
|
||||||
|
|
||||||
%prep
|
%debug_package
|
||||||
|
|
||||||
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
#%patch0 -p1
|
#%patch0 -p1
|
||||||
#%patch1 -p1
|
#%patch1 -p1
|
||||||
#%patch2 -p1
|
#%patch2 -p1
|
||||||
|
autoreconf -f -i
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -f -i
|
|
||||||
%configure \
|
%configure \
|
||||||
--with-cflags='%{optflags}' \
|
--with-cflags='%{optflags} -fcommon' \
|
||||||
--sysconfdir=%{_sysconfdir}/quagga \
|
--sysconfdir=%{_sysconfdir}/quagga \
|
||||||
--with-libpam \
|
--with-libpam \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
@ -138,7 +150,7 @@ autoreconf -f -i
|
|||||||
sysconfdir=%{_sysconfdir}/quagga
|
sysconfdir=%{_sysconfdir}/quagga
|
||||||
|
|
||||||
for f in bgpd ospf6d ospfd ripd ripngd zebra; do
|
for f in bgpd ospf6d ospfd ripd ripngd zebra; do
|
||||||
install -D -m755 redhat/$f.init %{buildroot}%{_initrddir}/$f
|
install -D -m755 redhat/${f}.service %{buildroot}%{_unitdir}/${f}.service
|
||||||
done
|
done
|
||||||
|
|
||||||
install -d -m750 %{buildroot}/var/{log/quagga,run/quagga}
|
install -d -m750 %{buildroot}/var/{log/quagga,run/quagga}
|
||||||
@ -148,17 +160,12 @@ install -D -m644 redhat/quagga.pam \
|
|||||||
install -D -m644 redhat/quagga.logrotate \
|
install -D -m644 redhat/quagga.logrotate \
|
||||||
%{buildroot}%{_sysconfdir}/logrotate.d/quagga
|
%{buildroot}%{_sysconfdir}/logrotate.d/quagga
|
||||||
|
|
||||||
#%post ipv6
|
|
||||||
#if [ -x /sbin/chkconfig ]; then
|
|
||||||
# /sbin/chkconfig --add ospf6d
|
|
||||||
# /sbin/chkconfig --add ripngd
|
|
||||||
#fi
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
/usr/sbin/groupadd quaggavty -g 65003 &>/dev/null
|
/usr/sbin/groupadd quaggavty -g 65003 &>/dev/null
|
||||||
/usr/sbin/groupadd quagga -g 65004 &>/dev/null
|
/usr/sbin/groupadd quagga -g 65004 &>/dev/null
|
||||||
/usr/sbin/useradd -c "Quagga routing suite" -d /var/quagga -s /bin/false \
|
/usr/sbin/useradd -c "Quagga routing suite" -d /var/quagga -s /bin/false \
|
||||||
-u 65004 -g quagga quagga &> /dev/null || :
|
-u 65004 -g quagga quagga &> /dev/null || :
|
||||||
|
:
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# zebra_spec_add_service <sercice name> <port> <comment>
|
# zebra_spec_add_service <sercice name> <port> <comment>
|
||||||
@ -181,12 +188,10 @@ eval z_add_service nsc-ccs ospfd 2604 "NSC CCS"
|
|||||||
eval z_add_service nsc-posa bgpd 2605 "NSC POSA"
|
eval z_add_service nsc-posa bgpd 2605 "NSC POSA"
|
||||||
eval z_add_service netmon ospf6d 2606 "Dell Netmon"
|
eval z_add_service netmon ospf6d 2606 "Dell Netmon"
|
||||||
|
|
||||||
#if [ -x /sbin/chkconfig ]; then
|
%systemd_post bgpd
|
||||||
# chkconfig --add bgpd
|
%systemd_post ospdf
|
||||||
# chkconfig --add ospfd
|
%systemd_post ripd
|
||||||
# chkconfig --add ripd
|
%systemd_post zebra
|
||||||
# chkconfig --add zebra
|
|
||||||
#fi
|
|
||||||
|
|
||||||
# create dummy files so basic functions can be used
|
# create dummy files so basic functions can be used
|
||||||
if [ ! -e %{_sysconfdir}/quagga/zebra.conf ]; then
|
if [ ! -e %{_sysconfdir}/quagga/zebra.conf ]; then
|
||||||
@ -202,45 +207,41 @@ fi
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
%systemd_preun bgpd
|
||||||
|
%systemd_preun ospdf
|
||||||
|
%systemd_preun ripd
|
||||||
|
%systemd_preun zebra
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
for daemon in bgpd ospfd ripd zebra; do
|
|
||||||
/sbin/service $daemon stop &>/dev/null
|
|
||||||
/sbin/chkconfig --del $daemon
|
|
||||||
done
|
|
||||||
/usr/sbin/userdel quagga &>/dev/null
|
/usr/sbin/userdel quagga &>/dev/null
|
||||||
/usr/sbin/groupdel quagga &>/dev/null
|
/usr/sbin/groupdel quagga &>/dev/null
|
||||||
/usr/sbin/groupdel quaggavty &>/dev/null
|
/usr/sbin/groupdel quaggavty &>/dev/null
|
||||||
fi
|
fi
|
||||||
%uninstall_info %{name}.info
|
%uninstall_info %{name}.info
|
||||||
exit 0
|
:
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
%systemd_postun bgpd
|
||||||
|
%systemd_postun ospdf
|
||||||
|
%systemd_postun ripd
|
||||||
|
%systemd_postun zebra
|
||||||
|
:
|
||||||
|
|
||||||
%preun ipv6
|
%preun ipv6
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
for daemon in ospf6d ripngd; do
|
%systemd_preun ospf6d
|
||||||
/sbin/service $daemon stop &>/dev/null
|
%systemd_preun ripngd
|
||||||
/sbin/chkconfig --del $daemon
|
:
|
||||||
done
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%postun
|
%post ipv6
|
||||||
/sbin/ldconfig
|
%systemd_post ospf6d
|
||||||
if [ $1 -eq 1 ]; then
|
%systemd_post ripngd
|
||||||
for daemon in bgpd ospfd ripd zebra; do
|
:
|
||||||
[ -e /var/lock/subsys/$daemon ] &&
|
|
||||||
service $daemon restart
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%postun ipv6
|
%postun ipv6
|
||||||
if [ $1 -eq 1 ]; then
|
%systemd_postun ospf6d
|
||||||
for daemon in ospf6d ripngd; do
|
%systemd_postun ripngd
|
||||||
[ -e /var/lock/subsys/$daemon ] &&
|
:
|
||||||
service $daemon restart
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||||
@ -256,17 +257,17 @@ exit 0
|
|||||||
%{_sysconfdir}/quagga/ripd.conf.sample
|
%{_sysconfdir}/quagga/ripd.conf.sample
|
||||||
%attr(640,quagga,quaggavty) %{_sysconfdir}/quagga/vtysh.conf.sample
|
%attr(640,quagga,quaggavty) %{_sysconfdir}/quagga/vtysh.conf.sample
|
||||||
%{_sysconfdir}/quagga/zebra.conf.sample
|
%{_sysconfdir}/quagga/zebra.conf.sample
|
||||||
%config %{_initrddir}/bgpd
|
|
||||||
%config %{_initrddir}/ospfd
|
|
||||||
%config %{_initrddir}/ripd
|
|
||||||
%config %{_initrddir}/zebra
|
|
||||||
%config(noreplace) %{_sysconfdir}/pam.d/quagga
|
%config(noreplace) %{_sysconfdir}/pam.d/quagga
|
||||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/logrotate.d/*
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/logrotate.d/*
|
||||||
%{_bindir}/vtysh
|
%{_bindir}/vtysh
|
||||||
%{_bindir}/bgp_btoa
|
%{_bindir}/bgp_btoa
|
||||||
%{_bindir}/test_igmpv3_join
|
%{_bindir}/test_igmpv3_join
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/lib*.so.*
|
||||||
|
%config %{_unitdir}/bgpd.service
|
||||||
|
%config %{_unitdir}/ospfd.service
|
||||||
|
%config %{_unitdir}/ripd.service
|
||||||
|
%config %{_unitdir}/zebra.service
|
||||||
%dir %attr(750,quagga,quagga) /var/log/quagga
|
%dir %attr(750,quagga,quagga) /var/log/quagga
|
||||||
%dir %attr(751,quagga,quagga) /var/run/quagga
|
%dir %attr(751,quagga,quagga) /var/run/quagga
|
||||||
%{_infodir}/*
|
%{_infodir}/*
|
||||||
@ -286,16 +287,16 @@ exit 0
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sysconfdir}/quagga/ospf6d.conf.sample
|
%{_sysconfdir}/quagga/ospf6d.conf.sample
|
||||||
%{_sysconfdir}/quagga/ripngd.conf.sample
|
%{_sysconfdir}/quagga/ripngd.conf.sample
|
||||||
%config %{_initrddir}/ospf6d
|
%config %{_unitdir}/ospf6d.service
|
||||||
%config %{_initrddir}/ripngd
|
%config %{_unitdir}/ripngd.service
|
||||||
%{_mandir}/man8/ospf6d.*
|
%{_mandir}/man8/ospf6d.*
|
||||||
%{_mandir}/man8/ripngd.*
|
%{_mandir}/man8/ripngd.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_libdir}/*.a
|
%{_libdir}/*.a
|
||||||
%dir %{_libdir}/*.la
|
%{_libdir}/*.la
|
||||||
%dir %{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%dir %{_includedir}/quagga
|
%dir %{_includedir}/quagga
|
||||||
%{_includedir}/quagga/*.h
|
%{_includedir}/quagga/*.h
|
||||||
%dir %{_includedir}/quagga/ospfapi
|
%dir %{_includedir}/quagga/ospfapi
|
||||||
@ -304,12 +305,15 @@ exit 0
|
|||||||
%{_includedir}/quagga/ospfd/*
|
%{_includedir}/quagga/ospfd/*
|
||||||
#%doc ChangeLog NEWS README REPORTING-BUGS SERVICES TODO
|
#%doc ChangeLog NEWS README REPORTING-BUGS SERVICES TODO
|
||||||
|
|
||||||
%files contrib
|
#%files contrib
|
||||||
%defattr(-,root,root)
|
#%defattr(-,root,root)
|
||||||
%doc ospf6d/ospf6d.conf.sample ripngd/ripngd.conf.sample
|
#%doc ospf6d/ospf6d.conf.sample ripngd/ripngd.conf.sample
|
||||||
%doc tools
|
#%doc tools
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.4-2mamba
|
||||||
|
- rebuilt with net-snmp 5.9
|
||||||
|
|
||||||
* Mon Mar 05 2018 Automatic Build System <autodist@mambasoft.it> 1.2.4-1mamba
|
* Mon Mar 05 2018 Automatic Build System <autodist@mambasoft.it> 1.2.4-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user