New package: netbsd-rumpkernel-20130318 (with pooka's help).

This commit is contained in:
Juan RP 2013-03-19 01:18:32 +01:00
parent 8bb9460243
commit 1677b30548

View File

@ -0,0 +1,47 @@
# Template file for 'netbsd-rumpkernel'.
pkgname=netbsd-rumpkernel
version=20130318
revision=1
makedepends="cvs"
short_desc="NetBSD rump kernel"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="https://github.com/anttikantee/buildrump.sh"
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."
nofetch=yes
noextract=yes
nostrip=yes
do_fetch() {
local url="git://github.com/anttikantee/buildrump.sh.git"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
do_build() {
vmkdir usr
CVS_PASSFILE=/dev/null ./buildrump.sh checkout
if [ -n "$XBPS_CROSS_BUILD" ]; then
env CC="gcc" LD="ld" AS="as" RANLIB="ranlib" ./buildrump.sh tools
else
./buildrump.sh -V MKPICINSTALL=no -d ${DESTDIR}/usr tools
fi
./buildrump.sh -d ${DESTDIR}/usr build
}
do_install() {
./buildrump.sh -V MKPICINSTALL=no -d ${DESTDIR}/usr install
# Move man to correct dir.
vmove usr/man usr/share
}