Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/aufs3: ChangeLog aufs3-3_p20120619.ebuild
Date: Tue, 19 Jun 2012 18:56:56
Message-Id: 20120619185635.9835E2004B@flycatcher.gentoo.org
1 jlec 12/06/19 18:56:35
2
3 Modified: ChangeLog
4 Added: aufs3-3_p20120619.ebuild
5 Log:
6 sys-fs/aufs3: Version BUmp
7
8 (Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.19 sys-fs/aufs3/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.19&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.19&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?r1=1.18&r2=1.19
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v
20 retrieving revision 1.18
21 retrieving revision 1.19
22 diff -u -r1.18 -r1.19
23 --- ChangeLog 31 May 2012 16:13:46 -0000 1.18
24 +++ ChangeLog 19 Jun 2012 18:56:35 -0000 1.19
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-fs/aufs3
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.18 2012/05/31 16:13:46 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.19 2012/06/19 18:56:35 jlec Exp $
30 +
31 +*aufs3-3_p20120619 (19 Jun 2012)
32 +
33 + 19 Jun 2012; Justin Lecher <jlec@g.o> files/aufs3-base-x-rcN.patch,
34 + files/aufs3-standalone-x-rcN.patch, +aufs3-3_p20120619.ebuild:
35 + Version BUmp
36
37 *aufs3-3_p20120531 (31 May 2012)
38
39
40
41
42 1.1 sys-fs/aufs3/aufs3-3_p20120619.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20120619.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20120619.ebuild?rev=1.1&content-type=text/plain
46
47 Index: aufs3-3_p20120619.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/aufs3-3_p20120619.ebuild,v 1.1 2012/06/19 18:56:35 jlec Exp $
52
53 EAPI=4
54
55 inherit linux-mod multilib toolchain-funcs eutils
56
57 AUFS_VERSION="${PV%%_p*}"
58 # highest branch version
59 PATCH_MAX_VER=4
60 # highest supported version
61 KERN_MAX_VER=5
62 # highest util branch version
63 UTIL_MAX_VER=0
64
65 DESCRIPTION="An entirely re-designed and re-implemented Unionfs"
66 HOMEPAGE="http://aufs.sourceforge.net/"
67 SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~amd64 ~x86"
72 IUSE="debug doc fuse pax_kernel hfs inotify kernel-patch nfs ramfs"
73
74 DEPEND="dev-vcs/git"
75 RDEPEND="
76 !sys-fs/aufs
77 !sys-fs/aufs2"
78
79 S="${WORKDIR}"/${PN}-standalone
80
81 MODULE_NAMES="aufs(misc:${S})"
82
83 pkg_setup() {
84 CONFIG_CHECK="${CONFIG_CHECK} ~EXPERIMENTAL"
85 use inotify && CONFIG_CHECK="${CONFIG_CHECK} ~FSNOTIFY"
86 use nfs && CONFIG_CHECK="${CONFIG_CHECK} EXPORTFS"
87 use fuse && CONFIG_CHECK="${CONFIG_CHECK} ~FUSE_FS"
88 use hfs && CONFIG_CHECK="${CONFIG_CHECK} ~HFSPLUS_FS"
89
90 # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system
91 [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return
92
93 get_version
94 kernel_is lt 3 0 0 && die "kernel too old, Please use sys-fs/aufs2"
95 kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new"
96
97 linux-mod_pkg_setup
98
99 if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then
100 PATCH_BRANCH="x-rcN"
101 else
102 PATCH_BRANCH="${KV_MINOR}"
103 fi
104
105 if [[ "${PATCH_BRANCH}" == "x-rcN" ]]; then
106 UTIL_BRANCH="x-rcN"
107 elif [[ "${KV_MINOR}" -gt "${UTIL_MAX_VER}" ]]; then
108 UTIL_BRANCH="${UTIL_MAX_VER}"
109 else
110 UTIL_BRANCH="${KV_MINOR}"
111 fi
112
113 if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < "${FILESDIR}"/${PN}-standalone-${PATCH_BRANCH}.patch >/dev/null && \
114 patch -p1 --dry-run --force -R -d ${KV_DIR} < "${FILESDIR}"/${PN}-base-${PATCH_BRANCH}.patch >/dev/null ); then
115 if use kernel-patch; then
116 cd ${KV_DIR}
117 ewarn "Patching your kernel..."
118 patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${FILESDIR}"/${PN}-standalone-${PATCH_BRANCH}.patch >/dev/null
119 patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${FILESDIR}"/${PN}-base-${PATCH_BRANCH}.patch >/dev/null
120 epatch "${FILESDIR}"/${PN}-{base,standalone}-${PATCH_BRANCH}.patch
121 ewarn "You need to compile your kernel with the applied patch"
122 ewarn "to be able to load and use the aufs kernel module"
123 else
124 eerror "You need to apply a patch to your kernel to compile and run the ${PN} module"
125 eerror "Either enable the kernel-patch useflag to do it with this ebuild"
126 eerror "or apply ${FILESDIR}/${PN}-base-${PATCH_BRANCH}.patch and"
127 eerror "${FILESDIR}/${PN}-standalone-${PATCH_BRANCH}.patch by hand"
128 die "missing kernel patch, please apply it first"
129 fi
130 fi
131 export PKG_SETUP_HAS_BEEN_RAN=1
132 }
133
134 set_config() {
135 for option in $*; do
136 grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option"
137 sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die
138 done
139 }
140
141 src_prepare() {
142 local module_branch=origin/${PN}.${PATCH_BRANCH}
143 local util_branch=origin/${PN}.${UTIL_BRANCH}
144
145 einfo "Using for module creation branch ${module_branch}"
146 git checkout -q -b local-gentoo ${module_branch} || die
147
148 # All config options to off
149 sed "s:= y:=:g" -i config.mk || die
150
151 set_config RDU BRANCH_MAX_127 SBILIST
152
153 use debug && set_config DEBUG
154 use fuse && set_config BR_FUSE POLL
155 use hfs && set_config BR_HFSPLUS
156 use inotify && set_config HNOTIFY HFSNOTIFY
157 use nfs && set_config EXPORT
158 use nfs && use amd64 && set_config INO_T_64
159 use ramfs && set_config BR_RAMFS
160
161 use pax_kernel && epatch "${FILESDIR}"/pax.patch
162
163 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die
164 sed -i "s:__user::g" include/linux/aufs_type.h || die
165
166 cd "${WORKDIR}"/${PN/3}-util
167
168 einfo "Using for utils building branch ${util_branch}"
169 git checkout -b local-gentoo ${util_branch} || die
170 sed -i "/LDFLAGS += -static -s/d" Makefile || die
171 sed -i -e "s:m 644 -s:m 644:g" -e "s:/usr/lib:/usr/$(get_libdir):g" libau/Makefile || die
172 }
173
174 src_compile() {
175 local ARCH=x86
176
177 emake CC=$(tc-getCC) CONFIG_AUFS_FS=m KDIR=${KV_DIR}
178
179 cd "${WORKDIR}"/${PN/3}-util
180 emake CC=$(tc-getCC) AR=$(tc-getAR) KDIR=${KV_DIR} C_INCLUDE_PATH="${S}"/include
181 }
182
183 src_install() {
184 linux-mod_src_install
185
186 insinto /usr/share/doc/${PF}
187
188 use doc && doins -r Documentation
189
190 dodoc Documentation/filesystems/aufs/README
191
192 cd "${WORKDIR}"/${PN/3}-util
193 emake DESTDIR="${D}" KDIR=${KV_DIR} install
194
195 newdoc README README-utils
196 }