radvd/radvd.spec

119 lines
3.1 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:16:08 -04:00
Name: radvd
2021-01-29 10:13:46 +08:00
Version: 2.19
Release: 2
2019-09-30 11:16:08 -04:00
Summary: Router ADVertisement Daemon for IPv6
License: BSD with advertising
URL: http://www.litech.org/radvd/
Source0: http://www.litech.org/radvd/dist/%{name}-%{version}.tar.gz
Source1: radvd-tmpfs.conf
Source2: radvd.service
Patch6000: backport-add-IPV6_DROP_MEMBERSHIP-to-clean-up-resources-when-.patch
2019-09-30 11:16:08 -04:00
BuildRequires: gcc bison flex flex-static pkgconfig check-devel systemd
Requires(pre): shadow-utils
%{?systemd_requires}
%description
2019-11-06 19:51:01 +08:00
The router advertisement daemon (radvd) is run by Linux or BSD systems
acting as IPv6 routers. It sends Router Advertisement messages,
specified by RFC 2461, to a local Ethernet LAN periodically and when
requested by a node sending a Router Solicitation message. These
2019-09-30 11:16:08 -04:00
messages are required for IPv6 stateless autoconfiguration.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
2019-11-06 19:51:01 +08:00
2019-09-30 11:16:08 -04:00
for F in CHANGES; do
iconv -f iso-8859-1 -t utf-8 < "$F" > "${F}.new"
touch -r "$F" "${F}.new"
mv "${F}.new" "$F"
done
%build
%configure --with-check --disable-silent-rules \
--with-pidfile=/run/radvd/radvd.pid
%make_build
%install
%make_install
install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
install -d -m 755 %{buildroot}/run/radvd
install -d -m 755 %{buildroot}%{_unitdir}
pushd redhat/SysV
install -m 644 radvd.conf.empty %{buildroot}%{_sysconfdir}/radvd.conf
install -m 644 radvd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/radvd
popd
2019-11-06 19:51:01 +08:00
install -d -m 755 %{buildroot}%{_tmpfilesdir}
2019-09-30 11:16:08 -04:00
install -p -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/radvd.conf
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
%check
make check
%postun
%systemd_postun_with_restart radvd.service
%post
%systemd_post radvd.service
2019-11-06 19:51:01 +08:00
2019-09-30 11:16:08 -04:00
%preun
%systemd_preun radvd.service
%pre
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
2019-11-06 19:51:01 +08:00
%doc CHANGES
2019-09-30 11:16:08 -04:00
%defattr(-,root,root)
2019-11-06 19:51:01 +08:00
%license COPYRIGHT
2019-09-30 11:16:08 -04:00
%{_tmpfilesdir}/radvd.conf
%config(noreplace) %{_sysconfdir}/radvd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/radvd
%{_sbindir}/*
%{_unitdir}/radvd.service
%dir %attr(755,radvd,radvd) /run/radvd/
%files help
%defattr(-,root,root)
%doc radvd.conf.example
%doc INTRO.html README TODO
%{_mandir}/*/*
%changelog
* Tue Jun 28 2022 Aichun Li <liaichun@huawei.com> - 2.19-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add IPV6_DROP_MEMBERSHIP to fix memory leak in kernel space
2021-01-29 10:13:46 +08:00
* Fri Jan 29 2021 xihaochen <xihaochen@huawei.com> - 2.19-1
- Type:requirements
- Id:NA
- SUG:NA
- DESC:update radvd to 2.19
2020-04-10 14:24:24 +08:00
* Fri Apr 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.18-3
- Type:bugifx
- Id:NA
- SUG:NA
- DESC:Information rectification
2019-11-06 19:51:01 +08:00
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.18-2
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:modify the location of COPYRIGHT
2022-06-20 14:13:35 +08:00
* Sun Sep 16 2018 openEuler Buildteam <buildteam@openeuler.org> - 2.18-1
2019-09-30 11:16:08 -04:00
- Package init