import haproxy-2.4.17-4.el9
This commit is contained in:
parent
eb6bc4b548
commit
53fecd0a7d
1
SOURCES/haproxy.sysusers
Normal file
1
SOURCES/haproxy.sysusers
Normal file
@ -0,0 +1 @@
|
|||||||
|
u haproxy - "haproxy" /var/lib/haproxy
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
Name: haproxy
|
Name: haproxy
|
||||||
Version: 2.4.17
|
Version: 2.4.17
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: HAProxy reverse proxy for high availability environments
|
Summary: HAProxy reverse proxy for high availability environments
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -19,7 +19,8 @@ Source1: %{name}.service
|
|||||||
Source2: %{name}.cfg
|
Source2: %{name}.cfg
|
||||||
Source3: %{name}.logrotate
|
Source3: %{name}.logrotate
|
||||||
Source4: %{name}.sysconfig
|
Source4: %{name}.sysconfig
|
||||||
Source5: halog.1
|
Source5: %{name}.sysusers
|
||||||
|
Source6: halog.1
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: lua-devel
|
BuildRequires: lua-devel
|
||||||
@ -27,6 +28,7 @@ BuildRequires: pcre2-devel
|
|||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
@ -71,7 +73,8 @@ popd
|
|||||||
%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{haproxy_confdir}/%{name}.cfg
|
%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{haproxy_confdir}/%{name}.cfg
|
||||||
%{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
%{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||||
%{__install} -p -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
%{__install} -p -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||||||
%{__install} -p -D -m 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/halog.1
|
%{__install} -p -D -m 0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/%{name}.conf
|
||||||
|
%{__install} -p -D -m 0644 %{SOURCE6} %{buildroot}%{_mandir}/man1/halog.1
|
||||||
%{__install} -d -m 0755 %{buildroot}%{haproxy_homedir}
|
%{__install} -d -m 0755 %{buildroot}%{haproxy_homedir}
|
||||||
%{__install} -d -m 0755 %{buildroot}%{haproxy_datadir}
|
%{__install} -d -m 0755 %{buildroot}%{haproxy_datadir}
|
||||||
%{__install} -d -m 0755 %{buildroot}%{haproxy_confdir}/conf.d
|
%{__install} -d -m 0755 %{buildroot}%{haproxy_confdir}/conf.d
|
||||||
@ -97,12 +100,7 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group %{haproxy_group} >/dev/null || \
|
%sysusers_create_compat %{SOURCE5}
|
||||||
groupadd -r %{haproxy_group}
|
|
||||||
getent passwd %{haproxy_user} >/dev/null || \
|
|
||||||
useradd -r -g %{haproxy_user} -d %{haproxy_homedir} \
|
|
||||||
-s /sbin/nologin -c "haproxy" %{haproxy_user}
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post %{name}.service
|
%systemd_post %{name}.service
|
||||||
@ -131,8 +129,12 @@ exit 0
|
|||||||
%{_bindir}/iprange
|
%{_bindir}/iprange
|
||||||
%{_bindir}/ip6range
|
%{_bindir}/ip6range
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
%{_sysusersdir}/%{name}.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 30 2022 Ryan O'Hara <rohara@redhat.com> - 2.4.17-4
|
||||||
|
- Use systemd-sysusers for user/group creation (#2095422)
|
||||||
|
|
||||||
* Mon Jul 25 2022 Ryan O'Hara <rohara@redhat.com> - 2.4.17-3
|
* Mon Jul 25 2022 Ryan O'Hara <rohara@redhat.com> - 2.4.17-3
|
||||||
- Fix changelog and rebuild
|
- Fix changelog and rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user