Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-dev:uclibc commit in: net-nds/rpcbind/, net-nds/rpcbind/files/
Date: Sun, 01 Jul 2012 23:13:12
Message-Id: 1341184373.089c4646f1ecfc2dcbf6939ca0d69fa4a4c256b0.blueness@gentoo
1 commit: 089c4646f1ecfc2dcbf6939ca0d69fa4a4c256b0
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 1 23:12:53 2012 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 1 23:12:53 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=089c4646
7
8 net-nds/rpcbind: remove hacky approach
9
10 ---
11 .../rpcbind/files/rpcbind-0.2.0-pkgconfig.patch | 65 --------------------
12 .../rpcbind/files/rpcbind-uclibc-nss-rpcsvc.patch | 64 -------------------
13 net-nds/rpcbind/files/rpcbind.confd | 4 -
14 net-nds/rpcbind/files/rpcbind.initd | 22 -------
15 net-nds/rpcbind/metadata.xml | 5 --
16 net-nds/rpcbind/rpcbind-0.2.0-r99.ebuild | 42 -------------
17 6 files changed, 0 insertions(+), 202 deletions(-)
18
19 diff --git a/net-nds/rpcbind/files/rpcbind-0.2.0-pkgconfig.patch b/net-nds/rpcbind/files/rpcbind-0.2.0-pkgconfig.patch
20 deleted file mode 100644
21 index e0339af..0000000
22 --- a/net-nds/rpcbind/files/rpcbind-0.2.0-pkgconfig.patch
23 +++ /dev/null
24 @@ -1,65 +0,0 @@
25 -From afd71b8fc0df036a884b3af14ddb875674a49a85 Mon Sep 17 00:00:00 2001
26 -From: =?UTF-8?q?Diego=20Elio=20Petten=F2?= <flameeyes@×××××.com>
27 -Date: Mon, 29 Nov 2010 16:28:38 -0500
28 -Subject: [PATCH] Use pkg-config to find libtirpc
29 -MIME-Version: 1.0
30 -Content-Type: text/plain; charset=UTF-8
31 -Content-Transfer-Encoding: 8bit
32 -
33 -This allows to properly cross-compile rpcbind, as /usr/include/tirpc is
34 -no longer a valid path in that case.
35 -
36 -Signed-off-by: Diego Elio Pettenò <flameeyes@×××××.com>
37 -Signed-off-by: Steve Dickson <steved@××××××.com>
38 ----
39 - configure.in | 4 +++-
40 - src/Makefile.am | 13 +++++++------
41 - 2 files changed, 10 insertions(+), 7 deletions(-)
42 -
43 -diff --git a/configure.in b/configure.in
44 -index de1c730..7d43fd4 100644
45 ---- a/configure.in
46 -+++ b/configure.in
47 -@@ -51,7 +51,9 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h \
48 - unistd.h nss.h])
49 -
50 - AC_CHECK_LIB([pthread], [pthread_create])
51 --AC_CHECK_LIB([tirpc], [clnt_create])
52 -+
53 -+PKG_CHECK_MODULES([TIRPC], [libtirpc])
54 -+
55 - AC_ARG_ENABLE(libwrap,[ --enable-libwrap Enables host name checking],
56 - [case "${enableval}" in
57 - yes) libwarp=true
58 -diff --git a/src/Makefile.am b/src/Makefile.am
59 -index cc0a85b..a2f3e34 100644
60 ---- a/src/Makefile.am
61 -+++ b/src/Makefile.am
62 -@@ -1,4 +1,4 @@
63 --INCLUDES = -I$(srcdir)/tirpc -DPORTMAP -DINET6 -DVERSION="\"$(VERSION)\"" \
64 -+INCLUDES = $(TIRPC_CFLAGS) -DPORTMAP -DINET6 -DVERSION="\"$(VERSION)\"" \
65 - -D_GNU_SOURCE -Wall -pipe
66 - if DEBUG
67 - INCLUDES += -DRPCBIND_DEBUG -DSVC_RUN_DEBUG -DDEBUG_RMTCALL
68 -@@ -23,12 +23,13 @@ rpcbind_SOURCES = check_bound.c rpcbind.c \
69 - rpcbind.h
70 -
71 - rpcinfo_SOURCES = rpcinfo.c
72 --rpcinfo_LDFLAGS = -lpthread -ltirpc
73 --rpcinfo_LDADD = $(LIB_TIRPC)
74 -+rpcinfo_LDFLAGS = -lpthread
75 -+rpcinfo_LDADD = $(TIRPC_LIBS)
76 -
77 -
78 --rpcbind_LDFLAGS = -lpthread -ltirpc
79 --rpcbind_LDADD = $(LIB_TIRPC)
80 --AM_CPPFLAGS = -I/usr/include/tirpc -DCHECK_LOCAL -DPORTMAP \
81 -+rpcbind_LDFLAGS = -lpthread
82 -+rpcbind_CFLAGS = $(TIRPC_CFLAGS)
83 -+rpcbind_LDADD = $(TIRPC_LIBS)
84 -+AM_CPPFLAGS = -DCHECK_LOCAL -DPORTMAP \
85 - -DFACILITY=LOG_MAIL -DSEVERITY=LOG_INFO
86 -
87 ---
88 -1.7.6
89 -
90
91 diff --git a/net-nds/rpcbind/files/rpcbind-uclibc-nss-rpcsvc.patch b/net-nds/rpcbind/files/rpcbind-uclibc-nss-rpcsvc.patch
92 deleted file mode 100644
93 index c46dd2d..0000000
94 --- a/net-nds/rpcbind/files/rpcbind-uclibc-nss-rpcsvc.patch
95 +++ /dev/null
96 @@ -1,64 +0,0 @@
97 -See: http://git.alpinelinux.org/cgit/aports/tree/main/rpcbind/0001-uclibc-nss.patch
98 -and http://git.alpinelinux.org/cgit/aports/tree/main/rpcbind/0002-uclibc-rpcsvc-defines.patch
99 -diff --git a/src/rpcbind.c b/src/rpcbind.c
100 -index 525ffba..1fe1a60 100644
101 ---- a/src/rpcbind.c
102 -+++ b/src/rpcbind.c
103 -@@ -67,7 +67,11 @@
104 - #include <pwd.h>
105 - #include <string.h>
106 - #include <errno.h>
107 -+#if defined(__UCLIBC__)
108 -+#define __nss_configure_lookup(x,y)
109 -+#else
110 - #include <nss.h>
111 -+#endif
112 - #include "config.h"
113 - #include "rpcbind.h"
114 -
115 -diff --git a/src/security.c b/src/security.c
116 -index 0edeac6..e9fed55 100644
117 ---- a/src/security.c
118 -+++ b/src/security.c
119 -@@ -20,6 +20,32 @@
120 - /*
121 - * XXX for special case checks in check_callit.
122 - */
123 -+#if defined(__UCLIBC__)
124 -+
125 -+#define MOUNTPROC_MNT 1
126 -+#define MOUNTPROC_UMNT 3
127 -+
128 -+#define NFS_PROGRAM 100003
129 -+#define YPPROG 100004
130 -+#define MOUNTPROG 100005
131 -+#define YPBINDPROG 100007
132 -+#define YPPASSWDPROG 100009
133 -+#define RQUOTAPROG 100011
134 -+
135 -+#define YPPROC_NULL 0
136 -+#define YPPROC_DOMAIN 1
137 -+#define YPPROC_DOMAIN_NONACK 2
138 -+#define YPPROC_MATCH 3
139 -+#define YPPROC_FIRST 4
140 -+#define YPPROC_NEXT 5
141 -+#define YPPROC_XFR 6
142 -+#define YPPROC_CLEAR 7
143 -+#define YPPROC_ALL 8
144 -+
145 -+#define YPBINDPROC_SETDOM 2
146 -+
147 -+#else
148 -+
149 - #include <rpcsvc/mount.h>
150 - #include <rpcsvc/rquota.h>
151 - #include <rpcsvc/nfs_prot.h>
152 -@@ -27,6 +53,8 @@
153 - #include <rpcsvc/ypclnt.h>
154 - #include <rpcsvc/yppasswd.h>
155 -
156 -+#endif
157 -+
158 - #include "rpcbind.h"
159 -
160 - #ifdef LIBWRAP
161
162 diff --git a/net-nds/rpcbind/files/rpcbind.confd b/net-nds/rpcbind/files/rpcbind.confd
163 deleted file mode 100755
164 index ddc0917..0000000
165 --- a/net-nds/rpcbind/files/rpcbind.confd
166 +++ /dev/null
167 @@ -1,4 +0,0 @@
168 -# /etc/conf.d/rpcbind
169 -
170 -# Options for `rpcbind`.
171 -#RPCBIND_OPTS="-l"
172
173 diff --git a/net-nds/rpcbind/files/rpcbind.initd b/net-nds/rpcbind/files/rpcbind.initd
174 deleted file mode 100755
175 index 995ca71..0000000
176 --- a/net-nds/rpcbind/files/rpcbind.initd
177 +++ /dev/null
178 @@ -1,22 +0,0 @@
179 -#!/sbin/runscript
180 -# Copyright 1999-2007 Gentoo Foundation
181 -# Distributed under the terms of the GNU General Public License v2
182 -# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/files/rpcbind.initd,v 1.1 2007/12/29 09:13:55 vapier Exp $
183 -
184 -depend() {
185 - use net
186 - before inetd xinetd
187 - provide portmap
188 -}
189 -
190 -start() {
191 - ebegin "Starting rpcbind"
192 - start-stop-daemon --start --quiet --exec /sbin/rpcbind -- ${RPCBIND_OPTS}
193 - eend $?
194 -}
195 -
196 -stop() {
197 - ebegin "Stopping rpcbind"
198 - start-stop-daemon --stop --quiet --exec /sbin/rpcbind
199 - eend $?
200 -}
201
202 diff --git a/net-nds/rpcbind/metadata.xml b/net-nds/rpcbind/metadata.xml
203 deleted file mode 100644
204 index ca66751..0000000
205 --- a/net-nds/rpcbind/metadata.xml
206 +++ /dev/null
207 @@ -1,5 +0,0 @@
208 -<?xml version="1.0" encoding="UTF-8"?>
209 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
210 -<pkgmetadata>
211 -<herd>net-fs</herd>
212 -</pkgmetadata>
213
214 diff --git a/net-nds/rpcbind/rpcbind-0.2.0-r99.ebuild b/net-nds/rpcbind/rpcbind-0.2.0-r99.ebuild
215 deleted file mode 100644
216 index 4dce3ac..0000000
217 --- a/net-nds/rpcbind/rpcbind-0.2.0-r99.ebuild
218 +++ /dev/null
219 @@ -1,42 +0,0 @@
220 -# Copyright 1999-2012 Gentoo Foundation
221 -# Distributed under the terms of the GNU General Public License v2
222 -# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/rpcbind-0.2.0.ebuild,v 1.13 2012/01/26 01:02:24 vapier Exp $
223 -
224 -EAPI="4"
225 -
226 -inherit autotools
227 -
228 -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
229 -KEYWORDS="amd64 x86 mips"
230 -
231 -DESCRIPTION="portmap replacement which supports RPC over various protocols"
232 -HOMEPAGE="http://sourceforge.net/projects/rpcbind/"
233 -
234 -LICENSE="BSD"
235 -SLOT="0"
236 -IUSE="tcpd"
237 -
238 -RDEPEND="net-libs/libtirpc
239 - tcpd? ( sys-apps/tcp-wrappers )"
240 -DEPEND="${RDEPEND}
241 - dev-util/pkgconfig"
242 -
243 -src_prepare() {
244 - epatch "${FILESDIR}"/${P}-pkgconfig.patch
245 - epatch "${FILESDIR}"/${PN}-uclibc-nss-rpcsvc.patch
246 - eautoreconf
247 -}
248 -
249 -src_configure() {
250 - econf \
251 - --bindir=/sbin \
252 - $(use_enable tcpd libwrap)
253 -}
254 -
255 -src_install() {
256 - emake DESTDIR="${D}" install || die
257 - doman man/rpc{bind,info}.8
258 - dodoc AUTHORS ChangeLog NEWS README
259 - newinitd "${FILESDIR}"/rpcbind.initd rpcbind || die
260 - newconfd "${FILESDIR}"/rpcbind.confd rpcbind || die
261 -}