Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1193 - (show annotations) (download)
Sun Apr 26 08:36:14 2009 UTC (15 years ago) by niro
File size: 2379 byte(s)
-fixed SRCFILE
1 # $Id$
2
3 PNAME="xfsprogs"
4 PVER="3.0.0"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-fs"
8 STATE="unstable"
9
10 DESCRIPTION="Administration and debugging tools for the XFS file system."
11 HOMEPAGE="http://oss.sgi.com/projects/xfs/"
12
13 DEPEND=">= virtual/glibc
14 >= sys-fs/e2fsprogs-1.40"
15
16 SDEPEND=">= sys-dev/gettext-0.17
17 >= sys-apps/sed-4"
18
19 SRCFILE="${PNAME}_${PVER}.tar.gz"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mtools
23
24 SRC_URI=(
25 ftp://oss.sgi.com/projects/xfs/cmd_tars/${SRCFILE}
26 ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 )
29
30 #UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | sed -n 's/.*_\(.*\)-[0-9]\..*/\1/;$ p'"
31 UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | lasttarball gz"
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} || die
36 cd ${SRCDIR}
37
38 # fix CFLAGS and some install pathes
39 sed -i "/^PKG_DOC_DIR/s:=.*:= /usr/share/doc/${PNAME}-${PVER}:" \
40 include/builddefs.in || die
41
42 # extreme dirty fix:
43 # it complains always about:
44 # libtool: compile: unable to infer tagged configuration
45 # libtool: compile: specify a tag with `--tag'
46 # make: *** [parser.o] Error 1
47 #
48 # to fix that we set the needed tag to libtool:
49 # --tag=CXX
50 # sed -i '/^LIBTOOL/s:=.*:= @LIBTOOL@ --tag=CXX:g' \
51 # include/builddefs.in || die
52 }
53
54 src_compile()
55 {
56 cd ${SRCDIR}
57
58 # enable CFLAGS
59 export OPTIMIZER="${CFLAGS}" || die
60
61 # disable debug code
62 export DEBUG=-DNDEBUG || die
63
64 mconfigure \
65 --bindir=/bin \
66 --sbindir=/sbin \
67 --libexecdir=/$(mlibdir) \
68 --enable-gettext \
69 || die
70
71 mmake || die
72 }
73
74 src_install()
75 {
76 cd ${SRCDIR}
77
78 # needed directories
79 minstalldir /usr/$(mlibdir) || die
80
81 make DIST_ROOT=${BINDIR} \
82 DK_INC_DIR=${BINDIR}/usr/include/disk \
83 install install-dev \
84 || die
85
86 # missing link
87 mlink /$(mlibdir)/libhandle.so.1 /$(mlibdir)/libhandle.so || die
88
89 # fix .la file
90 sed -e 's:installed=no:installed=yes:g' \
91 libhandle/.libs/libhandle.la \
92 > ${BINDIR}/usr/$(mlibdir)/libhandle.la \
93 || die
94
95 # move static lib to /usr/lib
96 mv ${BINDIR}/$(mlibdir)/*.a ${BINDIR}/usr/$(mlibdir)/ || die
97
98 # we want compressed docs
99 rm -rf ${BINDIR}/usr/share/doc || die
100
101 # prune unneeded docs
102 rm doc/{CHANGES.gz,INSTALL,Makefile} || die
103
104 # sometime /var/tmp exist, remove it, to keep the right permissions
105 [[ -d ${BINDIR}/var ]] && rm -rf ${BINDIR}/var
106
107 minstalldocs doc/* || die
108 }

Properties

Name Value
svn:keywords Id