2013-03-19 00:18:32 +00:00
|
|
|
# Template file for 'netbsd-rumpkernel'.
|
|
|
|
pkgname=netbsd-rumpkernel
|
2013-04-03 22:53:11 +00:00
|
|
|
version=20130404
|
2013-03-20 21:52:41 +00:00
|
|
|
revision=1
|
2013-04-03 22:11:58 +00:00
|
|
|
hostmakedepends="cvs"
|
2013-03-19 00:18:32 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
local url="git://github.com/anttikantee/buildrump.sh.git"
|
|
|
|
msg_normal "Fetching source from $url ...\n"
|
2013-03-21 08:31:27 +00:00
|
|
|
git clone ${url} ${pkgname}-${version}
|
2013-03-19 00:18:32 +00:00
|
|
|
}
|
|
|
|
|
2013-03-20 21:52:41 +00:00
|
|
|
do_configure() {
|
2013-03-19 00:18:32 +00:00
|
|
|
CVS_PASSFILE=/dev/null ./buildrump.sh checkout
|
2013-03-20 21:52:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
./buildrump.sh ${makejobs} -r -V MKPICINSTALL=no -d ${DESTDIR}/usr tools
|
|
|
|
./buildrump.sh ${makejobs} -r -d ${DESTDIR}/usr build
|
2013-03-19 00:18:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2013-03-19 00:27:07 +00:00
|
|
|
./buildrump.sh -r -V MKPICINSTALL=no -d ${DESTDIR}/usr install
|
2013-04-03 22:11:58 +00:00
|
|
|
|
2013-03-19 00:56:41 +00:00
|
|
|
# Set proper perms to libs.
|
|
|
|
chmod 644 ${DESTDIR}/usr/lib/*.a
|
|
|
|
chmod 755 ${DESTDIR}/usr/lib/*.so.*
|
2013-03-19 00:18:32 +00:00
|
|
|
}
|
2013-04-14 02:36:19 +00:00
|
|
|
|
|
|
|
netbsd-rumpkernel-devel_package() {
|
|
|
|
depends="${sourcepkg}>=$version"
|
|
|
|
short_desc="${short_desc} -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
netbsd-rumpkernel_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|