1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

Using stage does not magically enforce the use of sane package tools, so

always use the "@unexec rmdir" form in TMPPLIST.  @dirrmtry lines are
substituted with this in bsd.port.mk, but only when generating TMPPLIST.

While here update the description in the header.

Submitted by:	QAT for commit r332642 (8.4-QAT/i386)
This commit is contained in:
Rene Ladan 2013-11-04 09:30:22 +00:00
parent 604b1dfaa8
commit c61a61be20
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332674

View File

@ -1,6 +1,6 @@
# $FreeBSD$
#
# Handles dependency on kernel sources
# Handles common items for kernel module ports.
#
# MAINTAINER: rene@FreeBSD.org
#
@ -43,10 +43,8 @@ kmod-post-install:
${ECHO_CMD} "@exec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST}
${ECHO_CMD} "@unexec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST}
.if defined(NO_STAGE)
${ECHO_CMD} "@unexec rmdir ${KMODDIR} 2>/dev/null || true" >> ${TMPPLIST}
/usr/sbin/kldxref ${KMODDIR}
.else
${ECHO_CMD} "@dirrmtry ${KMODDIR}" >> ${TMPPLIST}
.endif
${ECHO_CMD} "@unexec rmdir ${KMODDIR} 2>/dev/null || true" >> ${TMPPLIST}
.endif