New package: earlyoom-0.10

This commit is contained in:
Leah Neukirchen 2017-02-05 15:32:58 +01:00
parent 9838d591ae
commit 86aec15b8f
4 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec logger -t earlyoom

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec earlyoom 2>&1 >/dev/null

View File

@ -0,0 +1,10 @@
--- meminfo.c.orig
+++ meminfo.c
@@ -32,6 +32,7 @@
fprintf(stderr, "Could not find \"%s\"\n", name);
exit(104);
}
+ return val;
}
/* If the kernel does not provide MemAvailable (introduced in Linux 3.14),

20
srcpkgs/earlyoom/template Normal file
View File

@ -0,0 +1,20 @@
# Template file for 'earlyoom'
pkgname=earlyoom
version=0.10
revision=1
short_desc="Early OOM Daemon for Linux"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="https://github.com/rfjakob/earlyoom"
distfiles="https://github.com/rfjakob/${pkgname}/archive/v${version}.tar.gz"
checksum=b015a2551e46abcc843c29b27ae8466a187b30fad8084574545f66624cab0842
do_build() {
${CC} ${CFLAGS} -DVERSION='"'$version'"' -o earlyoom *.c ${LDFLAGS}
}
do_install() {
vbin earlyoom
vsv earlyoom
vlicense LICENSE
}