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: ChangeLog aufs2-0_p20090727.ebuild aufs2-0_p20090601-r1.ebuild
Date: Tue, 28 Jul 2009 18:43:28
Message-Id: E1MVre2-0001rC-Eu@stork.gentoo.org
1 tommy 09/07/28 18:43:26
2
3 Modified: ChangeLog
4 Added: aufs2-0_p20090727.ebuild
5 Removed: aufs2-0_p20090601-r1.ebuild
6 Log:
7 Version bump, add support for kernel version 2.6.30
8 (Portage version: 2.2_rc33-r4/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.7 sys-fs/aufs2/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/ChangeLog?rev=1.7&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/ChangeLog?rev=1.7&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/ChangeLog?r1=1.6&r2=1.7
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs2/ChangeLog,v
20 retrieving revision 1.6
21 retrieving revision 1.7
22 diff -u -r1.6 -r1.7
23 --- ChangeLog 13 Jun 2009 14:35:10 -0000 1.6
24 +++ ChangeLog 28 Jul 2009 18:43:26 -0000 1.7
25 @@ -1,6 +1,15 @@
26 # ChangeLog for sys-fs/aufs2
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs2/ChangeLog,v 1.6 2009/06/13 14:35:10 tommy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs2/ChangeLog,v 1.7 2009/07/28 18:43:26 tommy Exp $
30 +
31 +*aufs2-0_p20090727 (28 Jul 2009)
32 +
33 + 28 Jul 2009; Thomas Sachau (Tommy[D]) <tommy@g.o>
34 + +files/aufs2-standalone-27.patch, -files/aufs2-standalone.patch,
35 + -aufs2-0_p20090601-r1.ebuild, +aufs2-0_p20090727.ebuild,
36 + +files/aufs2-standalone-28.patch, files/aufs2-standalone-29.patch,
37 + +files/aufs2-standalone-30.patch:
38 + Version bump, add support for kernel version 2.6.30
39
40 13 Jun 2009; Thomas Sachau (Tommy[D]) <tommy@g.o>
41 aufs2-0_p20090601-r1.ebuild:
42
43
44
45 1.1 sys-fs/aufs2/aufs2-0_p20090727.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/aufs2-0_p20090727.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/aufs2/aufs2-0_p20090727.ebuild?rev=1.1&content-type=text/plain
49
50 Index: aufs2-0_p20090727.ebuild
51 ===================================================================
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs2/aufs2-0_p20090727.ebuild,v 1.1 2009/07/28 18:43:26 tommy Exp $
55
56 EGIT_REPO_URI="http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git"
57
58 inherit git linux-mod toolchain-funcs
59
60 DESCRIPTION="An entirely re-designed and re-implemented Unionfs"
61 HOMEPAGE="http://aufs.sourceforge.net"
62 SRC_URI=""
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="debug inotify kernel-patch ramfs"
68
69 DEPEND=""
70 RDEPEND="!sys-fs/aufs"
71
72 MODULE_NAMES="aufs(misc:${S})"
73
74 get_kernelpatch() {
75 if kernel_is eq 2 6 27; then
76 KERNELPATCH="aufs2-standalone-27.patch"
77 EGIT_BRANCH="aufs2-27"
78 EGIT_TREE="957d5a6b6408016f9b074eccc7bffd1429d0a64d"
79 elif kernel_is eq 2 6 28; then
80 KERNELPATCH="aufs2-standalone-28.patch"
81 EGIT_BRANCH="aufs2-28"
82 EGIT_TREE="2e3a4181f3d391c72e086fb7ca23b151fc961371"
83 elif kernel_is eq 2 6 29; then
84 KERNELPATCH="aufs2-standalone-29.patch"
85 EGIT_BRANCH="aufs2-29"
86 EGIT_TREE="dc5a4600a23ba474a5eb941d4379330e0f36141e"
87 elif kernel_is eq 2 6 30; then
88 KERNELPATCH="aufs2-standalone-30.patch"
89 EGIT_BRANCH="aufs2-30"
90 EGIT_TREE="b599d87c0ad475e309f81d9b85ba56527371db81"
91 else
92 die "no supported kernel found"
93 fi
94 }
95
96 pkg_setup() {
97 get_version
98 get_kernelpatch
99 if ! patch -p1 --dry-run --force -R -d ${KV_DIR} < "${FILESDIR}"/${KERNELPATCH} >/dev/null; then
100 if use kernel-patch; then
101 cd ${KV_DIR}
102 ewarn "Patching your kernel..."
103 patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${FILESDIR}"/${KERNELPATCH} >/dev/null
104 epatch "${FILESDIR}"/${KERNELPATCH}
105 einfo "You need to compile your kernel with the applied patch"
106 einfo "to be able to load and use the aufs kernel module"
107 else
108 eerror "You need to apply a patch to your kernel to compile and run the aufs2 module"
109 eerror "Either enable the kernel-patch useflag to do it with this ebuild"
110 eerror "or apply ${FILESDIR}/${KERNELPATCH} by hand"
111 die "missing kernel patch, please apply it first"
112 fi
113 fi
114 linux-mod_pkg_setup
115 }
116
117 src_unpack() {
118 git_src_unpack
119 cd "${S}"
120
121 use debug || sed -i "s:DEBUG = y:DEBUG =:g" config.mk
122 use inotify && sed -i "s:HINOTIFY =:HINOTIFY = y:g" config.mk
123 use ramfs && sed -i "s:RAMFS =:RAMFS = y:g" config.mk
124
125 EGIT_REPO_URI="http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-util.git"
126 EGIT_TREE="8d4217be37b74732afa80bc6e6519bd9df7ea1af"
127 EGIT_PROJECT="aufs2-utils"
128 EGIT_BRANCH=""
129 local S=${S}-utils
130 git_src_unpack
131 cd "${S}"
132 sed -i "/LDFLAGS += -static -s/d" Makefile
133 }
134
135 src_compile() {
136 ARCH=i386
137 use amd64 && ARCH=x86_64
138 emake CC=$(tc-getCC) CONFIG_AUFS_FS=m KDIR=${KV_DIR} || die
139 cd "${S}"-utils
140 emake CC=$(tc-getCC) AR=$(tc-getAR) KDIR=${KV_DIR} C_INCLUDE_PATH="${S}"/include || die
141 }
142
143 src_install() {
144 linux-mod_src_install
145 dodoc README || die
146 docinto design
147 dodoc design/*.txt || die
148 cd "${S}"-utils
149 emake DESTDIR="${D}" install || die
150 docinto
151 newdoc README README-utils || die
152 }