aboutsummaryrefslogblamecommitdiffstats
path: root/community/cachefilesd/APKBUILD
blob: 3dd568198af6333286d94d30a2be806db5875f95 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                           
             





                                                           
                      




                                                                       
                                   

         


                                                         



                             
                      




                                                                                        
                                                                 
                                                    
                                                                                                    
                                                                                    
                                                                                                                                                                    
                                                                                                                                                    
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cachefilesd
pkgver=0.10.9
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"
makedepends="rpm file"
install=""
subpackages="$pkgname-doc"
source="http://people.redhat.com/~dhowells/cachefs/$pkgname-$pkgver.tar
	$pkgname.initd"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	sed -i "s#/sbin/#/usr/bin/#g" cachefilesd.c
	sed -i "s#/sbin/#/usr/bin/#g" cachefilesd.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="156a215c8f82dd65f6745a38474bdb02  cachefilesd-0.10.9.tar
169c25fecb2c64e531e00daa90fb24ba  cachefilesd.initd"
sha256sums="c897ec6704615f26de3ddc20ff30a191ce995cb8973d2cde88b4b28c1a1e6bca  cachefilesd-0.10.9.tar
cb4e68f31cd97c07850634fefa23f4169dc937c6a8864f507e90ac183b640213  cachefilesd.initd"
sha512sums="06ab444a7df8ec37c15bc03554510f4acbb453e0730277f036abc5d61f9e377d90d9387dd5237ea481b95b1bf097b5992adce90ce971fe29760cc4c0d3c9cf34  cachefilesd-0.10.9.tar
854b66470ace24caf24e979de3c1c12a426972bc745823b3a0f47ac80811ac5da4fa6a249e65386acdec2e7561178bb1d2c4b301a2178458f10496bb8eac5b2f  cachefilesd.initd"