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.1-r1.ebuild
Date: Sun, 20 Apr 2008 01:02:04
Message-Id: E1JnNwP-0006oA-5q@stork.gentoo.org
1 vapier 08/04/20 01:02:01
2
3 Modified: ChangeLog
4 Added: nfs-utils-1.1.1-r1.ebuild
5 Log:
6 Push out accumulated changes.
7 (Portage version: 2.2_pre5)
8
9 Revision Changes Path
10 1.122 net-fs/nfs-utils/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.122&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.122&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?r1=1.121&r2=1.122
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v
19 retrieving revision 1.121
20 retrieving revision 1.122
21 diff -u -r1.121 -r1.122
22 --- ChangeLog 20 Apr 2008 00:52:23 -0000 1.121
23 +++ ChangeLog 20 Apr 2008 01:02:00 -0000 1.122
24 @@ -1,6 +1,12 @@
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.121 2008/04/20 00:52:23 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.122 2008/04/20 01:02:00 vapier Exp $
29 +
30 +*nfs-utils-1.1.1-r1 (20 Apr 2008)
31 +
32 + 20 Apr 2008; Mike Frysinger <vapier@g.o>
33 + +nfs-utils-1.1.1-r1.ebuild:
34 + Push out accumulated changes.
35
36 20 Apr 2008; Mike Frysinger <vapier@g.o> files/nfs.initd,
37 files/rpc.gssd.initd, +files/rpc.svcgssd.initd,
38
39
40
41 1.1 net-fs/nfs-utils/nfs-utils-1.1.1-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.1-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.1-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nfs-utils-1.1.1-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 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.1.1-r1.ebuild,v 1.1 2008/04/20 01:02:00 vapier Exp $
51
52 inherit eutils flag-o-matic multilib
53
54 DESCRIPTION="NFS client and server daemons"
55 HOMEPAGE="http://nfs.sourceforge.net/"
56 SRC_URI="mirror://sourceforge/nfs/${P}.tar.gz
57 http://www.citi.umich.edu/projects/nfsv4/linux/nfs-utils-patches/1.1.1-1/nfs-utils-1.1.1-001-xlog_segfault_fix.dif
58 http://www.citi.umich.edu/projects/nfsv4/linux/nfs-utils-patches/1.1.1-1/nfs-utils-1.1.1-002-svcgssd_pass_down_principal_name.dif"
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 >=net-nds/portmap-5b-r6
71 !nonfsv4? (
72 >=dev-libs/libevent-1.0b
73 >=net-libs/libnfsidmap-0.16
74 kerberos? (
75 net-libs/librpcsecgss
76 net-libs/libgssglue
77 app-crypt/mit-krb5
78 )
79 )"
80 # util-linux dep is to prevent man-page collision
81 DEPEND="${RDEPEND}
82 >=sys-apps/util-linux-2.12r-r7"
83
84 src_unpack() {
85 unpack ${P}.tar.gz
86 cd "${S}"
87 epatch "${DISTDIR}"/nfs-utils-1.1.1-001-xlog_segfault_fix.dif "${DISTDIR}"/nfs-utils-1.1.1-002-svcgssd_pass_down_principal_name.dif
88 sed -i \
89 -e 's:libgssapi >= 0\.11:libgssglue >= 0.1:' \
90 -e 's:-lgssapi:-lgssglue:' \
91 configure #191746
92 }
93
94 src_compile() {
95 econf \
96 --mandir=/usr/share/man \
97 --with-statedir=/var/lib/nfs \
98 --disable-rquotad \
99 --enable-nfsv3 \
100 --enable-secure-statd \
101 $(use_with tcpd tcp-wrappers) \
102 $(use_enable !nonfsv4 nfsv4) \
103 $(use !nonfsv4 && use_enable kerberos gss) \
104 || die "Configure failed"
105 emake || die "Failed to compile"
106 }
107
108 src_install() {
109 emake DESTDIR="${D}" install || die
110
111 # Don't overwrite existing xtab/etab, install the original
112 # versions somewhere safe... more info in pkg_postinst
113 dodir /usr/lib/nfs
114 keepdir /var/lib/nfs/{sm,sm.bak}
115 mv "${D}"/var/lib/nfs/* "${D}"/usr/lib/nfs
116 keepdir /var/lib/nfs
117
118 # Install some client-side binaries in /sbin
119 dodir /sbin
120 mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
121
122 dodoc ChangeLog README
123 docinto linux-nfs ; dodoc linux-nfs/*
124
125 insinto /etc
126 doins "${FILESDIR}"/exports
127
128 local f list=""
129 if use !nonfsv4 ; then
130 list="${list} rpc.idmapd"
131 use kerberos && list="${list} rpc.gssd rpc.svcgssd"
132 fi
133 for f in nfs nfsmount rpc.statd ${list} ; do
134 newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
135 done
136 newconfd "${FILESDIR}"/nfs.confd nfs
137 use !nonfsv4 && doins utils/idmapd/idmapd.conf
138
139 # uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
140 if ! use elibc_glibc ; then
141 dobin tools/rpcgen/rpcgen || die "rpcgen"
142 newdoc tools/rpcgen/README README.rpcgen
143 fi
144 }
145
146 pkg_preinst() {
147 [[ -s ${ROOT}/etc/exports ]] && rm -f "${D}"/etc/exports
148 }
149
150 pkg_postinst() {
151 # Install default xtab and friends if there's none existing.
152 # In src_install we put them in /usr/lib/nfs for safe-keeping, but
153 # the daemons actually use the files in /var/lib/nfs. This fixes
154 # bug 30486
155 local f
156 for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
157 [[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
158 einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
159 cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
160 done
161 }
162
163
164
165 --
166 gentoo-commits@l.g.o mailing list