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