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