Page MenuHomePhabricator

No OneTemporary

Size
13 KB
Referenced Files
None
Subscribers
None
diff --git a/trunk/BuildOsxPkg.sh b/trunk/BuildOsxPkg.sh
index 2660b63..3708c02 100755
--- a/trunk/BuildOsxPkg.sh
+++ b/trunk/BuildOsxPkg.sh
@@ -1,24 +1,42 @@
#!/bin/bash
-CWD=`pwd`
-sudo tar xfvz osxdstroot.tar.gz
-sudo mv osxdstroot dstroot
-sudo cp xmount dstroot/usr/local/bin/
-sudo cp xmount.1 dstroot/usr/local/share/man/man1/
-DSTROOT="$CWD/dstroot"
+if [ "$(whoami)" != "root" ]; then
+ echo "ERROR: This script has to be run as root!"
+ exit 1
+fi
+CWD=`dirname "$0"`
+DSTROOT="$CWD/dstroot"
FULL_PKG_NAME=`basename "$CWD"`
PKG_VERSION_LONG=`echo "$FULL_PKG_NAME" | cut -d"-" -f2`
PKG_VERSION_SHORT=`echo "$PKG_VERSION_LONG" | tr -d "."`
-sed -i -e "s#OSXDSTROOT#$DSTROOT#g" xmount.pmdoc/01dstroot-contents.xml
-sed -i -e "s#OSXDSTROOT#$DSTROOT#g" xmount.pmdoc/01dstroot.xml
-sed -i -e "s/VERSION_LONG/$PKG_VERSION_LONG/g" xmount.pmdoc/01dstroot.xml
-sed -i -e "s/VERSION/$PKG_VERSION_SHORT/g" xmount.pmdoc/01dstroot.xml
-sed -i -e "s#OSXDSTROOT#$DSTROOT#g" xmount.pmdoc/index.xml
-sed -i -e "s#CURRENT_PATH#$CWD#g" xmount.pmdoc/index.xml
-sed -i -e "s/VERSION_LONG/$PKG_VERSION_LONG/g" xmount.pmdoc/index.xml
-sed -i -e "s/VERSION/$PKG_VERSION_SHORT/g" xmount.pmdoc/index.xml
+# Create new dstroot folder
+rm -rf "$DSTROOT" &>/dev/null
+mkdir -p "$DSTROOT"/usr/local/bin
+mkdir -p "$DSTROOT"/usr/local/lib/xmount
+mkdir -p "$DSTROOT"/usr/local/share/man/man1
+
+# Populate dstroot with files
+cp "$CWD"/build/src/xmount "$DSTROOT"/usr/local/bin/
+cp "$CWD"/build/libxmount_input/libxmount_input_aaf/libxmount_input_aaff.dylib "$DSTROOT"/usr/local/lib/xmount/
+cp "$CWD"/build/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.dylib "$DSTROOT"/usr/local/lib/xmount/
+cp "$CWD"/build/libxmount_input/libxmount_input_aff/libxmount_input_aff.dylib "$DSTROOT"/usr/local/lib/xmount/
+cp "$CWD"/build/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.dylib "$DSTROOT"/usr/local/lib/xmount/
+cp "$CWD"/build/libxmount_input/libxmount_input_raw/libxmount_input_raw.dylib "$DSTROOT"/usr/local/lib/xmount/
+cp "$CWD"/xmount.1 "$DSTROOT"/usr/local/share/man/man1/
+
+# Patch 01dstroot-contents.xml
+sed -i -e "s#PMDOC_DSTROOT#$DSTROOT#g" "$CWD"/xmount.pmdoc/01dstroot-contents.xml
+
+# Patch 01dstroot.xml
+sed -i -e "s#PMDOC_DSTROOT#$DSTROOT#g" "$CWD"/xmount.pmdoc/01dstroot.xml
+sed -i -e "s/PMDOC_VERSION/$PKG_VERSION_SHORT/g" "$CWD"/xmount.pmdoc/01dstroot.xml
+
+# Patch index.xml
+sed -i -e "s#PMDOC_CWD#$CWD#g" "$CWD"/xmount.pmdoc/index.xml
+sed -i -e "s/PMDOC_LVERSION/$PKG_VERSION_LONG/g" "$CWD"/xmount.pmdoc/index.xml
+sed -i -e "s/PMDOC_VERSION/$PKG_VERSION_SHORT/g" "$CWD"/xmount.pmdoc/index.xml
-open xmount.pmdoc
+open "$CWD"/xmount.pmdoc
diff --git a/trunk/osxdstroot.tar.gz b/trunk/osxdstroot.tar.gz
deleted file mode 100644
index 6252304..0000000
Binary files a/trunk/osxdstroot.tar.gz and /dev/null differ
diff --git a/trunk/xmount.pmdoc/01dstroot-contents.xml b/trunk/xmount.pmdoc/01dstroot-contents.xml
index ea21582..f14c335 100644
--- a/trunk/xmount.pmdoc/01dstroot-contents.xml
+++ b/trunk/xmount.pmdoc/01dstroot-contents.xml
@@ -1 +1,30 @@
-<pkg-contents spec="1.12"><f n="dstroot" o="root" g="wheel" p="16877" pt="OSXDSTROOT" m="false" t="file"><f n="usr" o="root" g="wheel" p="16877"><f n="local" o="root" g="wheel" p="16877"><f n="bin" o="root" g="wheel" p="16877"><f n="xmount" o="root" g="wheel" p="33277"><mod>mode</mod></f></f><f n="share" o="root" g="wheel" p="16877"><f n="man" o="root" g="wheel" p="16877"><f n="man1" o="root" g="wheel" p="16877"><f n="xmount.1" o="root" g="wheel" p="33204"><mod>mode</mod></f></f></f></f></f></f></f></pkg-contents>
+<pkg-contents spec="1.12">
+ <f n="dstroot" o="root" g="wheel" p="16877" pt="PMDOC_DSTROOT" m="false" t="file">
+ <f n="usr" o="root" g="wheel" p="16877">
+ <f n="local" o="root" g="wheel" p="16877">
+ <f n="bin" o="root" g="wheel" p="16877">
+ <f n="xmount" o="root" g="wheel" p="33277"><mod>mode</mod></f>
+ </f>
+ <f n="share" o="root" g="wheel" p="16877">
+ <f n="man" o="root" g="wheel" p="16877">
+ <f n="man1" o="root" g="wheel" p="16877">
+ <f n="xmount.1" o="root" g="wheel" p="33204"><mod>mode</mod></f>
+ </f>
+ </f>
+ </f>
+ <f n="lib" o="root" g="wheel" p="16877">
+ <f n="xmount" o="root" g="wheel" p="16877">
+ <f n="libxmount_input_aaff.dylib" o="root" g="wheel" p="33204"><mod>mode</mod></f>
+ <f n="libxmount_input_aaff.dylib" o="root" g="wheel" p="33204"><mod>mode</mod></f>
+ <f n="libxmount_input_aff.dylib" o="root" g="wheel" p="33204"><mod>mode</mod></f>
+ <f n="libxmount_input_ewf.dylib" o="root" g="wheel" p="33204"><mod>mode</mod></f>
+ <f n="libxmount_input_raw.dylib" o="root" g="wheel" p="33204"><mod>mode</mod></f>
+ <f n="libxmount_morphing_combine.dylib" o="root" g="wheel" p="33204"><mod>mode</mod></f>
+ <f n="libxmount_morphing_raid.dylib" o="root" g="wheel" p="33204"><mod>mode</mod></f>
+ <f n="libxmount_morphing_unallocated.dylib" o="root" g="wheel" p="33204"><mod>mode</mod></f>
+ </f>
+ </f>
+ </f>
+ </f>
+ </f>
+</pkg-contents>
diff --git a/trunk/xmount.pmdoc/01dstroot.xml b/trunk/xmount.pmdoc/01dstroot.xml
index c03fe78..7803f0e 100644
--- a/trunk/xmount.pmdoc/01dstroot.xml
+++ b/trunk/xmount.pmdoc/01dstroot.xml
@@ -1 +1,24 @@
-<pkgref spec="1.12" uuid="602B5E40-A3B9-4044-BF85-7BA882D111BE"><config><identifier>www.pinguin.lu.xmountVERSION.dstroot.pkg</identifier><version>1</version><description></description><post-install type="none"/><requireAuthorization/><installFrom>OSXDSTROOT</installFrom><installTo>/</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>parent</mod></config><contents><file-list>01dstroot-contents.xml</file-list><filter>/CVS$</filter><filter>/\.svn$</filter><filter>/\.cvsignore$</filter><filter>/\.cvspass$</filter><filter>/\.DS_Store$</filter></contents></pkgref>
+<pkgref spec="1.12" uuid="602B5E40-A3B9-4044-BF85-7BA882D111BE">
+ <config>
+ <identifier>www.pinguin.lu.xmountPMDOC_VERSION.dstroot.pkg</identifier>
+ <version>1</version>
+ <description></description>
+ <post-install type="none"/>
+ <requireAuthorization/>
+ <installFrom>PMDOC_DSTROOT</installFrom>
+ <installTo>/</installTo>
+ <flags>
+ <followSymbolicLinks/>
+ </flags>
+ <packageStore type="internal"></packageStore>
+ <mod>parent</mod>
+ </config>
+ <contents>
+ <file-list>01dstroot-contents.xml</file-list>
+ <filter>/CVS$</filter>
+ <filter>/\.svn$</filter>
+ <filter>/\.cvsignore$</filter>
+ <filter>/\.cvspass$</filter>
+ <filter>/\.DS_Store$</filter>
+ </contents>
+</pkgref>
diff --git a/trunk/xmount.pmdoc/index.xml b/trunk/xmount.pmdoc/index.xml
index cb23d2b..0834ea2 100644
--- a/trunk/xmount.pmdoc/index.xml
+++ b/trunk/xmount.pmdoc/index.xml
@@ -1,46 +1,85 @@
-<pkmkdoc spec="1.12"><properties><title>xmount VERSION_LONG</title><build>CURRENT_PATH/xmount-VERSION_LONG.pkg</build><organization>www.pinguin.lu</organization><userSees ui="easy"/><min-target os="3"/><domain anywhere="true"/></properties><distribution><versions min-spec="1.000000"/><scripts></scripts></distribution><contents><choice title="dstroot" id="choice0" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="www.pinguin.lu.xmountVERSION.dstroot.pkg"/></choice></contents><resources bg-scale="none" bg-align="topleft"><locale lang="en"><resource mime-type="text/rtf" kind="embedded" type="license"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+<pkmkdoc spec="1.12">
+ <properties>
+ <title>xmount PMDOC_LVERSION</title>
+ <build>PMDOC_CWD/xmount-PMDOC_LVERSION.pkg</build>
+ <organization>www.pinguin.lu</organization>
+ <userSees ui="easy"/>
+ <min-target os="3"/>
+ <domain anywhere="true"/>
+ </properties>
+ <distribution>
+ <versions min-spec="1.000000"/>
+ <scripts></scripts>
+ </distribution>
+ <contents>
+ <choice title="dstroot" id="choice0" starts_selected="true" starts_enabled="true" starts_hidden="false">
+ <pkgref id="www.pinguin.lu.xmountPMDOC_VERSION.dstroot.pkg"/>
+ </choice>
+ </contents>
+ <resources bg-scale="none" bg-align="topleft">
+ <locale lang="en">
+ <resource mime-type="text/rtf" kind="embedded" type="license">
+<![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
{\fonttbl\f0\fnil\fcharset0 LucidaGrande;}
{\colortbl;\red255\green255\blue255;}
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural
\f0\fs26 \cf0 xmount Copyright (c) 2008-2012 by Gillen Daniel\
\
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\
\
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\
\
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\
\
This version of xmount includes the following statically linked libraries:\
\
==== LIBEWF\
Copyright (c) 2006-2009, Joachim Metz <forensics@hoffmannbv.nl>, Hoffmann Investigations.\
\
This software is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\
\
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\
\
You should have received a copy of the GNU Lesser General Public License along with this software. If not, see <http://www.gnu.org/licenses/>.\
\
==== AFFLIB\
Copyright (c) 2005, 2006, 2007 Simson L. Garfinkel and Basis Technology Corp. All rights reserved.\
\
This code is derrived from software contributed by Simson L. Garfinkel\
\
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\
\
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\
3. All advertising materials mentioning features or use of this software must display the following acknowledgement:\
This product includes software developed by Simson L. Garfinkel and Basis Technology Corp.\
4. Neither the name of Simson L. Garfinkel, Basis Technology, or other contributors to this program may be used to endorse or promote products derived from this software without specific prior written permission.\
\
THIS SOFTWARE IS PROVIDED BY SIMSON L. GARFINKEL, BASIS TECHNOLOGY, AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SIMSON L. GARFINKEL, BASIS TECHNOLOGY, OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \
\
-AFF and AFFLIB is a trademark of Simson Garfinkel and Basis Technology Corp.}]]></resource><resource mime-type="text/rtf" kind="embedded" type="readme"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+AFF and AFFLIB is a trademark of Simson Garfinkel and Basis Technology Corp.}]]>
+ </resource>
+ <resource mime-type="text/rtf" kind="embedded" type="readme">
+<![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
{\fonttbl\f0\fnil\fcharset0 LucidaGrande;}
{\colortbl;\red255\green255\blue255;}
\deftab480
\pard\tx480\pardeftab480\ql\qnatural\pardirnatural
-\f0\fs26 \cf0 xmount is a small tool to convert various forensic harddisk image formats on-the-fly to raw DD, DMG, VDI, VHD or VMDK files and enable virtual write access to them.}]]></resource></locale></resources><requirements><requirement id="file" operator="eq" value="true"><file>/Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext</file><message-title>OSXFUSE missing</message-title><message>Your system does not seem to have MacFUSE installed. Get it from http://osxfuse.github.com/ and install it prior to launching this installer.</message></requirement></requirements><flags/><item type="file">01dstroot.xml</item><mod>properties.systemDomain</mod><mod>properties.title</mod></pkmkdoc>
+\f0\fs26 \cf0 xmount is a small tool to convert various forensic harddisk image formats on-the-fly to raw DD, DMG, VDI, VHD or VMDK files and enable virtual write access to them.}]]>
+ </resource>
+ </locale>
+ </resources>
+ <requirements>
+ <requirement id="file" operator="eq" value="true">
+ <file>/Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext</file>
+ <message-title>OSXFUSE missing</message-title>
+ <message>Your system does not seem to have MacFUSE installed. Get it from http://osxfuse.github.com/ and install it prior to launching this installer.</message>
+ </requirement>
+ </requirements>
+ <flags/>
+ <item type="file">01dstroot.xml</item>
+ <mod>properties.systemDomain</mod>
+ <mod>properties.title</mod>
+</pkmkdoc>

File Metadata

Mime Type
text/x-diff
Expires
Mon, Dec 23, 11:00 AM (6 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1176794
Default Alt Text
(13 KB)

Event Timeline