Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions srcpkgs/snoopy/patches/fix-tests.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
these 4 tests assume the parent process is bash, not sh

--- 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 @@
#
PARENT_PROC_NAME="bash"
. /etc/os-release
-if [[ $ID =~ ^(alpine|arch|almalinux|centos|fedora|rhel|opensuse) ]]; then
+if [[ $ID =~ ^(alpine|arch|almalinux|centos|fedora|rhel|opensuse|void) ]]; then
PARENT_PROC_NAME="sh"
fi

--- 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 @@
#
PARENT_PROC_NAME="bash"
. /etc/os-release
-if [[ $ID =~ ^(alpine|arch|almalinux|centos|fedora|rhel|opensuse) ]]; then
+if [[ $ID =~ ^(alpine|arch|almalinux|centos|fedora|rhel|opensuse|void) ]]; then
PARENT_PROC_NAME="sh"
fi

--- 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 @@
#
PARENT_PROC_NAME="bash"
. /etc/os-release
-if [[ $ID =~ ^(alpine|arch|almalinux|centos|fedora|rhel|opensuse) ]]; then
+if [[ $ID =~ ^(alpine|arch|almalinux|centos|fedora|rhel|opensuse|void) ]]; then
PARENT_PROC_NAME="sh"
fi

--- a/tests/filter/filter_exclude_spawns_of-mustdrop-singlearg.sh
+++ b/tests/filter/filter_exclude_spawns_of-mustdrop-singlearg.sh
@@ -17,7 +17,7 @@
#
PARENT_PROC_NAME="bash"
. /etc/os-release
-if [[ $ID =~ ^(alpine|arch|almalinux|centos|fedora|rhel|opensuse) ]]; then
+if [[ $ID =~ ^(alpine|arch|almalinux|centos|fedora|rhel|opensuse|void) ]]; then
PARENT_PROC_NAME="sh"
fi

7 changes: 4 additions & 3 deletions srcpkgs/snoopy/template
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# Template file for 'snoopy'
pkgname=snoopy
version=2.4.6
version=2.5.2
revision=1
build_style=gnu-configure
hostmakedepends="socat"
checkdepends="socat procps-ng"
conf_files="/etc/snoopy.ini"
short_desc="Log every executed command to syslog"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://github.com/a2o/snoopy"
distfiles="https://github.com/a2o/snoopy/releases/download/snoopy-${version}/snoopy-${version}.tar.gz"
checksum=6442e1145a5cad725f6aae0887030ee3db34bafc40bbe3bb84da836cbb5f1569
checksum=9bee136cc3a676e8a11e5ad23339f32fe1a6aea473abca1cc625beb71ebbafc9

pre_configure() {
find . -type f -name Makefile.in -exec sed -i 's| -Werror||' {} +
}

post_install() {
vconf etc/snoopy.ini
}