Magellan Linux

Contents of /trunk/core/xfsprogs/xfsprogs-3.1.9-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14337 - (show annotations) (download)
Thu Dec 13 10:42:10 2012 UTC (11 years, 6 months ago) by niro
File size: 2318 byte(s)
-fixed autoconf
1 # $Id$
2
3 PNAME="xfsprogs"
4 PVER="3.1.9"
5 PBUILD="r1"
6
7 PCAT="sys-fs"
8
9 DESCRIPTION="Administration and debugging tools for the XFS file system."
10 HOMEPAGE="http://oss.sgi.com/projects/xfs/"
11
12 DEPEND=">= virtual/glibc
13 >= sys-libs/libblkid-2.22
14 >= sys-libs/libuuid-2.22
15 >= sys-libs/readline-6.2"
16
17 SDEPEND=">= sys-dev/gettext-0.18
18 >= virtual/sed"
19
20 SRCFILE="${PNAME}-${PVER}.tar.gz"
21 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22
23 sminclude mtools
24
25 SRC_URI=(
26 ftp://oss.sgi.com/projects/xfs/cmd_tars/${SRCFILE}
27 ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 )
30
31 #UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | sed -n 's/.*_\(.*\)-[0-9]\..*/\1/;$ p'"
32 UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | lasttarball gz"
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} ${SRCDIR} || die
37 cd ${SRCDIR}
38
39 # fix CFLAGS and some install pathes
40 sed -i "/^PKG_DOC_DIR/s:=.*:= /usr/share/doc/${PNAME}-${PVER}:" \
41 include/builddefs.in || die
42
43 # remove static
44 sed -i '1iLLDFLAGS = -static' {estimate,fsr}/Makefile || die
45 sed -i "/LLDFLAGS/s:-static::" $(find -name Makefile) || die
46
47 # libdisk has broken blkid conditional checking
48 sed -i '/LIB_SUBDIRS/s:libdisk::' Makefile || die
49
50 # honor usr-move
51 sed -i -e "s:root_sbindir='/sbin':root_sbindir='/usr/sbin':" \
52 -e 's:root_libdir="/${base_libdir}":root_libdir="/usr/${base_libdir}":' \
53 configure.ac || die
54
55 mlibtoolize || die
56 # only run aclocal && autoconf
57 aclocal -Im4 --force --install || die
58 autoconf --force || die
59 }
60
61 src_compile()
62 {
63 cd ${SRCDIR}
64
65 # enable CFLAGS
66 export OPTIMIZER="${CFLAGS}"
67
68 # disable debug code
69 export DEBUG=-DNDEBUG
70
71 mconfigure \
72 --libexecdir=/usr/$(mlibdir) \
73 --enable-gettext \
74 --enable-readline \
75 --enable-blkid \
76 --disable-editline \
77 || die
78
79 mmake -j1 V=1 || die
80 }
81
82 src_install()
83 {
84 cd ${SRCDIR}
85
86 # needed directories
87 minstalldir /usr/$(mlibdir) || die
88
89 make DIST_ROOT=${BINDIR} \
90 DK_INC_DIR=${BINDIR}/usr/include/disk \
91 install install-dev \
92 || die
93
94 # we want compressed docs
95 rm -rf ${BINDIR}/usr/share/doc || die
96
97 # prune unneeded docs
98 rm doc/{CHANGES.gz,INSTALL,Makefile} || die
99
100 # sometime /var/tmp exist, remove it, to keep the right permissions
101 [[ -d ${BINDIR}/var ]] && rm -rf ${BINDIR}/var
102
103 minstalldocs doc/* || die
104 }