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