Contents of /trunk/core/acl/acl-2.2.47-r1.smage2
Parent Directory | Revision Log
Revision 3098 -
(show annotations)
(download)
Tue Oct 13 12:59:24 2009 UTC (14 years, 11 months ago) by niro
File size: 2255 byte(s)
Tue Oct 13 12:59:24 2009 UTC (14 years, 11 months ago) by niro
File size: 2255 byte(s)
auto added: ver bump to 2.2.47-r1
1 | # $Id$ |
2 | |
3 | PNAME="acl" |
4 | PVER="2.2.47" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="acl: POSIX Access Control Lists." |
11 | HOMEPAGE="http://xfs.org/" |
12 | |
13 | DEPEND=">= sys-apps/attr-2.4" |
14 | |
15 | SDEPEND=">= sys-dev/autoconf-5 |
16 | >= sys-dev/gettext-0.17" |
17 | |
18 | SRCFILE="${PNAME}_${PVER}-1.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 | mirror://${PNAME}/${PNAME}-${PVER}-introduce-new-WALK_TREE_DEREFERENCE_TOPLEVEL-flag.patch |
29 | mirror://${PNAME}/${PNAME}-${PVER}-make-sure-that-getfacl-R-only-calls-stat-2-on-symlin.patch |
30 | mirror://${PNAME}/${PNAME}-${PVER}-libtool.patch |
31 | mirror://${PNAME}/${PNAME}-${PVER}-only-symlink-when-needed.patch |
32 | ) |
33 | |
34 | UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | sed -n 's/.*_\(.*\)-[0-9]\..*/\1/;$ p'" |
35 | |
36 | src_prepare() |
37 | { |
38 | munpack ${SRCFILE} || die |
39 | cd ${SRCDIR} |
40 | |
41 | mpatch ${PNAME}-${PVER}-introduce-new-WALK_TREE_DEREFERENCE_TOPLEVEL-flag.patch || die |
42 | mpatch ${PNAME}-${PVER}-make-sure-that-getfacl-R-only-calls-stat-2-on-symlin.patch || die |
43 | mpatch ${PNAME}-${PVER}-libtool.patch || die |
44 | mpatch ${PNAME}-${PVER}-only-symlink-when-needed.patch || die |
45 | |
46 | sed -i \ |
47 | -e "/^PKG_DOC_DIR/s:@pkg_name@:${PNAME}-${PVER}:" \ |
48 | -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ |
49 | include/builddefs.in \ |
50 | || die |
51 | |
52 | # libtool fixes |
53 | sed -i -e '/autoconf/d' -e 's@default: $(CONFIGURE)@default:@' Makefile || die |
54 | sed -i "/AC_OUTPUT/i\AC_PROG_LIBTOOL" configure.in || die |
55 | |
56 | # libtool will clobber install-sh which is really a custom file |
57 | mv install-sh attr.install-sh || die |
58 | mlibtoolize --install --force || die |
59 | mv attr.install-sh install-sh || die |
60 | aclocal -I m4 || die |
61 | autoconf || die |
62 | } |
63 | |
64 | src_compile() |
65 | { |
66 | cd ${SRCDIR} |
67 | |
68 | # enable CFLAGS |
69 | export OPTIMIZER="${CFLAGS}" |
70 | |
71 | # disable debug code |
72 | export DEBUG="-DNDEBUG" |
73 | |
74 | mconfigure \ |
75 | --bindir=/bin \ |
76 | --libdir=/$(mlibdir) \ |
77 | --libexecdir=/usr/$(mlibdir) \ |
78 | --enable-gettext \ |
79 | || die |
80 | |
81 | mmake LIBTOOL=$PWD/libtool || die |
82 | } |
83 | |
84 | src_install() |
85 | { |
86 | cd ${SRCDIR} |
87 | mmake LIBTOOL=$PWD/libtool DIST_ROOT=${BINDIR} install install-dev install-lib || die |
88 | minstalldocs README VERSION doc/{CHANGES,COPYING} || die |
89 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |