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_p20111205.ebuild ChangeLog
Date: Thu, 05 Jan 2012 16:17:41
Message-Id: 20120105161727.502BB2004B@flycatcher.gentoo.org
1 jlec 12/01/05 16:17:27
2
3 Modified: ChangeLog
4 Added: aufs3-3_p20111205.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.4 sys-fs/aufs3/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?r1=1.3&r2=1.4
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- ChangeLog 14 Nov 2011 10:50:01 -0000 1.3
24 +++ ChangeLog 5 Jan 2012 16:17:27 -0000 1.4
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-fs/aufs3
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.3 2011/11/14 10:50:01 jlec Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.4 2012/01/05 16:17:27 jlec Exp $
31 +
32 +*aufs3-3_p20111205 (05 Jan 2012)
33 +
34 + 05 Jan 2012; Justin Lecher <jlec@g.o> +files/aufs3-base-x-rcN.patch,
35 + +files/aufs3-fix-export-__devcgroup_inode_permission.patch,
36 + +files/aufs3-standalone-x-rcN.patch, +aufs3-3_p20111205.ebuild:
37 + Version Bump
38
39 *aufs3-3_p20111114 (14 Nov 2011)
40
41
42
43
44 1.1 sys-fs/aufs3/aufs3-3_p20111205.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20111205.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20111205.ebuild?rev=1.1&content-type=text/plain
48
49 Index: aufs3-3_p20111205.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/aufs3-3_p20111205.ebuild,v 1.1 2012/01/05 16:17:27 jlec Exp $
54
55 EAPI=4
56
57 inherit linux-mod multilib toolchain-funcs
58
59 AUFS_VERSION="${PV%%_p*}"
60 PATCH_VER=x-rcN
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 [[ -n ${PATCH_VER} ]] || PATCH_VER=${KV_MINOR}
97
98 if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < "${FILESDIR}"/${PN}-standalone-${PATCH_VER}.patch >/dev/null && \
99 patch -p1 --dry-run --force -R -d ${KV_DIR} < "${FILESDIR}"/${PN}-base-${PATCH_VER}.patch >/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}"/${PN}-standalone-${PATCH_VER}.patch >/dev/null
104 patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${FILESDIR}"/${PN}-base-${PATCH_VER}.patch >/dev/null
105 epatch "${FILESDIR}"/${PN}-{base,standalone}-${PATCH_VER}.patch
106 epatch "${FILESDIR}"/${PN}-fix-export-__devcgroup_inode_permission.patch
107 ewarn "You need to compile your kernel with the applied patch"
108 ewarn "to be able to load and use the aufs kernel module"
109 else
110 eerror "You need to apply a patch to your kernel to compile and run the ${PN} module"
111 eerror "Either enable the kernel-patch useflag to do it with this ebuild"
112 eerror "or apply ${FILESDIR}/${PN}-base-${PATCH_VER}.patch and"
113 eerror "${FILESDIR}/${PN}-standalone-${PATCH_VER}.patch by hand"
114 die "missing kernel patch, please apply it first"
115 fi
116 fi
117 export PKG_SETUP_HAS_BEEN_RAN=1
118 }
119
120 set_config() {
121 for option in $*; do
122 grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option"
123 sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die
124 done
125 }
126
127 src_prepare() {
128 local branch=origin/${PN}.${PATCH_VER}
129
130 git checkout -q -b local-gentoo $branch || die
131
132 # All config options to off
133 sed "s:= y:=:g" -i config.mk || die
134
135 set_config RDU BRANCH_MAX_127 SBILIST
136
137 use debug && set_config DEBUG
138 use fuse && set_config BR_FUSE POLL
139 use hfs && set_config BR_HFSPLUS
140 use inotify && set_config HNOTIFY HFSNOTIFY
141 use nfs && set_config EXPORT
142 use nfs && use amd64 && set_config INO_T_64
143 use ramfs && set_config BR_RAMFS
144
145 use pax_kernel && epatch "${FILESDIR}"/pax.patch
146
147 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die
148 sed -i "s:__user::g" include/linux/aufs_type.h || die
149
150 cd "${WORKDIR}"/${PN/3}-util
151 # PATCH_VER=0
152 git checkout -b local-gentoo origin/${PN}.${PATCH_VER}
153 sed -i "/LDFLAGS += -static -s/d" Makefile || die
154 sed -i -e "s:m 644 -s:m 644:g" -e "s:/usr/lib:/usr/$(get_libdir):g" libau/Makefile || die
155 }
156
157 src_compile() {
158 local ARCH=x86
159
160 emake CC=$(tc-getCC) CONFIG_AUFS_FS=m KDIR=${KV_DIR}
161
162 cd "${WORKDIR}"/${PN/3}-util
163 emake CC=$(tc-getCC) AR=$(tc-getAR) KDIR=${KV_DIR} C_INCLUDE_PATH="${S}"/include
164 }
165
166 src_install() {
167 linux-mod_src_install
168
169 insinto /usr/share/doc/${PF}
170
171 use doc && doins -r Documentation
172
173 dodoc README
174
175 cd "${WORKDIR}"/${PN/3}-util
176 emake DESTDIR="${D}" KDIR=${KV_DIR} install
177
178 newdoc README README-utils
179 }