svn commit: r333605 - head/Mk/Uses

Rene Ladan rene at FreeBSD.org
Tue Nov 12 19:44:53 UTC 2013


Author: rene
Date: Tue Nov 12 19:44:50 2013
New Revision: 333605
URL: http://svnweb.freebsd.org/changeset/ports/333605

Log:
  Do not try to remove /boot/modules, it is part of BSD.root.dist [1]
  
  While here unquote an instance of /boot/modules.
  Submitted by:	antoine [1]

Modified:
  head/Mk/Uses/kmod.mk

Modified: head/Mk/Uses/kmod.mk
==============================================================================
--- head/Mk/Uses/kmod.mk	Tue Nov 12 19:42:05 2013	(r333604)
+++ head/Mk/Uses/kmod.mk	Tue Nov 12 19:44:50 2013	(r333605)
@@ -24,7 +24,7 @@ CATEGORIES+=	kld
 SSP_UNSAFE=	kernel module does not support SSP
 
 KMODDIR?=	/boot/modules
-.if ${KMODDIR} == "/boot/kernel"
+.if ${KMODDIR} == /boot/kernel
 KMODDIR=	/boot/modules
 .endif
 PLIST_SUB+=	KMODDIR="${KMODDIR:C,^/,,}"
@@ -48,6 +48,8 @@ kmod-post-install:
 .if defined(NO_STAGE)
 	/usr/sbin/kldxref ${KMODDIR}
 .endif
+.if ${KMODDIR} != /boot/modules
 	${ECHO_CMD} "@unexec rmdir ${KMODDIR} 2>/dev/null || true" >> ${TMPPLIST}
+.endif
 
 .endif


More information about the svn-ports-all mailing list