1 |
jlec 13/05/01 11:30:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: aufs3-3_p20130429.ebuild |
5 |
Log: |
6 |
sys-fs/aufs3: Version Bump, take latest pax patch from pentoo, thanks Zero_Chaos for it |
7 |
|
8 |
(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916) |
9 |
|
10 |
Revision Changes Path |
11 |
1.57 sys-fs/aufs3/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.57&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.57&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?r1=1.56&r2=1.57 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v |
20 |
retrieving revision 1.56 |
21 |
retrieving revision 1.57 |
22 |
diff -u -r1.56 -r1.57 |
23 |
--- ChangeLog 27 Apr 2013 10:03:28 -0000 1.56 |
24 |
+++ ChangeLog 1 May 2013 11:30:27 -0000 1.57 |
25 |
@@ -1,6 +1,12 @@ |
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.56 2013/04/27 10:03:28 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.57 2013/05/01 11:30:27 jlec Exp $ |
30 |
+ |
31 |
+*aufs3-3_p20130429 (01 May 2013) |
32 |
+ |
33 |
+ 01 May 2013; Justin Lecher <jlec@g.o> +aufs3-3_p20130429.ebuild, |
34 |
+ +files/pax-3.patch: |
35 |
+ Version Bump, take latest pax patch from pentoo, thanks Zero_Chaos for it |
36 |
|
37 |
*aufs3-3_p20130422 (27 Apr 2013) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-fs/aufs3/aufs3-3_p20130429.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20130429.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20130429.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: aufs3-3_p20130429.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/aufs3-3_p20130429.ebuild,v 1.1 2013/05/01 11:30:27 jlec Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
inherit eutils flag-o-matic linux-info linux-mod multilib toolchain-funcs |
56 |
|
57 |
AUFS_VERSION="${PV%%_p*}" |
58 |
# highest branch version |
59 |
PATCH_MAX_VER=8 |
60 |
# highest supported version |
61 |
KERN_MAX_VER=9 |
62 |
|
63 |
DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
64 |
HOMEPAGE="http://aufs.sourceforge.net/" |
65 |
SRC_URI="http://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
66 |
|
67 |
LICENSE="GPL-2" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~x86" |
70 |
IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
71 |
|
72 |
DEPEND=" |
73 |
dev-util/patchutils |
74 |
dev-vcs/git" |
75 |
RDEPEND=" |
76 |
sys-fs/aufs-util |
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+=" ~EXPERIMENTAL !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 |
} |