aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cachefilesd/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-01-05 11:26:46 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-01-05 11:26:46 +0000
commit7506c5c402525d392ed381c3f29128fb53dc652d (patch)
tree8fde6e14cdbc8e419c1db79b4dded4dd3eb25909 /testing/cachefilesd/APKBUILD
parent0a3d45364a361756d8254c9d46af56d4b2ae524b (diff)
downloadaports-7506c5c402525d392ed381c3f29128fb53dc652d.tar.bz2
aports-7506c5c402525d392ed381c3f29128fb53dc652d.tar.xz
testing/cachefilesd: new aport. Fixes #4990
Diffstat (limited to 'testing/cachefilesd/APKBUILD')
-rw-r--r--testing/cachefilesd/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/cachefilesd/APKBUILD b/testing/cachefilesd/APKBUILD
new file mode 100644
index 0000000000..e004f3f370
--- /dev/null
+++ b/testing/cachefilesd/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=cachefilesd
+pkgver=0.10.5
+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"
+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="9e85dd0ace346ff47e188ded8c05ab3b cachefilesd-0.10.5.tar
+169c25fecb2c64e531e00daa90fb24ba cachefilesd.initd"
+sha256sums="125ea4f6aef4bf8e936a7cc747b59e074537a8aed74cd1bab3f05d7fbc47287f cachefilesd-0.10.5.tar
+cb4e68f31cd97c07850634fefa23f4169dc937c6a8864f507e90ac183b640213 cachefilesd.initd"
+sha512sums="996e47de40cff4d2c0d265689ef3a33aee6ef0d0432a03d7428133c091e77b0e099bd1346b5638bf2d9df6bb47bce519491b420d5916a3211c4e04e158ad92e8 cachefilesd-0.10.5.tar
+854b66470ace24caf24e979de3c1c12a426972bc745823b3a0f47ac80811ac5da4fa6a249e65386acdec2e7561178bb1d2c4b301a2178458f10496bb8eac5b2f cachefilesd.initd"