From f443a6af5e0dde835656ed28d4f0fd51144982d1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:19:49 +0100 Subject: [PATCH] rebuilt with net-snmp 5.9 [release 1.2.4-2mamba;Mon Dec 14 2020] --- README.md | 3 - quagga.spec | 154 +++++++++++++++++++++++++++------------------------- 2 files changed, 79 insertions(+), 78 deletions(-) diff --git a/README.md b/README.md index 3283ba6..00bf1a8 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,9 @@ 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. - Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng. - 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. Quagga by design has a process for each protocol. - Quagga is a fork of GNU Zebra. diff --git a/quagga.spec b/quagga.spec index a32042d..a9193cc 100644 --- a/quagga.spec +++ b/quagga.spec @@ -4,7 +4,7 @@ Name: quagga Version: 1.2.4 -Release: 1mamba +Release: 2mamba Summary: Quagga Routing Daemon Group: Network/Routing Vendor: openmamba @@ -16,23 +16,42 @@ Patch0: %{name}-0.99.11-conf.patch Patch1: %{name}-0.98.1-snmp_headers.patch Patch2: %{name}-0.99.18-opaque-refresh-fixes.patch License: GPL -%if %with_snmp -Requires: net-snmp >= 5.2 -%endif -# libreadline, libncurses needed by vtysh -BuildRequires: libncurses-devel -BuildRequires: tetex ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libaudit-devel +BuildRequires: libbzip2-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: libnl-devel +BuildRequires: libnsl-devel +BuildRequires: libnss-devel BuildRequires: libopenssl-devel +BuildRequires: libpam-devel +BuildRequires: libpci-devel +BuildRequires: libpcre-devel +BuildRequires: libperl +BuildRequires: libpopt-devel BuildRequires: libreadline-devel +BuildRequires: librpm-devel BuildRequires: libtermcap-devel -BuildRequires: net-snmp -BuildRequires: pam-devel -BuildRequires: perl-devel +BuildRequires: libtirpc-devel +BuildRequires: libwrap-devel +BuildRequires: libz-devel +BuildRequires: libzstd-devel ## AUTOBUILDREQ-END +BuildRequires: libncurses-devel +BuildRequires: tetex +BuildRequires: libnetsnmp-devel >= 5.9 +Requires: net-snmp >= 5.9 Requires: pam >= 0.77 Requires(post):%{__install_info} Obsoletes: zebra @@ -42,13 +61,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description 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. - Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng. - 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. Quagga by design has a process for each protocol. - Quagga is a fork of GNU Zebra. %package ipv6 @@ -59,13 +75,10 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description ipv6 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. - Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng. - 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. Quagga by design has a process for each protocol. - Quagga is a fork of GNU Zebra. %package devel @@ -76,7 +89,6 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel 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. - The quagga-devel package contains the header and object files neccessary for developing OSPF-API and quagga applications. %package contrib @@ -88,20 +100,20 @@ Requires: perl-Net-Telnet %description contrib 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. - Contributed/3rd party tools which may be of use with quagga. -%prep +%debug_package +%prep %setup -q #%patch0 -p1 #%patch1 -p1 #%patch2 -p1 +autoreconf -f -i %build -autoreconf -f -i %configure \ - --with-cflags='%{optflags}' \ + --with-cflags='%{optflags} -fcommon' \ --sysconfdir=%{_sysconfdir}/quagga \ --with-libpam \ --enable-ipv6 \ @@ -138,7 +150,7 @@ autoreconf -f -i sysconfdir=%{_sysconfdir}/quagga 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 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 \ %{buildroot}%{_sysconfdir}/logrotate.d/quagga -#%post ipv6 -#if [ -x /sbin/chkconfig ]; then -# /sbin/chkconfig --add ospf6d -# /sbin/chkconfig --add ripngd -#fi - %pre /usr/sbin/groupadd quaggavty -g 65003 &>/dev/null /usr/sbin/groupadd quagga -g 65004 &>/dev/null /usr/sbin/useradd -c "Quagga routing suite" -d /var/quagga -s /bin/false \ -u 65004 -g quagga quagga &> /dev/null || : +: %post # zebra_spec_add_service @@ -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 netmon ospf6d 2606 "Dell Netmon" -#if [ -x /sbin/chkconfig ]; then -# chkconfig --add bgpd -# chkconfig --add ospfd -# chkconfig --add ripd -# chkconfig --add zebra -#fi +%systemd_post bgpd +%systemd_post ospdf +%systemd_post ripd +%systemd_post zebra # create dummy files so basic functions can be used if [ ! -e %{_sysconfdir}/quagga/zebra.conf ]; then @@ -202,45 +207,41 @@ fi exit 0 %preun +%systemd_preun bgpd +%systemd_preun ospdf +%systemd_preun ripd +%systemd_preun zebra 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/groupdel quagga &>/dev/null /usr/sbin/groupdel quaggavty &>/dev/null fi %uninstall_info %{name}.info -exit 0 +: + +%postun +/sbin/ldconfig +%systemd_postun bgpd +%systemd_postun ospdf +%systemd_postun ripd +%systemd_postun zebra +: %preun ipv6 if [ $1 -eq 0 ]; then - for daemon in ospf6d ripngd; do - /sbin/service $daemon stop &>/dev/null - /sbin/chkconfig --del $daemon - done -fi -exit 0 +%systemd_preun ospf6d +%systemd_preun ripngd +: -%postun -/sbin/ldconfig -if [ $1 -eq 1 ]; then - for daemon in bgpd ospfd ripd zebra; do - [ -e /var/lock/subsys/$daemon ] && - service $daemon restart - done -fi -exit 0 +%post ipv6 +%systemd_post ospf6d +%systemd_post ripngd +: %postun ipv6 -if [ $1 -eq 1 ]; then - for daemon in ospf6d ripngd; do - [ -e /var/lock/subsys/$daemon ] && - service $daemon restart - done -fi -exit 0 +%systemd_postun ospf6d +%systemd_postun ripngd +: %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} @@ -256,17 +257,17 @@ exit 0 %{_sysconfdir}/quagga/ripd.conf.sample %attr(640,quagga,quaggavty) %{_sysconfdir}/quagga/vtysh.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) %attr(640,root,root) %{_sysconfdir}/logrotate.d/* %{_bindir}/vtysh %{_bindir}/bgp_btoa %{_bindir}/test_igmpv3_join %{_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(751,quagga,quagga) /var/run/quagga %{_infodir}/* @@ -286,16 +287,16 @@ exit 0 %defattr(-,root,root) %{_sysconfdir}/quagga/ospf6d.conf.sample %{_sysconfdir}/quagga/ripngd.conf.sample -%config %{_initrddir}/ospf6d -%config %{_initrddir}/ripngd +%config %{_unitdir}/ospf6d.service +%config %{_unitdir}/ripngd.service %{_mandir}/man8/ospf6d.* %{_mandir}/man8/ripngd.* %files devel %defattr(-,root,root) -%dir %{_libdir}/*.a -%dir %{_libdir}/*.la -%dir %{_libdir}/*.so +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.so %dir %{_includedir}/quagga %{_includedir}/quagga/*.h %dir %{_includedir}/quagga/ospfapi @@ -304,12 +305,15 @@ exit 0 %{_includedir}/quagga/ospfd/* #%doc ChangeLog NEWS README REPORTING-BUGS SERVICES TODO -%files contrib -%defattr(-,root,root) -%doc ospf6d/ospf6d.conf.sample ripngd/ripngd.conf.sample -%doc tools +#%files contrib +#%defattr(-,root,root) +#%doc ospf6d/ospf6d.conf.sample ripngd/ripngd.conf.sample +#%doc tools %changelog +* Mon Dec 14 2020 Silvan Calarco 1.2.4-2mamba +- rebuilt with net-snmp 5.9 + * Mon Mar 05 2018 Automatic Build System 1.2.4-1mamba - automatic version update by autodist