diff --git a/trunk/BuildOsxPkg.sh b/trunk/BuildOsxPkg.sh
index a07814e..c3a8c36 100755
--- a/trunk/BuildOsxPkg.sh
+++ b/trunk/BuildOsxPkg.sh
@@ -1,49 +1,53 @@
#!/bin/bash
if [ "$(whoami)" != "root" ]; then
echo "ERROR: This script has to be run as root!"
exit 1
fi
CWD=`dirname "$0"`
CWD=`cd "$CWD"; pwd`
DSTROOT="$CWD/dstroot"
FULL_PKG_NAME=`basename "$CWD"`
PKG_VERSION=`echo "$FULL_PKG_NAME" | cut -d"-" -f2`
+PKG_SVERSION=`echo "$PKG_VERSION" | tr -d "."`
echo "==== PKG build settings ==="
echo "\$CWD=\"$CWD\""
echo "\$DSTROOT=\"$DSTROOT\""
echo "\$PKG_VERSION=\"$PKG_VERSION\""
+echo "\$PKG_SVERSION=\"$PKG_SVERSION\""
echo
echo "Press any key to continue or Ctrl-C to cancel"
read
# 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_aaff/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/g" "$CWD"/xmount.pmdoc/01dstroot.xml
+sed -i -e "s/PMDOC_SVERSION/$PKG_SVERSION/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_VERSION/$PKG_VERSION/g" "$CWD"/xmount.pmdoc/index.xml
+sed -i -e "s/PMDOC_SVERSION/$PKG_SVERSION/g" "$CWD"/xmount.pmdoc/index.xml
open "$CWD"/xmount.pmdoc
diff --git a/trunk/xmount.pmdoc/01dstroot.xml b/trunk/xmount.pmdoc/01dstroot.xml
index b9753ec..1901dab 100644
--- a/trunk/xmount.pmdoc/01dstroot.xml
+++ b/trunk/xmount.pmdoc/01dstroot.xml
@@ -1,24 +1,24 @@
- www.pinguin.lu.xmount.PMDOC_VERSION.dstroot.pkg
+ www.pinguin.lu.xmountPMDOC_SVERSION.dstroot.pkg
1
PMDOC_DSTROOT
/
parent
01dstroot-contents.xml
/CVS$
/\.svn$
/\.cvsignore$
/\.cvspass$
/\.DS_Store$
diff --git a/trunk/xmount.pmdoc/index.xml b/trunk/xmount.pmdoc/index.xml
index 52a7b8c..7ce31a2 100644
--- a/trunk/xmount.pmdoc/index.xml
+++ b/trunk/xmount.pmdoc/index.xml
@@ -1,85 +1,103 @@
xmount PMDOC_VERSION
PMDOC_CWD/xmount-PMDOC_VERSION.pkg
www.pinguin.lu
-
+
+ function check_for_fuse() {
+ // Installed using .pkg
+ if(system.files.fileExistsAtPath('/Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext')==true) {
+ return true;
+ }
+ // Installed trough MacPorts
+ if(system.files.fileExistsAtPath('/opt/local/Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext')==true) {
+ return true;
+ }
+ return false;
+ }
+
-
+
.\
\
This version of xmount includes the following statically linked libraries:\
\
==== LIBEWF\
Copyright (c) 2006-2009, Joachim Metz , 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 .\
\
==== 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.}]]>
+\f0\fs26 \cf0 xmount allows you to convert on-the-fly between multiple input and output harddisk image formats. xmount creates a virtual file system using FUSE (Filesystem in Userspace) that contains a virtual representation of the input image. \
+\
+The virtual representation can be in raw DD, Apple's Disk Image format (DMG), VirtualBox's virtual disk file format (VDI), Microsoft's Virtual Hard Disk Image format (VHD) or in VmWare's VMDK file format. \
+\
+Input images can be raw DD, EWF (Expert Witness Compression Format) or AFF (Advanced Forensic Format) files. \
+\
+In addition, xmount also supports virtual write access to the output files that is redirected to a cache file. This makes it for example possible to boot acquired harddisk images using QEMU, KVM, VirtualBox, VmWare or alike.}]]>
-
- /Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext
- OSXFUSE missing
- Your system does not seem to have MacFUSE installed. Get it from http://osxfuse.github.com/ and install it prior to launching this installer.
+
+ check_for_fuse()
+ FUSE missing
+ Your system is missing FUSE support. Please install FUSE for OS X from https://osxfuse.github.io/ prior to launching this installer.
- 01dstroot.xml
properties.systemDomain
properties.title