Compare commits

..

19 commits

Author SHA1 Message Date
Fedora Release Engineering
db47d84b6b Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 18:29:37 +00:00
Packit
9051e8f47a Update to 2.5.2 upstream release
- Resolves: rhbz#2321673

Commit authored by Packit automation (https://packit.dev/)
2025-02-14 12:09:53 -06:00
Michel Lind
5ec5b8bb57 Remove compat subpackage on Fedora >= 42 and EPEL >= 10
Create Packit configuration to automate future updates

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
2025-02-13 15:16:17 -06:00
Fedora Release Engineering
3338cccd85 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 11:07:48 +00:00
Fedora Release Engineering
6b68ae982e Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 05:58:54 +00:00
Fedora Release Engineering
28f6289d31 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 03:48:14 +00:00
Fedora Release Engineering
436b5f7085 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 02:03:10 +00:00
Michel Alexandre Salim
c29d6b6aaa
Disable failed tests on aarch64/s390x
Remove old patch

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
2023-06-03 22:22:32 -05:00
Michel Alexandre Salim
2e8632c557
Update to 2.5.1
Convert to SPDX license identifier
Add compat subpackage for snoopy-disable and snoopy-enable

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
2023-06-03 21:39:49 -05:00
Fedora Release Engineering
1722d2b3f2 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 03:37:05 +00:00
Fedora Release Engineering
2fae2695c3 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 08:58:36 +00:00
Fedora Release Engineering
f8a0e9d288 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 01:14:55 +00:00
Neal Gompa
0c23cadebe Disable -Werror on s390x on Fedora 33 only
There's a puzzling failure that only occurs there:

/bin/sh ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../..    -Wall -Werror -Wextra -Wno-unused-parameter -std=c99 -Wpedantic -I../../../src -I../../.. -DINI_MAX_LINE=1024 -DINI_INITIAL_ALLOC=1024 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c -o ini.lo ini.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -Wall -Werror -Wextra -Wno-unused-parameter -std=c99 -Wpedantic -I../../../src -I../../.. -DINI_MAX_LINE=1024 -DINI_INITIAL_ALLOC=1024 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c ini.c  -fPIC -DPIC -o .libs/ini.o
make[4]: Leaving directory '/builddir/build/BUILD/snoopy-2.4.14/lib/inih/src'
In file included from /usr/include/string.h:519,
                 from ini.c:16:
In function 'strncpy',
    inlined from 'strncpy0' at ini.c:73:5,
    inlined from 'snoopy_ini_parse_stream' at ini.c:202:17:
/usr/include/bits/string_fortified.h:91:10: error: 'strncpy' output may be truncated copying 49 bytes from a string of length 1023 [-Werror=stringop-truncation]
   91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

It looks like it's something goofy from the standard library, and
doesn't show up in Fedora 34+, so just ignore it there for now.
2021-07-29 08:24:52 -04:00
Neal Gompa
396d88c58b Rebase to 2.4.14
- Modernize packaging to current packaging guidelines
- Drop unsupported devel content
- Run test suite
2021-07-28 23:22:48 -04:00
Mohan Boddu
e5a1807e8d Revert "snoopy fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1676012"
Unretirement for https://pagure.io/releng/issue/10236

This reverts commit d12778b3fa.
2021-07-28 18:04:02 -04:00
Fedora Release Engineering
d12778b3fa snoopy fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1676012 2019-08-08 16:36:46 +00:00
Fedora Release Engineering
951c031e7a - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 23:40:03 +00:00
Fedora Release Engineering
41905d236d - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 08:05:34 +00:00
Fedora Release Engineering
7b66172f88 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 06:22:17 +00:00
8 changed files with 196 additions and 38 deletions

3
.gitignore vendored
View file

@ -7,3 +7,6 @@ snoopy-1.7.1.tar.gz
/snoopy-1.9.0.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

3
README.packit Normal file
View 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
View 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
View file

@ -0,0 +1,2 @@
#!/bin/sh
/usr/sbin/snoopyctl disable

View 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
View file

@ -0,0 +1,2 @@
#!/bin/sh
/usr/sbin/snoopyctl enable

View file

@ -1,65 +1,184 @@
%global commit 3aa5c7124a3861427f7d17cbccbb1deb37329e08
# 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.2.6
Release: 7%{?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: https://github.com/a2o/snoopy/archive/%{commit}/snoopy-%{commit}.tar.gz
Patch0: fix-build-for-new-automake.patch
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+)
# arch-specific (1101+)
Patch1101: %{name}-disable-utmp-tests.diff
BuildRequires: automake
BuildRequires: libtool
BuildRequires: gcc
BuildRequires: make
# For tests
BuildRequires: %{_bindir}/hostname
BuildRequires: %{_bindir}/socat
BuildRequires: %{_bindir}/ps
%description
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.
%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
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%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.}
%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
%description devel
Development files for %{name}.
%prep
%setup -q -n %{name}-%{commit}
%patch0 -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
sh autogen.sh
%configure --libdir=%{_libdir}
make %{?_smp_mflags}
%configure
%make_build
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%install
%make_install
%if %{with compat}
for cmd in disable enable; do
install -p snoopy-${cmd} %{buildroot}%{_sbindir}/
done
%endif
mkdir -p %{buildroot}%{_sysconfdir}
install -m 0644 etc/snoopy.ini %{buildroot}%{_sysconfdir}/snoopy.ini
# Get rid of libtool archive file
rm %{buildroot}%{_libdir}/libsnoopy.la
mkdir -p %{buildroot}%{_includedir}/%{name}
install -c -m 644 src/*.h %{buildroot}%{_includedir}/%{name}
%check
%make_build check
%files
%doc COPYING README.md ChangeLog
%license COPYING
%{_libdir}/libsnoopy*
%{_bindir}/snoopy-test-output
%{_sbindir}/snoopy-enable
%{_sbindir}/snoopy-disable
%{_sysconfdir}/snoopy.ini
%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}/snoopyctl
%config(noreplace) %{_sysconfdir}/snoopy.ini
%if %{with compat}
%files compat
%{_sbindir}/snoopy-disable
%{_sbindir}/snoopy-enable
%endif
%files devel
%{_includedir}/*
%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
- Drop unsupported devel content
- Run test suite
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.6-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.6-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.6-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

View file

@ -1,2 +1 @@
3564577da7df8bb326c903b90373b8ea snoopy-3aa5c7124a3861427f7d17cbccbb1deb37329e08.tar.gz
9090446631d87c378965ea28d3a15d87 fix-build-for-new-automake.patch
SHA512 (snoopy-2.5.2.tar.gz) = bb16affc545bf02207b6674aebe0821cbe5d70d4b91f873a4a751ef4f7e9a92f4a8d7910020e3c00800754bc5d8d05e9240717d17b7df3004f8a60b988ad4a3a