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 @@ -modemode + + + + + + mode + + + + + mode + + + + + + mode + mode + mode + mode + mode + mode + mode + mode + + + + + + 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 @@ -www.pinguin.lu.xmountVERSION.dstroot.pkg1OSXDSTROOT/parent01dstroot-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ + + + www.pinguin.lu.xmountPMDOC_VERSION.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 cb23d2b..0834ea2 100644 --- a/trunk/xmount.pmdoc/index.xml +++ b/trunk/xmount.pmdoc/index.xml @@ -1,46 +1,85 @@ -xmount VERSION_LONGCURRENT_PATH/xmount-VERSION_LONG.pkgwww.pinguin.lu + + xmount PMDOC_LVERSION + PMDOC_CWD/xmount-PMDOC_LVERSION.pkg + www.pinguin.lu + + + + + + + + + + + + + + + + +.\ \ 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.}]]> + + +/Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kextOSXFUSE missingYour system does not seem to have MacFUSE installed. Get it from http://osxfuse.github.com/ and install it prior to launching this installer.01dstroot.xmlproperties.systemDomainproperties.title +\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.}]]> + + + + + + /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. + + + + 01dstroot.xml + properties.systemDomain + properties.title +