1 |
mabi 07/10/05 14:03:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pvfs2-2.6.3.ebuild |
5 |
Log: |
6 |
revbump + cvs backport of kmem fix |
7 |
(Portage version: 2.1.3.11) |
8 |
|
9 |
Revision Changes Path |
10 |
1.6 sys-cluster/pvfs2/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/pvfs2/ChangeLog?rev=1.6&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/pvfs2/ChangeLog?rev=1.6&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/pvfs2/ChangeLog?r1=1.5&r2=1.6 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/pvfs2/ChangeLog,v |
19 |
retrieving revision 1.5 |
20 |
retrieving revision 1.6 |
21 |
diff -u -r1.5 -r1.6 |
22 |
--- ChangeLog 26 Apr 2007 06:18:11 -0000 1.5 |
23 |
+++ ChangeLog 5 Oct 2007 14:03:12 -0000 1.6 |
24 |
@@ -1,6 +1,17 @@ |
25 |
# ChangeLog for sys-cluster/pvfs2 |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvfs2/ChangeLog,v 1.5 2007/04/26 06:18:11 dberkholz Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvfs2/ChangeLog,v 1.6 2007/10/05 14:03:12 mabi Exp $ |
29 |
+ |
30 |
+*pvfs2-2.6.3 (05 Oct 2007) |
31 |
+ |
32 |
+ 05 Oct 2007; Matti Bickel <mabi@g.o> +files/2.6.3-as-needed.patch, |
33 |
+ +files/2.6.3-kmem-and-dtor-fix.patch, |
34 |
+ +files/2.6.3-link-librt-properly.patch, |
35 |
+ +files/2.6.3-no-pointer-sign.patch, |
36 |
+ +files/2.6.3-register_sysctl_table.patch, +files/2.6.3-soname.patch, |
37 |
+ +files/pvfs2-client.conf, +files/pvfs2-client-init.d, |
38 |
+ +files/pvfs2-server.conf, +files/pvfs2-server.rc, +pvfs2-2.6.3.ebuild: |
39 |
+ revbump to 2.6.3 + backported kmem fix |
40 |
|
41 |
26 Apr 2007; Donnie Berkholz <dberkholz@g.o>; metadata.xml: |
42 |
Update for cluster herd split to hp-cluster and ha-cluster. |
43 |
|
44 |
|
45 |
|
46 |
1.1 sys-cluster/pvfs2/pvfs2-2.6.3.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/pvfs2/pvfs2-2.6.3.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/pvfs2/pvfs2-2.6.3.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: pvfs2-2.6.3.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2007 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvfs2/pvfs2-2.6.3.ebuild,v 1.1 2007/10/05 14:03:12 mabi Exp $ |
56 |
|
57 |
inherit linux-mod autotools toolchain-funcs |
58 |
|
59 |
MY_PN="${PN%[0-9]*}" |
60 |
MY_P="${MY_PN}-${PV}" |
61 |
DESCRIPTION="Parallel Virtual File System version 2" |
62 |
HOMEPAGE="http://www.pvfs.org/pvfs2/" |
63 |
SRC_URI="ftp://ftp.parl.clemson.edu/pub/pvfs2/${MY_P}.tar.gz" |
64 |
IUSE="gtk static doc" |
65 |
RDEPEND="gtk? ( >=x11-libs/gtk+-2 ) |
66 |
sys-libs/db" |
67 |
DEPEND="${RDEPEND} |
68 |
virtual/linux-sources" |
69 |
SLOT="0" |
70 |
LICENSE="GPL-2" |
71 |
KEYWORDS="~ppc ~x86" |
72 |
S="${WORKDIR}/${MY_P}" |
73 |
|
74 |
#Without this, the make kmod_install in src_install() would fail. |
75 |
#ARCH=$(tc-arch-kernel) |
76 |
|
77 |
pkg_setup() { |
78 |
linux-mod_pkg_setup |
79 |
|
80 |
if kernel_is 2 4; then |
81 |
BUILD_TARGETS="just_kmod24" |
82 |
ECONF_PARAMS="--with-kernel24=${KV_DIR}" |
83 |
MODULE_NAMES="pvfs2(fs::src/kernel/linux-2.4)" |
84 |
else |
85 |
BUILD_TARGETS="just_kmod" |
86 |
ECONF_PARAMS="--with-kernel=${KV_DIR} --enable-verbose-build" |
87 |
MODULE_NAMES="pvfs2(fs::src/kernel/linux-2.6)" |
88 |
fi |
89 |
|
90 |
#Notice I don't include --disable-static because it makes the linker fail due to a missing library |
91 |
#needed by LIBS_THREADED += -lpvfs2-threaded. However that library is only compiled if static is enabled. Anyway |
92 |
#it is used to build pvfs2-client-core-threaded, which is not installed by make kmod_install (unstable perhaps?) |
93 |
ECONF_PARAMS="${ECONF_PARAMS} --enable-mmap-racache $(use_enable !static shared)" |
94 |
ECONF_PARAMS="${ECONF_PARAMS} $(use_enable gtk karma)" |
95 |
} |
96 |
|
97 |
src_unpack() { |
98 |
unpack ${A} |
99 |
cd "${S}" |
100 |
epatch "${FILESDIR}"/${PN}-1.5.1-destdir.patch |
101 |
epatch "${FILESDIR}"/${PV}-link-librt-properly.patch |
102 |
epatch "${FILESDIR}"/${PV}-soname.patch |
103 |
epatch "${FILESDIR}"/${PV}-as-needed.patch |
104 |
|
105 |
#Fix so we can install kernapps separate from kmod_install |
106 |
sed -i '/^kmod_install: kmod/{ |
107 |
s/\(kmod_install:.*kernapps\)\(.*\)/\1_install\2\n.PHONY: kernapps_install\nkernapps_install: kernapps/}' Makefile.in |
108 |
sed -i '/^kmod24_install: kmod/{ |
109 |
s/\(kmod24_install:.*kernapps\)\(.*\)/\1_install\2\n.PHONY: kernapps_install\nkernapps_install: kernapps/}' Makefile.in |
110 |
|
111 |
if kernel_is gt 2 6 20 ; then |
112 |
epatch "${FILESDIR}"/${PV}-register_sysctl_table.patch |
113 |
fi |
114 |
|
115 |
if kernel_is ge 2 6 22 ; then |
116 |
epatch "${FILESDIR}"/${PV}-kmem-and-dtor-fix.patch |
117 |
fi |
118 |
|
119 |
#This is needed when gcc doesn't support -Wno-pointer-sign. Now it will give us some warnings so it also removes -Werror. |
120 |
#It's unsafe, not recommended |
121 |
if [ "$(gcc-major-version)" -lt "4" ]; then |
122 |
ewarn "It's recommended to use gcc >= 4.0 to avoid the following patch" |
123 |
epatch "${FILESDIR}"/${PV}-no-pointer-sign.patch |
124 |
fi |
125 |
|
126 |
AT_M4DIR="maint/config" eautoreconf |
127 |
} |
128 |
|
129 |
src_compile() { |
130 |
econf ${ECONF_PARAMS} || die "Unable to run econf ${ECONF_PARAMS}" |
131 |
linux-mod_src_compile || die "Unable to linux-mod_src_compile" |
132 |
emake kernapps || die "Unable to make kernapps." |
133 |
emake all || die "Unable to make all." |
134 |
} |
135 |
|
136 |
src_install() { |
137 |
linux-mod_src_install || die "linux-mod_src_install failed" |
138 |
emake DESTDIR="${D}" kernapps_install || die "kernapps_install failed" |
139 |
emake DESTDIR="${D}" install || die "install failed" |
140 |
newinitd "${FILESDIR}"/pvfs2-server.rc pvfs2-server |
141 |
newconfd "${FILESDIR}"/pvfs2-server.conf pvfs2-server |
142 |
newinitd "${FILESDIR}"/pvfs2-client-init.d pvfs2-client |
143 |
newconfd "${FILESDIR}"/pvfs2-client.conf pvfs2-client |
144 |
dodoc AUTHORS CREDITS ChangeLog INSTALL README |
145 |
docinto examples |
146 |
dodoc examples/{fs.conf,pvfs2-server.rc,server.conf-localhost} |
147 |
# this is LARGE (~5mb) |
148 |
if use doc; then |
149 |
docdir="/usr/share/doc/${PF}/" |
150 |
cp -pPR "${S}"/doc "${D}${docdir}" |
151 |
rm -rf "${D}${docdir}"/man |
152 |
fi |
153 |
} |
154 |
|
155 |
pkg_preinst() { |
156 |
linux-mod_pkg_preinst |
157 |
} |
158 |
|
159 |
pkg_postinst() { |
160 |
linux-mod_pkg_postinst |
161 |
elog "To enable PVFS2 Server on boot you will have to add it to the" |
162 |
elog "default profile, issue the following command as root to do so." |
163 |
elog |
164 |
elog "rc-update add pvfs2-server default" |
165 |
} |
166 |
|
167 |
|
168 |
|
169 |
-- |
170 |
gentoo-commits@g.o mailing list |