Gentoo Archives: gentoo-commits

From: "Thomas Sachau (tommy)" <tommy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/aufs2: metadata.xml ChangeLog aufs2-0_p20090601.ebuild
Date: Fri, 05 Jun 2009 17:20:55
Message-Id: E1MCd65-0003Qs-8K@stork.gentoo.org
1 tommy 09/06/05 17:20:53
2
3 Modified: metadata.xml ChangeLog
4 Added: aufs2-0_p20090601.ebuild
5 Log:
6 Bump to latest git version, add ramfs support for bug 272418
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.2 sys-fs/aufs2/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/metadata.xml?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/metadata.xml?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/metadata.xml?r1=1.1&r2=1.2
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs2/metadata.xml,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- metadata.xml 12 May 2009 17:36:00 -0000 1.1
23 +++ metadata.xml 5 Jun 2009 17:20:53 -0000 1.2
24 @@ -6,7 +6,8 @@
25 <email>tommy@g.o</email>
26 </maintainer>
27 <use>
28 - <flag name='hinotify'>Enable hinotify support</flag>
29 <flag name='debug'>Enable additional debugging support</flag>
30 + <flag name='hinotify'>Enable hinotify support</flag>
31 + <flag name='ramfs'>Enable initramfs/rootfs support</flag>
32 </use>
33 </pkgmetadata>
34
35
36
37 1.3 sys-fs/aufs2/ChangeLog
38
39 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/ChangeLog?rev=1.3&view=markup
40 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/ChangeLog?rev=1.3&content-type=text/plain
41 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/ChangeLog?r1=1.2&r2=1.3
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs2/ChangeLog,v
46 retrieving revision 1.2
47 retrieving revision 1.3
48 diff -u -r1.2 -r1.3
49 --- ChangeLog 24 May 2009 18:30:08 -0000 1.2
50 +++ ChangeLog 5 Jun 2009 17:20:53 -0000 1.3
51 @@ -1,6 +1,13 @@
52 # ChangeLog for sys-fs/aufs2
53 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs2/ChangeLog,v 1.2 2009/05/24 18:30:08 maekke Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs2/ChangeLog,v 1.3 2009/06/05 17:20:53 tommy Exp $
56 +
57 +*aufs2-0_p20090601 (05 Jun 2009)
58 +
59 + 05 Jun 2009; Thomas Sachau (Tommy[D]) <tommy@g.o>
60 + files/aufs2-standalone-29.patch, files/aufs2-standalone.patch,
61 + +aufs2-0_p20090601.ebuild, metadata.xml:
62 + Bump to latest git version
63
64 24 May 2009; Markus Meier <maekke@g.o> aufs2-0_p20090504.ebuild:
65 add ~x86, bug #270036
66
67
68
69 1.1 sys-fs/aufs2/aufs2-0_p20090601.ebuild
70
71 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/aufs2-0_p20090601.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/aufs2-0_p20090601.ebuild?rev=1.1&content-type=text/plain
73
74 Index: aufs2-0_p20090601.ebuild
75 ===================================================================
76 # Copyright 1999-2009 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs2/aufs2-0_p20090601.ebuild,v 1.1 2009/06/05 17:20:53 tommy Exp $
79
80 EGIT_REPO_URI="http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git"
81
82 inherit git linux-mod toolchain-funcs
83
84 DESCRIPTION="An entirely re-designed and re-implemented Unionfs"
85 HOMEPAGE="http://aufs.sourceforge.net"
86 SRC_URI=""
87
88 LICENSE="GPL-2"
89 SLOT="0"
90 KEYWORDS="~amd64"
91 IUSE="debug hinotify ramfs"
92
93 DEPEND=""
94 RDEPEND="!sys-fs/aufs"
95
96 MODULE_NAMES="aufs(misc:${S})"
97
98 pkg_setup() {
99 get_version
100 if ! grep -qs "EXPORT_SYMBOL(deny_write_access);" ${KV_DIR}/fs/namei.c; then
101 ewarn "Patching your kernel..."
102 cd ${KV_DIR}
103 if kernel_is eq 2 6 27; then
104 epatch "${FILESDIR}"/aufs2-standalone.patch
105 elif kernel_is eq 2 6 28; then
106 epatch "${FILESDIR}"/aufs2-standalone.patch
107 elif kernel_is eq 2 6 29; then
108 epatch "${FILESDIR}"/aufs2-standalone-29.patch
109 else
110 die "no supported kernel found"
111 fi
112 elog "You need to compile your kernel with the applied patch"
113 elog "to be able to load and use the aufs kernel module"
114 fi
115
116 linux-mod_pkg_setup
117 }
118 src_unpack() {
119 if kernel_is eq 2 6 27; then
120 EGIT_BRANCH="aufs2-27"
121 EGIT_TREE="8e8d6394f50d9cfdc434766ea2434018788ca111"
122 elif kernel_is eq 2 6 28; then
123 EGIT_BRANCH="aufs2-28"
124 EGIT_TREE="78e9abebac8f283dd4f113f392a9943a7b212b0e"
125 elif kernel_is eq 2 6 29; then
126 EGIT_BRANCH="aufs2-29"
127 EGIT_TREE="d2db0dbfac69b5a04df5a78a454a2c9b8c658aa6"
128 else
129 die "no supported kernel found"
130 fi
131 git_src_unpack
132 cd "${S}"
133
134 use debug || sed -i "s:DEBUG = y:DEBUG =:g" config.mk
135 use hinotify && sed -i "s:HINOTIFY =:HINOTIFY = y:g" config.mk
136 use ramfs && sed -i "s:RAMFS =:RAMFS = y:g" config.mk
137
138 EGIT_REPO_URI="http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-util.git"
139 EGIT_TREE="8d4217be37b74732afa80bc6e6519bd9df7ea1af"
140 EGIT_PROJECT="aufs2-utils"
141 EGIT_BRANCH=""
142 local S=${S}-utils
143 git_src_unpack
144 cd "${S}"
145 sed -i "/LDFLAGS += -static -s/d" Makefile
146 }
147
148 src_compile() {
149 ARCH=i386
150 use amd64 && ARCH=x86_64
151 emake CC=$(tc-getCC) CONFIG_AUFS_FS=m KDIR=${KV_DIR} || die
152 cd "${S}"-utils
153 emake CC=$(tc-getCC) AR=$(tc-getAR) KDIR=${KV_DIR} C_INCLUDE_PATH="${S}"/include || die
154 }
155
156 src_install() {
157 linux-mod_src_install
158 dodoc README || die
159 docinto design
160 dodoc design/*.txt || die
161 cd "${S}"-utils
162 emake DESTDIR="${D}" install || die
163 docinto
164 newdoc README README-utils || die
165 }