Contents of /branches/magellan-next/core/ntfsprogs/ntfsprogs-2.0.0-r2.smage2
Parent Directory | Revision Log
Revision 6920 -
(show annotations)
(download)
Fri Sep 24 15:14:24 2010 UTC (14 years ago) by niro
File size: 1710 byte(s)
Fri Sep 24 15:14:24 2010 UTC (14 years ago) by niro
File size: 1710 byte(s)
auto added: ver bump to 2.0.0-r2
1 | # $Id: ntfsprogs-2.0.0-r1.smage2 4514 2009-12-24 10:11:04Z niro $ |
2 | |
3 | PNAME="ntfsprogs" |
4 | PVER="2.0.0" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="sys-fs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="A collection of utilities for managing NTFS volumes." |
11 | HOMEPAGE="http://www.linux-ntfs.org/" |
12 | |
13 | DEPEND=">= dev-libs/libconfig-1.4.5 |
14 | >= sys-fs/fuse-2.8 |
15 | >= app-crypt/libgcrypt-1.4.6 |
16 | >= app-crypt/gnutls-1.8.6" |
17 | |
18 | SDEPEND=">= dev-util/pkgconfig-0.25" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | sminclude mtools |
24 | |
25 | SRC_URI=( |
26 | sourceforge://linux-ntfs/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${PNAME}-${PVER}-gnutls-2.8.patch |
29 | ) |
30 | |
31 | UP2DATE="updatecmd_sourceforge linux-ntfs 'NTFS Tools and Library' date-desc" |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | # fix build with gnutls-2.8 |
39 | mpatch ${PNAME}-${PVER}-gnutls-2.8.patch || die |
40 | |
41 | # install all extra programs |
42 | sed -i 's:^EXTRA_PROGRAMS.*=:bin_PROGRAMS +=:' ntfsprogs/Makefile.am || die |
43 | sed -i 's:^EXTRA_PROGRAMS.*+= ntfsdecrypt:bin_PROGRAMS += ntfsdecrypt:' ntfsprogs/Makefile.am || die |
44 | |
45 | # fix hardcorded CFLAGS and debugger options |
46 | sed -i -e '/CFLAGS/s:-ggdb3\>::' -e '/CFLAGS/s:-O0\>::' configure.ac || die |
47 | autoreconf --install --force --verbose || die |
48 | } |
49 | |
50 | src_compile() |
51 | { |
52 | cd ${SRCDIR} |
53 | |
54 | mconfigure \ |
55 | --disable-debug \ |
56 | --enable-crypto \ |
57 | --enable-ntfsmount \ |
58 | --disable-gnome-vfs \ |
59 | || die |
60 | |
61 | mmake || die |
62 | } |
63 | |
64 | src_install() |
65 | { |
66 | cd ${SRCDIR} |
67 | mmake DESTDIR=${BINDIR} install || die |
68 | |
69 | # move to proper locations |
70 | mv ${BINDIR}/usr/bin/ntfsck ${BINDIR}/sbin/ || die |
71 | mlink ntfsck /sbin/fsck.ntfs || die |
72 | |
73 | minstalldocs AUTHORS ChangeLog COPYING CREDITS NEWS README TODO* \ |
74 | doc/{attribute_definitions,tunable_settings,*.txt} || die |
75 | } |