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