1 |
stefaan 07/11/27 17:19:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openafs-1.4.5-r2.ebuild |
5 |
Removed: openafs-1.4.5-r1.ebuild |
6 |
Log: |
7 |
Use ucontext on alpha |
8 |
(Portage version: 2.1.3.19) |
9 |
|
10 |
Revision Changes Path |
11 |
1.127 net-fs/openafs/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.127&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.127&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?r1=1.126&r2=1.127 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v |
20 |
retrieving revision 1.126 |
21 |
retrieving revision 1.127 |
22 |
diff -u -r1.126 -r1.127 |
23 |
--- ChangeLog 26 Nov 2007 11:04:14 -0000 1.126 |
24 |
+++ ChangeLog 27 Nov 2007 17:19:46 -0000 1.127 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-fs/openafs |
27 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.126 2007/11/26 11:04:14 stefaan Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.127 2007/11/27 17:19:46 stefaan Exp $ |
30 |
+ |
31 |
+*openafs-1.4.5-r2 (27 Nov 2007) |
32 |
+ |
33 |
+ 27 Nov 2007; Stefaan De Roeck <stefaan@g.o> |
34 |
+ +files/openafs-alpha-ucontext.patch, -openafs-1.4.5-r1.ebuild, |
35 |
+ +openafs-1.4.5-r2.ebuild: |
36 |
+ Use ucontext on alpha |
37 |
|
38 |
26 Nov 2007; Stefaan De Roeck <stefaan@g.o> -openafs-1.4.4.ebuild, |
39 |
-openafs-1.4.4_p20070724.ebuild, -openafs-1.4.5_pre1.ebuild, |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-fs/openafs/openafs-1.4.5-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.4.5-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.4.5-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: openafs-1.4.5-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2007 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.5-r2.ebuild,v 1.1 2007/11/27 17:19:46 stefaan Exp $ |
53 |
|
54 |
inherit flag-o-matic eutils toolchain-funcs versionator pam |
55 |
|
56 |
PATCHVER=0.14 |
57 |
DESCRIPTION="The OpenAFS distributed file system" |
58 |
HOMEPAGE="http://www.openafs.org/" |
59 |
SRC_URI="http://openafs.org/dl/${PV}/${P}-src.tar.bz2 |
60 |
doc? ( http://openafs.org/dl/${PV}/${P}-doc.tar.bz2 ) |
61 |
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2" |
62 |
|
63 |
LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
66 |
IUSE="debug kerberos pam doc" |
67 |
|
68 |
RDEPEND="~net-fs/openafs-kernel-${PV} |
69 |
pam? ( sys-libs/pam ) |
70 |
kerberos? ( virtual/krb5 )" |
71 |
|
72 |
PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2) |
73 |
CONFDIR=${WORKDIR}/gentoo/configs |
74 |
SCRIPTDIR=${WORKDIR}/gentoo/scripts |
75 |
|
76 |
src_unpack() { |
77 |
unpack ${A}; cd "${S}" |
78 |
|
79 |
# Apply patches to apply chosen compiler settings, fix the hardcoded paths |
80 |
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg |
81 |
EPATCH_SUFFIX="patch" epatch ${PATCHDIR} |
82 |
|
83 |
epatch ${FILESDIR}/openafs-alpha-ucontext.patch |
84 |
|
85 |
sed -i 's/^[ \t]*XCFLAGS.*//' src/cf/osconf.m4 |
86 |
|
87 |
./regen.sh || die "Failed: regenerating configure script" |
88 |
} |
89 |
|
90 |
src_compile() { |
91 |
# cannot use "use_with" macro, as --without-krb5-config crashes the econf |
92 |
local myconf="" |
93 |
if use kerberos; then |
94 |
myconf="--with-krb5-conf=$(type -p krb5-config)" |
95 |
fi |
96 |
|
97 |
# fix linux version at 2.6 |
98 |
AFS_SYSKVERS=26 \ |
99 |
XCFLAGS="${CFLAGS}" \ |
100 |
econf \ |
101 |
$(use_enable pam) \ |
102 |
$(use_enable debug) \ |
103 |
--enable-largefile-fileserver \ |
104 |
--enable-supergroups \ |
105 |
--disable-kernel-module \ |
106 |
${myconf} || die econf |
107 |
|
108 |
emake -j1 all_nolibafs || die "Build failed" |
109 |
} |
110 |
|
111 |
src_install() { |
112 |
make DESTDIR="${D}" install_nolibafs || die "Installing failed" |
113 |
|
114 |
# pam_afs and pam_afs.krb have been installed in irregular locations, fix |
115 |
if use pam; then |
116 |
dopammod "${D}"/usr/$(get_libdir)/pam_afs* |
117 |
rm -f "${D}"/usr/$(get_libdir)/pam_afs* |
118 |
fi |
119 |
|
120 |
# compile_et collides with com_err. Remove it from this package. |
121 |
rm "${D}"/usr/bin/compile_et |
122 |
|
123 |
# avoid collision with mit_krb5's version of kpasswd |
124 |
(cd "${D}"/usr/bin; mv kpasswd kpasswd_afs) |
125 |
use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1) |
126 |
|
127 |
# minimal documentation |
128 |
dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB |
129 |
|
130 |
# documentation package |
131 |
if use doc; then |
132 |
use pam && doman src/pam/pam_afs.5 |
133 |
|
134 |
cp -pPR doc/* "${D}"/usr/share/doc/${PF} |
135 |
fi |
136 |
|
137 |
# Gentoo related scripts |
138 |
newconfd ${CONFDIR}/openafs-client openafs-client |
139 |
newconfd ${CONFDIR}/openafs-server openafs-server |
140 |
newinitd ${SCRIPTDIR}/openafs-client openafs-client |
141 |
newinitd ${SCRIPTDIR}/openafs-server openafs-server |
142 |
|
143 |
# used directories: client |
144 |
keepdir /etc/openafs |
145 |
keepdir /var/cache/openafs |
146 |
|
147 |
# used directories: server |
148 |
keepdir /etc/openafs/server |
149 |
diropts -m0700 |
150 |
keepdir /var/lib/openafs |
151 |
keepdir /var/lib/openafs/db |
152 |
diropts -m0755 |
153 |
keepdir /var/lib/openafs/logs |
154 |
|
155 |
# link logfiles to /var/log |
156 |
dosym ../lib/openafs/logs /var/log/openafs |
157 |
} |
158 |
|
159 |
pkg_preinst() { |
160 |
## Somewhat intelligently install default configuration files |
161 |
## (when they are not present) |
162 |
# CellServDB |
163 |
if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \ |
164 |
|| grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null |
165 |
then |
166 |
cp ${CONFDIR}/CellServDB "${D}"etc/openafs |
167 |
fi |
168 |
# cacheinfo: use a default location cache, 200 megabyte in size |
169 |
# (should be safe for about any root partition, the user can increase |
170 |
# the size as required) |
171 |
if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then |
172 |
echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo |
173 |
fi |
174 |
# ThisCell: default to "openafs.org" |
175 |
if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then |
176 |
echo "openafs.org" > "${D}"etc/openafs/ThisCell |
177 |
fi |
178 |
} |
179 |
|
180 |
pkg_postinst() { |
181 |
elog |
182 |
elog "This installation should work out of the box (at least the" |
183 |
elog "client part doing global afs-cell browsing, unless you had" |
184 |
elog "a previous and different configuration). If you want to" |
185 |
elog "set up your own cell or modify the standard config," |
186 |
elog "please have a look at the Gentoo OpenAFS documentation" |
187 |
elog "(warning: it is not yet up to date wrt the new file locations)" |
188 |
elog |
189 |
elog "The documentation can be found at:" |
190 |
elog " http://www.gentoo.org/doc/en/openafs.xml" |
191 |
} |
192 |
|
193 |
|
194 |
|
195 |
-- |
196 |
gentoo-commits@g.o mailing list |