New package: bcache-tools-1.0.8
This commit is contained in:
parent
521e8d26d0
commit
32f23fcc68
2 changed files with 38 additions and 0 deletions
11
srcpkgs/bcache-tools/patches/crc64.patch
Normal file
11
srcpkgs/bcache-tools/patches/crc64.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- bcache.c
|
||||||
|
+++ bcache.c
|
||||||
|
@@ -115,7 +115,7 @@ static const uint64_t crc_table[256] = {
|
||||||
|
0x9AFCE626CE85B507ULL
|
||||||
|
};
|
||||||
|
|
||||||
|
-inline uint64_t crc64(const void *_data, size_t len)
|
||||||
|
+uint64_t crc64(const void *_data, size_t len)
|
||||||
|
{
|
||||||
|
uint64_t crc = 0xFFFFFFFFFFFFFFFFULL;
|
||||||
|
const unsigned char *data = _data;
|
27
srcpkgs/bcache-tools/template
Normal file
27
srcpkgs/bcache-tools/template
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# Template file for 'bcache-tools'
|
||||||
|
pkgname=bcache-tools
|
||||||
|
version=1.0.8
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-makefile
|
||||||
|
hostmakedepends="pkg-config"
|
||||||
|
makedepends="libblkid-devel"
|
||||||
|
short_desc="User space tools for the bcache hybrid storage system"
|
||||||
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||||
|
license="GPL-3"
|
||||||
|
homepage="https://bcache.evilpiepirate.org/"
|
||||||
|
distfiles="https://github.com/g2p/${pkgname}/archive/v${version}.tar.gz"
|
||||||
|
checksum=d56923936f37287efc57a46315679102ef2c86cd0be5874590320acd48c1201c
|
||||||
|
CFLAGS="-I$XBPS_CROSS_BASE/usr/include/blkid"
|
||||||
|
|
||||||
|
pre_install() {
|
||||||
|
vmkdir usr/bin
|
||||||
|
vmkdir usr/sbin
|
||||||
|
vmkdir usr/lib
|
||||||
|
vmkdir lib/udev/rules.d
|
||||||
|
vmkdir usr/share/man/man8
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
mv $DESTDIR/usr/sbin/* $DESTDIR/usr/bin
|
||||||
|
mv $DESTDIR/lib/* $DESTDIR/usr/lib
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue