# $Id$ PNAME="ntfsprogs" PVER="2.0.0" PBUILD="r1" PCATEGORIE="sys-fs" STATE="unstable" DESCRIPTION="A collection of utilities for managing NTFS volumes." HOMEPAGE="http://www.linux-ntfs.org/" DEPEND=">= dev-libs/libconfig-1.4 >= sys-fs/fuse-2.8 >= app-crypt/libgcrypt-1.4.4 >= app-crypt/gnutls-1.8.5" SDEPEND=">= dev-util/pkgconfig-0.23" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( sourceforge://linux-ntfs/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-gnutls-2.8.patch ) UP2DATE="updatecmd_sourceforge linux-ntfs 'NTFS Tools and Library' - ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix build with gnutls-2.8 mpatch ${PNAME}-${PVER}-gnutls-2.8.patch || die # install all extra programs sed -i 's:^EXTRA_PROGRAMS.*=:bin_PROGRAMS +=:' ntfsprogs/Makefile.am || die sed -i 's:^EXTRA_PROGRAMS.*+= ntfsdecrypt:bin_PROGRAMS += ntfsdecrypt' ntfsprogs/Makefile.am || die # fix hardcorded CFLAGS and debugger options sed -i -e '/CFLAGS/s:-ggdb3\>::' -e '/CFLAGS/s:-O0\>::' configure.ac || die autoreconf --install --force --verbose || die } src_compile() { cd ${SRCDIR} mconfigure \ --disable-debug \ --enable-crypto \ --enable-ntfsmount \ --disable-gnome-vfs \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # move to proper locations mv ${BINDIR}/usr/bin/ntfsck ${BINDIR}/sbin/ || die mlink ntfsck /sbin/fsck.ntfs || die minstalldocs AUTHORS ChangeLog COPYING CREDITS NEWS README TODO* \ doc/{attribute_definitions,tunable_settings,*.txt} || die }