aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2004-04-16 22:16:53 +0800
committerskv <skv@FreeBSD.org>2004-04-16 22:16:53 +0800
commit9d833b5de50062ff8d2798287a417f4497c40df9 (patch)
treef3021172456929b73f1600b44224c3779f0b294d /sysutils
parent8394bf59e547dcb050abe8c1a0b03ec1accecf7c (diff)
downloadfreebsd-ports-gnome-9d833b5de50062ff8d2798287a417f4497c40df9.tar.gz
freebsd-ports-gnome-9d833b5de50062ff8d2798287a417f4497c40df9.tar.zst
freebsd-ports-gnome-9d833b5de50062ff8d2798287a417f4497c40df9.zip
Mark port as depending on kernel
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/pmap/Makefile10
-rw-r--r--sysutils/pmap/pkg-message6
2 files changed, 16 insertions, 0 deletions
diff --git a/sysutils/pmap/Makefile b/sysutils/pmap/Makefile
index 294c524a1802..e3b2d84d49ac 100644
--- a/sysutils/pmap/Makefile
+++ b/sysutils/pmap/Makefile
@@ -13,6 +13,8 @@ MASTER_SITES= ftp://ftp.wuppy.net.ru/pub/FreeBSD/local/pmap/
MAINTAINER= skv@FreeBSD.org
COMMENT= Detailed process memory display
+NO_PACKAGE= Depends on kernel
+
PLIST_SUB= KMODDIR=${KMODDIR}
WRKSRC= ${WRKDIR}/${PORTNAME}
@@ -29,4 +31,12 @@ BROKEN= "Currently does not support -CURRENT"
IGNORE= "Not supported on systems prior to 4.5"
.endif
+pre-fetch:
+.if !exists(${SRC_BASE}/sys/Makefile)
+IGNORE= "This port requires kernel sources"
+.endif
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
.include <bsd.port.post.mk>
diff --git a/sysutils/pmap/pkg-message b/sysutils/pmap/pkg-message
new file mode 100644
index 000000000000..1b89eb66ff11
--- /dev/null
+++ b/sysutils/pmap/pkg-message
@@ -0,0 +1,6 @@
+
+*******************************************************************************
+* This port contains a prebuilt kernel module. Due to the ever changing *
+* nature of FreeBSD it may be necessary to rebuild the module after a kernel *
+* source update. To do this reinstall the port. *
+*******************************************************************************