2014-08-06 19:16:38 +00:00
|
|
|
# Template file for 'spl'
|
|
|
|
pkgname=spl
|
2015-04-25 13:22:27 +00:00
|
|
|
version=0.6.4.1
|
2015-03-18 23:50:14 +00:00
|
|
|
revision=1
|
2015-03-20 14:20:10 +00:00
|
|
|
wrksrc="${pkgname}-${pkgname}-${version/r/-}"
|
2014-08-06 19:16:38 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--with-config=user --sbindir=/usr/bin"
|
2015-03-20 14:20:10 +00:00
|
|
|
hostmakedepends="automake libtool"
|
2014-08-06 19:16:38 +00:00
|
|
|
short_desc="Solaris Porting Layer -- userland and kernel modules (using DKMS)"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://zfsonlinux.org/"
|
2015-03-20 12:02:33 +00:00
|
|
|
distfiles="https://github.com/zfsonlinux/${pkgname}/archive/${pkgname}-${version/r/-}.tar.gz"
|
2015-04-25 13:22:27 +00:00
|
|
|
checksum=e3f3f07e905ecf4c799be3a3c9c1aaa2ee55896710ed376f654081e016b46164
|
2015-04-10 10:08:14 +00:00
|
|
|
nocross=yes
|
2014-08-06 19:16:38 +00:00
|
|
|
|
|
|
|
triggers="dkms"
|
2015-03-20 14:20:10 +00:00
|
|
|
dkms_modules="spl ${version/r/-}"
|
|
|
|
depends="dkms>=2.2.0.3_9 ${pkgname}-devel>=${version}_${revision} glibc-devel"
|
2014-08-06 19:16:38 +00:00
|
|
|
|
2015-03-20 14:20:10 +00:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
tar czf ../clean.tar.gz .
|
|
|
|
}
|
2014-08-06 19:16:38 +00:00
|
|
|
post_install() {
|
2015-03-20 14:20:10 +00:00
|
|
|
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
|
2014-11-23 13:24:46 +00:00
|
|
|
}
|
2014-08-06 19:16:38 +00:00
|
|
|
spl-devel_package() {
|
2014-11-23 13:24:46 +00:00
|
|
|
short_desc="Solaris Porting Layer -- development headers"
|
|
|
|
pkg_install() {
|
2015-03-20 14:20:10 +00:00
|
|
|
vmove usr/src/${sourcepkg}-${version/r/-}/include
|
2014-11-23 13:24:46 +00:00
|
|
|
}
|
2014-08-06 19:16:38 +00:00
|
|
|
}
|
2015-03-20 14:20:10 +00:00
|
|
|
do_clean() {
|
|
|
|
rm -f ../clean.tar.gz
|
|
|
|
}
|