1 |
jlec 14/01/28 11:20:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: aufs3-3_p20140127.ebuild |
5 |
Removed: aufs3-3_p20140121.ebuild |
6 |
Log: |
7 |
sys-fs/aufs3: Set correct release date |
8 |
|
9 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
10 |
|
11 |
Revision Changes Path |
12 |
1.84 sys-fs/aufs3/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.84&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.84&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?r1=1.83&r2=1.84 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v |
21 |
retrieving revision 1.83 |
22 |
retrieving revision 1.84 |
23 |
diff -u -r1.83 -r1.84 |
24 |
--- ChangeLog 27 Jan 2014 07:29:27 -0000 1.83 |
25 |
+++ ChangeLog 28 Jan 2014 11:20:02 -0000 1.84 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sys-fs/aufs3 |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.83 2014/01/27 07:29:27 jlec Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.84 2014/01/28 11:20:02 jlec Exp $ |
31 |
+ |
32 |
+*aufs3-3_p20140127 (28 Jan 2014) |
33 |
+ |
34 |
+ 28 Jan 2014; Justin Lecher <jlec@g.o> -aufs3-3_p20140121.ebuild, |
35 |
+ +aufs3-3_p20140127.ebuild: |
36 |
+ Set correct release date |
37 |
|
38 |
*aufs3-3_p20140121 (27 Jan 2014) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-fs/aufs3/aufs3-3_p20140127.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140127.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140127.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: aufs3-3_p20140127.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 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_p20140127.ebuild,v 1.1 2014/01/28 11:20:02 jlec Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
inherit eutils flag-o-matic linux-info linux-mod multilib toolchain-funcs |
57 |
|
58 |
AUFS_VERSION="${PV%%_p*}" |
59 |
# highest branch version |
60 |
PATCH_MAX_VER=13 |
61 |
# highest supported version |
62 |
KERN_MAX_VER=14 |
63 |
# lowest supported version |
64 |
KERN_MIN_VER=10 |
65 |
|
66 |
DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
67 |
HOMEPAGE="http://aufs.sourceforge.net/" |
68 |
SRC_URI="http://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
69 |
|
70 |
LICENSE="GPL-2" |
71 |
SLOT="0" |
72 |
KEYWORDS="~amd64 ~x86" |
73 |
IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
74 |
|
75 |
DEPEND=" |
76 |
dev-util/patchutils |
77 |
dev-vcs/git" |
78 |
RDEPEND=" |
79 |
sys-fs/aufs-util |
80 |
!sys-fs/aufs |
81 |
!sys-fs/aufs2" |
82 |
|
83 |
S="${WORKDIR}"/${PN}-standalone |
84 |
|
85 |
MODULE_NAMES="aufs(misc:${S})" |
86 |
|
87 |
pkg_setup() { |
88 |
CONFIG_CHECK+=" !AUFS_FS" |
89 |
use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
90 |
use nfs && CONFIG_CHECK+=" EXPORTFS" |
91 |
use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
92 |
use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
93 |
use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
94 |
|
95 |
# this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
96 |
[ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
97 |
|
98 |
get_version |
99 |
kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
100 |
kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
101 |
|
102 |
linux-mod_pkg_setup |
103 |
|
104 |
if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
105 |
PATCH_BRANCH="x-rcN" |
106 |
elif [[ "${KV_MINOR}" == "10" ]] || [[ "${KV_MINOR}" == "12" ]]; then |
107 |
PATCH_BRANCH="${KV_MINOR}".x |
108 |
else |
109 |
PATCH_BRANCH="${KV_MINOR}" |
110 |
fi |
111 |
|
112 |
case ${KV_EXTRA} in |
113 |
"") |
114 |
elog "It seems you are using vanilla-sources with aufs3" |
115 |
elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
116 |
elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
117 |
;; |
118 |
"-gentoo") |
119 |
elog "It seems you are using gentoo-sources with aufs3" |
120 |
elog "Please use sys-kernel/aufs-sources" |
121 |
elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
122 |
;; |
123 |
esac |
124 |
|
125 |
pushd "${T}" &> /dev/null |
126 |
unpack ${A} |
127 |
cd ${PN}-standalone || die |
128 |
local module_branch=origin/${PN}.${PATCH_BRANCH} |
129 |
git checkout -q -b local-gentoo ${module_branch} || die |
130 |
combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
131 |
combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
132 |
if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
133 |
if use kernel-patch; then |
134 |
cd ${KV_DIR} |
135 |
ewarn "Patching your kernel..." |
136 |
patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
137 |
epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
138 |
ewarn "You need to compile your kernel with the applied patch" |
139 |
ewarn "to be able to load and use the aufs kernel module" |
140 |
else |
141 |
eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
142 |
eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
143 |
eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
144 |
die "missing kernel patch, please apply it first" |
145 |
fi |
146 |
fi |
147 |
popd &> /dev/null |
148 |
export PKG_SETUP_HAS_BEEN_RAN=1 |
149 |
} |
150 |
|
151 |
set_config() { |
152 |
for option in $*; do |
153 |
grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
154 |
sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
155 |
done |
156 |
} |
157 |
|
158 |
src_prepare() { |
159 |
local module_branch=origin/${PN}.${PATCH_BRANCH} |
160 |
|
161 |
einfo "Using for module creation branch ${module_branch}" |
162 |
git checkout -q -b local-gentoo ${module_branch} || die |
163 |
|
164 |
# All config options to off |
165 |
sed "s:= y:=:g" -i config.mk || die |
166 |
|
167 |
set_config RDU BRANCH_MAX_127 SBILIST |
168 |
|
169 |
use debug && set_config DEBUG |
170 |
use fuse && set_config BR_FUSE POLL |
171 |
use hfs && set_config BR_HFSPLUS |
172 |
use inotify && set_config HNOTIFY HFSNOTIFY |
173 |
use nfs && set_config EXPORT |
174 |
use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
175 |
use ramfs && set_config BR_RAMFS |
176 |
|
177 |
if use pax_kernel; then |
178 |
if kernel_is ge 3 11; then |
179 |
epatch "${FILESDIR}"/pax-3.11.patch |
180 |
else |
181 |
epatch "${FILESDIR}"/pax-3.patch |
182 |
fi |
183 |
fi |
184 |
|
185 |
sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
186 |
} |
187 |
|
188 |
src_compile() { |
189 |
local ARCH=x86 |
190 |
|
191 |
emake \ |
192 |
CC=$(tc-getCC) \ |
193 |
LD=$(tc-getLD) \ |
194 |
LDFLAGS="$(raw-ldflags)" \ |
195 |
ARCH=$(tc-arch-kernel) \ |
196 |
CONFIG_AUFS_FS=m \ |
197 |
KDIR="${KV_OUT_DIR}" |
198 |
} |
199 |
|
200 |
src_install() { |
201 |
linux-mod_src_install |
202 |
|
203 |
insinto /usr/share/doc/${PF} |
204 |
|
205 |
use doc && doins -r Documentation |
206 |
|
207 |
use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
208 |
|
209 |
dodoc Documentation/filesystems/aufs/README |
210 |
} |