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