From 170b17d476d123173f6bc9edb192f7e736d1ba15 Mon Sep 17 00:00:00 2001 From: Colin Booth Date: Thu, 13 May 2021 20:57:06 -0700 Subject: [PATCH] snoopy: update to 2.4.14 Also fixes the test environment, though maybe not in the best way --- srcpkgs/snoopy/template | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/srcpkgs/snoopy/template b/srcpkgs/snoopy/template index 3d1b338fb245..9c33a30924e4 100644 --- a/srcpkgs/snoopy/template +++ b/srcpkgs/snoopy/template @@ -1,20 +1,27 @@ # Template file for 'snoopy' pkgname=snoopy -version=2.4.6 +version=2.4.14 revision=1 build_style=gnu-configure hostmakedepends="socat" +checkdepends="procps-ng" conf_files="/etc/snoopy.ini" short_desc="Log every executed command to syslog" maintainer="Orphaned " -license="GPL-2" +license="GPL-2.0-or-later" homepage="https://github.com/a2o/snoopy" -distfiles="http://source.a2o.si/download/snoopy/snoopy-${version}.tar.gz" -checksum=6442e1145a5cad725f6aae0887030ee3db34bafc40bbe3bb84da836cbb5f1569 +distfiles="https://github.com/a2o/snoopy/releases/download/snoopy-${version}/snoopy-${version}.tar.gz" +checksum=6f305f49d87d56906061ded9083dc0308365f966a13edacc3eb59191221ced1a -pre_configure() { +post_patch() { find . -type f -name Makefile.in -exec sed -i 's| -Werror||' {} + } + +# some tests are degenerate and blindly source os-release prior to running +post_build() { + [ -f /etc/os-release ] || echo 'ID="void"' > /etc/os-release +} + post_install() { vconf etc/snoopy.ini }