summaryrefslogtreecommitdiff
path: root/emulators/kqemu-kmod-devel
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/kqemu-kmod-devel')
-rw-r--r--emulators/kqemu-kmod-devel/Makefile92
-rw-r--r--emulators/kqemu-kmod-devel/distinfo3
-rw-r--r--emulators/kqemu-kmod-devel/files/kqemu.in53
-rw-r--r--emulators/kqemu-kmod-devel/files/patch-Makefile.freebsd10
-rw-r--r--emulators/kqemu-kmod-devel/files/patch-kqemu-freebsd.c29
-rw-r--r--emulators/kqemu-kmod-devel/pkg-descr3
-rw-r--r--emulators/kqemu-kmod-devel/pkg-message7
7 files changed, 0 insertions, 197 deletions
diff --git a/emulators/kqemu-kmod-devel/Makefile b/emulators/kqemu-kmod-devel/Makefile
deleted file mode 100644
index 762ed162ecd6..000000000000
--- a/emulators/kqemu-kmod-devel/Makefile
+++ /dev/null
@@ -1,92 +0,0 @@
-# New ports collection makefile for: kqemu-kmod
-# Date created: 2005/10/25
-# Whom: nork@FreeBSD.org
-#
-# $FreeBSD$
-#
-
-PORTNAME= kqemu
-PORTVERSION= 1.3.0.p11
-PORTREVISION= 2
-CATEGORIES= emulators kld
-MASTER_SITES= http://fabrice.bellard.free.fr/qemu/ \
- http://qemu.org/ \
- ${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR= nox
-PKGNAMESUFFIX= -kmod
-DISTNAME= ${PORTNAME}-${PORTVERSION:C/.p/pre/}
-DIST_SUBDIR= kqemu
-
-MAINTAINER= nox@FreeBSD.org
-COMMENT= Kernel Accelerator for QEMU CPU Emulator (development version)
-
-ONLY_FOR_ARCHS= i386 amd64
-HAS_CONFIGURE= yes
-USE_GMAKE= yes
-CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC}
-
-USE_RC_SUBR= kqemu
-
-.include <bsd.port.pre.mk>
-
-PORTDOCS= kqemu-doc.html kqemu-tech.html
-PLIST_FILES= "include/kqemu/kqemu.h"
-PLIST_FILES+= "@dirrm include/kqemu"
-PLIST_FILES+= "@cwd /"
-PLIST_FILES+= ${KMODDIR:C,^/,,}/kqemu.ko
-PLIST_FILES+= "@unexec kldxref ${KMODDIR}"
-
-MAKEFILE= Makefile.freebsd
-
-.if ${ARCH} == "amd64"
-MAKE_ARGS+= ARCH=x86_64
-.endif
-
-# install where x11/nvidia-driver does also:
-KMODDIR= /boot/modules
-
-MAKE_ENV+= KMODDIR="${KMODDIR}"
-
-.if !exists(${SRC_BASE}/sys/Makefile)
-IGNORE= kqemu requires kernel source to be installed
-.endif
-
-.if ${OSVERSION} >= 700024 && !defined(NOKSE)
-# XXX this is wrong if you have `nooption KSE' in your kernel config,
-# please define NOKSE in that case
-CFLAGS+= -DKSE
-.endif
-
-# XXX the following is wrong if you run a custom SMP kernel on a
-# singleprocessor machine (but it probably doesn't really matter)
-KERNCONF!= ${UNAME} -v | ${SED} 's-.*/--' | ${TR} -d ' '
-NCPU!= ${SYSCTL} -n hw.ncpu 2>/dev/null
-# we know 7.x GENERIC has SMP
-.if ${KERNCONF} == "GENERIC" && ${OSVERSION} >= 700000
-CFLAGS+= -DSMP
-.elif ${NCPU} > 1
-CFLAGS+= -DSMP
-.endif
-
-post-extract:
-.if ${OSVERSION} >= 700024 && !defined(NOKSE)
- @${ECHO_MSG} "Compiling with -DKSE."
- @${ECHO_MSG} "If this is wrong (i.e. you have \`nooption KSE' in your kernel config),"
- @${ECHO_MSG} "then please define NOKSE."
-.endif
-
-do-build:
- @(cd ${BUILD_WRKSRC}/common; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile ${MAKE_ARGS} ${ALL_TARGET})
- @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
-
-do-install:
- @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
- ${MKDIR} ${PREFIX}/include/kqemu
- ${INSTALL_DATA} ${WRKSRC}/kqemu.h ${PREFIX}/include/kqemu
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/kqemu-doc.html ${WRKSRC}/kqemu-tech.html \
- ${DOCSDIR}
-.endif
-
-.include <bsd.port.post.mk>
diff --git a/emulators/kqemu-kmod-devel/distinfo b/emulators/kqemu-kmod-devel/distinfo
deleted file mode 100644
index 783c7f9c74ce..000000000000
--- a/emulators/kqemu-kmod-devel/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 (kqemu/kqemu-1.3.0pre11.tar.gz) = 970521874ef8b1ba4598925ace5936c3
-SHA256 (kqemu/kqemu-1.3.0pre11.tar.gz) = 541aef5797e5c6c6a76e354c17c6513ca21fe3372ec79493a32f7e51ba785b0f
-SIZE (kqemu/kqemu-1.3.0pre11.tar.gz) = 161478
diff --git a/emulators/kqemu-kmod-devel/files/kqemu.in b/emulators/kqemu-kmod-devel/files/kqemu.in
deleted file mode 100644
index 7662ca3cccd1..000000000000
--- a/emulators/kqemu-kmod-devel/files/kqemu.in
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-#
-# PROVIDE: kqemu
-# KEYWORD: nojail
-#
-# Add the following line to /etc/rc.conf[.local] to enable kqemu
-#
-# kqemu_enable="YES"
-#
-
-. /etc/rc.subr
-
-name="kqemu"
-rcvar=${name}_enable
-
-load_rc_config $name
-
-: ${kqemu_enable="NO"}
-
-start_cmd=kqemu_start
-stop_cmd=kqemu_stop
-
-kqemu_start()
-{
- # load aio if needed
- if ! kldstat -qm aio; then
- if kldload aio; then
- info 'aio module loaded.'
- else
- warn 'aio module failed to load.'
- return 1
- fi
- fi
- if ! kldstat -qm kqemu; then
- if kldload kqemu; then
- echo 'kqemu module loaded.'
- else
- warn 'kqemu module failed to load.'
- return 1
- fi
- fi
- return 0
-}
-
-kqemu_stop()
-{
- if kldstat -qm kqemu && kldunload kqemu; then
- echo 'kqemu module unloaded.'
- fi
-}
-
-run_rc_command "$1"
diff --git a/emulators/kqemu-kmod-devel/files/patch-Makefile.freebsd b/emulators/kqemu-kmod-devel/files/patch-Makefile.freebsd
deleted file mode 100644
index b75420fa0cc7..000000000000
--- a/emulators/kqemu-kmod-devel/files/patch-Makefile.freebsd
+++ /dev/null
@@ -1,10 +0,0 @@
---- Makefile.freebsd.orig Fri Jul 29 06:37:06 2005
-+++ Makefile.freebsd Tue Oct 25 21:08:43 2005
-@@ -5,6 +5,7 @@
- .elif ${MACHINE_ARCH} == "amd64"
- OBJS= kqemu-mod-x86_64.o
- .endif
-+CC= cc
- WERROR=
-
- .include <bsd.kmod.mk>
diff --git a/emulators/kqemu-kmod-devel/files/patch-kqemu-freebsd.c b/emulators/kqemu-kmod-devel/files/patch-kqemu-freebsd.c
deleted file mode 100644
index 73e23f4b7d24..000000000000
--- a/emulators/kqemu-kmod-devel/files/patch-kqemu-freebsd.c
+++ /dev/null
@@ -1,29 +0,0 @@
-Index: kqemu-freebsd.c
-@@ -208,9 +208,17 @@
- int CDECL kqemu_schedule(void)
- {
- /* kqemu_log("kqemu_schedule\n"); */
-+#if __FreeBSD_version < 700044
- mtx_lock_spin(&sched_lock);
- mi_switch(SW_VOL, NULL);
- mtx_unlock_spin(&sched_lock);
-+#else
-+ /* -current no longer uses sched_lock */
-+ struct thread *td = curthread;
-+ thread_lock(td);
-+ mi_switch(SW_VOL, NULL);
-+ thread_unlock(td);
-+#endif
- return SIGPENDING(curthread);
- }
- #endif
-@@ -320,6 +328,9 @@
- #if __FreeBSD_version >= 500000
- dev->si_drv1 = NULL;
- TAILQ_REMOVE(&kqemuhead, ks, kqemu_ent);
-+#if __FreeBSD_version >= 700024
-+ dev_relthread(dev);
-+#endif
- destroy_dev(dev);
- #endif
- free(ks, M_KQEMU);
diff --git a/emulators/kqemu-kmod-devel/pkg-descr b/emulators/kqemu-kmod-devel/pkg-descr
deleted file mode 100644
index 2ca45618fce4..000000000000
--- a/emulators/kqemu-kmod-devel/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-KQEMU is a qemu accelerator kernel module on x86/amd64.
-
-WWW: http://fabrice.bellard.free.fr/qemu/
diff --git a/emulators/kqemu-kmod-devel/pkg-message b/emulators/kqemu-kmod-devel/pkg-message
deleted file mode 100644
index 6861b01d82fc..000000000000
--- a/emulators/kqemu-kmod-devel/pkg-message
+++ /dev/null
@@ -1,7 +0,0 @@
-====
-Notice:
-If you installed this from a package and your kernel configuration
-differs from the one on the package build machine (or your kernel source
-is newer than the package), then the kld may not work, or even panic.
-Consider building it from ports in that case.
-====