2015-03-29 13:32:40 +10:00
|
|
|
# Description: Combined filesystem and logical volume manager from Sun Microsystems/Oracle
|
|
|
|
# URL: http://zfsonlinux.org/
|
|
|
|
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
|
|
|
|
|
|
|
|
# Depends on: spl
|
|
|
|
|
|
|
|
name=zfs
|
2015-07-03 10:42:54 +10:00
|
|
|
version=0.6.4.2
|
2015-06-26 20:50:15 +10:00
|
|
|
release=1
|
2015-03-29 13:32:40 +10:00
|
|
|
source=(http://archive.zfsonlinux.org/downloads/zfsonlinux/$name/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
# Configure
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib/$name \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--with-spl=/usr/include/spl
|
|
|
|
|
|
|
|
# ugly hacks ahoy!
|
|
|
|
find . -name "Makefile" -exec sed -i -e 's,/usr/src/zfs-$(VERSION),/usr/include/zfs,g' '{}' \;
|
|
|
|
|
|
|
|
# Build
|
|
|
|
make
|
|
|
|
|
|
|
|
# Package
|
|
|
|
make DESTDIR=$PKG install
|
2015-04-01 07:34:14 +10:00
|
|
|
|
2015-04-01 20:01:47 +10:00
|
|
|
install -d -D -m 755 $PKG/etc/zfs
|
2015-03-29 13:32:40 +10:00
|
|
|
}
|