36 lines
795 B
Plaintext
36 lines
795 B
Plaintext
|
# Description: A Linux kernel module which provides many of the Solaris kernel APIs
|
||
|
# URL: http://zfsonlinux.org/
|
||
|
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
|
||
|
#
|
||
|
# Depends on:
|
||
|
|
||
|
name=spl
|
||
|
version=HEAD
|
||
|
release=1
|
||
|
source=()
|
||
|
|
||
|
build() {
|
||
|
if [ ! -d $PKGMK_SOURCE_DIR/${name}.git ]; then
|
||
|
git clone https://github.com/zfsonlinux/${name}.git $PKGMK_SOURCE_DIR/${name}.git
|
||
|
else
|
||
|
cp -a $PKGMK_SOURCE_DIR/${name}.git $SRC/$name-$version
|
||
|
fi
|
||
|
|
||
|
cd $name-$version
|
||
|
|
||
|
./autogen.sh
|
||
|
|
||
|
# Configure
|
||
|
./configure --prefix=/usr \
|
||
|
--mandir=/usr/man
|
||
|
|
||
|
# dirty hacks ahoy!
|
||
|
find . -name "Makefile" -exec sed -i -e 's,/usr/src/spl-$(VERSION),/usr/include/spl,g' '{}' \;
|
||
|
|
||
|
# Build
|
||
|
make
|
||
|
|
||
|
# Package
|
||
|
make DESTDIR=$PKG install
|
||
|
}
|