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