Contents of /trunk/core/xfsprogs/xfsprogs-3.1.8-r3.smage2
Parent Directory | Revision Log
Revision 13272 -
(show annotations)
(download)
Sat Sep 22 12:10:20 2012 UTC (12 years ago) by niro
File size: 2308 byte(s)
Sat Sep 22 12:10:20 2012 UTC (12 years ago) by niro
File size: 2308 byte(s)
-removed util-linux dep and added libuuid and libblkid dep
1 | # $Id$ |
2 | |
3 | PNAME="xfsprogs" |
4 | PVER="3.1.8" |
5 | PBUILD="r3" |
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 | mirror://${PNAME}/${PNAME}-3.1.7-sharedlibs.patch |
30 | ) |
31 | |
32 | #UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | sed -n 's/.*_\(.*\)-[0-9]\..*/\1/;$ p'" |
33 | UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | lasttarball gz" |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # prefer shared libs |
41 | mpatch -Np1 ${PNAME}-3.1.7-sharedlibs.patch || die |
42 | |
43 | # fix CFLAGS and some install pathes |
44 | sed -i "/^PKG_DOC_DIR/s:=.*:= /usr/share/doc/${PNAME}-${PVER}:" \ |
45 | include/builddefs.in || die |
46 | |
47 | # remove static |
48 | sed -i '1iLLDFLAGS = -static' {estimate,fsr}/Makefile || die |
49 | sed -i "/LLDFLAGS/s:-static::" $(find -name Makefile) || die |
50 | |
51 | # libdisk has broken blkid conditional checking |
52 | sed -i '/LIB_SUBDIRS/s:libdisk::' Makefile || die |
53 | |
54 | # honor usr-move |
55 | sed -i -e "s:root_sbindir='/sbin':root_sbindir='/usr/sbin':" \ |
56 | -e 's:root_libdir="/${base_libdir}":root_libdir="/usr/${base_libdir}":' \ |
57 | configure.in configure || die |
58 | } |
59 | |
60 | src_compile() |
61 | { |
62 | cd ${SRCDIR} |
63 | |
64 | # enable CFLAGS |
65 | export OPTIMIZER="${CFLAGS}" |
66 | |
67 | # disable debug code |
68 | export DEBUG=-DNDEBUG |
69 | |
70 | mconfigure \ |
71 | --libexecdir=/usr/$(mlibdir) \ |
72 | --enable-gettext \ |
73 | --enable-readline \ |
74 | --disable-editline \ |
75 | || die |
76 | |
77 | mmake -j1 V=1 || die |
78 | } |
79 | |
80 | src_install() |
81 | { |
82 | cd ${SRCDIR} |
83 | |
84 | # needed directories |
85 | minstalldir /usr/$(mlibdir) || die |
86 | |
87 | make DIST_ROOT=${BINDIR} \ |
88 | DK_INC_DIR=${BINDIR}/usr/include/disk \ |
89 | install install-dev \ |
90 | || die |
91 | |
92 | # we want compressed docs |
93 | rm -rf ${BINDIR}/usr/share/doc || die |
94 | |
95 | # prune unneeded docs |
96 | rm doc/{CHANGES.gz,INSTALL,Makefile} || die |
97 | |
98 | # sometime /var/tmp exist, remove it, to keep the right permissions |
99 | [[ -d ${BINDIR}/var ]] && rm -rf ${BINDIR}/var |
100 | |
101 | minstalldocs doc/* || die |
102 | } |