Whamcloud - gitweb
Try to fix kext ownership at make install time
authorjacob <jacob>
Thu, 6 Jan 2005 20:49:07 +0000 (20:49 +0000)
committerjacob <jacob>
Thu, 6 Jan 2005 20:49:07 +0000 (20:49 +0000)
build/Rules.in
build/autoconf/lustre-build-darwin.m4

index 293ff3c..19862f2 100644 (file)
@@ -23,6 +23,13 @@ ifeq ($(PATCHLEVEL),)
 
 include autoMakefile
 
+fix-kext-ownership:
+       @if test -d $(DESTDIR)$(kextdir) ; then \
+               echo chown -R root:wheel $(DESTDIR)$(kextdir) ; \
+               chown -R root:wheel $(DESTDIR)$(kextdir) || \
+                       echo >&2 "*** WARNING: Could not fix kext ownership for $(DESTDIR)$(kextdir)" ; \
+       fi
+
 else
 
 include @LINUX_CONFIG@
index 2045c6c..084c2cf 100644 (file)
@@ -69,9 +69,11 @@ KMODEXT=""
 AC_SUBST(EXTRA_KLDFLAGS)
 AC_SUBST(EXTRA_KLIBS)
 
-plistdir='/System/Library/Extensions/$(firstword $(macos_PROGRAMS)).kext/Contents'
+kextdir='/System/Library/Extensions/$(firstword $(macos_PROGRAMS)).kext'
+plistdir='$(kextdir)/Contents'
 macosdir='$(plistdir)/MacOS'
 
+AC_SUBST(kextdir)
 AC_SUBST(plistdir)
 AC_SUBST(macosdir)