1 |
radhermit 13/08/27 07:00:20 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nfs-utils-1.2.8-r2.ebuild |
5 |
Log: |
6 |
Add configure flag to use libgssglue for GSS support, fixes rpc.gssd segfault issues (bug #479982 by dnh2000). |
7 |
|
8 |
(Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.220 net-fs/nfs-utils/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.220&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.220&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?r1=1.219&r2=1.220 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v |
20 |
retrieving revision 1.219 |
21 |
retrieving revision 1.220 |
22 |
diff -u -r1.219 -r1.220 |
23 |
--- ChangeLog 7 Aug 2013 13:54:00 -0000 1.219 |
24 |
+++ ChangeLog 27 Aug 2013 07:00:20 -0000 1.220 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-fs/nfs-utils |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.219 2013/08/07 13:54:00 xarthisius Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.220 2013/08/27 07:00:20 radhermit Exp $ |
30 |
+ |
31 |
+*nfs-utils-1.2.8-r2 (27 Aug 2013) |
32 |
+ |
33 |
+ 27 Aug 2013; Tim Harder <radhermit@g.o> +nfs-utils-1.2.8-r2.ebuild: |
34 |
+ Add configure flag to use libgssglue for GSS support, fixes rpc.gssd segfault |
35 |
+ issues (bug #479982 by dnh2000). |
36 |
|
37 |
07 Aug 2013; Kacper Kowalik <xarthisius@g.o> nfs-utils-1.2.7-r1.ebuild, |
38 |
nfs-utils-1.2.8-r1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-fs/nfs-utils/nfs-utils-1.2.8-r2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.8-r2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.8-r2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: nfs-utils-1.2.8-r2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.8-r2.ebuild,v 1.1 2013/08/27 07:00:20 radhermit Exp $ |
52 |
|
53 |
EAPI="4" |
54 |
|
55 |
inherit eutils flag-o-matic multilib autotools systemd |
56 |
|
57 |
DESCRIPTION="NFS client and server daemons" |
58 |
HOMEPAGE="http://linux-nfs.org/" |
59 |
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
64 |
IUSE="caps ipv6 kerberos nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid" |
65 |
RESTRICT="test" #315573 |
66 |
|
67 |
# kth-krb doesn't provide the right include |
68 |
# files, and nfs-utils doesn't build against heimdal either, |
69 |
# so don't depend on virtual/krb. |
70 |
# (04 Feb 2005 agriffis) |
71 |
DEPEND_COMMON="tcpd? ( sys-apps/tcp-wrappers ) |
72 |
caps? ( sys-libs/libcap ) |
73 |
sys-libs/e2fsprogs-libs |
74 |
>=net-nds/rpcbind-0.2.0-r1 |
75 |
net-libs/libtirpc |
76 |
nfsdcld? ( >=dev-db/sqlite-3.3 ) |
77 |
nfsv4? ( |
78 |
>=dev-libs/libevent-1.0b |
79 |
>=net-libs/libnfsidmap-0.21-r1 |
80 |
kerberos? ( |
81 |
net-libs/librpcsecgss |
82 |
>=net-libs/libgssglue-0.3 |
83 |
net-libs/libtirpc[kerberos] |
84 |
app-crypt/mit-krb5 |
85 |
) |
86 |
nfsidmap? ( |
87 |
>=net-libs/libnfsidmap-0.24 |
88 |
sys-apps/keyutils |
89 |
) |
90 |
) |
91 |
nfsv41? ( |
92 |
sys-fs/lvm2 |
93 |
) |
94 |
selinux? ( |
95 |
sec-policy/selinux-rpc |
96 |
sec-policy/selinux-rpcbind |
97 |
) |
98 |
uuid? ( sys-apps/util-linux )" |
99 |
RDEPEND="${DEPEND_COMMON} !net-nds/portmap" |
100 |
DEPEND="${DEPEND_COMMON} |
101 |
virtual/pkgconfig" |
102 |
|
103 |
src_prepare() { |
104 |
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch |
105 |
epatch "${FILESDIR}"/${PN}-1.2.8-cross-build.patch |
106 |
epatch "${FILESDIR}"/0001-statd-exit-if-a-statd-is-already-running.patch |
107 |
epatch "${FILESDIR}"/0001-mountd-Fix-is_subdirectory-again.patch |
108 |
eautoreconf |
109 |
} |
110 |
|
111 |
src_configure() { |
112 |
export libsqlite3_cv_is_recent=yes # Our DEPEND forces this. |
113 |
export ac_cv_header_keyutils_h=$(usex nfsidmap) |
114 |
econf \ |
115 |
--with-statedir=/var/lib/nfs \ |
116 |
--enable-tirpc \ |
117 |
$(use_with tcpd tcp-wrappers) \ |
118 |
$(use_enable nfsdcld nfsdcltrack) \ |
119 |
$(use_enable nfsv4) \ |
120 |
$(use_enable nfsv41) \ |
121 |
$(use_enable ipv6) \ |
122 |
$(use_enable caps) \ |
123 |
$(use_enable uuid) \ |
124 |
$(usex nfsv4 "$(use_enable kerberos gss)" "--disable-gss") \ |
125 |
$(usex nfsv4 "$(use_with kerberos gssglue)" "--without-gssglue") |
126 |
} |
127 |
|
128 |
src_compile(){ |
129 |
# remove compiled files bundled in the tarball |
130 |
emake clean |
131 |
default |
132 |
} |
133 |
|
134 |
src_install() { |
135 |
default |
136 |
rm linux-nfs/Makefile* || die |
137 |
dodoc -r linux-nfs README |
138 |
|
139 |
# Don't overwrite existing xtab/etab, install the original |
140 |
# versions somewhere safe... more info in pkg_postinst |
141 |
keepdir /var/lib/nfs/{,sm,sm.bak} |
142 |
mv "${ED}"/var/lib "${ED}"/usr/$(get_libdir) || die |
143 |
|
144 |
# Install some client-side binaries in /sbin |
145 |
dodir /sbin |
146 |
mv "${ED}"/usr/sbin/rpc.statd "${ED}"/sbin/ || die |
147 |
|
148 |
if use nfsv4 && use nfsidmap ; then |
149 |
# Install a config file for idmappers in newer kernels. #415625 |
150 |
insinto /etc/request-key.d |
151 |
echo 'create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d' > id_resolver.conf |
152 |
doins id_resolver.conf |
153 |
fi |
154 |
|
155 |
insinto /etc |
156 |
doins "${FILESDIR}"/exports |
157 |
|
158 |
local f list=() opt_need="" |
159 |
if use nfsv4 ; then |
160 |
opt_need="rpc.idmapd" |
161 |
list+=( rpc.idmapd rpc.pipefs ) |
162 |
use kerberos && list+=( rpc.gssd rpc.svcgssd ) |
163 |
fi |
164 |
for f in nfs nfsmount rpc.statd "${list[@]}" ; do |
165 |
newinitd "${FILESDIR}"/${f}.initd ${f} |
166 |
done |
167 |
for f in nfs nfsmount ; do |
168 |
newconfd "${FILESDIR}"/${f}.confd ${f} |
169 |
done |
170 |
sed -i \ |
171 |
-e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \ |
172 |
"${ED}"/etc/conf.d/nfs || die #234132 |
173 |
systemd_dounit "${FILESDIR}"/nfsd.service |
174 |
systemd_dounit "${FILESDIR}"/rpc-statd.service |
175 |
systemd_dounit "${FILESDIR}"/rpc-mountd.service |
176 |
} |
177 |
|
178 |
pkg_postinst() { |
179 |
# Install default xtab and friends if there's none existing. In |
180 |
# src_install we put them in /usr/lib/nfs for safe-keeping, but |
181 |
# the daemons actually use the files in /var/lib/nfs. #30486 |
182 |
local f |
183 |
mkdir -p "${ROOT}"/var/lib/nfs #368505 |
184 |
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do |
185 |
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue |
186 |
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs" |
187 |
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/ |
188 |
done |
189 |
} |