From 1a8a04634245f476ec6239633a403f09a22f44e6 Mon Sep 17 00:00:00 2001 From: Kevin Daudt Date: Wed, 12 Sep 2018 17:46:26 +0000 Subject: testing/foolsm: new aport --- testing/foolsm/APKBUILD | 28 ++++++++++++++++++++++++++++ testing/foolsm/fix-non-standard-macro.patch | 13 +++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 testing/foolsm/APKBUILD create mode 100644 testing/foolsm/fix-non-standard-macro.patch diff --git a/testing/foolsm/APKBUILD b/testing/foolsm/APKBUILD new file mode 100644 index 0000000000..3cf6a71131 --- /dev/null +++ b/testing/foolsm/APKBUILD @@ -0,0 +1,28 @@ +# Contributor: Kevin Daudt +# Maintainer: Kevin Daudt +pkgname=foolsm +pkgver=1.0.10 +pkgrel=0 +pkgdesc="Link Status Monitor" +url="https://lsm.foobar.fi/" +arch="all" +license="GPL-2.0-only" +makedepends="linux-headers" +options="!check" # No test suite availbe +subpackages="$pkgname-doc" +source="https://lsm.foobar.fi/download/foolsm-$pkgver.tar.gz + fix-non-standard-macro.patch" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + make +} + +package() { + cd "$builddir" + make install DESTDIR="$pkgdir" PREFIX=/usr +} + +sha512sums="7437306cb2188446b31e23f01876a64aff7556797012b0cc83db57e328d71f2813d2f3771b2c6d22300fe0e5ba2eca3992d59c33c3984a7bcfe6a52d7b719657 foolsm-1.0.10.tar.gz +4a0c851b2ae534c365adcc5798b56fc91b1efe7d4bcad90df411e93d7a4a0c620d3e9efa26504de877059c481de207c58c468ea577025db2933fa111f5620077 fix-non-standard-macro.patch" diff --git a/testing/foolsm/fix-non-standard-macro.patch b/testing/foolsm/fix-non-standard-macro.patch new file mode 100644 index 0000000000..58d87e2755 --- /dev/null +++ b/testing/foolsm/fix-non-standard-macro.patch @@ -0,0 +1,13 @@ +diff --git a/forkexec.c b/forkexec.c.new +index 203d1d3202..e3708bbfa5 100644 +--- a/forkexec.c ++++ b/forkexec.c.new +@@ -108,7 +108,7 @@ static void sigchld_hdl(int sig) + int script_status; + pid_t pid; + +- while ((pid = waitpid(WAIT_ANY, &script_status, WNOHANG)) != 0) { ++ while ((pid = waitpid(-1, &script_status, WNOHANG)) != 0) { + if(pid == -1) { + if(cfg.debug >= 9 && errno != ECHILD) + syslog(LOG_ERR, "%s: %s: %d: waitpid failed %s", __FILE__, __FUNCTION__, __LINE__, strerror(errno)); -- cgit v1.2.3