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_p20130519.ebuild
Date: Mon, 20 May 2013 18:23:28
Message-Id: 20130520182325.A89902171D@flycatcher.gentoo.org
1 jlec 13/05/20 18:23:25
2
3 Modified: ChangeLog
4 Added: aufs3-3_p20130519.ebuild
5 Log:
6 sys-fs/aufs3: Bump to latest aufs3 release
7
8 (Portage version: 2.2.0_alpha176/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
9
10 Revision Changes Path
11 1.59 sys-fs/aufs3/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.59&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.59&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?r1=1.58&r2=1.59
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v
20 retrieving revision 1.58
21 retrieving revision 1.59
22 diff -u -r1.58 -r1.59
23 --- ChangeLog 9 May 2013 19:37:31 -0000 1.58
24 +++ ChangeLog 20 May 2013 18:23:25 -0000 1.59
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-fs/aufs3
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.58 2013/05/09 19:37:31 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.59 2013/05/20 18:23:25 jlec Exp $
30 +
31 +*aufs3-3_p20130519 (20 May 2013)
32 +
33 + 20 May 2013; Justin Lecher <jlec@g.o> +aufs3-3_p20130519.ebuild:
34 + Bump to latest aufs3 release
35
36 *aufs3-3_p20130506 (09 May 2013)
37
38
39
40
41 1.1 sys-fs/aufs3/aufs3-3_p20130519.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20130519.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20130519.ebuild?rev=1.1&content-type=text/plain
45
46 Index: aufs3-3_p20130519.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/aufs3-3_p20130519.ebuild,v 1.1 2013/05/20 18:23:25 jlec Exp $
51
52 EAPI=5
53
54 inherit eutils flag-o-matic linux-info linux-mod multilib toolchain-funcs
55
56 AUFS_VERSION="${PV%%_p*}"
57 # highest branch version
58 PATCH_MAX_VER=9
59 # highest supported version
60 KERN_MAX_VER=10
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/aufs3-standalone-${PV}.tar.xz"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs"
70
71 DEPEND="
72 dev-util/patchutils
73 dev-vcs/git"
74 RDEPEND="
75 sys-fs/aufs-util
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+=" ~EXPERIMENTAL !AUFS_FS"
85 use inotify && CONFIG_CHECK+=" ~FSNOTIFY"
86 use nfs && CONFIG_CHECK+=" EXPORTFS"
87 use fuse && CONFIG_CHECK+=" ~FUSE_FS"
88 use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS"
89 use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources"
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 pushd "${T}" &> /dev/null
107 unpack ${A}
108 cd ${PN}-standalone || die
109 local module_branch=origin/${PN}.${PATCH_BRANCH}
110 git checkout -q -b local-gentoo ${module_branch} || die
111 combinediff ${PN}-base.patch ${PN}-standalone.patch > ${PN}-standalone-base-combined.patch
112 if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-combined.patch > /dev/null ); then
113 if use kernel-patch; then
114 cd ${KV_DIR}
115 ewarn "Patching your kernel..."
116 patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-combined.patch >/dev/null
117 epatch "${T}"/${PN}-standalone/${PN}-standalone-base-combined.patch
118 ewarn "You need to compile your kernel with the applied patch"
119 ewarn "to be able to load and use the aufs kernel module"
120 else
121 eerror "You need to apply a patch to your kernel to compile and run the ${PN} module"
122 eerror "Either enable the kernel-patch useflag to do it with this ebuild"
123 eerror "or apply ${EPRFIX}/usr/share/doc/${PF}/${PN}-standalone-base-combined.patch by hand"
124 die "missing kernel patch, please apply it first"
125 fi
126 fi
127 popd &> /dev/null
128 export PKG_SETUP_HAS_BEEN_RAN=1
129 }
130
131 set_config() {
132 for option in $*; do
133 grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option"
134 sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die
135 done
136 }
137
138 src_prepare() {
139 local module_branch=origin/${PN}.${PATCH_BRANCH}
140
141 einfo "Using for module creation branch ${module_branch}"
142 git checkout -q -b local-gentoo ${module_branch} || die
143
144 # All config options to off
145 sed "s:= y:=:g" -i config.mk || die
146
147 set_config RDU BRANCH_MAX_127 SBILIST
148
149 use debug && set_config DEBUG
150 use fuse && set_config BR_FUSE POLL
151 use hfs && set_config BR_HFSPLUS
152 use inotify && set_config HNOTIFY HFSNOTIFY
153 use nfs && set_config EXPORT
154 use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64
155 use ramfs && set_config BR_RAMFS
156
157 use pax_kernel && epatch "${FILESDIR}"/pax-3.patch
158
159 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die
160 }
161
162 src_compile() {
163 local ARCH=x86
164
165 emake \
166 CC=$(tc-getCC) \
167 LD=$(tc-getLD) \
168 LDFLAGS="$(raw-ldflags)" \
169 ARCH=$(tc-arch-kernel) \
170 CONFIG_AUFS_FS=m \
171 KDIR="${KV_OUT_DIR}"
172 }
173
174 src_install() {
175 linux-mod_src_install
176
177 insinto /usr/share/doc/${PF}
178
179 use doc && doins -r Documentation
180
181 use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-combined.patch
182
183 dodoc Documentation/filesystems/aufs/README
184 }