1 |
jlec 12/05/31 16:13:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: aufs3-3_p20120531.ebuild |
5 |
Log: |
6 |
sys-fs/aufs3: Version Bump, add comments on version handling |
7 |
|
8 |
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.18 sys-fs/aufs3/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.18&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.18&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?r1=1.17&r2=1.18 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v |
20 |
retrieving revision 1.17 |
21 |
retrieving revision 1.18 |
22 |
diff -u -r1.17 -r1.18 |
23 |
--- ChangeLog 24 May 2012 02:55:43 -0000 1.17 |
24 |
+++ ChangeLog 31 May 2012 16:13:46 -0000 1.18 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sys-fs/aufs3 |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.17 2012/05/24 02:55:43 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.18 2012/05/31 16:13:46 jlec Exp $ |
30 |
+ |
31 |
+*aufs3-3_p20120531 (31 May 2012) |
32 |
+ |
33 |
+ 31 May 2012; Justin Lecher <jlec@g.o> +aufs3-3_p20120531.ebuild: |
34 |
+ Version Bump, add comments on version handling |
35 |
|
36 |
24 May 2012; Mike Frysinger <vapier@g.o> aufs3-3_p20120109.ebuild, |
37 |
aufs3-3_p20120430.ebuild, aufs3-3_p20120523.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-fs/aufs3/aufs3-3_p20120531.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20120531.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20120531.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: aufs3-3_p20120531.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 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_p20120531.ebuild,v 1.1 2012/05/31 16:13:46 jlec Exp $ |
51 |
|
52 |
EAPI=4 |
53 |
|
54 |
inherit linux-mod multilib toolchain-funcs eutils |
55 |
|
56 |
AUFS_VERSION="${PV%%_p*}" |
57 |
# highest branch version |
58 |
PATCH_MAX_VER=4 |
59 |
# highest supported version |
60 |
KERN_MAX_VER=5 |
61 |
# highest util branch version |
62 |
UTIL_MAX_VER=0 |
63 |
|
64 |
DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
65 |
HOMEPAGE="http://aufs.sourceforge.net/" |
66 |
SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz" |
67 |
|
68 |
LICENSE="GPL-2" |
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~x86" |
71 |
IUSE="debug doc fuse pax_kernel hfs inotify kernel-patch nfs ramfs" |
72 |
|
73 |
DEPEND="dev-vcs/git" |
74 |
RDEPEND=" |
75 |
!sys-fs/aufs |
76 |
!sys-fs/aufs2" |
77 |
|
78 |
S="${WORKDIR}"/${PN}-standalone |
79 |
|
80 |
MODULE_NAMES="aufs(misc:${S})" |
81 |
|
82 |
pkg_setup() { |
83 |
CONFIG_CHECK="${CONFIG_CHECK} ~EXPERIMENTAL" |
84 |
use inotify && CONFIG_CHECK="${CONFIG_CHECK} ~FSNOTIFY" |
85 |
use nfs && CONFIG_CHECK="${CONFIG_CHECK} EXPORTFS" |
86 |
use fuse && CONFIG_CHECK="${CONFIG_CHECK} ~FUSE_FS" |
87 |
use hfs && CONFIG_CHECK="${CONFIG_CHECK} ~HFSPLUS_FS" |
88 |
|
89 |
# this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
90 |
[ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
91 |
|
92 |
get_version |
93 |
kernel_is lt 3 0 0 && die "kernel too old, Please use sys-fs/aufs2" |
94 |
kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
95 |
|
96 |
linux-mod_pkg_setup |
97 |
|
98 |
if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
99 |
PATCH_BRANCH="x-rcN" |
100 |
else |
101 |
PATCH_BRANCH="${KV_MINOR}" |
102 |
fi |
103 |
|
104 |
if [[ "${PATCH_BRANCH}" == "x-rcN" ]]; then |
105 |
UTIL_BRANCH="x-rcN" |
106 |
elif [[ "${KV_MINOR}" -gt "${UTIL_MAX_VER}" ]]; then |
107 |
UTIL_BRANCH="${UTIL_MAX_VER}" |
108 |
else |
109 |
UTIL_BRANCH="${KV_MINOR}" |
110 |
fi |
111 |
|
112 |
if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < "${FILESDIR}"/${PN}-standalone-${PATCH_BRANCH}.patch >/dev/null && \ |
113 |
patch -p1 --dry-run --force -R -d ${KV_DIR} < "${FILESDIR}"/${PN}-base-${PATCH_BRANCH}.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} < "${FILESDIR}"/${PN}-standalone-${PATCH_BRANCH}.patch >/dev/null |
118 |
patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${FILESDIR}"/${PN}-base-${PATCH_BRANCH}.patch >/dev/null |
119 |
epatch "${FILESDIR}"/${PN}-{base,standalone}-${PATCH_BRANCH}.patch |
120 |
ewarn "You need to compile your kernel with the applied patch" |
121 |
ewarn "to be able to load and use the aufs kernel module" |
122 |
else |
123 |
eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
124 |
eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
125 |
eerror "or apply ${FILESDIR}/${PN}-base-${PATCH_BRANCH}.patch and" |
126 |
eerror "${FILESDIR}/${PN}-standalone-${PATCH_BRANCH}.patch by hand" |
127 |
die "missing kernel patch, please apply it first" |
128 |
fi |
129 |
fi |
130 |
export PKG_SETUP_HAS_BEEN_RAN=1 |
131 |
} |
132 |
|
133 |
set_config() { |
134 |
for option in $*; do |
135 |
grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
136 |
sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
137 |
done |
138 |
} |
139 |
|
140 |
src_prepare() { |
141 |
local module_branch=origin/${PN}.${PATCH_BRANCH} |
142 |
local util_branch=origin/${PN}.${UTIL_BRANCH} |
143 |
|
144 |
einfo "Using for module creation branch ${module_branch}" |
145 |
git checkout -q -b local-gentoo ${module_branch} || die |
146 |
|
147 |
# All config options to off |
148 |
sed "s:= y:=:g" -i config.mk || die |
149 |
|
150 |
set_config RDU BRANCH_MAX_127 SBILIST |
151 |
|
152 |
use debug && set_config DEBUG |
153 |
use fuse && set_config BR_FUSE POLL |
154 |
use hfs && set_config BR_HFSPLUS |
155 |
use inotify && set_config HNOTIFY HFSNOTIFY |
156 |
use nfs && set_config EXPORT |
157 |
use nfs && use amd64 && set_config INO_T_64 |
158 |
use ramfs && set_config BR_RAMFS |
159 |
|
160 |
use pax_kernel && epatch "${FILESDIR}"/pax.patch |
161 |
|
162 |
sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
163 |
sed -i "s:__user::g" include/linux/aufs_type.h || die |
164 |
|
165 |
cd "${WORKDIR}"/${PN/3}-util |
166 |
|
167 |
einfo "Using for utils building branch ${util_branch}" |
168 |
git checkout -b local-gentoo ${util_branch} || die |
169 |
sed -i "/LDFLAGS += -static -s/d" Makefile || die |
170 |
sed -i -e "s:m 644 -s:m 644:g" -e "s:/usr/lib:/usr/$(get_libdir):g" libau/Makefile || die |
171 |
} |
172 |
|
173 |
src_compile() { |
174 |
local ARCH=x86 |
175 |
|
176 |
emake CC=$(tc-getCC) CONFIG_AUFS_FS=m KDIR=${KV_DIR} |
177 |
|
178 |
cd "${WORKDIR}"/${PN/3}-util |
179 |
emake CC=$(tc-getCC) AR=$(tc-getAR) KDIR=${KV_DIR} C_INCLUDE_PATH="${S}"/include |
180 |
} |
181 |
|
182 |
src_install() { |
183 |
linux-mod_src_install |
184 |
|
185 |
insinto /usr/share/doc/${PF} |
186 |
|
187 |
use doc && doins -r Documentation |
188 |
|
189 |
dodoc Documentation/filesystems/aufs/README |
190 |
|
191 |
cd "${WORKDIR}"/${PN/3}-util |
192 |
emake DESTDIR="${D}" KDIR=${KV_DIR} install |
193 |
|
194 |
newdoc README README-utils |
195 |
} |