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