Gentoo Archives: gentoo-commits

From: "Stefaan De Roeck (stefaan)" <stefaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/openafs: ChangeLog openafs-1.4.11.ebuild
Date: Sun, 30 Aug 2009 04:18:39
Message-Id: E1MhghB-0004OR-JI@stork.gentoo.org
1 stefaan 09/08/30 09:27:33
2
3 Modified: ChangeLog
4 Added: openafs-1.4.11.ebuild
5 Log:
6 Bump to version 1.4.11, should fix bug #282196
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.161 net-fs/openafs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.161&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.161&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?r1=1.160&r2=1.161
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v
19 retrieving revision 1.160
20 retrieving revision 1.161
21 diff -u -r1.160 -r1.161
22 --- ChangeLog 11 Jun 2009 19:49:39 -0000 1.160
23 +++ ChangeLog 30 Aug 2009 09:27:33 -0000 1.161
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-fs/openafs
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.160 2009/06/11 19:49:39 stefaan Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.161 2009/08/30 09:27:33 stefaan Exp $
29 +
30 +*openafs-1.4.11 (30 Aug 2009)
31 +
32 + 30 Aug 2009; Stefaan De Roeck <stefaan@g.o> +openafs-1.4.11.ebuild:
33 + Bump to version 1.4.11, should fix bug #282196
34
35 *openafs-1.4.10 (11 Jun 2009)
36
37
38
39
40 1.1 net-fs/openafs/openafs-1.4.11.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.4.11.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.4.11.ebuild?rev=1.1&content-type=text/plain
44
45 Index: openafs-1.4.11.ebuild
46 ===================================================================
47 # Copyright 1999-2009 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.11.ebuild,v 1.1 2009/08/30 09:27:33 stefaan Exp $
50
51 inherit flag-o-matic eutils toolchain-funcs versionator pam
52
53 PATCHVER=0.15
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="~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" \
79 EPATCH_EXCLUDE="012_all_kbuild.patch" \
80 epatch ${PATCHDIR}
81
82 # disable XCFLAGS override
83 sed -i 's/^[ \t]*XCFLAGS.*/:/' src/cf/osconf.m4
84 # disable compiler choice override
85 sed -i 's/^[ \t]\+\(CC\|CCOBJ\|MT_CC\)="[^ ]*\(.*\)"/\1="${CC}\2"/' src/cf/osconf.m4
86
87 # fix autoconf cludge (bug #218234)
88 sed -i 's/^AC_\(AIX\|MINIX\)$//' acinclude.m4
89
90 ./regen.sh || die "Failed: regenerating configure script"
91 }
92
93 src_compile() {
94 # cannot use "use_with" macro, as --without-krb5-config crashes the econf
95 local myconf=""
96 if use kerberos; then
97 myconf="--with-krb5-conf=$(type -p krb5-config)"
98 fi
99
100 # AFS_SYSKVERS: fix linux version at 2.6
101 AFS_SYSKVERS=26 \
102 XCFLAGS="${CFLAGS}" \
103 econf \
104 $(use_enable pam) \
105 $(use_enable debug) \
106 --enable-largefile-fileserver \
107 --enable-supergroups \
108 --disable-kernel-module \
109 --disable-strip-binaries \
110 ${myconf} || die econf
111
112 emake -j1 all_nolibafs || die "Build failed"
113 }
114
115 src_install() {
116 make DESTDIR="${D}" install_nolibafs || die "Installing failed"
117
118 # pam_afs and pam_afs.krb have been installed in irregular locations, fix
119 if use pam; then
120 dopammod "${D}"/usr/$(get_libdir)/pam_afs*
121 rm -f "${D}"/usr/$(get_libdir)/pam_afs*
122 fi
123
124 # compile_et collides with com_err. Remove it from this package.
125 rm "${D}"/usr/bin/compile_et
126
127 # avoid collision with mit_krb5's version of kpasswd
128 (cd "${D}"/usr/bin; mv kpasswd kpasswd_afs)
129 use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1)
130
131 # minimal documentation
132 dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB
133
134 # documentation package
135 if use doc; then
136 use pam && doman src/pam/pam_afs.5
137
138 cp -pPR doc/* "${D}"/usr/share/doc/${PF}
139 fi
140
141 # Gentoo related scripts
142 newconfd ${CONFDIR}/openafs-client openafs-client
143 newconfd ${CONFDIR}/openafs-server openafs-server
144 newinitd ${SCRIPTDIR}/openafs-client openafs-client
145 newinitd ${SCRIPTDIR}/openafs-server openafs-server
146
147 # used directories: client
148 keepdir /etc/openafs
149 keepdir /var/cache/openafs
150
151 # used directories: server
152 keepdir /etc/openafs/server
153 diropts -m0700
154 keepdir /var/lib/openafs
155 keepdir /var/lib/openafs/db
156 diropts -m0755
157 keepdir /var/lib/openafs/logs
158
159 # link logfiles to /var/log
160 dosym ../lib/openafs/logs /var/log/openafs
161 }
162
163 pkg_preinst() {
164 ## Somewhat intelligently install default configuration files
165 ## (when they are not present)
166 # CellServDB
167 if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \
168 || grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null
169 then
170 cp ${CONFDIR}/CellServDB "${D}"etc/openafs
171 fi
172 # cacheinfo: use a default location cache, 200 megabyte in size
173 # (should be safe for about any root partition, the user can increase
174 # the size as required)
175 if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then
176 echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo
177 fi
178 # ThisCell: default to "openafs.org"
179 if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then
180 echo "openafs.org" > "${D}"etc/openafs/ThisCell
181 fi
182 }
183
184 pkg_postinst() {
185 elog
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 }