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.8.ebuild
Date: Fri, 28 Nov 2008 13:07:25
Message-Id: E1L633w-0003Z1-Je@stork.gentoo.org
1 stefaan 08/11/28 13:07:12
2
3 Modified: ChangeLog
4 Added: openafs-1.4.8.ebuild
5 Log:
6 Version bump to 1.4.8
7 (Portage version: 2.2_rc16/cvs/Linux 2.6.27-gentoo-r4 x86_64)
8
9 Revision Changes Path
10 1.153 net-fs/openafs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.153&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.153&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/ChangeLog?r1=1.152&r2=1.153
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v
19 retrieving revision 1.152
20 retrieving revision 1.153
21 diff -u -r1.152 -r1.153
22 --- ChangeLog 28 Oct 2008 16:27:43 -0000 1.152
23 +++ ChangeLog 28 Nov 2008 13:07:12 -0000 1.153
24 @@ -1,6 +1,11 @@
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.152 2008/10/28 16:27:43 stefaan Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.153 2008/11/28 13:07:12 stefaan Exp $
29 +
30 +*openafs-1.4.8 (28 Nov 2008)
31 +
32 + 28 Nov 2008; Stefaan De Roeck <stefaan@g.o> +openafs-1.4.8.ebuild:
33 + Version bump to 1.4.8
34
35 28 Oct 2008; Stefaan De Roeck <stefaan@g.o>
36 -openafs-1.4.7_pre2.ebuild, -openafs-1.4.7_pre3.ebuild,
37
38
39
40 1.1 net-fs/openafs/openafs-1.4.8.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.4.8.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs/openafs-1.4.8.ebuild?rev=1.1&content-type=text/plain
44
45 Index: openafs-1.4.8.ebuild
46 ===================================================================
47 # Copyright 1999-2008 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.8.ebuild,v 1.1 2008/11/28 13:07:12 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="~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" \
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 ${myconf} || die econf
110
111 emake -j1 all_nolibafs || die "Build failed"
112 }
113
114 src_install() {
115 make DESTDIR="${D}" install_nolibafs || die "Installing failed"
116
117 # pam_afs and pam_afs.krb have been installed in irregular locations, fix
118 if use pam; then
119 dopammod "${D}"/usr/$(get_libdir)/pam_afs*
120 rm -f "${D}"/usr/$(get_libdir)/pam_afs*
121 fi
122
123 # compile_et collides with com_err. Remove it from this package.
124 rm "${D}"/usr/bin/compile_et
125
126 # avoid collision with mit_krb5's version of kpasswd
127 (cd "${D}"/usr/bin; mv kpasswd kpasswd_afs)
128 use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1)
129
130 # minimal documentation
131 dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB
132
133 # documentation package
134 if use doc; then
135 use pam && doman src/pam/pam_afs.5
136
137 cp -pPR doc/* "${D}"/usr/share/doc/${PF}
138 fi
139
140 # Gentoo related scripts
141 newconfd ${CONFDIR}/openafs-client openafs-client
142 newconfd ${CONFDIR}/openafs-server openafs-server
143 newinitd ${SCRIPTDIR}/openafs-client openafs-client
144 newinitd ${SCRIPTDIR}/openafs-server openafs-server
145
146 # used directories: client
147 keepdir /etc/openafs
148 keepdir /var/cache/openafs
149
150 # used directories: server
151 keepdir /etc/openafs/server
152 diropts -m0700
153 keepdir /var/lib/openafs
154 keepdir /var/lib/openafs/db
155 diropts -m0755
156 keepdir /var/lib/openafs/logs
157
158 # link logfiles to /var/log
159 dosym ../lib/openafs/logs /var/log/openafs
160 }
161
162 pkg_preinst() {
163 ## Somewhat intelligently install default configuration files
164 ## (when they are not present)
165 # CellServDB
166 if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \
167 || grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null
168 then
169 cp ${CONFDIR}/CellServDB "${D}"etc/openafs
170 fi
171 # cacheinfo: use a default location cache, 200 megabyte in size
172 # (should be safe for about any root partition, the user can increase
173 # the size as required)
174 if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then
175 echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo
176 fi
177 # ThisCell: default to "openafs.org"
178 if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then
179 echo "openafs.org" > "${D}"etc/openafs/ThisCell
180 fi
181 }
182
183 pkg_postinst() {
184 elog
185 elog "This installation should work out of the box (at least the"
186 elog "client part doing global afs-cell browsing, unless you had"
187 elog "a previous and different configuration). If you want to"
188 elog "set up your own cell or modify the standard config,"
189 elog "please have a look at the Gentoo OpenAFS documentation"
190 elog "(warning: it is not yet up to date wrt the new file locations)"
191 elog
192 elog "The documentation can be found at:"
193 elog " http://www.gentoo.org/doc/en/openafs.xml"
194 }