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