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.1.4-r1.ebuild
Date: Sat, 31 Jan 2009 22:20:27
Message-Id: E1LTOCO-000703-HD@stork.gentoo.org
1 vapier 09/01/31 22:20:24
2
3 Modified: ChangeLog
4 Added: nfs-utils-1.1.4-r1.ebuild
5 Log:
6 Add some fixes from Debian and push out init.d fixes.
7 (Portage version: 2.2_rc23/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.145 net-fs/nfs-utils/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.145&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.145&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?r1=1.144&r2=1.145
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v
19 retrieving revision 1.144
20 retrieving revision 1.145
21 diff -u -r1.144 -r1.145
22 --- ChangeLog 31 Jan 2009 22:19:05 -0000 1.144
23 +++ ChangeLog 31 Jan 2009 22:20:24 -0000 1.145
24 @@ -1,6 +1,14 @@
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.144 2009/01/31 22:19:05 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.145 2009/01/31 22:20:24 vapier Exp $
29 +
30 +*nfs-utils-1.1.4-r1 (31 Jan 2009)
31 +
32 + 31 Jan 2009; Mike Frysinger <vapier@g.o>
33 + +files/nfs-utils-1.1.4-ascii-man.patch,
34 + +files/nfs-utils-1.1.4-mtab-sym.patch,
35 + +files/nfs-utils-1.1.4-no-exec.patch, +nfs-utils-1.1.4-r1.ebuild:
36 + Add some fixes from Debian and push out init.d fixes.
37
38 31 Jan 2009; Mike Frysinger <vapier@g.o> files/nfs.initd:
39 Also use rpc.nfsd to try to shutdown nfsd #228127 by Maurice Volaski.
40
41
42
43 1.1 net-fs/nfs-utils/nfs-utils-1.1.4-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.4-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.4-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: nfs-utils-1.1.4-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.4-r1.ebuild,v 1.1 2009/01/31 22:20:24 vapier Exp $
53
54 inherit eutils flag-o-matic multilib
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="nonfsv4 tcpd kerberos"
64
65 # kth-krb doesn't provide the right include
66 # files, and nfs-utils doesn't build against heimdal either,
67 # so don't depend on virtual/krb.
68 # (04 Feb 2005 agriffis)
69 RDEPEND="tcpd? ( sys-apps/tcp-wrappers )
70 sys-libs/e2fsprogs-libs
71 >=net-nds/portmap-5b-r6
72 !nonfsv4? (
73 >=dev-libs/libevent-1.0b
74 >=net-libs/libnfsidmap-0.21-r1
75 kerberos? (
76 net-libs/librpcsecgss
77 net-libs/libgssglue
78 app-crypt/mit-krb5
79 )
80 )"
81 # util-linux dep is to prevent man-page collision
82 DEPEND="${RDEPEND}
83 >=sys-apps/util-linux-2.12r-r7"
84
85 src_unpack() {
86 unpack ${A}
87 cd "${S}"
88 epatch "${FILESDIR}"/${PN}-1.1.2-rpcgen-ioctl.patch
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 local myconf
96 if use nonfsv4 ; then
97 myconf="--disable-gss"
98 else
99 myconf="$(use_enable kerberos gss)"
100 fi
101
102 econf \
103 --mandir=/usr/share/man \
104 --with-statedir=/var/lib/nfs \
105 --disable-rquotad \
106 --enable-nfsv3 \
107 --enable-secure-statd \
108 $(use_with tcpd tcp-wrappers) \
109 $(use_enable !nonfsv4 nfsv4) \
110 ${myconf} \
111 || die "Configure failed"
112 emake || die "Failed to compile"
113 }
114
115 src_install() {
116 emake DESTDIR="${D}" install || die
117
118 # Don't overwrite existing xtab/etab, install the original
119 # versions somewhere safe... more info in pkg_postinst
120 dodir /usr/lib/nfs
121 keepdir /var/lib/nfs/{sm,sm.bak}
122 mv "${D}"/var/lib/nfs/* "${D}"/usr/lib/nfs
123 keepdir /var/lib/nfs
124
125 # Install some client-side binaries in /sbin
126 dodir /sbin
127 mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
128
129 dodoc ChangeLog README
130 docinto linux-nfs ; dodoc linux-nfs/*
131
132 insinto /etc
133 doins "${FILESDIR}"/exports
134
135 local f list=""
136 if use !nonfsv4 ; then
137 list="${list} rpc.idmapd rpc.pipefs"
138 use kerberos && list="${list} rpc.gssd rpc.svcgssd"
139 fi
140 for f in nfs nfsmount rpc.statd ${list} ; do
141 newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
142 done
143 newconfd "${FILESDIR}"/nfs.confd nfs
144
145 # uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
146 if ! use elibc_glibc ; then
147 dobin tools/rpcgen/rpcgen || die "rpcgen"
148 newdoc tools/rpcgen/README README.rpcgen
149 fi
150 }
151
152 pkg_postinst() {
153 # Install default xtab and friends if there's none existing.
154 # In src_install we put them in /usr/lib/nfs for safe-keeping, but
155 # the daemons actually use the files in /var/lib/nfs. This fixes
156 # bug 30486
157 local f
158 for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
159 [[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
160 einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
161 cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
162 done
163 }