New package: earlyoom-0.10
This commit is contained in:
parent
9838d591ae
commit
86aec15b8f
4 changed files with 34 additions and 0 deletions
2
srcpkgs/earlyoom/files/earlyoom/log/run
Executable file
2
srcpkgs/earlyoom/files/earlyoom/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -t earlyoom
|
2
srcpkgs/earlyoom/files/earlyoom/run
Executable file
2
srcpkgs/earlyoom/files/earlyoom/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec earlyoom 2>&1 >/dev/null
|
10
srcpkgs/earlyoom/patches/return.patch
Normal file
10
srcpkgs/earlyoom/patches/return.patch
Normal 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
20
srcpkgs/earlyoom/template
Normal 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
|
||||
}
|
Loading…
Reference in a new issue