From 27c514d6683bb8bebb0f01499295212249708af4 Mon Sep 17 00:00:00 2001 From: Stanislav Sedov Date: Mon, 11 Dec 2006 00:06:55 +0000 Subject: [PATCH] - Install kernel module into the /boot/modules rather then into the kernel default dir - Rebuild cross-reference on uninstall Reported by: Alexander Leidinger --- sysutils/devcpu/Makefile | 3 +++ sysutils/devcpu/pkg-plist | 1 + 2 files changed, 4 insertions(+) diff --git a/sysutils/devcpu/Makefile b/sysutils/devcpu/Makefile index f3924e198e5a..cb6b208f7c77 100644 --- a/sysutils/devcpu/Makefile +++ b/sysutils/devcpu/Makefile @@ -7,6 +7,7 @@ PORTNAME= devcpu PORTVERSION= 0.6 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://mbsd.msk.ru/dist/ @@ -19,6 +20,8 @@ ONLY_FOR_ARCHS= i386 amd64 NO_PACKAGE= depends on kernel PLIST_SUB= KMODDIR="${KMODDIR:C,^/,,}" +KMODDIR= /boot/modules +MAKE_ENV+= KMODDIR="${KMODDIR}" MAN4= cpu.4 MAN8= cpu_microcode_tool.8 diff --git a/sysutils/devcpu/pkg-plist b/sysutils/devcpu/pkg-plist index 7388892f9eca..2d7dc1d0c909 100644 --- a/sysutils/devcpu/pkg-plist +++ b/sysutils/devcpu/pkg-plist @@ -120,3 +120,4 @@ include/cpu.h @dirrm %%DATADIR%% @cwd / %%KMODDIR%%/cpu.ko +@unexec kldxref /%%KMODDIR%%