void-packages/srcpkgs/netbsd-rumpkernel/template

45 lines
1.5 KiB
Text
Raw Normal View History

# Template file for 'netbsd-rumpkernel'.
pkgname=netbsd-rumpkernel
2014-01-05 21:59:50 +00:00
version=20140103
revision=1
2013-12-06 17:29:44 +00:00
wrksrc="buildrump-${version}"
short_desc="NetBSD rump kernel"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="https://github.com/anttikantee/buildrump.sh"
2013-12-06 17:29:44 +00:00
distfiles="${SOURCEFORGE_SITE}/rumpkernel/buildrump-${version}.tar.xz"
2014-01-05 21:59:50 +00:00
checksum=fac213939c1ec5d6ba183e8192cc8ab031e125955a434620eec9e9a107a32d57
long_desc="
This package provides NetBSD kernel drivers which have been built from
unmodified kernel source code as userspace libraries. Examples of
supplied drivers include file systems and the TCP/IP stack. The library
components can be linked in a variety of configurations to form rump
kernels, which provide services to applications directly on the host.
Root privileges are not mandated for running rump kernels.
This package enables for example userspace TCP termination and utilities
to access file systems without having to mount them on the host."
do_build() {
./buildrump.sh ${makejobs} -r -V MKPICINSTALL=no -d ${DESTDIR}/usr tools
./buildrump.sh ${makejobs} -r -d ${DESTDIR}/usr build
}
do_install() {
./buildrump.sh -r -V MKPICINSTALL=no -d ${DESTDIR}/usr install
# Set proper perms to libs.
chmod 644 ${DESTDIR}/usr/lib/*.a
chmod 755 ${DESTDIR}/usr/lib/*.so.*
}
netbsd-rumpkernel-devel_package() {
2013-12-06 17:29:44 +00:00
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove "usr/lib/*.a"
2013-07-02 08:00:04 +00:00
vmove "usr/lib/*.so"
}
}