Magellan Linux

Contents of /branches/magellan-next/core/xfsprogs/xfsprogs-3.1.7-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9322 - (show annotations) (download)
Sat Nov 26 12:43:28 2011 UTC (12 years, 6 months ago) by niro
File size: 2012 byte(s)
auto added: ver bump to 3.1.7-r1
1 # $Id$
2
3 PNAME="xfsprogs"
4 PVER="3.1.7"
5 PBUILD="r1"
6
7 PCATEGORIE="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-fs/e2fsprogs-1.41"
14
15 SDEPEND=">= sys-dev/gettext-0.18
16 >= sys-apps/sed-4"
17
18 SRCFILE="${PNAME}-${PVER}.tar.gz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 sminclude mtools
22
23 SRC_URI=(
24 ftp://oss.sgi.com/projects/xfs/cmd_tars/${SRCFILE}
25 ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29 #UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | sed -n 's/.*_\(.*\)-[0-9]\..*/\1/;$ p'"
30 UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | lasttarball gz"
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 # fix CFLAGS and some install pathes
38 sed -i "/^PKG_DOC_DIR/s:=.*:= /usr/share/doc/${PNAME}-${PVER}:" \
39 include/builddefs.in || die
40 }
41
42 src_compile()
43 {
44 cd ${SRCDIR}
45
46 # enable CFLAGS
47 export OPTIMIZER="${CFLAGS}"
48
49 # disable debug code
50 export DEBUG=-DNDEBUG
51
52 mconfigure \
53 --bindir=/bin \
54 --sbindir=/sbin \
55 --libexecdir=/$(mlibdir) \
56 --enable-gettext \
57 || die
58
59 mmake -j1 || die
60 }
61
62 src_install()
63 {
64 cd ${SRCDIR}
65
66 # needed directories
67 minstalldir /usr/$(mlibdir) || die
68
69 make DIST_ROOT=${BINDIR} \
70 DK_INC_DIR=${BINDIR}/usr/include/disk \
71 install install-dev \
72 || die
73
74 # missing link
75 mlink /$(mlibdir)/libhandle.so.1 /$(mlibdir)/libhandle.so || die
76
77 # fix .la file
78 sed -e 's:installed=no:installed=yes:g' \
79 libhandle/.libs/libhandle.la \
80 > ${BINDIR}/usr/$(mlibdir)/libhandle.la \
81 || die
82
83 # move static lib to /usr/lib
84 mv ${BINDIR}/$(mlibdir)/*.a ${BINDIR}/usr/$(mlibdir)/ || die
85
86 # we want compressed docs
87 rm -rf ${BINDIR}/usr/share/doc || die
88
89 # prune unneeded docs
90 rm doc/{CHANGES.gz,INSTALL,Makefile} || die
91
92 # sometime /var/tmp exist, remove it, to keep the right permissions
93 [[ -d ${BINDIR}/var ]] && rm -rf ${BINDIR}/var
94
95 minstalldocs doc/* || die
96 }