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