1 |
stefaan 07/12/28 15:22:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openafs-1.4.6.ebuild |
5 |
Log: |
6 |
Security bug #203573: bump to openafs version 1.4.6 |
7 |
(Portage version: 2.1.4_rc11) |
8 |
|
9 |
Revision Changes Path |
10 |
1.133 net-fs/openafs/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.133&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.133&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?r1=1.132&r2=1.133 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v |
19 |
retrieving revision 1.132 |
20 |
retrieving revision 1.133 |
21 |
diff -u -r1.132 -r1.133 |
22 |
--- ChangeLog 13 Dec 2007 10:24:47 -0000 1.132 |
23 |
+++ ChangeLog 28 Dec 2007 15:22:07 -0000 1.133 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-fs/openafs |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.132 2007/12/13 10:24:47 stefaan Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.133 2007/12/28 15:22:07 stefaan Exp $ |
29 |
+ |
30 |
+*openafs-1.4.6 (28 Dec 2007) |
31 |
+ |
32 |
+ 28 Dec 2007; Stefaan De Roeck <stefaan@g.o> +openafs-1.4.6.ebuild: |
33 |
+ Security bug #203573: bump to openafs version 1.4.6 |
34 |
|
35 |
13 Dec 2007; Stefaan De Roeck <stefaan@g.o> |
36 |
-files/openafs-ppc64.patch, -openafs-1.4.4_p20070724-r1.ebuild: |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-fs/openafs/openafs-1.4.6.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.4.6.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.4.6.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: openafs-1.4.6.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.6.ebuild,v 1.1 2007/12/28 15:22:07 stefaan Exp $ |
50 |
|
51 |
inherit flag-o-matic eutils toolchain-funcs versionator pam |
52 |
|
53 |
PATCHVER=0.14 |
54 |
DESCRIPTION="The OpenAFS distributed file system" |
55 |
HOMEPAGE="http://www.openafs.org/" |
56 |
SRC_URI="http://openafs.org/dl/${PV}/${P}-src.tar.bz2 |
57 |
doc? ( http://openafs.org/dl/${PV}/${P}-doc.tar.bz2 ) |
58 |
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2" |
59 |
|
60 |
LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc" |
61 |
SLOT="0" |
62 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
63 |
IUSE="debug kerberos pam doc" |
64 |
|
65 |
RDEPEND="~net-fs/openafs-kernel-${PV} |
66 |
pam? ( sys-libs/pam ) |
67 |
kerberos? ( virtual/krb5 )" |
68 |
|
69 |
PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2) |
70 |
CONFDIR=${WORKDIR}/gentoo/configs |
71 |
SCRIPTDIR=${WORKDIR}/gentoo/scripts |
72 |
|
73 |
src_unpack() { |
74 |
unpack ${A}; cd "${S}" |
75 |
|
76 |
# Apply patches to apply chosen compiler settings, fix the hardcoded paths |
77 |
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg |
78 |
EPATCH_SUFFIX="patch" epatch ${PATCHDIR} |
79 |
|
80 |
epatch "${FILESDIR}"/openafs-alpha-ucontext.patch |
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 |
-- |
193 |
gentoo-commits@g.o mailing list |