- Fix build

- Support staging
This commit is contained in:
Dmitry Marakasov 2014-03-01 02:16:44 +00:00
parent b026e1d3c7
commit a8f0311426
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346591
2 changed files with 6 additions and 13 deletions

View file

@ -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>

View file

@ -1,4 +1,3 @@
etc/rc.d/scprotect
@cwd %%KMODDIR%%
scprotect.ko
@unexec kldxref %%KMODDIR%%
@cwd /
%%KMODDIR%%/scprotect.ko