Skip to content
This repository was archived by the owner on Feb 16, 2020. It is now read-only.

Commit

Permalink
Added post-install script to fix permissions on zfs.kext.
Browse files Browse the repository at this point in the history
Also added command to release script to  fixup permissions before
packaging.
  • Loading branch information
BjoKaSH committed Aug 24, 2012
1 parent f82ce11 commit 93b251f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions support/MacZFS.pmdoc/01zfs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@
<packageStore type="internal" />
<mod>installFrom.isRelativeType</mod>
<mod>installTo</mod>
<mod>scripts.scriptsDirectoryPath.path</mod>
<mod>identifier</mod>
<mod>parent</mod>
<mod>version</mod>
<mod>scripts.postinstall.isRelativeType</mod>
<mod>installFrom.isRelativeType</mod>
</config>
<scripts>
<postinstall relative="true" mod="true">post-install.sh</postinstall>
<scripts-dir relative="true" mod="true">Resources</scripts-dir>
</scripts>
<contents>
<file-list>01zfs-contents.xml</file-list>
<component id="com.bandlem.mac.zfs.util"
Expand Down
7 changes: 7 additions & 0 deletions support/MacZFS.pmdoc/02zfs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@
<packageStore type="internal" />
<mod>installFrom.isRelativeType</mod>
<mod>installTo</mod>
<mod>scripts.scriptsDirectoryPath.path</mod>
<mod>identifier</mod>
<mod>parent</mod>
<mod>version</mod>
<mod>scripts.postinstall.isRelativeType</mod>
<mod>installFrom.isRelativeType</mod>
</config>
<scripts>
<postinstall relative="true" mod="true">post-install.sh</postinstall>
<scripts-dir relative="true" mod="true">Resources</scripts-dir>
</scripts>
<contents>
<file-list>02zfs-contents.xml</file-list>
<component id="com.bandlem.mac.zfs.util"
Expand Down
3 changes: 3 additions & 0 deletions support/post-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/sh
chmod -R u+w,go-w,a+r /System/Library/Extensions/zfs.kext

3 changes: 3 additions & 0 deletions support/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,18 @@ mkdir -p ${DIR}/../${BUILD}
rm -rf ${DIR}/../${BUILD}/ZFS105
rm -rf ${DIR}/../${BUILD}/ZFS106
cp -R ${DIR}/MacZFS.pmdoc ${DIR}/../${BUILD}
cp -R ${DIR}/post-install.sh ${DIR}/../${BUILD}
sed -i~ -e "s/0\\.0\\.0/${VERSION}/g" ${DIR}/../${BUILD}/MacZFS.pmdoc/*

cd ${DIR}/..
xcodebuild -sdk macosx10.5 -configuration ${CONFIG} -parallelizeTargets install INSTALL_OWNER=${USER} INSTALL_GROUP=${GROUP} SYMROOT=${BUILD}/${CONFIG}105 DSTROOT=${BUILD}/ZFS105 || exit 2

chmod -Rv u+w,go-w,a+r ${BUILD}/ZFS105
# No point in building on 10.5, it'll just do the same thing again
if [ "`sysctl -b kern.osrelease`" != "9.8.0" ]
then
xcodebuild -sdk macosx10.6 -configuration ${CONFIG} -parallelizeTargets install INSTALL_OWNER=${USER} INSTALL_GROUP=${GROUP} SYMROOT=${BUILD}/${CONFIG}106 DSTROOT=${BUILD}/ZFS106 || exit 3
chmod -R u+w,go-w,a+r ${BUILD}/ZFS106
fi

cd ${BUILD}
Expand Down

0 comments on commit 93b251f

Please sign in to comment.