Index: head/Keywords/kld.ucl =================================================================== --- head/Keywords/kld.ucl (nonexistent) +++ head/Keywords/kld.ucl (revision 375621) @@ -0,0 +1,24 @@ +# $FreeBSD$ +# +# MAINTAINER: rene@FreeBSD.org + +actions: [] +post-install: </dev/null || true ;; + esac +EOD Property changes on: head/Keywords/kld.ucl ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/Mk/Uses/kmod.mk =================================================================== --- head/Mk/Uses/kmod.mk (revision 375620) +++ head/Mk/Uses/kmod.mk (revision 375621) @@ -1,53 +1,46 @@ # $FreeBSD$ # # Handles common items for kernel module ports. # # Feature: kmod # Usage: USES=kmod # Valid ARGS: none # # MAINTAINER: rene@FreeBSD.org .if !defined(_INCLUDE_USES_KMOD_MK) _INCLUDE_USES_KMOD_MK= yes _USES_POST+= kmod .if !empty(kmod_ARGS) IGNORE= USES=kmod takes no arguments .endif .if !exists(${SRC_BASE}/sys/Makefile) IGNORE= requires kernel source files in ${SRC_BASE} .endif CATEGORIES+= kld SSP_UNSAFE= kernel module supports SSP natively KMODDIR?= /boot/modules .if ${KMODDIR} == /boot/kernel KMODDIR= /boot/modules .endif PLIST_SUB+= KMODDIR="${KMODDIR:C,^/,,}" MAKE_ENV+= KMODDIR="${KMODDIR}" SYSDIR="${SRC_BASE}/sys" NO_XREF=yes +PLIST_FILES+= "@kld ${KMODDIR}" STRIP_CMD+= --strip-debug # do not strip kernel symbols .endif .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_KMOD_POST_MK) _INCLUDE_USES_KMOD_POST_MK= yes pre-install: ${STAGEDIR}${KMODDIR} ${STAGEDIR}${KMODDIR}: @${MKDIR} ${.TARGET} - -kmod-post-install: - @${ECHO_CMD} "@exec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST} - @${ECHO_CMD} "@unexec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST} -.if ${KMODDIR} != /boot/modules - @${ECHO_CMD} "@unexec rmdir -p ${KMODDIR} 2>/dev/null || true" \ - >> ${TMPPLIST} -.endif .endif