import radvd-2.19-5.el9
This commit is contained in:
parent
c33e54a30c
commit
9deb054041
3
SOURCES/radvd.sysusers
Normal file
3
SOURCES/radvd.sysusers
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#Type Name ID GECOS Home directory Shell
|
||||||
|
g radvd 75
|
||||||
|
u radvd 75 "radvd user" / /sbin/nologin
|
@ -1,12 +1,13 @@
|
|||||||
Summary: A Router Advertisement daemon
|
Summary: A Router Advertisement daemon
|
||||||
Name: radvd
|
Name: radvd
|
||||||
Version: 2.19
|
Version: 2.19
|
||||||
Release: 4%{?dist}
|
Release: 5%{?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
|
||||||
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
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -16,8 +17,9 @@ 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}
|
||||||
Requires(pre): shadow-utils
|
%{?sysusers_requires_compat}
|
||||||
|
|
||||||
%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
|
||||||
@ -61,6 +63,7 @@ install -m 644 redhat/SysV/radvd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/
|
|||||||
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/systemd/radvd-tmpfs.conf %{buildroot}%{_tmpfilesdir}/radvd.conf
|
||||||
install -m 644 redhat/systemd/radvd.service %{buildroot}%{_unitdir}
|
install -m 644 redhat/systemd/radvd.service %{buildroot}%{_unitdir}
|
||||||
|
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/radvd.conf
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
@ -74,12 +77,8 @@ 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
|
||||||
getent group radvd >/dev/null || groupadd -r -g 75 radvd
|
%sysusers_create_compat %{SOURCE1}
|
||||||
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
|
||||||
@ -87,6 +86,7 @@ exit 0
|
|||||||
%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,6 +94,9 @@ exit 0
|
|||||||
%{_sbindir}/radvdump
|
%{_sbindir}/radvdump
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 03 2022 Martin Osvald <mosvald@redhat.com> - 2.19-5
|
||||||
|
- Use systemd-sysusers for radvd user and group (#2095457)
|
||||||
|
|
||||||
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.19-4
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.19-4
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
Related: rhbz#1991688
|
Related: rhbz#1991688
|
||||||
|
Loading…
Reference in New Issue
Block a user