Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2013 19:44:51 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333605 - head/Mk/Uses
Message-ID:  <201311121944.rACJipgq079655@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311121944.rACJipgq079655>