Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/openafs: ChangeLog openafs-1.4.14-r1.ebuild
Date: Tue, 25 Jan 2011 21:07:44
Message-Id: 20110125210735.A4D9820054@flycatcher.gentoo.org
1 vapier 11/01/25 21:07:35
2
3 Modified: ChangeLog
4 Added: openafs-1.4.14-r1.ebuild
5 Log:
6 Add fix from upstream for ptserver segfaults #352356 by Andrian Nord and Andrej Filipcic.
7
8 (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.169 net-fs/openafs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.169&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.169&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/ChangeLog?r1=1.168&r2=1.169
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v
20 retrieving revision 1.168
21 retrieving revision 1.169
22 diff -u -r1.168 -r1.169
23 --- ChangeLog 8 Jan 2011 02:07:43 -0000 1.168
24 +++ ChangeLog 25 Jan 2011 21:07:35 -0000 1.169
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-fs/openafs
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.168 2011/01/08 02:07:43 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.169 2011/01/25 21:07:35 vapier Exp $
30 +
31 +*openafs-1.4.14-r1 (25 Jan 2011)
32 +
33 + 25 Jan 2011; Mike Frysinger <vapier@g.o> +openafs-1.4.14-r1.ebuild:
34 + Add fix from upstream for ptserver segfaults #352356 by Andrian Nord and
35 + Andrej Filipcic.
36
37 *openafs-1.4.14 (08 Jan 2011)
38
39
40
41
42 1.1 net-fs/openafs/openafs-1.4.14-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/openafs-1.4.14-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/openafs-1.4.14-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openafs-1.4.14-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 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.14-r1.ebuild,v 1.1 2011/01/25 21:07:35 vapier Exp $
52
53 EAPI="2"
54
55 inherit flag-o-matic eutils autotools toolchain-funcs versionator pam
56
57 MY_PV=$(get_version_component_range 1-3)
58 PVER="2"
59 DESCRIPTION="The OpenAFS distributed file system"
60 HOMEPAGE="http://www.openafs.org/"
61 # We always d/l the doc tarball as man pages are not USE=doc material
62 SRC_URI="http://openafs.org/dl/${MY_PV}/${P}-src.tar.bz2
63 http://openafs.org/dl/${MY_PV}/${P}-doc.tar.bz2
64 mirror://gentoo/${P}-patches-${PVER}.tar.bz2"
65
66 LICENSE="IBM BSD openafs-krb5-a APSL-2 sun-rpc"
67 SLOT="0"
68 KEYWORDS="~amd64 ~sparc ~x86"
69 IUSE="doc kerberos pam"
70
71 RDEPEND="~net-fs/openafs-kernel-${PV}
72 pam? ( sys-libs/pam )
73 kerberos? ( virtual/krb5 )"
74
75 src_prepare() {
76 EPATCH_EXCLUDE="012_all_kbuild.patch" \
77 EPATCH_SUFFIX="patch" \
78 epatch "${WORKDIR}"/gentoo/patches
79
80 # packaging is f-ed up, so we can't run automake (i.e. eautoreconf)
81 sed -i '/^a/s:^:e:' regen.sh
82 skipman=1
83 . regen.sh
84 }
85
86 src_configure() {
87 # cannot use "use_with" macro, as --without-krb5-config crashes the econf
88 local myconf=""
89 if use kerberos; then
90 myconf="--with-krb5-conf=$(type -p krb5-config)"
91 fi
92
93 AFS_SYSKVERS=26 \
94 XCFLAGS="${CFLAGS}" \
95 econf \
96 $(use_enable pam) \
97 --enable-largefile-fileserver \
98 --enable-supergroups \
99 --disable-kernel-module \
100 --disable-strip-binaries \
101 ${myconf}
102 }
103
104 src_compile() {
105 emake -j1 all_nolibafs || die
106 }
107
108 src_install() {
109 local CONFDIR=${WORKDIR}/gentoo/configs
110 local SCRIPTDIR=${WORKDIR}/gentoo/scripts
111
112 emake -j1 DESTDIR="${D}" install_nolibafs || die
113
114 insinto /etc/openafs
115 doins src/afsd/CellServDB || die
116 echo "/afs:/var/cache/openafs:200000" > "${D}"/etc/openafs/cacheinfo
117 echo "openafs.org" > "${D}"/etc/openafs/ThisCell
118
119 # pam_afs and pam_afs.krb have been installed in irregular locations, fix
120 if use pam ; then
121 dopammod "${D}"/usr/$(get_libdir)/pam_afs* || die
122 fi
123 rm -f "${D}"/usr/$(get_libdir)/pam_afs* || die
124
125 # remove kdump stuff provided by kexec-tools #222455
126 rm -rf "${D}"/usr/sbin/kdump*
127
128 # avoid collision with mit_krb5's version of kpasswd
129 mv "${D}"/usr/bin/kpasswd{,_afs} || die
130 mv "${D}"/usr/share/man/man1/kpasswd{,_afs}.1 || die
131
132 # move lwp stuff around #200674 #330061
133 mv "${D}"/usr/include/{lwp,lock,timer}.h "${D}"/usr/include/afs/ || die
134 mv "${D}"/usr/$(get_libdir)/liblwp* "${D}"/usr/$(get_libdir)/afs/ || die
135 # update paths to the relocated lwp headers
136 sed -ri \
137 -e '/^#include <(lwp|lock|timer).h>/s:<([^>]*)>:<afs/\1>:' \
138 "${D}"/usr/include/*.h \
139 "${D}"/usr/include/*/*.h \
140 || die
141
142 # minimal documentation
143 use pam && doman src/pam/pam_afs.5
144 dodoc "${CONFDIR}"/README src/afsd/CellServDB
145
146 # documentation package
147 if use doc ; then
148 dodoc doc/{arch,examples,pdf,protocol,txt}/*
149 dohtml -A xml -r doc/{html,xml}/*
150 fi
151
152 # Gentoo related scripts
153 newinitd "${SCRIPTDIR}"/openafs-client openafs-client || die
154 newconfd "${CONFDIR}"/openafs-client openafs-client || die
155 newinitd "${SCRIPTDIR}"/openafs-server openafs-server || die
156 newconfd "${CONFDIR}"/openafs-server openafs-server || die
157
158 # used directories: client
159 keepdir /etc/openafs
160 keepdir /var/cache/openafs
161
162 # used directories: server
163 keepdir /etc/openafs/server
164 diropts -m0700
165 keepdir /var/lib/openafs
166 keepdir /var/lib/openafs/db
167 diropts -m0755
168 keepdir /var/lib/openafs/logs
169
170 # link logfiles to /var/log
171 dosym ../lib/openafs/logs /var/log/openafs
172 }
173
174 pkg_preinst() {
175 ## Somewhat intelligently install default configuration files
176 ## (when they are not present)
177 local x
178 for x in cacheinfo CellServDB ThisCell ; do
179 if [ -e "${ROOT}"/etc/openafs/${x} ] ; then
180 cp "${ROOT}"/etc/openafs/${x} "${D}"/etc/openafs/
181 fi
182 done
183 }
184
185 pkg_postinst() {
186 elog "This installation should work out of the box (at least the"
187 elog "client part doing global afs-cell browsing, unless you had"
188 elog "a previous and different configuration). If you want to"
189 elog "set up your own cell or modify the standard config,"
190 elog "please have a look at the Gentoo OpenAFS documentation"
191 elog "(warning: it is not yet up to date wrt the new file locations)"
192 elog
193 elog "The documentation can be found at:"
194 elog " http://www.gentoo.org/doc/en/openafs.xml"
195 }