1 |
stefaan 08/03/25 11:22:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openafs-1.5.34.ebuild openafs-1.4.7_pre1.ebuild |
5 |
Log: |
6 |
Version bumps to 1.4.7_pre1 and 1.5.34 |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.142 net-fs/openafs/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.142&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.142&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?r1=1.141&r2=1.142 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v |
19 |
retrieving revision 1.141 |
20 |
retrieving revision 1.142 |
21 |
diff -u -r1.141 -r1.142 |
22 |
--- ChangeLog 20 Mar 2008 15:10:59 -0000 1.141 |
23 |
+++ ChangeLog 25 Mar 2008 11:22:42 -0000 1.142 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for net-fs/openafs |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.141 2008/03/20 15:10:59 stefaan Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.142 2008/03/25 11:22:42 stefaan Exp $ |
29 |
+ |
30 |
+*openafs-1.5.34 (25 Mar 2008) |
31 |
+*openafs-1.4.7_pre1 (25 Mar 2008) |
32 |
+ |
33 |
+ 25 Mar 2008; Stefaan De Roeck <stefaan@g.o> |
34 |
+ +openafs-1.4.7_pre1.ebuild, +openafs-1.5.34.ebuild: |
35 |
+ Version bumps to 1.4.7_pre1 and 1.5.34 |
36 |
|
37 |
*openafs-1.5.33 (20 Mar 2008) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-fs/openafs/openafs-1.5.34.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.5.34.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.5.34.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: openafs-1.5.34.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.5.34.ebuild,v 1.1 2008/03/25 11:22:42 stefaan Exp $ |
52 |
|
53 |
inherit flag-o-matic eutils toolchain-funcs versionator pam |
54 |
|
55 |
PATCHVER=0.14 |
56 |
DESCRIPTION="The OpenAFS distributed file system" |
57 |
HOMEPAGE="http://www.openafs.org/" |
58 |
SRC_URI="http://openafs.org/dl/${PV}/${P}-src.tar.bz2 |
59 |
doc? ( http://openafs.org/dl/${PV}/${P}-doc.tar.bz2 ) |
60 |
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2" |
61 |
|
62 |
LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86" |
65 |
IUSE="debug kerberos pam doc" |
66 |
|
67 |
RDEPEND="~net-fs/openafs-kernel-${PV} |
68 |
pam? ( sys-libs/pam ) |
69 |
kerberos? ( virtual/krb5 )" |
70 |
|
71 |
PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2) |
72 |
CONFDIR=${WORKDIR}/gentoo/configs |
73 |
SCRIPTDIR=${WORKDIR}/gentoo/scripts |
74 |
|
75 |
src_unpack() { |
76 |
unpack ${A}; cd "${S}" |
77 |
|
78 |
# Apply patches to apply chosen compiler settings, fix the hardcoded paths |
79 |
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg |
80 |
EPATCH_SUFFIX="patch" epatch ${PATCHDIR} |
81 |
|
82 |
sed -i 's/^[ \t]*XCFLAGS.*//' src/cf/osconf.m4 |
83 |
|
84 |
./regen.sh || die "Failed: regenerating configure script" |
85 |
} |
86 |
|
87 |
src_compile() { |
88 |
# cannot use "use_with" macro, as --without-krb5-config crashes the econf |
89 |
local myconf="" |
90 |
if use kerberos; then |
91 |
myconf="--with-krb5-conf=$(type -p krb5-config)" |
92 |
fi |
93 |
|
94 |
# fix linux version at 2.6 |
95 |
AFS_SYSKVERS=26 \ |
96 |
XCFLAGS="${CFLAGS}" \ |
97 |
econf \ |
98 |
$(use_enable pam) \ |
99 |
$(use_enable debug) \ |
100 |
--enable-largefile-fileserver \ |
101 |
--enable-supergroups \ |
102 |
--disable-kernel-module \ |
103 |
${myconf} || die econf |
104 |
|
105 |
emake -j1 all_nolibafs || die "Build failed" |
106 |
} |
107 |
|
108 |
src_install() { |
109 |
make DESTDIR="${D}" install_nolibafs || die "Installing failed" |
110 |
|
111 |
# pam_afs and pam_afs.krb have been installed in irregular locations, fix |
112 |
if use pam; then |
113 |
dopammod "${D}"/usr/$(get_libdir)/pam_afs* |
114 |
rm -f "${D}"/usr/$(get_libdir)/pam_afs* |
115 |
fi |
116 |
|
117 |
# compile_et collides with com_err. Remove it from this package. |
118 |
rm "${D}"/usr/bin/compile_et |
119 |
|
120 |
# avoid collision with mit_krb5's version of kpasswd |
121 |
(cd "${D}"/usr/bin; mv kpasswd kpasswd_afs) |
122 |
use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1) |
123 |
|
124 |
# minimal documentation |
125 |
dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB |
126 |
|
127 |
# documentation package |
128 |
if use doc; then |
129 |
use pam && doman src/pam/pam_afs.5 |
130 |
|
131 |
cp -pPR doc/* "${D}"/usr/share/doc/${PF} |
132 |
fi |
133 |
|
134 |
# Gentoo related scripts |
135 |
newconfd ${CONFDIR}/openafs-client openafs-client |
136 |
newconfd ${CONFDIR}/openafs-server openafs-server |
137 |
newinitd ${SCRIPTDIR}/openafs-client openafs-client |
138 |
newinitd ${SCRIPTDIR}/openafs-server openafs-server |
139 |
|
140 |
# used directories: client |
141 |
keepdir /etc/openafs |
142 |
keepdir /var/cache/openafs |
143 |
|
144 |
# used directories: server |
145 |
keepdir /etc/openafs/server |
146 |
diropts -m0700 |
147 |
keepdir /var/lib/openafs |
148 |
keepdir /var/lib/openafs/db |
149 |
diropts -m0755 |
150 |
keepdir /var/lib/openafs/logs |
151 |
|
152 |
# link logfiles to /var/log |
153 |
dosym ../lib/openafs/logs /var/log/openafs |
154 |
} |
155 |
|
156 |
pkg_preinst() { |
157 |
## Somewhat intelligently install default configuration files |
158 |
## (when they are not present) |
159 |
# CellServDB |
160 |
if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \ |
161 |
|| grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null |
162 |
then |
163 |
cp ${CONFDIR}/CellServDB "${D}"etc/openafs |
164 |
fi |
165 |
# cacheinfo: use a default location cache, 200 megabyte in size |
166 |
# (should be safe for about any root partition, the user can increase |
167 |
# the size as required) |
168 |
if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then |
169 |
echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo |
170 |
fi |
171 |
# ThisCell: default to "openafs.org" |
172 |
if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then |
173 |
echo "openafs.org" > "${D}"etc/openafs/ThisCell |
174 |
fi |
175 |
} |
176 |
|
177 |
pkg_postinst() { |
178 |
elog |
179 |
elog "This installation should work out of the box (at least the" |
180 |
elog "client part doing global afs-cell browsing, unless you had" |
181 |
elog "a previous and different configuration). If you want to" |
182 |
elog "set up your own cell or modify the standard config," |
183 |
elog "please have a look at the Gentoo OpenAFS documentation" |
184 |
elog "(warning: it is not yet up to date wrt the new file locations)" |
185 |
elog |
186 |
elog "The documentation can be found at:" |
187 |
elog " http://www.gentoo.org/doc/en/openafs.xml" |
188 |
} |
189 |
|
190 |
|
191 |
|
192 |
1.1 net-fs/openafs/openafs-1.4.7_pre1.ebuild |
193 |
|
194 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.4.7_pre1.ebuild?rev=1.1&view=markup |
195 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.4.7_pre1.ebuild?rev=1.1&content-type=text/plain |
196 |
|
197 |
Index: openafs-1.4.7_pre1.ebuild |
198 |
=================================================================== |
199 |
# Copyright 1999-2008 Gentoo Foundation |
200 |
# Distributed under the terms of the GNU General Public License v2 |
201 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.7_pre1.ebuild,v 1.1 2008/03/25 11:22:42 stefaan Exp $ |
202 |
|
203 |
inherit flag-o-matic eutils toolchain-funcs versionator pam |
204 |
|
205 |
PATCHVER=0.14 |
206 |
MY_PV=${PV/_pre/pre} |
207 |
MY_P=${PN}-${MY_PV} |
208 |
S=${WORKDIR}/${MY_P} |
209 |
DESCRIPTION="The OpenAFS distributed file system" |
210 |
HOMEPAGE="http://www.openafs.org/" |
211 |
SRC_URI="http://openafs.org/dl/candidate/${MY_PV}/${MY_P}-src.tar.bz2 |
212 |
doc? ( http://openafs.org/dl/candidate/${MY_PV}/${MY_P}-doc.tar.bz2 ) |
213 |
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2" |
214 |
|
215 |
LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc" |
216 |
SLOT="0" |
217 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
218 |
IUSE="debug kerberos pam doc" |
219 |
|
220 |
RDEPEND="~net-fs/openafs-kernel-${PV} |
221 |
pam? ( sys-libs/pam ) |
222 |
kerberos? ( virtual/krb5 )" |
223 |
|
224 |
PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2) |
225 |
CONFDIR=${WORKDIR}/gentoo/configs |
226 |
SCRIPTDIR=${WORKDIR}/gentoo/scripts |
227 |
|
228 |
src_unpack() { |
229 |
unpack ${A}; cd "${S}" |
230 |
|
231 |
# Apply patches to apply chosen compiler settings, fix the hardcoded paths |
232 |
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg |
233 |
EPATCH_SUFFIX="patch" epatch ${PATCHDIR} |
234 |
|
235 |
# enable UCONTEXT on alpha |
236 |
epatch "${FILESDIR}"/openafs-alpha-ucontext.patch |
237 |
# don't use mapfiles to strip symbols (bug #202489) |
238 |
epatch "${FILESDIR}"/openafs-1.4.5-shared-libs.patch |
239 |
|
240 |
# disable XCFLAGS override |
241 |
sed -i 's/^[ \t]*XCFLAGS.*/:/' src/cf/osconf.m4 |
242 |
# disable compiler choice override |
243 |
sed -i 's/^[ \t]\+\(CC\|CCOBJ\|MT_CC\)="[^ ]*\(.*\)"/\1="${CC}\2"/' src/cf/osconf.m4 |
244 |
|
245 |
./regen.sh || die "Failed: regenerating configure script" |
246 |
} |
247 |
|
248 |
src_compile() { |
249 |
# cannot use "use_with" macro, as --without-krb5-config crashes the econf |
250 |
local myconf="" |
251 |
if use kerberos; then |
252 |
myconf="--with-krb5-conf=$(type -p krb5-config)" |
253 |
fi |
254 |
|
255 |
# fix linux version at 2.6 |
256 |
AFS_SYSKVERS=26 \ |
257 |
XCFLAGS="${CFLAGS}" \ |
258 |
econf \ |
259 |
$(use_enable pam) \ |
260 |
$(use_enable debug) \ |
261 |
--enable-largefile-fileserver \ |
262 |
--enable-supergroups \ |
263 |
--disable-kernel-module \ |
264 |
${myconf} || die econf |
265 |
|
266 |
emake -j1 all_nolibafs || die "Build failed" |
267 |
} |
268 |
|
269 |
src_install() { |
270 |
make DESTDIR="${D}" install_nolibafs || die "Installing failed" |
271 |
|
272 |
# pam_afs and pam_afs.krb have been installed in irregular locations, fix |
273 |
if use pam; then |
274 |
dopammod "${D}"/usr/$(get_libdir)/pam_afs* |
275 |
rm -f "${D}"/usr/$(get_libdir)/pam_afs* |
276 |
fi |
277 |
|
278 |
# compile_et collides with com_err. Remove it from this package. |
279 |
rm "${D}"/usr/bin/compile_et |
280 |
|
281 |
# avoid collision with mit_krb5's version of kpasswd |
282 |
(cd "${D}"/usr/bin; mv kpasswd kpasswd_afs) |
283 |
use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1) |
284 |
|
285 |
# minimal documentation |
286 |
dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB |
287 |
|
288 |
# documentation package |
289 |
if use doc; then |
290 |
use pam && doman src/pam/pam_afs.5 |
291 |
|
292 |
cp -pPR doc/* "${D}"/usr/share/doc/${PF} |
293 |
fi |
294 |
|
295 |
# Gentoo related scripts |
296 |
newconfd ${CONFDIR}/openafs-client openafs-client |
297 |
newconfd ${CONFDIR}/openafs-server openafs-server |
298 |
newinitd ${SCRIPTDIR}/openafs-client openafs-client |
299 |
newinitd ${SCRIPTDIR}/openafs-server openafs-server |
300 |
|
301 |
# used directories: client |
302 |
keepdir /etc/openafs |
303 |
keepdir /var/cache/openafs |
304 |
|
305 |
# used directories: server |
306 |
keepdir /etc/openafs/server |
307 |
diropts -m0700 |
308 |
keepdir /var/lib/openafs |
309 |
keepdir /var/lib/openafs/db |
310 |
diropts -m0755 |
311 |
keepdir /var/lib/openafs/logs |
312 |
|
313 |
# link logfiles to /var/log |
314 |
dosym ../lib/openafs/logs /var/log/openafs |
315 |
} |
316 |
|
317 |
pkg_preinst() { |
318 |
## Somewhat intelligently install default configuration files |
319 |
## (when they are not present) |
320 |
# CellServDB |
321 |
if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \ |
322 |
|| grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null |
323 |
then |
324 |
cp ${CONFDIR}/CellServDB "${D}"etc/openafs |
325 |
fi |
326 |
# cacheinfo: use a default location cache, 200 megabyte in size |
327 |
# (should be safe for about any root partition, the user can increase |
328 |
# the size as required) |
329 |
if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then |
330 |
echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo |
331 |
fi |
332 |
# ThisCell: default to "openafs.org" |
333 |
if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then |
334 |
echo "openafs.org" > "${D}"etc/openafs/ThisCell |
335 |
fi |
336 |
} |
337 |
|
338 |
pkg_postinst() { |
339 |
elog |
340 |
elog "This installation should work out of the box (at least the" |
341 |
elog "client part doing global afs-cell browsing, unless you had" |
342 |
elog "a previous and different configuration). If you want to" |
343 |
elog "set up your own cell or modify the standard config," |
344 |
elog "please have a look at the Gentoo OpenAFS documentation" |
345 |
elog "(warning: it is not yet up to date wrt the new file locations)" |
346 |
elog |
347 |
elog "The documentation can be found at:" |
348 |
elog " http://www.gentoo.org/doc/en/openafs.xml" |
349 |
} |
350 |
|
351 |
|
352 |
|
353 |
-- |
354 |
gentoo-commits@l.g.o mailing list |