mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Fix build
- Support staging
This commit is contained in:
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
|
@ -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>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
etc/rc.d/scprotect
|
||||
@cwd %%KMODDIR%%
|
||||
scprotect.ko
|
||||
@unexec kldxref %%KMODDIR%%
|
||||
@cwd /
|
||||
%%KMODDIR%%/scprotect.ko
|
||||
|
|
Loading…
Add table
Reference in a new issue