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