Gentoo Archives: gentoo-commits

From: "NP Hardass (np-hardass)" <np-hardass@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/openafs: openafs-1.6.12.ebuild ChangeLog
Date: Fri, 03 Jul 2015 02:01:56
Message-Id: 20150703020149.84729743@oystercatcher.gentoo.org
1 np-hardass 15/07/03 02:01:49
2
3 Modified: ChangeLog
4 Added: openafs-1.6.12.ebuild
5 Log:
6 Version bump to 1.6.12. Supports Kernels up to 4.1. See http://openafs.org/dl/openafs/1.6.12/RELNOTES-1.6.12 for release notes.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 18F89C67)
9
10 Revision Changes Path
11 1.209 net-fs/openafs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.209&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.209&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/ChangeLog?r1=1.208&r2=1.209
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v
20 retrieving revision 1.208
21 retrieving revision 1.209
22 diff -u -r1.208 -r1.209
23 --- ChangeLog 3 May 2015 14:35:52 -0000 1.208
24 +++ ChangeLog 3 Jul 2015 02:01:49 -0000 1.209
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-fs/openafs
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.208 2015/05/03 14:35:52 bircoph Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.209 2015/07/03 02:01:49 np-hardass Exp $
30 +
31 +*openafs-1.6.12 (03 Jul 2015)
32 +
33 + 03 Jul 2015; NP-Hardass <NP-Hardass@g.o> +openafs-1.6.12.ebuild:
34 + Version bump to 1.6.12. Supports Kernels up to 4.1. See
35 + http://openafs.org/dl/openafs/1.6.12/RELNOTES-1.6.12 for release notes.
36
37 *openafs-1.6.11.1 (03 May 2015)
38
39
40
41
42 1.1 net-fs/openafs/openafs-1.6.12.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/openafs-1.6.12.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/openafs-1.6.12.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openafs-1.6.12.ebuild
48 ===================================================================
49 # Copyright 1999-2015 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.6.12.ebuild,v 1.1 2015/07/03 02:01:49 np-hardass Exp $
52
53 EAPI="5"
54
55 inherit autotools eutils flag-o-matic multilib pam systemd toolchain-funcs versionator
56
57 MY_PV=$(delete_version_separator '_')
58 MY_P="${PN}-${MY_PV}"
59 PVER="20150626"
60
61 DESCRIPTION="The OpenAFS distributed file system"
62 HOMEPAGE="http://www.openafs.org/"
63 # We always d/l the doc tarball as man pages are not USE=doc material
64 [[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
65 SRC_URI="
66 http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
67 http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
68 http://dev.gentoo.org/~bircoph/afs/${PN}-patches-${PVER}.tar.xz
69 "
70
71 LICENSE="IBM BSD openafs-krb5-a APSL-2"
72 SLOT="0"
73 KEYWORDS="~amd64 ~amd64-linux ~sparc ~x86 ~x86-linux"
74
75 IUSE="doc kerberos +modules pam"
76
77 CDEPEND="
78 sys-libs/ncurses
79 pam? ( virtual/pam )
80 kerberos? ( virtual/krb5 )"
81
82 DEPEND="${CDEPEND}
83 doc? (
84 app-text/docbook-xsl-stylesheets
85 dev-libs/libxslt
86 )"
87
88 RDEPEND="${CDEPEND}
89 modules? ( ~net-fs/openafs-kernel-${PV} )"
90
91 S="${WORKDIR}/${MY_P}"
92
93 src_prepare() {
94 EPATCH_EXCLUDE="050_all_job_server.patch" \
95 EPATCH_SUFFIX="patch" \
96 epatch "${WORKDIR}"/gentoo/patches
97 epatch_user
98
99 # fixing 2-nd level makefiles to honor flags
100 sed -i -r 's/\<CFLAGS[[:space:]]*=/CFLAGS+=/; s/\<LDFLAGS[[:space:]]*=/LDFLAGS+=/' \
101 src/*/Makefile.in || die '*/Makefile.in sed failed'
102
103 # packaging is f-ed up, so we can't run eautoreconf
104 # run autotools commands based on what is listed in regen.sh
105 eaclocal -I src/cf
106 eautoconf
107 eautoconf -o configure-libafs configure-libafs.ac
108 eautoheader
109 einfo "Deleting autom4te.cache directory"
110 rm -rf autom4te.cache
111 }
112
113 src_configure() {
114 AFS_SYSKVERS=26 \
115 econf \
116 --disable-kernel-module \
117 --disable-strip-binaries \
118 --enable-supergroups \
119 $(use_enable pam) \
120 $(use_with doc html-xsl /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl) \
121 $(use_with kerberos krb5)
122 }
123
124 src_compile() {
125 emake all_nolibafs
126 local d
127 if use doc; then
128 for d in doc/xml/{AdminGuide,QuickStartUnix,UserGuide}; do
129 emake -C "${d}" html;
130 done
131 fi
132 }
133
134 src_install() {
135 local OPENRCDIR="${WORKDIR}/gentoo/openrc"
136 local SYSTEMDDIR="${WORKDIR}/gentoo/systemd"
137
138 emake DESTDIR="${ED}" install_nolibafs
139
140 insinto /etc/openafs
141 doins src/afsd/CellServDB
142 echo "/afs:/var/cache/openafs:200000" > "${ED}"/etc/openafs/cacheinfo
143 echo "openafs.org" > "${ED}"/etc/openafs/ThisCell
144
145 # pam_afs and pam_afs.krb have been installed in irregular locations, fix
146 if use pam ; then
147 dopammod "${ED}"/usr/$(get_libdir)/pam_afs*
148 fi
149 rm -f "${ED}"/usr/$(get_libdir)/pam_afs* || die
150
151 # remove kdump stuff provided by kexec-tools #222455
152 rm -rf "${ED}"/usr/sbin/kdump*
153
154 # avoid collision with mit_krb5's version of kpasswd
155 mv "${ED}"/usr/bin/kpasswd{,_afs} || die
156 mv "${ED}"/usr/share/man/man1/kpasswd{,_afs}.1 || die
157
158 # move lwp stuff around #200674 #330061
159 mv "${ED}"/usr/include/{lwp,lock,timer}.h "${ED}"/usr/include/afs/ || die
160 mv "${ED}"/usr/$(get_libdir)/liblwp* "${ED}"/usr/$(get_libdir)/afs/ || die
161 # update paths to the relocated lwp headers
162 sed -ri \
163 -e '/^#include <(lwp|lock|timer).h>/s:<([^>]*)>:<afs/\1>:' \
164 "${ED}"/usr/include/*.h \
165 "${ED}"/usr/include/*/*.h \
166 || die
167
168 # minimal documentation
169 use pam && doman src/pam/pam_afs.5
170 dodoc "${WORKDIR}/gentoo/README" src/afsd/CellServDB
171
172 # documentation package
173 if use doc ; then
174 dodoc -r doc/{arch,examples,protocol,txt}
175 dohtml -r doc/xml/*
176 fi
177
178 # Gentoo related scripts
179 newinitd "${OPENRCDIR}"/openafs-client.initd openafs-client
180 newconfd "${OPENRCDIR}"/openafs-client.confd openafs-client
181 newinitd "${OPENRCDIR}"/openafs-server.initd openafs-server
182 newconfd "${OPENRCDIR}"/openafs-server.confd openafs-server
183 systemd_dotmpfilesd "${SYSTEMDDIR}"/tmpfiles.d/openafs-client.conf
184 systemd_dounit "${SYSTEMDDIR}"/openafs-client.service
185 systemd_dounit "${SYSTEMDDIR}"/openafs-server.service
186
187 # used directories: client
188 keepdir /etc/openafs
189
190 # used directories: server
191 keepdir /etc/openafs/server
192 diropts -m0700
193 keepdir /var/lib/openafs
194 keepdir /var/lib/openafs/db
195 diropts -m0755
196 keepdir /var/lib/openafs/logs
197
198 # link logfiles to /var/log
199 dosym ../lib/openafs/logs /var/log/openafs
200 }
201
202 pkg_preinst() {
203 ## Somewhat intelligently install default configuration files
204 ## (when they are not present)
205 local x
206 for x in cacheinfo CellServDB ThisCell ; do
207 if [ -e "${EROOT}"/etc/openafs/${x} ] ; then
208 cp "${EROOT}"/etc/openafs/${x} "${ED}"/etc/openafs/
209 fi
210 done
211 }
212
213 pkg_postinst() {
214 elog "This installation should work out of the box (at least the"
215 elog "client part doing global afs-cell browsing, unless you had"
216 elog "a previous and different configuration). If you want to"
217 elog "set up your own cell or modify the standard config,"
218 elog "please have a look at the Gentoo OpenAFS documentation"
219 elog "(warning: it is not yet up to date wrt the new file locations)"
220 elog
221 elog "The documentation can be found at:"
222 elog " https://wiki.gentoo.org/wiki/OpenAFS"
223 }