#!/bin/sh # Slackware build script for ntfs-3g ## Copyright (c) 2008, Antonio Hernandez Blas # All rights reserved. # # 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. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 THE AUTHOR 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. # Modified by Robby Workman # Modified by Patrick Volkerding PKGNAM=ntfs-3g VERSION=${VERSION:-2009.3.8} BUILD=${BUILD:-1} . /etc/pkghelpers pkghelpers_env rm -rf $PKG mkdir -p $TMP $PKG cd $TMP || exit 1 rm -rf $PKGNAM-$VERSION tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1 cd $PKGNAM-$VERSION || exit 1 pkghelpers_permissions CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/lib$LIBSUFFIX \ --mandir=/usr/man \ --bindir=/bin \ --sbindir=/sbin \ --docdir=/usr/doc/$PKGNAM-$VERSION \ --with-fuse=internal \ --disable-ldconfig \ --enable-static=no \ --build=${ARCH}-$DISTRO-linux \ || exit 1 make -j$NUMJOBS || exit 1 make install DESTDIR=$PKG || exit 1 # Slamd64 - workaround libdir override problem mkdir $PKG/usr/lib$LIBSUFFIX ( cd $PKG/lib$LIBSUFFIX mv pkgconfig *.la $PKG/usr/lib$LIBSUFFIX ) # Add the HAL fdi file so that automount uses "ntfs-3g" as filesystem type mkdir -p $PKG/usr/share/hal/fdi/policy/10osvendor cat $CWD/10-ntfs-3g-policy.fdi > $PKG/usr/share/hal/fdi/policy/10osvendor/10-ntfs-3g-policy.fdi rm -rf $PKG/usr/share/doc mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION cp -a \ AUTHORS COPYING* CREDITS INSTALL NEWS README* \ $PKG/usr/doc/$PKGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG pkghelpers_fixup pkghelpers_makepkg