38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Template file for 'spl'
|
|
pkgname=spl
|
|
version=0.6.4.1
|
|
revision=1
|
|
wrksrc="${pkgname}-${pkgname}-${version/r/-}"
|
|
build_style=gnu-configure
|
|
configure_args="--with-config=user --sbindir=/usr/bin"
|
|
hostmakedepends="automake libtool"
|
|
short_desc="Solaris Porting Layer -- userland and kernel modules (using DKMS)"
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
license="GPL-2"
|
|
homepage="http://zfsonlinux.org/"
|
|
distfiles="https://github.com/zfsonlinux/${pkgname}/archive/${pkgname}-${version/r/-}.tar.gz"
|
|
checksum=e3f3f07e905ecf4c799be3a3c9c1aaa2ee55896710ed376f654081e016b46164
|
|
nocross=yes
|
|
|
|
triggers="dkms"
|
|
dkms_modules="spl ${version/r/-}"
|
|
depends="dkms>=2.2.0.3_9 ${pkgname}-devel>=${version}_${revision} glibc-devel"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
tar czf ../clean.tar.gz .
|
|
}
|
|
post_install() {
|
|
vmkdir usr/src/${pkgname}-${version/r/-}
|
|
tar xf ../clean.tar.gz -C ${DESTDIR}/usr/src/${pkgname}-${version/r/-}
|
|
scripts/dkms.mkconf -v ${version/r/-} -f ${DESTDIR}/usr/src/${sourcepkg}-${version/r/-}/dkms.conf -n spl
|
|
}
|
|
spl-devel_package() {
|
|
short_desc="Solaris Porting Layer -- development headers"
|
|
pkg_install() {
|
|
vmove usr/src/${sourcepkg}-${version/r/-}/include
|
|
}
|
|
}
|
|
do_clean() {
|
|
rm -f ../clean.tar.gz
|
|
}
|