aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cachefilesd/APKBUILD
blob: c9d081fe9cdab0c6050ea52d697aa66b715cbc37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cachefilesd
pkgver=0.10
pkgrel=0
pkgdesc="Userspace daemon acting as a backend for FS-Cache"
url="http://people.redhat.com/~dhowells/fscache/"
arch="all"
license="GPL"
depends="attr"
depends_dev=""
makedepends="$depends_dev rpm"
install=""
subpackages="$pkgname-doc"
source="http://people.redhat.com/~dhowells/cachefs/$pkgname-$pkgver.tar
	$pkgname.initd"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	sed -i "s#/sbin/#/usr/bin/#g" cachefilesd.{c,service}
	make CFLAGS="$CFLAGS"
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" SBINDIR=/usr/bin install
	mkdir -p "$pkgdir"/var/cache/fscache
	install -D -m 755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"	
}

md5sums="ba27ed4b5e8165c46175501bf703ac08  cachefilesd-0.10.tar
169c25fecb2c64e531e00daa90fb24ba  cachefilesd.initd"
sha256sums="ec1c2311aeeeb9246549d7efdc6ad464d3eda768d1883a22ecf40c2ea2354fd7  cachefilesd-0.10.tar
cb4e68f31cd97c07850634fefa23f4169dc937c6a8864f507e90ac183b640213  cachefilesd.initd"
sha512sums="2988f9ba7ed5dcefee689801fa6ba0d966fb98560aa33ce67c5f182e14505f0c7350f70b81d5969009c121c20caa59ca86993d9fe661ef251f18f47725710522  cachefilesd-0.10.tar
854b66470ace24caf24e979de3c1c12a426972bc745823b3a0f47ac80811ac5da4fa6a249e65386acdec2e7561178bb1d2c4b301a2178458f10496bb8eac5b2f  cachefilesd.initd"