aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-03-01 10:16:44 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-03-01 10:16:44 +0800
commitaa682790e3c466097cbd249499c07ce3df64fe81 (patch)
tree4d5b1283e99dc02ffa0b16085b0305c820658f86 /sysutils
parentb089cadffab519535a6f8a684d65ec047c1e6389 (diff)
downloadfreebsd-ports-gnome-aa682790e3c466097cbd249499c07ce3df64fe81.tar.gz
freebsd-ports-gnome-aa682790e3c466097cbd249499c07ce3df64fe81.tar.zst
freebsd-ports-gnome-aa682790e3c466097cbd249499c07ce3df64fe81.zip
- Fix build
- Support staging
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/scprotect/Makefile14
-rw-r--r--sysutils/scprotect/pkg-plist5
2 files changed, 6 insertions, 13 deletions
diff --git a/sysutils/scprotect/Makefile b/sysutils/scprotect/Makefile
index a75fb8550ae5..63e13821c178 100644
--- a/sysutils/scprotect/Makefile
+++ b/sysutils/scprotect/Makefile
@@ -12,25 +12,19 @@ COMMENT= Protect process from killing when the swap space is exhausted
NO_PACKAGE= Needs to be compiled for specific kernel
SSP_UNSAFE= kernel module does not support ssp
-KMODDIR?= /boot/modules
+USES= kmod
-PLIST_SUB= KMODDIR=${KMODDIR}
WRKSRC= ${WRKDIR}/${PORTNAME}
-MAKE_ENV+= KMODDIR=${KMODDIR}
-CFLAGS+=-DWITH_SCPROTECT_LIST
+CFLAGS+= -DWITH_SCPROTECT_LIST
-#MAN4= scprotect.4
-#MANCOMPRESSED= yes
-
-NO_STAGE= yes
.include <bsd.port.pre.mk>
.if !exists(${SRC_BASE}/sys/Makefile)
IGNORE= requires kernel sources
.endif
-post-install:
- @${CAT} ${PKGMESSAGE}
+post-extract:
+ @cd ${WRKSRC}/kmod && ${RM} -f machine
.include <bsd.port.post.mk>
diff --git a/sysutils/scprotect/pkg-plist b/sysutils/scprotect/pkg-plist
index 74e17d97e676..094a126e4640 100644
--- a/sysutils/scprotect/pkg-plist
+++ b/sysutils/scprotect/pkg-plist
@@ -1,4 +1,3 @@
etc/rc.d/scprotect
-@cwd %%KMODDIR%%
-scprotect.ko
-@unexec kldxref %%KMODDIR%%
+@cwd /
+%%KMODDIR%%/scprotect.ko