diff --git a/srcpkgs/cachefilesd/files/cachefilesd/run b/srcpkgs/cachefilesd/files/cachefilesd/run new file mode 100755 index 0000000000..5cc5065819 --- /dev/null +++ b/srcpkgs/cachefilesd/files/cachefilesd/run @@ -0,0 +1,4 @@ +#!/bin/sh +[ -r conf ] && . ./conf +modprobe cachefiles || exit 1 +exec cachefilesd -n ${OPTS:= -f /etc/cachefilesd.conf} diff --git a/srcpkgs/cachefilesd/template b/srcpkgs/cachefilesd/template new file mode 100644 index 0000000000..a7d407bd6c --- /dev/null +++ b/srcpkgs/cachefilesd/template @@ -0,0 +1,21 @@ +# Template file for 'cachefilesd' +pkgname=cachefilesd +version=0.10.7 +revision=1 +build_style=gnu-makefile +short_desc="Userspace daemon acting as a backend for FS-Cache" +maintainer="Enno Boland " +license="GPL-2" +homepage="https://people.redhat.com/~dhowells/fscache/" +distfiles="http://people.redhat.com/~dhowells/fscache/${pkgname}-${version}.tar.bz2" +checksum=193cca5efb37ee460a4ed8e1ed4878e3718e432ebe690ec4fe02486ef3f2494e +make_install_args="SBINDIR=/usr/bin BINDIR=/usr/bin" +conf_files="/etc/cachefilesd.conf" + +do_configure() { + sed -i "s#/sbin/#/usr/bin/#g" cachefilesd.c +} + +post_install() { + vsv cachefilesd +}