10 Star 0 Fork 14

src-openEuler/radvd
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
radvd.spec 3.41 KB
一键复制 编辑 原始数据 按行查看 历史
xingwei 提交于 2025-03-10 10:44 +08:00 . revert upstream patch to avoid functional changes
Name: radvd
Version: 2.19
Release: 4
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
Patch6001: backport-add-IPV6_DROP_MEMBERSHIP-to-clean-up-resources.patch
BuildRequires: gcc bison flex flex-static pkgconfig check-devel systemd
Requires(pre): shadow-utils
%{?systemd_requires}
%description
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
messages are required for IPv6 stateless autoconfiguration.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
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
install -d -m 755 %{buildroot}%{_tmpfilesdir}
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
%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
%doc CHANGES
%defattr(-,root,root)
%license COPYRIGHT
%{_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
* Mon Mar 10 2025 xingwei <xingwei14@h-partners.com> - 2.19-4
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:revert upstream patch to avoid functional changes
* Fri Oct 11 2024 lifeifei <lifeifei@kylinos.cn> - 2.19-3
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:Add the socket option IPV6_MULTICAST_LOOP to prevent the interface from autoconfiguring using RA messages sent by itself.
* Mon Jul 18 2022 xingwei <xingwei14@huawei.com> - 2.19-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add IPV6_DROP_MEMBERSHIP to fix memory leak in kernel space
* Fri Jan 29 2021 xihaochen <xihaochen@huawei.com> - 2.19-1
- Type:requirements
- Id:NA
- SUG:NA
- DESC:update radvd to 2.19
* Fri Apr 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.18-3
- Type:bugifx
- Id:NA
- SUG:NA
- DESC:Information rectification
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.18-2
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:modify the location of COPYRIGHT
* Sun Sep 16 2018 openEuler Buildteam <buildteam@openeuler.org> - 2.18-1
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/radvd.git
git@gitee.com:src-openeuler/radvd.git
src-openeuler
radvd
radvd
openEuler-22.03-LTS-SP3

搜索帮助