Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
quagga
quagga.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File quagga.spec of Package quagga
# # spec file for package quagga # # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %if 0%{?suse_version} > 1230 %bcond_without systemd %else %bcond_with systemd %endif %bcond_without tcp_zebra %bcond_without irdp %bcond_with isis %bcond_with isis_topology %bcond_without pcre %if %{defined _rundir} %define quagga_statedir %{_rundir}/%{name} %else %define quagga_statedir %{_localstatedir}/run/%{name} %endif Name: quagga Version: 0.99.24.1 Release: 0 Summary: Free Routing Software (for BGP, OSPF and RIP, for example) License: LGPL-2.1+ Group: Productivity/Networking/Routing Url: http://www.quagga.net Source: http://download.savannah.gnu.org/releases/quagga/%{name}-%{version}.tar.xz Source3: http://download.savannah.gnu.org/releases/quagga/%{name}-%{version}.tar.asc # downloaded from: http://download.savannah.gnu.org/releases/quagga/pgp-54CD2E60.asc Source4: quagga.keyring Source1: %{name}-SUSE.tar.bz2 Source2: %{name}.pam Source5: %{name}-tmpfs.conf Source6: sysconfig.%{name} Source7: %{name}.logrotate Patch1: %{name}-add-ospf6_main-return-value.patch Patch2: %{name}-add-table_test-return-value.patch Patch3: 0001-systemd-change-the-WantedBy-target.patch Patch4: %{name}-CVE-2016-2342-VPNv4-NLRI-memcpy-stack-overflow.patch Patch5: %{name}-CVE-2016-4049-fix-buf-ovflow-bgp-dump-routes.patch Patch6: %{name}-CVE-2016-1245-stack-overrun-in-IPv6-RA-receive.patch Patch7: %{name}-CVE-2017-5495-limit-vty-buffer-to-4096-bytes.patch BuildRequires: libtool BuildRequires: net-snmp-devel BuildRequires: pam-devel BuildRequires: readline-devel %if %{with pcre} BuildRequires: pcre-devel %endif %if 0%{suse_version} > 1220 BuildRequires: makeinfo %endif %if %{with systemd} %{?systemd_requires} BuildRequires: systemd-rpm-macros %else PreReq: %insserv_prereq %endif PreReq: %fillup_prereq PreReq: %install_info_prereq # pwdutils for useradd and groupadd PreReq: pwdutils Recommends: logrotate Provides: zebra Obsoletes: zebra BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Quagga is a routing software suite, providing implementations of OSPFv2, OSPFv3, RIP v1 and v2, RIPv3 and BGPv4 for Unix platforms, particularly FreeBSD and Linux and also NetBSD, to mention a few. Quagga is a fork of GNU Zebra which was developed by Kunihiro Ishiguro. The Quagga tree aims to build a more involved community around Quagga than the current centralised model of GNU Zebra. %package devel Summary: Free Routing Software (for BGP, OSPF and RIP, for example) Group: Development/Networking/Routing Requires: %{name} = %{version} %description devel Quagga is a routing software suite, providing implementations of OSPFv2, OSPFv3, RIP v1 and v2, RIPv3 and BGPv4 for Unix platforms, particularly FreeBSD and Linux and also NetBSD, to mention a few. Quagga is a fork of GNU Zebra which was developed by Kunihiro Ishiguro. The Quagga tree aims to build a more involved community around Quagga than the current centralised model of GNU Zebra. %prep %setup -q -a 1 %patch1 -p 1 %patch2 -p 1 %patch3 -p 1 %patch4 -p 1 %patch5 -p 1 %patch6 -p 1 %patch7 -p 1 %build if ! ls /proc/net/{dev,route,snmp} >/dev/null; then echo "ERROR: /proc is not mounted" >&2; exit 1; fi rm -f m4/libtool.m4 m4/lt*.m4 autoreconf --force --install export CFLAGS="%{optflags} -fno-strict-aliasing" %configure --disable-static --with-pic \ --enable-vtysh \ --enable-rtadv \ --enable-snmp \ --enable-ipv6 \ --with-libpam \ --enable-netlink \ %if %{with isis} --enable-isisd \ %endif %if %{with isis_topology} --enable-isis-topology \ %endif %if %{with tcp_zebra} --enable-tcp-zebra \ %endif %if %{with irdp} --enable-irdp \ %endif %if %{with pcre} --enable-pcreposix \ %endif --sysconfdir=%{_sysconfdir}/quagga \ --localstatedir=%{quagga_statedir} \ --enable-multipath=0 make %{?_smp_mflags} %install rm -r doc/quagga.info make DESTDIR=%{buildroot} install rm -rf %{buildroot}%{_libdir}/*.la install -d %{buildroot}%{_sysconfdir}/{init.d,quagga,pam.d,logrotate.d} %if %{with systemd} install -d %{buildroot}%{_unitdir} install -p -m 644 redhat/zebra.service %{buildroot}%{_unitdir}/zebra.service ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rczebra install -p -m 644 redhat/isisd.service %{buildroot}%{_unitdir}/isisd.service ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcisisd install -p -m 644 redhat/ripd.service %{buildroot}%{_unitdir}/ripd.service ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcripd install -p -m 644 redhat/ospfd.service %{buildroot}%{_unitdir}/ospfd.service ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcospfd install -p -m 644 redhat/bgpd.service %{buildroot}%{_unitdir}/bgpd.service ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcbgpd install -p -m 644 redhat/babeld.service %{buildroot}%{_unitdir}/babeld.service ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcbabeld install -p -m 644 redhat/ospf6d.service %{buildroot}%{_unitdir}/ospf6d.service ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcospf6d install -p -m 644 redhat/ripngd.service %{buildroot}%{_unitdir}/ripngd.service ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcripngd install -d -m 755 %{buildroot}/%{_tmpfilesdir} install -p -m 644 %{SOURCE5} %{buildroot}/%{_tmpfilesdir}/quagga.conf sed -e "s|@quagga_statedir@|%{quagga_statedir}|g" -i \ %{buildroot}/%{_tmpfilesdir}/quagga.conf %else install -m 755 SUSE/* %{buildroot}%{_sysconfdir}/init.d/ ln -sf %{_sysconfdir}/init.d/zebra %{buildroot}%{_sbindir}/rczebra ln -sf %{_sysconfdir}/init.d/bgpd %{buildroot}%{_sbindir}/rcbgpd ln -sf %{_sysconfdir}/init.d/ospf6d %{buildroot}%{_sbindir}/rcospf6d ln -sf %{_sysconfdir}/init.d/ospfd %{buildroot}%{_sbindir}/rcospfd ln -sf %{_sysconfdir}/init.d/ripngd %{buildroot}%{_sbindir}/rcripngd ln -sf %{_sysconfdir}/init.d/ripd %{buildroot}%{_sbindir}/rcripd %endif install -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/pam.d/quagga install -d -m 0750 %{buildroot}%{_localstatedir}/log/quagga install -d -m 0751 %{buildroot}%{quagga_statedir} install -d -m 0755 %{buildroot}%{_localstatedir}/adm/fillup-templates/ install -m 0644 %{SOURCE6} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name} install -m 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/logrotate.d/quagga rm -f %{buildroot}%{_sysconfdir}/quagga/*.sample* cat > %{buildroot}%{_sysconfdir}/quagga/zebra.conf << __EOF__ !hostname quagga !password quagga !enable password quagga log file %{_localstatedir}/log/quagga/zebra.log __EOF__ touch %{buildroot}%{_sysconfdir}/quagga/vtysh.conf %pre %{_sbindir}/groupadd -r quagga 2> /dev/null || : %{_sbindir}/useradd -r -g quagga -s %{_bindir}/false \ -c "Quagga routing daemon" \ -d %{quagga_statedir} quagga 2> /dev/null || : %if %{with systemd} %service_add_pre zebra.service isisd.service ripd.service ospfd.service bgpd.service babeld.service ospf6d.service ripngd.service %endif %post /sbin/ldconfig %if %{with systemd} # Use %%tmpfiles_create when Leap 43.0 is oldest in support scope %{_bindir}/systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf || : %service_add_post zebra.service isisd.service ripd.service ospfd.service bgpd.service babeld.service ospf6d.service ripngd.service %{fillup_only} %else %fillup_and_insserv test -d %{quagga_statedir} || mkdir -m 0751 -p %{quagga_statedir} %endif %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %preun %if %{with systemd} %service_del_preun zebra.service isisd.service ripd.service ospfd.service bgpd.service babeld.service ospf6d.service ripngd.service %else %stop_on_removal zebra bgpd ospf6d ospfd ripd ripngd %endif %postun %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %if %{with systemd} %service_del_postun zebra.service isisd.service ripd.service ospfd.service bgpd.service babeld.service ospf6d.service ripngd.service %else %restart_on_update zebra bgpd ospf6d ospfd ripd ripngd %insserv_cleanup %endif /sbin/ldconfig %files %defattr(-,root,root) %doc */*.sample* AUTHORS COPYING* ChangeLog NEWS README REPORTING-BUGS SERVICES TODO %{_sbindir}/* %config %attr(750,quagga,quagga) %{_sysconfdir}/quagga/ %config(noreplace) %attr(640,quagga,quagga) %{_sysconfdir}/%{name}/*.conf %config(noreplace) %{_sysconfdir}/logrotate.d/* %if %{with systemd} %{_unitdir}/*.service %dir %{_tmpfilesdir} %{_tmpfilesdir}/quagga.conf %else %config %{_sysconfdir}/init.d/* %endif %config (noreplace)%{_sysconfdir}/pam.d/* %{_bindir}/* %dir %attr(-,quagga,quagga) %{_localstatedir}/log/quagga %dir %attr(-,quagga,quagga) %ghost %{quagga_statedir} %{_infodir}/quagga.info* %{_mandir}/man?/* %attr(755,root,root) %{_libdir}/lib*.so.* %{_localstatedir}/adm/fillup-templates/sysconfig.%{name} %files devel %defattr(644,root,root,755) %{_libdir}/*.so %dir %{_includedir}/%{name} %{_includedir}/%{name}/*.h %dir %{_includedir}/%{name}/ospfd %{_includedir}/%{name}/ospfd/*.h %dir %{_includedir}/%{name}/ospfapi %{_includedir}/%{name}/ospfapi/*.h %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor