Compare commits
No commits in common. "imports/c9-beta/tlog-12.1-2.el9" and "c8" have entirely different histories.
imports/c9
...
c8
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/tlog-12.1.tar.gz
|
SOURCES/tlog-14.tar.gz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
556c0c33d07c4191f6e14ab28b322c2300edef68 SOURCES/tlog-12.1.tar.gz
|
|
188
SPECS/tlog.spec
188
SPECS/tlog.spec
@ -1,78 +1,25 @@
|
|||||||
%global _hardened_build 1
|
Name: tlog
|
||||||
|
Version: 14
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Terminal I/O logger
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} < 7
|
License: GPLv2+
|
||||||
# If it's RHEL6 and older
|
URL: https://github.com/Scribery/%{name}
|
||||||
%bcond_with systemd
|
Source: https://github.com/Scribery/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||||
%else
|
|
||||||
%bcond_without systemd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_vendor}" == "debbuild"
|
|
||||||
# Set values to make debian builds work well
|
|
||||||
%global _defaultdocdir /usr/share/doc/%{name}
|
|
||||||
%global _buildshell /bin/bash
|
|
||||||
%global _lib lib/%(%{__dpkg_architecture} -qDEB_HOST_MULTIARCH)
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Compatibility macros
|
|
||||||
%{!?_tmpfilesdir:%global _tmpfilesdir %{_prefix}/lib/tmpfiles.d}
|
|
||||||
%{!?make_build:%global make_build %{__make} %{?_smp_mflags}}
|
|
||||||
|
|
||||||
Name: tlog
|
|
||||||
Version: 12.1
|
|
||||||
Release: 2%{?dist}
|
|
||||||
Summary: Terminal I/O logger
|
|
||||||
|
|
||||||
%if "%{_vendor}" == "debbuild"
|
|
||||||
# Required for Debian
|
|
||||||
Packager: Justin Stephenson <jstephen@redhat.com>
|
|
||||||
Group: admin
|
|
||||||
License: GPL-2.0+
|
|
||||||
%else
|
|
||||||
Group: Applications/System
|
|
||||||
License: GPLv2+
|
|
||||||
%endif
|
|
||||||
|
|
||||||
URL: https://github.com/Scribery/%{name}
|
|
||||||
Source: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
||||||
|
|
||||||
BuildRequires: autoconf
|
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: libtool
|
|
||||||
BuildRequires: m4
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: make
|
BuildRequires: json-c-devel
|
||||||
|
BuildRequires: curl-devel
|
||||||
%if "%{_vendor}" == "debbuild"
|
BuildRequires: m4
|
||||||
BuildRequires: libjson-c-dev
|
|
||||||
BuildRequires: libcurl4-gnutls-dev
|
|
||||||
BuildRequires: libutempter-dev
|
|
||||||
# Debian/Ubuntu doesn't automatically pull this in...
|
|
||||||
BuildRequires: pkg-config
|
|
||||||
|
|
||||||
%if %{with systemd}
|
|
||||||
BuildRequires: libsystemd-dev
|
|
||||||
# Expanded form of systemd_requires macro
|
|
||||||
Requires: systemd-sysv
|
|
||||||
Requires(preun): systemd
|
|
||||||
Requires(post): systemd
|
|
||||||
Requires(postun): systemd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%else
|
|
||||||
BuildRequires: pkgconfig(json-c)
|
|
||||||
BuildRequires: pkgconfig(libcurl)
|
|
||||||
%if %{defined suse_version}
|
|
||||||
BuildRequires: utempter-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: libutempter-devel
|
BuildRequires: libutempter-devel
|
||||||
|
# If it's not RHEL6 and older
|
||||||
|
%if 0%{?rhel} == 0 || 0%{?rhel} >= 7
|
||||||
|
BuildRequires: systemd-devel
|
||||||
|
BuildRequires: systemd-units
|
||||||
%endif
|
%endif
|
||||||
|
Requires(post): sed
|
||||||
|
Requires(postun): sed
|
||||||
|
|
||||||
%if %{with systemd}
|
|
||||||
BuildRequires: pkgconfig(libsystemd)
|
|
||||||
%{?systemd_requires}
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Tlog is a terminal I/O recording program similar to "script", but used in
|
Tlog is a terminal I/O recording program similar to "script", but used in
|
||||||
@ -80,31 +27,49 @@ place of a user's shell, starting the recording and executing the real user's
|
|||||||
shell afterwards. The recorded I/O can then be forwarded to a logging server
|
shell afterwards. The recorded I/O can then be forwarded to a logging server
|
||||||
in JSON format.
|
in JSON format.
|
||||||
|
|
||||||
|
%global _hardened_build 1
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-rpath --disable-static --enable-utempter %{!?with_systemd:--disable-journal} --docdir=%{_defaultdocdir}/%{name}
|
# If it's not RHEL6 and older
|
||||||
%make_build
|
%if 0%{?rhel} == 0 || 0%{?rhel} >= 7
|
||||||
|
%configure --disable-rpath --disable-static --enable-utempter
|
||||||
|
# Else, if it's RHEL6 or older
|
||||||
|
%else
|
||||||
|
%configure --disable-rpath --disable-static --disable-journal
|
||||||
|
%endif
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%make_build check
|
make %{?_smp_mflags} check
|
||||||
|
|
||||||
|
%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}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
make install DESTDIR=%{buildroot}
|
||||||
rm %{buildroot}/%{_libdir}/*.la
|
rm %{buildroot}/%{_libdir}/*.la
|
||||||
|
|
||||||
# Remove development files as we're not doing a devel package yet
|
# Remove development files as we're not doing a devel package yet
|
||||||
rm %{buildroot}/%{_libdir}/*.so
|
rm %{buildroot}/%{_libdir}/*.so
|
||||||
rm -r %{buildroot}/usr/include/%{name}
|
rm -r %{buildroot}/usr/include/%{name}
|
||||||
|
|
||||||
%if %{with systemd}
|
# If it's not RHEL6 and older
|
||||||
|
%if 0%{?rhel} == 0 || 0%{?rhel} >= 7
|
||||||
# Create tmpfiles.d configuration for the lock dir
|
# Create tmpfiles.d configuration for the lock dir
|
||||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||||
{
|
{
|
||||||
echo "# Type Path Mode UID GID Age Argument"
|
echo "# Type Path Mode UID GID Age Argument"
|
||||||
echo "d /run/%{name} 0755 %{name} %{name}"
|
echo "d /run/%{name} 0755 %{name} %{name}"
|
||||||
} > %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
} > %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||||
|
# Create the lock dir
|
||||||
|
mkdir -p %{buildroot}/run
|
||||||
|
install -d -m 0755 %{buildroot}/run/%{name}
|
||||||
# Else, if it's RHEL6 or older
|
# Else, if it's RHEL6 or older
|
||||||
%else
|
%else
|
||||||
# Create the lock dir
|
# Create the lock dir
|
||||||
@ -123,10 +88,12 @@ rm -r %{buildroot}/usr/include/%{name}
|
|||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
%{_mandir}/man5/*
|
%{_mandir}/man5/*
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
%if %{with systemd}
|
# If it's not RHEL6 and older
|
||||||
%{_tmpfilesdir}/%{name}.conf
|
%if 0%{?rhel} == 0 || 0%{?rhel} >= 7
|
||||||
|
%config(noreplace) %{_tmpfilesdir}/%{name}.conf
|
||||||
|
%dir %attr(-,%{name},%{name}) /run/%{name}
|
||||||
|
# Else if it's RHEL6 or older
|
||||||
%else
|
%else
|
||||||
# If it's RHEL6 and older
|
|
||||||
%dir %attr(-,%{name},%{name}) %{_localstatedir}/run/%{name}
|
%dir %attr(-,%{name},%{name}) %{_localstatedir}/run/%{name}
|
||||||
%endif
|
%endif
|
||||||
%dir %{_sysconfdir}/%{name}
|
%dir %{_sysconfdir}/%{name}
|
||||||
@ -134,29 +101,22 @@ rm -r %{buildroot}/usr/include/%{name}
|
|||||||
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-rec-session.conf
|
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-rec-session.conf
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-play.conf
|
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-play.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}
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%if 0%{?el7} || 0%{?suse_version} >= 1315
|
|
||||||
# For RHEL7 and SUSE Linux distributions, creation doesn't happen automatically
|
|
||||||
%tmpfiles_create %{name}.conf
|
|
||||||
%endif
|
|
||||||
%if 0%{?ubuntu} || 0%{?debian}
|
|
||||||
# For Debian/Ubuntu, creation doesn't happen automatically
|
|
||||||
systemd-tmpfiles --create %{name}.conf >/dev/null 2>&1 || :
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Apr 21 2022 Justin Stephenson <jstephen@redhat.com> - 12.1
|
* Wed Feb 07 2024 Justin Stephenson <jstephen@redhat.com> - 14-1
|
||||||
|
- Release v14
|
||||||
|
- configure: correctly handle systemd versions before 245
|
||||||
|
|
||||||
|
* Mon Apr 17 2023 Justin Stephenson <jstephen@redhat.com> - 13-1
|
||||||
|
- Update the Fedora license
|
||||||
|
- MAN: Add missing comma in tlog-rec-session.conf
|
||||||
|
|
||||||
|
* Mon May 23 2022 Justin Stephenson <jstephen@redhat.com> - 12.1
|
||||||
- Exit transfer loop when output fd is closed
|
- Exit transfer loop when output fd is closed
|
||||||
- Revert "Prevent infinite transfer loop on GDM login"
|
- Revert "Prevent infinite transfer loop on GDM login"
|
||||||
|
|
||||||
@ -166,26 +126,15 @@ systemd-tmpfiles --create %{name}.conf >/dev/null 2>&1 || :
|
|||||||
- tlog-play: add journal namespace support.
|
- tlog-play: add journal namespace support.
|
||||||
- tlitest: extend delay for limit-action delay test.
|
- tlitest: extend delay for limit-action delay test.
|
||||||
|
|
||||||
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 11-5
|
* Tue Apr 27 2021 Justin Stephenson <jstephen@redhat.com> - 11-1
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
||||||
Related: rhbz#1991688
|
|
||||||
|
|
||||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com>
|
|
||||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
||||||
|
|
||||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 11-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 19 2021 Justin Stephenson <jstephen@redhat.com> - 11-1
|
|
||||||
- Release v11
|
|
||||||
- Fire SIGCHLD after utempter_add_record since it probably eats it.
|
- Fire SIGCHLD after utempter_add_record since it probably eats it.
|
||||||
|
|
||||||
* Tue Jan 8 2021 Justin Stephenson <jstephen@redhat.com> - 10-1
|
|
||||||
- Release v10
|
|
||||||
- Correct suse rpmbuild
|
- Correct suse rpmbuild
|
||||||
- Update debbuild for travis CI
|
- Update debbuild for travis CI
|
||||||
|
|
||||||
* Tue Oct 13 2020 Justin Stephenson <jstephen@redhat.com> - 9-1
|
* Thu Oct 15 2020 Justin Stephenson <jstephen@redhat.com> - 9-2
|
||||||
|
- Skip utmp removal with piped IO on stdin
|
||||||
|
|
||||||
|
* Thu Oct 15 2020 Justin Stephenson <jstephen@redhat.com> - 9-1
|
||||||
- Release v9
|
- Release v9
|
||||||
- Add libutempter support
|
- Add libutempter support
|
||||||
- Require journal match filter
|
- Require journal match filter
|
||||||
@ -194,27 +143,18 @@ systemd-tmpfiles --create %{name}.conf >/dev/null 2>&1 || :
|
|||||||
- Add "time" real clock timestamp message field
|
- Add "time" real clock timestamp message field
|
||||||
- Various upstream CI improvements
|
- Various upstream CI improvements
|
||||||
|
|
||||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8-3
|
* Tue May 26 2020 Justin Stephenson <jstephen@redhat.com> - 8-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
- Test fixups from v8
|
||||||
|
|
||||||
* Fri May 22 2020 Justin Stephenson <jstephen@redhat.com> - 8-2
|
* Thu May 21 2020 Justin Stephenson <jstephen@redhat.com> - 8-1
|
||||||
- Minor test fixups
|
|
||||||
|
|
||||||
* Tue May 19 2020 Justin Stephenson <jstephen@redhat.com> - 8-1
|
|
||||||
- Release v8
|
- Release v8
|
||||||
- Spec file fixes for EL6
|
- Spec file fixes for EL6
|
||||||
- Spec file improvements for Debian/Ubuntu pkg-config
|
- Spec file improvements for Debian/Ubuntu pkg-config
|
||||||
- Tlog-play improve authentication options
|
- Tlog-play improve authentication options
|
||||||
- Handle piped in I/O from stdin and improve the main recording
|
- Handle piped in I/O from stdin and improve the main recording transfer exit
|
||||||
transfer exit condition.
|
condition.
|
||||||
- Use empty string on hostname resolution failure
|
- Use empty string on hostname resolution failure
|
||||||
|
|
||||||
* Tue Apr 21 2020 Björn Esser <besser82@fedoraproject.org> - 7-3
|
|
||||||
- Rebuild (json-c)
|
|
||||||
|
|
||||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Nov 12 2019 Justin Stephenson <jstephen@redhat.com> - 7-1
|
* Tue Nov 12 2019 Justin Stephenson <jstephen@redhat.com> - 7-1
|
||||||
- Release v7
|
- Release v7
|
||||||
- Allow tlog-play redirection of stdout
|
- Allow tlog-play redirection of stdout
|
||||||
|
Loading…
Reference in New Issue
Block a user