diff options
author | stacktic <stacktic> | 2009-10-14 13:26:09 +0000 |
---|---|---|
committer | stacktic <stacktic> | 2009-10-14 13:26:09 +0000 |
commit | dd360a0fad898f328a8b31b2caf1dce97cfacc62 (patch) | |
tree | 44860ac238ee8f9598a76a06646c8ad0ff3fe89f /misc | |
parent | 99669d95f9996e55b59a2f85cea548a910ba36ba (diff) | |
download | pkgsrc-dd360a0fad898f328a8b31b2caf1dce97cfacc62.tar.gz |
Import rump 20091014.
Available for FreeBSD and Linux.
Rump (Runnable Userspace Meta Program) is a mechanism for running kernel code
as part of a user program's address space. As opposed to executing system calls
for requesting kernel services, rump programs do a library call into the kernel
code for equivalent functionality. Kernel code is simply recompiled as a
userspace shared library from the kernel sources instead of being rewritten,
so services imitate the same services being provided by the kernel. Select
architectures such as i386 and amd64 also support directly linking binary
kernel modules against rump programs.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/rump/DESCR | 8 | ||||
-rw-r--r-- | misc/rump/Makefile | 79 | ||||
-rw-r--r-- | misc/rump/PLIST | 122 | ||||
-rw-r--r-- | misc/rump/distinfo | 5 |
4 files changed, 214 insertions, 0 deletions
diff --git a/misc/rump/DESCR b/misc/rump/DESCR new file mode 100644 index 00000000000..307efeb0148 --- /dev/null +++ b/misc/rump/DESCR @@ -0,0 +1,8 @@ +Rump (Runnable Userspace Meta Program) is a mechanism for running kernel code +as part of a user program's address space. As opposed to executing system calls +for requesting kernel services, rump programs do a library call into the kernel +code for equivalent functionality. Kernel code is simply recompiled as a +userspace shared library from the kernel sources instead of being rewritten, +so services imitate the same services being provided by the kernel. Select +architectures such as i386 and amd64 also support directly linking binary +kernel modules against rump programs. diff --git a/misc/rump/Makefile b/misc/rump/Makefile new file mode 100644 index 00000000000..18a6073ea35 --- /dev/null +++ b/misc/rump/Makefile @@ -0,0 +1,79 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/10/14 13:26:09 stacktic Exp $ +# + +DISTNAME= rump_20091014 +PKGNAME= ${DISTNAME:S/_/-/} +CATEGORIES= misc +MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/stacktic/ + +MAINTAINER= stacktic@NetBSD.org +HOMEPAGE= http://www.NetBSD.org/docs/rump/ +COMMENT= NetBSD Filesystems in Userspace Libraries + +ONLY_FOR_PLATFORM= Linux-*-* FreeBSD-*-* + +INSTALLATION_DIRS= lib include/rump + +CHECK_PORTABILITY= no +PKG_DESTDIR_SUPPORT= user-destdir +USE_BSD_MAKEFILE= yes + +WRKSRC= ${WRKDIR}/rump +MAKEFLAGS+= -m ${WRKSRC}/share/mk +MAKEFLAGS+= MACHINE_ARCH=${MACHINE_ARCH} +MAKEFLAGS+= MACHINE_CPU=${MACHINE_ARCH} +MAKEFLAGS+= MACHINE=${MACHINE_ARCH} +MAKEFLAGS+= MKMAN=no + +SUBST_CLASSES+= inc_path +SUBST_STAGE.inc_path= pre-configure +SUBST_MESSAGE.inc_path= Adjusting include path. +SUBST_FILES.inc_path= lib/libukfs/Makefile +SUBST_FILES.inc_path+= sys/rump/include/rump/Makefile +SUBST_SED.inc_path= -e "s|/usr/include|${PREFIX}/include|g" + +SUBST_CLASSES+= path +SUBST_STAGE.path= pre-configure +SUBST_MESSAGE.path= Adjusting path. +SUBST_FILES.path= share/mk/bsd.own.mk +SUBST_SED.path= -e "s|/usr/src|${WRKSRC}|g" +SUBST_SED.path+= -e "s|NM.*lorder|${WRKSRC}/bin/lorder|g" +SUBST_SED.path+= -e "s|^INSTALL=.*|INSTALL= ${WRKSRC}/tools/binstall/xinstall|g" +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "Linux" +SUBST_CLASSES+= linux +SUBST_STAGE.linux= pre-configure +SUBST_MESSAGE.linux= Adjusting tsort option. +SUBST_FILES.linux= share/mk/sys.mk +SUBST_SED.linux= -e "s|tsort -q|tsort|g" +SUBST_SED.linux+= -e "s|lorder|${WRKSRC}/bin/lorder|g" +.endif + +.if ${OPSYS} != "NetBSD" +SUBST_CLASSES+= install +SUBST_STAGE.install= pre-configure +SUBST_MESSAGE.install= Using NetBSD install +SUBST_FILES.install= share/mk/sys.mk +SUBST_SED.install= -e "s|^INSTALL?=.*|INSTALL=${WRKSRC}/tools/binstall/xinstall|g" +.endif + +post-install: + ${INSTALL_DATA} ${WRKSRC}/sys/rump/include/rump/rump.h \ + ${DESTDIR}${PREFIX}/include/rump + ${INSTALL_DATA} ${WRKSRC}/sys/rump/include/rump/rump_compat.h \ + ${DESTDIR}${PREFIX}/include/rump + ${INSTALL_DATA} ${WRKSRC}/sys/rump/include/rump/rump_namei.h \ + ${DESTDIR}${PREFIX}/include/rump + ${INSTALL_DATA} ${WRKSRC}/sys/rump/include/rump/rump_syscalls.h \ + ${DESTDIR}${PREFIX}/include/rump + ${INSTALL_DATA} ${WRKSRC}/sys/rump/include/rump/rumpdefs.h \ + ${DESTDIR}${PREFIX}/include/rump + ${INSTALL_DATA} ${WRKSRC}/sys/rump/include/rump/rumpuser.h \ + ${DESTDIR}${PREFIX}/include/rump + ${INSTALL_DATA} ${WRKSRC}/sys/rump/include/rump/rumpvnode_if.h \ + ${DESTDIR}${PREFIX}/include/rump + ${INSTALL_DATA} ${WRKSRC}/lib/libukfs/ukfs.h \ + ${DESTDIR}${PREFIX}/include/rump + +.include "../../mk/bsd.pkg.mk" diff --git a/misc/rump/PLIST b/misc/rump/PLIST new file mode 100644 index 00000000000..f0d4bf24601 --- /dev/null +++ b/misc/rump/PLIST @@ -0,0 +1,122 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/10/14 13:26:10 stacktic Exp $ +include/rump/rump.h +include/rump/rump_compat.h +include/rump/rump_namei.h +include/rump/rump_syscalls.h +include/rump/rumpdefs.h +include/rump/rumpuser.h +include/rump/rumpvnode_if.h +include/rump/ukfs.h +lib/librump.a +lib/librump.so.0.0 +lib/librump_p.a +lib/librump_pic.a +lib/librumpfs_cd9660.a +lib/librumpfs_cd9660.so +lib/librumpfs_cd9660.so.0 +lib/librumpfs_cd9660.so.0.0 +lib/librumpfs_cd9660_p.a +lib/librumpfs_cd9660_pic.a +lib/librumpfs_efs.a +lib/librumpfs_efs.so +lib/librumpfs_efs.so.0 +lib/librumpfs_efs.so.0.0 +lib/librumpfs_efs_p.a +lib/librumpfs_efs_pic.a +lib/librumpfs_ext2fs.a +lib/librumpfs_ext2fs.so +lib/librumpfs_ext2fs.so.0 +lib/librumpfs_ext2fs.so.0.0 +lib/librumpfs_ext2fs_p.a +lib/librumpfs_ext2fs_pic.a +lib/librumpfs_fdesc.a +lib/librumpfs_fdesc.so +lib/librumpfs_fdesc.so.0 +lib/librumpfs_fdesc.so.0.0 +lib/librumpfs_fdesc_p.a +lib/librumpfs_fdesc_pic.a +lib/librumpfs_ffs.a +lib/librumpfs_ffs.so +lib/librumpfs_ffs.so.0 +lib/librumpfs_ffs.so.0.0 +lib/librumpfs_ffs_p.a +lib/librumpfs_ffs_pic.a +lib/librumpfs_hfs.a +lib/librumpfs_hfs.so +lib/librumpfs_hfs.so.0 +lib/librumpfs_hfs.so.0.0 +lib/librumpfs_hfs_p.a +lib/librumpfs_hfs_pic.a +lib/librumpfs_lfs.a +lib/librumpfs_lfs.so +lib/librumpfs_lfs.so.0 +lib/librumpfs_lfs.so.0.0 +lib/librumpfs_lfs_p.a +lib/librumpfs_lfs_pic.a +lib/librumpfs_msdos.a +lib/librumpfs_msdos.so +lib/librumpfs_msdos.so.0 +lib/librumpfs_msdos.so.0.0 +lib/librumpfs_msdos_p.a +lib/librumpfs_msdos_pic.a +lib/librumpfs_nfs.a +lib/librumpfs_nfs.so +lib/librumpfs_nfs.so.0 +lib/librumpfs_nfs.so.0.0 +lib/librumpfs_nfs_p.a +lib/librumpfs_nfs_pic.a +lib/librumpfs_nilfs.a +lib/librumpfs_nilfs.so +lib/librumpfs_nilfs.so.0 +lib/librumpfs_nilfs.so.0.0 +lib/librumpfs_nilfs_p.a +lib/librumpfs_nilfs_pic.a +lib/librumpfs_ntfs.a +lib/librumpfs_ntfs.so +lib/librumpfs_ntfs.so.0 +lib/librumpfs_ntfs.so.0.0 +lib/librumpfs_ntfs_p.a +lib/librumpfs_ntfs_pic.a +lib/librumpfs_smbfs.a +lib/librumpfs_smbfs.so +lib/librumpfs_smbfs.so.0 +lib/librumpfs_smbfs.so.0.0 +lib/librumpfs_smbfs_p.a +lib/librumpfs_smbfs_pic.a +lib/librumpfs_syspuffs.a +lib/librumpfs_syspuffs.so +lib/librumpfs_syspuffs.so.0 +lib/librumpfs_syspuffs.so.0.0 +lib/librumpfs_syspuffs_p.a +lib/librumpfs_syspuffs_pic.a +lib/librumpfs_sysvbfs.a +lib/librumpfs_sysvbfs.so +lib/librumpfs_sysvbfs.so.0 +lib/librumpfs_sysvbfs.so.0.0 +lib/librumpfs_sysvbfs_p.a +lib/librumpfs_sysvbfs_pic.a +lib/librumpfs_tmpfs.a +lib/librumpfs_tmpfs.so +lib/librumpfs_tmpfs.so.0 +lib/librumpfs_tmpfs.so.0.0 +lib/librumpfs_tmpfs_p.a +lib/librumpfs_tmpfs_pic.a +lib/librumpfs_udf.a +lib/librumpfs_udf.so +lib/librumpfs_udf.so.0 +lib/librumpfs_udf.so.0.0 +lib/librumpfs_udf_p.a +lib/librumpfs_udf_pic.a +lib/librumpuser.a +lib/librumpuser.so.0.0 +lib/librumpuser_p.a +lib/librumpuser_pic.a +lib/librumpvfs.a +lib/librumpvfs.so.0.0 +lib/librumpvfs_p.a +lib/librumpvfs_pic.a +lib/libukfs.a +lib/libukfs.so.1 +lib/libukfs.so.1.0 +lib/libukfs_p.a +lib/libukfs_pic.a diff --git a/misc/rump/distinfo b/misc/rump/distinfo new file mode 100644 index 00000000000..172a9e252dc --- /dev/null +++ b/misc/rump/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/10/14 13:26:10 stacktic Exp $ + +SHA1 (rump_20091014.tar.gz) = e425ce93d30490c1ff3c2fe56b33569c406cb479 +RMD160 (rump_20091014.tar.gz) = fa1be2df06d34325d7e4c757c40f73174a8acaa6 +Size (rump_20091014.tar.gz) = 56463039 bytes |