|
|
@ -1,15 +1,14 @@
|
|
|
|
Summary: A Router Advertisement daemon
|
|
|
|
Summary: A Router Advertisement daemon
|
|
|
|
Name: radvd
|
|
|
|
Name: radvd
|
|
|
|
Version: 2.19
|
|
|
|
Version: 2.17
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 15%{?dist}
|
|
|
|
|
|
|
|
|
|
|
|
# The code includes the advertising clause, so it's GPL-incompatible
|
|
|
|
# The code includes the advertising clause, so it's GPL-incompatible
|
|
|
|
License: BSD with advertising
|
|
|
|
License: BSD with advertising
|
|
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
URL: http://www.litech.org/radvd/
|
|
|
|
URL: http://www.litech.org/radvd/
|
|
|
|
Source0: %{url}dist/%{name}-%{version}.tar.xz
|
|
|
|
Source0: %{url}dist/%{name}-%{version}.tar.xz
|
|
|
|
Source1: radvd.sysusers
|
|
|
|
Source1: radvd.service
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: flex
|
|
|
@ -17,9 +16,13 @@ BuildRequires: flex-static
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: check-devel
|
|
|
|
BuildRequires: check-devel
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
%{?systemd_requires}
|
|
|
|
%{?sysusers_requires_compat}
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: radvd_add_ra_memleak.patch
|
|
|
|
|
|
|
|
Patch1: radvd_tmpfiles.patch
|
|
|
|
|
|
|
|
Patch2: radvd-double_free_dupiface.patch
|
|
|
|
|
|
|
|
Patch3: radvd-crash_if_config_removed.patch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
radvd is the router advertisement daemon for IPv6. It listens to router
|
|
|
|
radvd is the router advertisement daemon for IPv6. It listens to router
|
|
|
@ -33,7 +36,7 @@ Install radvd if you are setting up IPv6 network and/or Mobile IPv6
|
|
|
|
services.
|
|
|
|
services.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
|
|
for F in CHANGES; do
|
|
|
|
for F in CHANGES; do
|
|
|
|
iconv -f iso-8859-1 -t utf-8 < "$F" > "${F}.new"
|
|
|
|
iconv -f iso-8859-1 -t utf-8 < "$F" > "${F}.new"
|
|
|
@ -42,31 +45,30 @@ for F in CHANGES; do
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fPIE "
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fPIE"
|
|
|
|
export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen'
|
|
|
|
export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen'
|
|
|
|
%configure \
|
|
|
|
%configure \
|
|
|
|
--with-check \
|
|
|
|
|
|
|
|
--disable-silent-rules \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--with-pidfile=/run/radvd/radvd.pid
|
|
|
|
--with-pidfile=/run/radvd/radvd.pid
|
|
|
|
%make_build
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
|
|
|
mkdir -p %{buildroot}/run/radvd
|
|
|
|
mkdir -p %{buildroot}/run/radvd
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
|
|
|
|
|
|
|
|
install -m 644 redhat/SysV/radvd.conf.empty %{buildroot}%{_sysconfdir}/radvd.conf
|
|
|
|
install -m 644 redhat/radvd.conf.empty %{buildroot}%{_sysconfdir}/radvd.conf
|
|
|
|
install -m 644 redhat/SysV/radvd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/radvd
|
|
|
|
install -m 644 redhat/radvd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/radvd
|
|
|
|
|
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}%{_tmpfilesdir}
|
|
|
|
install -d -m 755 %{buildroot}%{_tmpfilesdir}
|
|
|
|
install -p -m 644 redhat/systemd/radvd-tmpfs.conf %{buildroot}%{_tmpfilesdir}/radvd.conf
|
|
|
|
install -p -m 644 redhat/radvd-tmpfs.conf %{buildroot}%{_tmpfilesdir}/radvd.conf
|
|
|
|
install -m 644 redhat/systemd/radvd.service %{buildroot}%{_unitdir}
|
|
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
|
|
|
|
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/radvd.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
# The tests don't work, see https://github.com/reubenhwk/radvd/issues/30
|
|
|
|
|
|
|
|
#make check
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart radvd.service
|
|
|
|
%systemd_postun_with_restart radvd.service
|
|
|
@ -77,8 +79,12 @@ make check
|
|
|
|
%preun
|
|
|
|
%preun
|
|
|
|
%systemd_preun radvd.service
|
|
|
|
%systemd_preun radvd.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Static UID and GID defined by /usr/share/doc/setup-*/uidgid
|
|
|
|
%pre
|
|
|
|
%pre
|
|
|
|
%sysusers_create_compat %{SOURCE1}
|
|
|
|
getent group radvd >/dev/null || groupadd -r -g 75 radvd
|
|
|
|
|
|
|
|
getent passwd radvd >/dev/null || \
|
|
|
|
|
|
|
|
useradd -r -u 75 -g radvd -d / -s /sbin/nologin -c "radvd user" radvd
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc CHANGES COPYRIGHT INTRO.html README TODO
|
|
|
|
%doc CHANGES COPYRIGHT INTRO.html README TODO
|
|
|
@ -86,7 +92,6 @@ make check
|
|
|
|
%config(noreplace) %{_sysconfdir}/radvd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/radvd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/radvd
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/radvd
|
|
|
|
%{_tmpfilesdir}/radvd.conf
|
|
|
|
%{_tmpfilesdir}/radvd.conf
|
|
|
|
%{_sysusersdir}/radvd.conf
|
|
|
|
|
|
|
|
%dir %attr(755,radvd,radvd) /run/radvd/
|
|
|
|
%dir %attr(755,radvd,radvd) /run/radvd/
|
|
|
|
%doc radvd.conf.example
|
|
|
|
%doc radvd.conf.example
|
|
|
|
%{_mandir}/*/*
|
|
|
|
%{_mandir}/*/*
|
|
|
@ -94,63 +99,21 @@ make check
|
|
|
|
%{_sbindir}/radvdump
|
|
|
|
%{_sbindir}/radvdump
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Nov 03 2022 Martin Osvald <mosvald@redhat.com> - 2.19-5
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 2.17-15
|
|
|
|
- Use systemd-sysusers for radvd user and group (#2095457)
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.19-4
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.19-3
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.19-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 19 2020 Pavel Zhukov <pzhukov@redhat.com> - 2.19-1
|
|
|
|
|
|
|
|
- new version v2.19
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 2.18-5
|
|
|
|
|
|
|
|
- Use make macros
|
|
|
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 3 2020 Pavel Zhukov <pzhukov@redhat.com> - 2.18-4
|
|
|
|
|
|
|
|
- Update pidfile path (#1785862)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 20 2019 Pavel Zhukov <pzhukov@redhat.com> - 2.17-19
|
|
|
|
|
|
|
|
- change tmpfiles location (#1678147)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-18
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 27 2019 Pavel Zhukov <pzhukov@redhat.com> - 2.17-17
|
|
|
|
|
|
|
|
- Fix double-free in InterfaceList
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 27 2018 Pavel Zhukov <pzhukov@redhat.com> - 2.17-16
|
|
|
|
|
|
|
|
- Depends on network-online target (#1652459)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-15
|
|
|
|
* Wed Apr 15 2020 Pavel Zhukov <pzhukov@redhat.com> - 2.17-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
- Fix double-free scenario (#1669177)
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 13 2018 Pavel Zhukov <pzhukov@redhat.com> - 2.17-14
|
|
|
|
* Fri Oct 25 2019 Pavel Zhukov <pzhukov@redhat.com> - 2.17-14
|
|
|
|
- Log to stderr in non-daemon mode
|
|
|
|
- Resolves: #1710787 - Change location of tmpfiles
|
|
|
|
- Add nodaemon option into manpage
|
|
|
|
- Use tmpfile config from tarball
|
|
|
|
- Re-enable test again
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 04 2018 Pavel Zhukov <pzhukov@redhat.com> - 2.17-12
|
|
|
|
* Tue Dec 4 2018 Pavel Zhukov <pzhukov@redhat.com> - 2.17-12
|
|
|
|
- Enable tests and fix them on big endian arches
|
|
|
|
- Resolves: #1652459 - Wait for all devices to be initialized
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 12 2018 Pavel Zhukov <pzhukov@redhat.com> - 2.17-11
|
|
|
|
* Tue Aug 28 2018 Pavel Zhukov <pzhukov@redhat.com> - 2.17-11
|
|
|
|
- Enable Werror=all
|
|
|
|
- Related: #1602675 - Fix memory leak in add_ra flow
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 19 2018 Pavel Zhukov <pzhukov@redhat.com> - 2.17-10
|
|
|
|
* Mon Feb 19 2018 Pavel Zhukov <pzhukov@redhat.com> - 2.17-10
|
|
|
|
- Add gcc BR
|
|
|
|
- Add gcc BR
|
|
|
|