Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/nfs-utils: nfs-utils-1.2.9-r3.ebuild ChangeLog
Date: Sun, 02 Feb 2014 08:12:05
Message-Id: 20140202081201.234602004C@flycatcher.gentoo.org
1 vapier 14/02/02 08:12:01
2
3 Modified: ChangeLog
4 Added: nfs-utils-1.2.9-r3.ebuild
5 Log:
6 Drop gssglue support as libtirpc itself no longer supports it #493912 by Torsten Kaiser.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.242 net-fs/nfs-utils/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.242&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.242&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?r1=1.241&r2=1.242
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v
20 retrieving revision 1.241
21 retrieving revision 1.242
22 diff -u -r1.241 -r1.242
23 --- ChangeLog 1 Feb 2014 19:01:37 -0000 1.241
24 +++ ChangeLog 2 Feb 2014 08:12:00 -0000 1.242
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-fs/nfs-utils
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.241 2014/02/01 19:01:37 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.242 2014/02/02 08:12:00 vapier Exp $
30 +
31 +*nfs-utils-1.2.9-r3 (02 Feb 2014)
32 +
33 + 02 Feb 2014; Mike Frysinger <vapier@g.o> +nfs-utils-1.2.9-r3.ebuild:
34 + Drop gssglue support as libtirpc itself no longer supports it #493912 by
35 + Torsten Kaiser.
36
37 *nfs-utils-1.2.9-r2 (01 Feb 2014)
38
39
40
41
42 1.1 net-fs/nfs-utils/nfs-utils-1.2.9-r3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.9-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.9-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: nfs-utils-1.2.9-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2014 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.9-r3.ebuild,v 1.1 2014/02/02 08:12:00 vapier 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 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
64 IUSE="caps ipv6 kerberos +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid"
65 REQUIRED_USE="kerberos? ( nfsv4 )"
66 RESTRICT="test" #315573
67
68 # kth-krb doesn't provide the right include
69 # files, and nfs-utils doesn't build against heimdal either,
70 # so don't depend on virtual/krb.
71 # (04 Feb 2005 agriffis)
72 DEPEND_COMMON="tcpd? ( sys-apps/tcp-wrappers )
73 caps? ( sys-libs/libcap )
74 sys-libs/e2fsprogs-libs
75 >=net-nds/rpcbind-0.2.0-r1
76 net-libs/libtirpc
77 libmount? ( sys-apps/util-linux )
78 nfsdcld? ( >=dev-db/sqlite-3.3 )
79 nfsv4? (
80 >=dev-libs/libevent-1.0b
81 >=net-libs/libnfsidmap-0.21-r1
82 kerberos? (
83 net-libs/librpcsecgss
84 >=net-libs/libtirpc-0.2.4-r1[kerberos]
85 app-crypt/mit-krb5
86 )
87 nfsidmap? (
88 >=net-libs/libnfsidmap-0.24
89 sys-apps/keyutils
90 )
91 )
92 nfsv41? (
93 sys-fs/lvm2
94 )
95 selinux? (
96 sec-policy/selinux-rpc
97 sec-policy/selinux-rpcbind
98 )
99 uuid? ( sys-apps/util-linux )"
100 RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
101 DEPEND="${DEPEND_COMMON}
102 virtual/pkgconfig"
103
104 src_prepare() {
105 epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
106 epatch "${FILESDIR}"/${PN}-1.2.8-cross-build.patch
107 eautoreconf
108 }
109
110 src_configure() {
111 export libsqlite3_cv_is_recent=yes # Our DEPEND forces this.
112 export ac_cv_header_keyutils_h=$(usex nfsidmap)
113 econf \
114 --with-statedir=/var/lib/nfs \
115 --enable-tirpc \
116 $(use_enable libmount libmount-mount) \
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 $(use_enable kerberos gss) \
125 --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
174 systemd_dotmpfilesd "${FILESDIR}"/nfs-utils.conf
175 systemd_newunit "${FILESDIR}"/nfsd.service-r1 nfsd.service
176 systemd_newunit "${FILESDIR}"/rpc-statd.service-r2 rpc-statd.service
177 systemd_newunit "${FILESDIR}"/rpc-mountd.service-r1 rpc-mountd.service
178 systemd_dounit "${FILESDIR}"/rpc-idmapd.service
179 systemd_dounit "${FILESDIR}"/{proc-fs-nfsd,var-lib-nfs-rpc_pipefs}.mount
180 use nfsv4 && use kerberos && systemd_dounit "${FILESDIR}"/rpc-{gssd,svcgssd}.service
181 }
182
183 pkg_postinst() {
184 # Install default xtab and friends if there's none existing. In
185 # src_install we put them in /usr/lib/nfs for safe-keeping, but
186 # the daemons actually use the files in /var/lib/nfs. #30486
187 local f
188 mkdir -p "${ROOT}"/var/lib/nfs #368505
189 for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
190 [[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
191 einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
192 cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
193 done
194 }