preload: remove service/conf; those shouldn't be handled by xbps.
This commit is contained in:
parent
656e8a201b
commit
fb2e50a643
|
@ -1,10 +0,0 @@
|
|||
# Miminum memory that the system should have for preload to be launched.
|
||||
# In megabytes.
|
||||
MIN_MEMORY="256"
|
||||
|
||||
# Command-line arguments to pass to the daemon. Read preload(8) man page
|
||||
# for available options.
|
||||
OPTS="--verbose 1 -l ''"
|
||||
|
||||
# Option to call ionice with. Leave empty to skip ionice.
|
||||
IONICE_OPTS="-c3"
|
|
@ -1,7 +1,18 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
[ -r ./conf ] && . ./conf
|
||||
MIN_MEMORY=${MIN_MEMORY:-256}
|
||||
|
||||
# Miminum memory that the system should have for preload to be launched.
|
||||
# In megabytes.
|
||||
: ${MIN_MEMORY:=256}
|
||||
|
||||
# Command-line arguments to pass to the daemon. Read preload(8) man page
|
||||
# for available options.
|
||||
: ${OPTS:="--verbose 1 -l ''"}
|
||||
|
||||
# Option to call ionice with. Leave empty to skip ionice.
|
||||
: ${IONICE_OPTS:=-c3}
|
||||
|
||||
free -m | awk '/Mem:/ {exit ($2 >= ('"$MIN_MEMORY"'))?0:1}' || exit 0
|
||||
|
||||
if [ -n "$IONICE_OPTS" ]; then
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'preload'
|
||||
pkgname=preload
|
||||
version=0.6.4
|
||||
revision=7
|
||||
revision=8
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libglib-devel"
|
||||
|
@ -13,7 +13,6 @@ license="GPL-2"
|
|||
homepage="http://sourceforge.net/projects/preload"
|
||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||
checksum=d0a558e83cb29a51d9d96736ef39f4b4e55e43a589ad1aec594a048ca22f816b
|
||||
configure_args="--sbindir=/usr/bin"
|
||||
|
||||
post_install() {
|
||||
rm -rf ${DESTDIR}/etc/rc.d
|
||||
|
|
Loading…
Reference in New Issue