Gentoo Archives: gentoo-commits

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