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_p20130928.ebuild ChangeLog
Date: Sat, 28 Sep 2013 09:20:46
Message-Id: 20130928092039.DC95520036@flycatcher.gentoo.org
1 jlec 13/09/28 09:20:39
2
3 Modified: ChangeLog
4 Added: aufs3-3_p20130928.ebuild
5 Log:
6 sys-fs/aufs3: Bump to latest aufs3 release
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
9
10 Revision Changes Path
11 1.68 sys-fs/aufs3/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.68&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.68&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?r1=1.67&r2=1.68
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v
20 retrieving revision 1.67
21 retrieving revision 1.68
22 diff -u -r1.67 -r1.68
23 --- ChangeLog 16 Sep 2013 12:56:20 -0000 1.67
24 +++ ChangeLog 28 Sep 2013 09:20:39 -0000 1.68
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.67 2013/09/16 12:56:20 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.68 2013/09/28 09:20:39 jlec Exp $
30 +
31 +*aufs3-3_p20130928 (28 Sep 2013)
32 +
33 + 28 Sep 2013; Justin Lecher <jlec@g.o> +aufs3-3_p20130928.ebuild:
34 + Bump to latest aufs3 release
35
36 *aufs3-3_p20130915 (16 Sep 2013)
37
38
39
40
41 1.1 sys-fs/aufs3/aufs3-3_p20130928.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20130928.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20130928.ebuild?rev=1.1&content-type=text/plain
45
46 Index: aufs3-3_p20130928.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_p20130928.ebuild,v 1.1 2013/09/28 09:20:39 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=11
59 # highest supported version
60 KERN_MAX_VER=12
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 kernel_is lt 3 9 && CONFIG_CHECK+=" ~EXPERIMENTAL"
85 CONFIG_CHECK+=" !AUFS_FS"
86 use inotify && CONFIG_CHECK+=" ~FSNOTIFY"
87 use nfs && CONFIG_CHECK+=" EXPORTFS"
88 use fuse && CONFIG_CHECK+=" ~FUSE_FS"
89 use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS"
90 use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources"
91
92 # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system
93 [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return
94
95 get_version
96 kernel_is lt 3 0 0 && die "kernel too old, Please use sys-fs/aufs2"
97 kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new"
98
99 linux-mod_pkg_setup
100
101 if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then
102 PATCH_BRANCH="x-rcN"
103 else
104 PATCH_BRANCH="${KV_MINOR}"
105 fi
106
107 pushd "${T}" &> /dev/null
108 unpack ${A}
109 cd ${PN}-standalone || die
110 local module_branch=origin/${PN}.${PATCH_BRANCH}
111 git checkout -q -b local-gentoo ${module_branch} || die
112 combinediff ${PN}-base.patch ${PN}-standalone.patch > ${PN}-standalone-base-combined.patch
113 if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-combined.patch > /dev/null ); then
114 if use kernel-patch; then
115 cd ${KV_DIR}
116 ewarn "Patching your kernel..."
117 patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-combined.patch >/dev/null
118 epatch "${T}"/${PN}-standalone/${PN}-standalone-base-combined.patch
119 ewarn "You need to compile your kernel with the applied patch"
120 ewarn "to be able to load and use the aufs kernel module"
121 else
122 eerror "You need to apply a patch to your kernel to compile and run the ${PN} module"
123 eerror "Either enable the kernel-patch useflag to do it with this ebuild"
124 eerror "or apply ${EPRFIX}/usr/share/doc/${PF}/${PN}-standalone-base-combined.patch by hand"
125 die "missing kernel patch, please apply it first"
126 fi
127 fi
128 popd &> /dev/null
129 export PKG_SETUP_HAS_BEEN_RAN=1
130 }
131
132 set_config() {
133 for option in $*; do
134 grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option"
135 sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die
136 done
137 }
138
139 src_prepare() {
140 local module_branch=origin/${PN}.${PATCH_BRANCH}
141
142 einfo "Using for module creation branch ${module_branch}"
143 git checkout -q -b local-gentoo ${module_branch} || die
144
145 # All config options to off
146 sed "s:= y:=:g" -i config.mk || die
147
148 set_config RDU BRANCH_MAX_127 SBILIST
149
150 use debug && set_config DEBUG
151 use fuse && set_config BR_FUSE POLL
152 use hfs && set_config BR_HFSPLUS
153 use inotify && set_config HNOTIFY HFSNOTIFY
154 use nfs && set_config EXPORT
155 use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64
156 use ramfs && set_config BR_RAMFS
157
158 use pax_kernel && epatch "${FILESDIR}"/pax-3.patch
159
160 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die
161 }
162
163 src_compile() {
164 local ARCH=x86
165
166 emake \
167 CC=$(tc-getCC) \
168 LD=$(tc-getLD) \
169 LDFLAGS="$(raw-ldflags)" \
170 ARCH=$(tc-arch-kernel) \
171 CONFIG_AUFS_FS=m \
172 KDIR="${KV_OUT_DIR}"
173 }
174
175 src_install() {
176 linux-mod_src_install
177
178 insinto /usr/share/doc/${PF}
179
180 use doc && doins -r Documentation
181
182 use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-combined.patch
183
184 dodoc Documentation/filesystems/aufs/README
185 }