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: ChangeLog nfs-utils-1.2.2-r1.ebuild
Date: Tue, 20 Apr 2010 09:33:47
Message-Id: 20100420093340.1E6E92C04B@corvid.gentoo.org
1 vapier 10/04/20 09:33:40
2
3 Modified: ChangeLog
4 Added: nfs-utils-1.2.2-r1.ebuild
5 Log:
6 Make libcap support optional via USE=caps #314777.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.167 net-fs/nfs-utils/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.167&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.167&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?r1=1.166&r2=1.167
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v
19 retrieving revision 1.166
20 retrieving revision 1.167
21 diff -u -r1.166 -r1.167
22 --- ChangeLog 20 Apr 2010 08:24:36 -0000 1.166
23 +++ ChangeLog 20 Apr 2010 09:33:39 -0000 1.167
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-fs/nfs-utils
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.166 2010/04/20 08:24:36 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.167 2010/04/20 09:33:39 vapier Exp $
29 +
30 +*nfs-utils-1.2.2-r1 (20 Apr 2010)
31 +
32 + 20 Apr 2010; Mike Frysinger <vapier@g.o>
33 + +nfs-utils-1.2.2-r1.ebuild, +files/nfs-utils-1.2.2-optional-libcap.patch:
34 + Make libcap support optional via USE=caps #314777.
35
36 20 Apr 2010; Mike Frysinger <vapier@g.o> nfs-utils-1.2.2.ebuild:
37 Disable tests since they require no rpc.statd to be running on the system
38
39
40
41 1.1 net-fs/nfs-utils/nfs-utils-1.2.2-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.2-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.2-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nfs-utils-1.2.2-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.2-r1.ebuild,v 1.1 2010/04/20 09:33:39 vapier Exp $
51
52 EAPI="2"
53
54 inherit eutils flag-o-matic multilib autotools
55
56 DESCRIPTION="NFS client and server daemons"
57 HOMEPAGE="http://linux-nfs.org/"
58 SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
63 IUSE="caps ipv6 kerberos +nfsv3 +nfsv4 tcpd elibc_glibc"
64 RESTRICT="tests" #315573
65
66 # kth-krb doesn't provide the right include
67 # files, and nfs-utils doesn't build against heimdal either,
68 # so don't depend on virtual/krb.
69 # (04 Feb 2005 agriffis)
70 DEPEND_COMMON="tcpd? ( sys-apps/tcp-wrappers )
71 caps? ( sys-libs/libcap )
72 sys-libs/e2fsprogs-libs
73 net-nds/rpcbind
74 net-libs/libtirpc
75 nfsv4? (
76 >=dev-libs/libevent-1.0b
77 >=net-libs/libnfsidmap-0.21-r1
78 kerberos? (
79 net-libs/librpcsecgss
80 net-libs/libgssglue
81 net-libs/libtirpc[kerberos]
82 app-crypt/mit-krb5
83 )
84 )"
85 RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
86 # util-linux dep is to prevent man-page collision
87 DEPEND="${DEPEND_COMMON}
88 >=sys-apps/util-linux-2.12r-r7"
89
90 src_prepare() {
91 epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
92 epatch "${FILESDIR}"/${PN}-1.1.4-no-exec.patch
93 epatch "${FILESDIR}"/${PN}-1.2.2-optional-libcap.patch #314777
94 chmod a+x tests/t0001-statd-basic-mon-unmon.sh || die
95 eautoreconf
96 }
97
98 src_configure() {
99 econf \
100 --with-statedir=/var/lib/nfs \
101 --enable-tirpc \
102 $(use_with tcpd tcp-wrappers) \
103 $(use_enable nfsv3) \
104 $(use_enable nfsv4) \
105 $(use_enable ipv6) \
106 $(use_enable caps) \
107 $(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
108 }
109
110 src_install() {
111 emake DESTDIR="${D}" install || die
112
113 # Don't overwrite existing xtab/etab, install the original
114 # versions somewhere safe... more info in pkg_postinst
115 dodir /usr/lib/nfs
116 keepdir /var/lib/nfs/{sm,sm.bak}
117 mv "${D}"/var/lib/nfs/* "${D}"/usr/lib/nfs
118 keepdir /var/lib/nfs
119
120 # Install some client-side binaries in /sbin
121 dodir /sbin
122 mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
123
124 dodoc ChangeLog README
125 docinto linux-nfs ; dodoc linux-nfs/*
126
127 insinto /etc
128 doins "${FILESDIR}"/exports
129
130 local f list="" opt_need=""
131 if use nfsv4 ; then
132 opt_need="rpc.idmapd"
133 list="${list} rpc.idmapd rpc.pipefs"
134 use kerberos && list="${list} rpc.gssd rpc.svcgssd"
135 fi
136 for f in nfs nfsmount rpc.statd ${list} ; do
137 newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
138 done
139 newconfd "${FILESDIR}"/nfs.confd nfs
140 dosed "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" /etc/conf.d/nfs #234132
141
142 # uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
143 if ! use elibc_glibc ; then
144 dobin tools/rpcgen/rpcgen || die "rpcgen"
145 newdoc tools/rpcgen/README README.rpcgen
146 fi
147 }
148
149 pkg_postinst() {
150 # Install default xtab and friends if there's none existing.
151 # In src_install we put them in /usr/lib/nfs for safe-keeping, but
152 # the daemons actually use the files in /var/lib/nfs. This fixes
153 # bug 30486
154 local f
155 for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
156 [[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
157 einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
158 cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
159 done
160 }