1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

Traditionally, most (if not all) tamperings with ${TMPPLIST} were done

silently within the ports (similar to extraction and patching phases).

Recently introduced Mk/Uses/kmod.mk does some grunt work for pkg-plist,
like @[un]exec /usr/sbin/kldxref ... stuff via ${ECHO_CMD}, which makes
build logs less neat.  Mute them and MKDIR, remove an extra whitespace,
and wrap one overly long line.

Approved by:	rene
This commit is contained in:
Alexey Dokuchaev 2013-12-25 16:43:24 +00:00
parent 977adbb583
commit 32bb1cf264
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337430

View File

@ -43,17 +43,18 @@ _INCLUDE_USES_KMOD_POST_MK= yes
.PHONY: kmod-post-install
pre-install: ${STAGEDIR}${KMODDIR}
${STAGEDIR}${KMODDIR}:
${MKDIR} ${.TARGET}
@${MKDIR} ${.TARGET}
post-install: kmod-post-install
kmod-post-install:
${ECHO_CMD} "@exec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST}
${ECHO_CMD} "@unexec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST}
@${ECHO_CMD} "@exec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST}
.if defined(NO_STAGE)
/usr/sbin/kldxref ${KMODDIR}
.endif
.if ${KMODDIR} != /boot/modules
${ECHO_CMD} "@unexec rmdir ${KMODDIR} 2>/dev/null || true" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec rmdir ${KMODDIR} 2>/dev/null || true" \
>> ${TMPPLIST}
.endif
.endif