Compare commits
12 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db47d84b6b | ||
|
|
9051e8f47a | ||
|
|
5ec5b8bb57 | ||
|
|
3338cccd85 | ||
|
|
6b68ae982e | ||
|
|
28f6289d31 | ||
|
|
436b5f7085 | ||
|
|
c29d6b6aaa |
||
|
|
2e8632c557 |
||
|
|
1722d2b3f2 | ||
|
|
2fae2695c3 | ||
|
|
f8a0e9d288 |
9 changed files with 154 additions and 89 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -8,3 +8,5 @@ snoopy-1.7.1.tar.gz
|
|||
/snoopy-3aa5c7124a3861427f7d17cbccbb1deb37329e08.tar.gz
|
||||
/fix-build-for-new-automake.patch
|
||||
/snoopy-2.4.14.tar.gz
|
||||
/snoopy-2.5.1.tar.gz
|
||||
/snoopy-2.5.2.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,70 +0,0 @@
|
|||
From 65519eff0a0d5e0c544eb8657d63778e7db7cf4c Mon Sep 17 00:00:00 2001
|
||||
From: Neal Gompa <ngompa@fedoraproject.org>
|
||||
Date: Wed, 28 Jul 2021 11:02:29 -0400
|
||||
Subject: [PATCH] tests: Add exceptions for Fedora and RHEL to fix filter tests
|
||||
|
||||
Fedora and RHEL are affected by the same issue that affects CentOS
|
||||
where "bash" is launched as "sh", particularly in package build
|
||||
environments (e.g. rpmbuild and Mock).
|
||||
---
|
||||
.../filter/filter_exclude_spawns_of-mustdrop-multiarg-first.sh | 2 +-
|
||||
tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-last.sh | 2 +-
|
||||
tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-mid.sh | 2 +-
|
||||
tests/filter/filter_exclude_spawns_of-mustdrop-singlearg.sh | 2 +-
|
||||
4 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-first.sh b/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-first.sh
|
||||
index 190b69b..3aabed8 100755
|
||||
--- a/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-first.sh
|
||||
+++ b/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-first.sh
|
||||
@@ -17,7 +17,7 @@ set -u
|
||||
#
|
||||
PARENT_PROC_NAME="bash"
|
||||
. /etc/os-release
|
||||
-if [[ $ID =~ ^(arch|centos|opensuse) ]]; then
|
||||
+if [[ $ID =~ ^(arch|centos|fedora|rhel|opensuse) ]]; then
|
||||
PARENT_PROC_NAME="sh"
|
||||
fi
|
||||
|
||||
diff --git a/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-last.sh b/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-last.sh
|
||||
index 8c219ce..ae6a8d7 100755
|
||||
--- a/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-last.sh
|
||||
+++ b/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-last.sh
|
||||
@@ -17,7 +17,7 @@ set -u
|
||||
#
|
||||
PARENT_PROC_NAME="bash"
|
||||
. /etc/os-release
|
||||
-if [[ $ID =~ ^(arch|centos|opensuse) ]]; then
|
||||
+if [[ $ID =~ ^(arch|centos|fedora|rhel|opensuse) ]]; then
|
||||
PARENT_PROC_NAME="sh"
|
||||
fi
|
||||
|
||||
diff --git a/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-mid.sh b/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-mid.sh
|
||||
index df8b9fb..ba4205d 100755
|
||||
--- a/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-mid.sh
|
||||
+++ b/tests/filter/filter_exclude_spawns_of-mustdrop-multiarg-mid.sh
|
||||
@@ -17,7 +17,7 @@ set -u
|
||||
#
|
||||
PARENT_PROC_NAME="bash"
|
||||
. /etc/os-release
|
||||
-if [[ $ID =~ ^(arch|centos|opensuse) ]]; then
|
||||
+if [[ $ID =~ ^(arch|centos|fedora|rhel|opensuse) ]]; then
|
||||
PARENT_PROC_NAME="sh"
|
||||
fi
|
||||
|
||||
diff --git a/tests/filter/filter_exclude_spawns_of-mustdrop-singlearg.sh b/tests/filter/filter_exclude_spawns_of-mustdrop-singlearg.sh
|
||||
index bdc2086..4dfda10 100755
|
||||
--- a/tests/filter/filter_exclude_spawns_of-mustdrop-singlearg.sh
|
||||
+++ b/tests/filter/filter_exclude_spawns_of-mustdrop-singlearg.sh
|
||||
@@ -17,7 +17,7 @@ set -u
|
||||
#
|
||||
PARENT_PROC_NAME="bash"
|
||||
. /etc/os-release
|
||||
-if [[ $ID =~ ^(arch|centos|opensuse) ]]; then
|
||||
+if [[ $ID =~ ^(arch|centos|fedora|rhel|opensuse) ]]; then
|
||||
PARENT_PROC_NAME="sh"
|
||||
fi
|
||||
|
||||
--
|
||||
2.31.1
|
||||
|
||||
3
README.packit
Normal file
3
README.packit
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
This repository is maintained by packit.
|
||||
https://packit.dev/
|
||||
The file was generated using packit 1.1.0.post1.dev2+gf7b527d0.
|
||||
16
packit.yaml
Normal file
16
packit.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# See the documentation for more information:
|
||||
# https://packit.dev/docs/configuration/
|
||||
|
||||
copy_upstream_release_description: false
|
||||
|
||||
jobs:
|
||||
- job: pull_from_upstream
|
||||
trigger: release
|
||||
dist_git_branches:
|
||||
- fedora-rawhide
|
||||
|
||||
- job: koji_build
|
||||
trigger: commit
|
||||
allowed_committers: ['packit']
|
||||
dist_git_branches:
|
||||
- fedora-rawhide
|
||||
2
snoopy-disable
Normal file
2
snoopy-disable
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
/usr/sbin/snoopyctl disable
|
||||
14
snoopy-disable-utmp-tests.diff
Normal file
14
snoopy-disable-utmp-tests.diff
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
--- a/tests/unit/Makefile.in
|
||||
+++ b/tests/unit/Makefile.in
|
||||
@@ -94,10 +94,7 @@ XFAIL_TESTS =
|
||||
@CONFIGFILE_ENABLED_TRUE@am__append_3 = unit-ext-ini.sh
|
||||
@FILTERING_ENABLED_TRUE@am__append_4 = unit-filterregistry.sh
|
||||
@DATASOURCE_ENABLED_systemd_unit_name_TRUE@am__append_5 = unit-util-systemd.sh
|
||||
-@DATASOURCE_ENABLED_ipaddr_TRUE@am__append_6 = unit-util-utmp-entry-missing.sh \
|
||||
-@DATASOURCE_ENABLED_ipaddr_TRUE@ unit-util-utmp-entry-without-ip-address.sh \
|
||||
-@DATASOURCE_ENABLED_ipaddr_TRUE@ unit-util-utmp-ipv4.sh \
|
||||
-@DATASOURCE_ENABLED_ipaddr_TRUE@ unit-util-utmp-ipv6.sh
|
||||
+@DATASOURCE_ENABLED_ipaddr_TRUE@am__append_6 = unit-util-utmp-entry-missing.sh
|
||||
@DATASOURCE_ENABLED_ipaddr_TRUE@am__append_7 = unit-util-utmp-testUtmpFile
|
||||
subdir = tests/unit
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
2
snoopy-enable
Normal file
2
snoopy-enable
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
/usr/sbin/snoopyctl enable
|
||||
132
snoopy.spec
132
snoopy.spec
|
|
@ -1,17 +1,30 @@
|
|||
# compat was already shipped on Fedora < 42 and EL9, even though
|
||||
# they never had snoopy <= 2.4.x,
|
||||
# so we need to keep it for the duration of the lifecycle, but we can drop this
|
||||
# in Fedora >= 42 and RHEL >= 10
|
||||
%if (0%{?fedora} && 0%{?fedora} < 42) || (0%{?rhel} && 0%{?rhel} < 10)
|
||||
%bcond_without compat
|
||||
%else
|
||||
%bcond_with compat
|
||||
%endif
|
||||
|
||||
Name: snoopy
|
||||
Version: 2.4.14
|
||||
Release: 1%{?dist}
|
||||
Version: 2.5.2
|
||||
Release: 2%{?dist}
|
||||
Summary: A preload library to send shell commands to syslog
|
||||
License: GPLv2+
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/a2o/snoopy
|
||||
Source0: %{url}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: snoopy-disable
|
||||
Source2: snoopy-enable
|
||||
|
||||
# Upstream patches (0001~0500)
|
||||
|
||||
# Proposed upstream patches (0501~1000)
|
||||
|
||||
# Fedora-only patches (1001+)
|
||||
Patch1001: 1001-Add-exceptions-for-Fedora-and-RHEL-to-fix-filter-tests.patch
|
||||
# arch-specific (1101+)
|
||||
Patch1101: %{name}-disable-utmp-tests.diff
|
||||
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
|
|
@ -22,32 +35,73 @@ BuildRequires: %{_bindir}/hostname
|
|||
BuildRequires: %{_bindir}/socat
|
||||
BuildRequires: %{_bindir}/ps
|
||||
|
||||
%description
|
||||
%if %{with compat}
|
||||
%if 0%{?el8}
|
||||
Recommends: %{name}-compat = %{version}-%{release}
|
||||
%endif
|
||||
%else
|
||||
# drop in Fedora 44 (upgrading from 41 no longer supported)
|
||||
# and EPEL 11
|
||||
%if (0%{?fedora} && 0%{?fedora} < 44) || (0%{?rhel} && 0%{?rhel} < 11)
|
||||
Obsoletes: %{name}-compat < 2.5.1-6%{?dist}
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%global _description %{expand:
|
||||
Snoopy is designed to aid a sysadmin by providing a log of commands executed.
|
||||
Snoopy is completely transparent to the user and applications.
|
||||
It is linked into programs to provide a wrapper around calls to execve().
|
||||
Logging is done via syslog.
|
||||
Logging is done via syslog.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%if %{with compat}
|
||||
%package compat
|
||||
Summary: Compatibility scripts for %{name}
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
# this is only needed for the lifetime of Fedora and EPEL releases that
|
||||
# originally shipped snoopy <= 2.4.x (which has snoopy-disable and
|
||||
# snoopy-enable instead of snoopyctl)
|
||||
#
|
||||
# per policy we can't mark a package as deprecated on a released
|
||||
# Fedora branch
|
||||
Provides: deprecated()
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description compat %{_description}
|
||||
|
||||
This package contains compatibility scripts for Snoopy.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%autosetup -N
|
||||
%ifarch aarch64 s390x
|
||||
%autopatch -p1
|
||||
%else
|
||||
%autopatch -p1 -M 1100
|
||||
%endif
|
||||
%if %{with compat}
|
||||
# compat scripts
|
||||
cp -p %{SOURCE1} .
|
||||
cp -p %{SOURCE2} .
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
%if 0%{?fc33}
|
||||
# Only for Fedora 33
|
||||
%ifarch s390x
|
||||
# Disable -Werror to prevent weirdness from the standard library on s390x
|
||||
export CFLAGS="%{build_cflags} -Wno-error"
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%if %{with compat}
|
||||
for cmd in disable enable; do
|
||||
install -p snoopy-${cmd} %{buildroot}%{_sbindir}/
|
||||
done
|
||||
%endif
|
||||
|
||||
# Get rid of libtool archive file
|
||||
rm %{buildroot}%{_libdir}/libsnoopy.la
|
||||
|
|
@ -58,16 +112,58 @@ rm %{buildroot}%{_libdir}/libsnoopy.la
|
|||
|
||||
|
||||
%files
|
||||
%doc COPYING README.md ChangeLog
|
||||
%license COPYING
|
||||
%doc README.md ChangeLog doc/FAQ.md doc/FILTER_exclude_spawns_of.md
|
||||
# Note, the plain .so file needs to be here since it's a preload library
|
||||
%{_libdir}/libsnoopy.so*
|
||||
%{_sbindir}/snoopy-enable
|
||||
%{_sbindir}/snoopy-disable
|
||||
%{_sbindir}/snoopyctl
|
||||
%config(noreplace) %{_sysconfdir}/snoopy.ini
|
||||
|
||||
%if %{with compat}
|
||||
%files compat
|
||||
%{_sbindir}/snoopy-disable
|
||||
%{_sbindir}/snoopy-enable
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Thu Feb 13 2025 Packit <hello@packit.dev> - 2.5.2-1
|
||||
- Update to version 2.5.2
|
||||
- Resolves: rhbz#2321673
|
||||
|
||||
* Thu Feb 13 2025 Michel Lind <salimma@fedoraproject.org> - 2.5.1-6
|
||||
- Remove compat subpackage on Fedora >= 42 and EPEL >= 10
|
||||
- Create Packit configuration to automate future updates
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Sat Jun 03 2023 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.5.1-1
|
||||
- Update to 2.5.1
|
||||
- Convert to SPDX license identifier
|
||||
- Add compat subpackage for snoopy-disable and snoopy-enable
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.14-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.14-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.14-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Jul 28 2021 Neal Gompa <ngompa@fedoraproject.org> - 2.4.14-1
|
||||
- Rebase to 2.4.14
|
||||
- Modernize packaging to current packaging guidelines
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (snoopy-2.4.14.tar.gz) = 1bb230a6923a0c840d51f3072112ed7f3c74e33208b210ea9cd24181fb047fe6166c61a4bffe70732e8f9d34c3ce2d446c31874811483d9b719ebb40382ea2e0
|
||||
SHA512 (snoopy-2.5.2.tar.gz) = bb16affc545bf02207b6674aebe0821cbe5d70d4b91f873a4a751ef4f7e9a92f4a8d7910020e3c00800754bc5d8d05e9240717d17b7df3004f8a60b988ad4a3a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue