svn commit: r346591 - head/sysutils/scprotect

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat Mar 1 02:16:44 UTC 2014


Author: amdmi3
Date: Sat Mar  1 02:16:44 2014
New Revision: 346591
URL: http://svnweb.freebsd.org/changeset/ports/346591
QAT: https://qat.redports.org/buildarchive/r346591/

Log:
  - Fix build
  - Support staging

Modified:
  head/sysutils/scprotect/Makefile
  head/sysutils/scprotect/pkg-plist

Modified: head/sysutils/scprotect/Makefile
==============================================================================
--- head/sysutils/scprotect/Makefile	Sat Mar  1 00:51:57 2014	(r346590)
+++ head/sysutils/scprotect/Makefile	Sat Mar  1 02:16:44 2014	(r346591)
@@ -12,25 +12,19 @@ COMMENT=	Protect process from killing wh
 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>

Modified: head/sysutils/scprotect/pkg-plist
==============================================================================
--- head/sysutils/scprotect/pkg-plist	Sat Mar  1 00:51:57 2014	(r346590)
+++ head/sysutils/scprotect/pkg-plist	Sat Mar  1 02:16:44 2014	(r346591)
@@ -1,4 +1,3 @@
 etc/rc.d/scprotect
- at cwd %%KMODDIR%%
-scprotect.ko
- at unexec kldxref %%KMODDIR%%
+ at cwd /
+%%KMODDIR%%/scprotect.ko


More information about the svn-ports-head mailing list