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