import CS tlog-14-1.el9

This commit is contained in:
eabdullin 2024-03-28 11:55:58 +00:00
parent 8b39698163
commit e6d6f07fa7
4 changed files with 19 additions and 9 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/tlog-13.tar.gz
SOURCES/tlog-14.tar.gz

View File

@ -1 +1 @@
47fa5adda56037b2a7e87be84af7a4ee6f8bb418 SOURCES/tlog-13.tar.gz
0c6f3cc5622164a60e5295176e7af8612eb09606 SOURCES/tlog-14.tar.gz

2
SOURCES/tlog.sysusers Normal file
View File

@ -0,0 +1,2 @@
u tlog - "Tlog terminal I/O logger" /run/tlog /sbin/nologin
g tlog -

View File

@ -19,7 +19,7 @@
%{!?make_build:%global make_build %{__make} %{?_smp_mflags}}
Name: tlog
Version: 13
Version: 14
Release: 1%{?dist}
Summary: Terminal I/O logger
@ -34,7 +34,8 @@ License: GPLv2+
%endif
URL: https://github.com/Scribery/%{name}
Source: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1: tlog.sysusers
BuildRequires: autoconf
BuildRequires: automake
@ -57,6 +58,7 @@ Requires: systemd-sysv
Requires(preun): systemd
Requires(post): systemd
Requires(postun): systemd
%{?sysusers_requires_compat}
%endif
%else
@ -111,6 +113,7 @@ rm -r %{buildroot}/usr/include/%{name}
mkdir -p %{buildroot}%{_localstatedir}/run
install -d -m 0755 %{buildroot}%{_localstatedir}/run/%{name}
%endif
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf
%files
%{!?_licensedir:%global license %doc}
@ -133,13 +136,10 @@ rm -r %{buildroot}/usr/include/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-rec.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-rec-session.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-play.conf
%{_sysusersdir}/%{name}.conf
%pre
getent group %{name} >/dev/null ||
groupadd -r %{name}
getent passwd %{name} >/dev/null ||
useradd -r -g %{name} -d %{_localstatedir}/run/%{name} -s /sbin/nologin \
-c "Tlog terminal I/O logger" %{name}
%sysusers_create_compat %{SOURCE1}
%post
/sbin/ldconfig
@ -156,6 +156,14 @@ systemd-tmpfiles --create %{name}.conf >/dev/null 2>&1 || :
/sbin/ldconfig
%changelog
* Wed Feb 07 2024 Justin Stephenson <jstephen@redhat.com> - 14-1
- Release v14
- configure: correctly handle systemd versions before 245
* Fri Jul 14 2023 Justin Stephenson <jstephen@redhat.com> - 13-2
- Provide a sysusers.d file to get user() and group() provides
(see https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format).
* Mon Apr 17 2023 Justin Stephenson <jstephen@redhat.com> - 13-1
- Update the Fedora license
- MAN: Add missing comma in tlog-rec-session.conf