Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Mar 2014 02:16:44 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r346591 - head/sysutils/scprotect
Message-ID:  <201403010216.s212GiQg009940@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
-@cwd %%KMODDIR%%
-scprotect.ko
-@unexec kldxref %%KMODDIR%%
+@cwd /
+%%KMODDIR%%/scprotect.ko



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403010216.s212GiQg009940>