aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-02-23 18:02:01 -0500
committerAnthony G. Basile <blueness@gentoo.org>2012-02-23 18:02:01 -0500
commit036fc97fedf858788826fd7df9feacbeed0b0cb2 (patch)
tree5faf95c6eac7995088277807a4a885979a1b5449 /net-nds/rpcbind
parentprofile: add hardened/linux/uclibc/mips (diff)
downloadhardened-dev-036fc97fedf858788826fd7df9feacbeed0b0cb2.tar.gz
hardened-dev-036fc97fedf858788826fd7df9feacbeed0b0cb2.tar.bz2
hardened-dev-036fc97fedf858788826fd7df9feacbeed0b0cb2.zip
net-nds/rpcbind: added alpine linux patch
(Portage version: 2.1.10.44/git/Linux x86_64, signed Manifest commit with key 0xD0455535)
Diffstat (limited to 'net-nds/rpcbind')
-rw-r--r--net-nds/rpcbind/Manifest18
-rw-r--r--net-nds/rpcbind/files/Manifest4
-rw-r--r--net-nds/rpcbind/files/rpcbind-0.2.0-pkgconfig.patch65
-rw-r--r--net-nds/rpcbind/files/rpcbind-0.2.0-uclibc-nss-rpcsvc.patch66
-rwxr-xr-xnet-nds/rpcbind/files/rpcbind.confd4
-rwxr-xr-xnet-nds/rpcbind/files/rpcbind.initd22
-rw-r--r--net-nds/rpcbind/metadata.xml5
-rw-r--r--net-nds/rpcbind/rpcbind-0.2.0-r99.ebuild42
8 files changed, 226 insertions, 0 deletions
diff --git a/net-nds/rpcbind/Manifest b/net-nds/rpcbind/Manifest
new file mode 100644
index 00000000..bf05a3eb
--- /dev/null
+++ b/net-nds/rpcbind/Manifest
@@ -0,0 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX Manifest 797 RMD160 cef629df7f39047fc69eae7f6b159b2d2533ec1e SHA1 03260af07d6d73a0e95a79d3620f1356bc476e3b SHA256 08e46237dec4293d18efb47e21aad59b7be5dcf5204d1d59bb7e5c6ac49ca525
+AUX rpcbind-0.2.0-pkgconfig.patch 2193 RMD160 48646405926a1f119784ecb8edcf0e543af6eae4 SHA1 1e71c484656807261a9aa48a2d252306156ae5a3 SHA256 8cf1f8dc8a6d75e081ecd50d2b09c51e69d85f54038f7cf09c00121c56917c90
+AUX rpcbind-0.2.0-uclibc-nss-rpcsvc.patch 1323 RMD160 3eb27a6db488ffe2e1c4e5214fea1f16a541ded3 SHA1 689c14eb70bba649474da7943177a1d326f41d6f SHA256 f18286c96821282c74ec5eddf82e8cf7050d4de2e5b833b31e254b93900e5a41
+AUX rpcbind.confd 68 RMD160 0b48cacf0ae78db4c1f305a93e019a1f3060d601 SHA1 8ccb1af754b68fca07ecc75a3dae6446a468d94e SHA256 38bb95aefc38d843d0890d9c15affd28f19f2133c17f463396c62970e7e2dffc
+AUX rpcbind.initd 523 RMD160 6742d6e354055d16dfa5ea44e69c94f598c29b54 SHA1 05d325c01431a978b59a17aaf47b59b28909f609 SHA256 6561ae40c5899a9f7a12f1f0867bec47d47c7cc3c583574ffcecbbf6f8d8afbb
+DIST rpcbind-0.2.0.tar.bz2 271018 RMD160 596ab1cbc37b17c09dafaa4cd9e86e21f8d62f12 SHA1 02f077372a76a8f9adfa696004aa437212c28617 SHA256 c92f263e0353887f16379d7708ef1fb4c7eedcf20448bc1e4838f59497a00de3
+EBUILD rpcbind-0.2.0-r99.ebuild 1026 RMD160 eefb196fa5cadfc1164caf80893901ed743ef970 SHA1 eadf67a8723bfb56168d639fad7fad2dc0d186a8 SHA256 7846ac4f29a7862578a2cadb341624b4c230130b0ecf355cdc1077bfc8d23204
+MISC metadata.xml 159 RMD160 8e0977b9abd90afe9e1d5c1326823a5726f6e2a4 SHA1 33f35324ce730e28838be228d9ee4e4dd1bab1e5 SHA256 562c59615c028ffa088de789b3a792fd4cbbbfe71628ddd6a55d3b176becbc6b
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iEYEAREIAAYFAk9GxWkACgkQl5yvQNBFVTWTEgCeKO68tyMDWErBa1Oa9fjL8kXo
+NIUAoIsYuSu5RH3BEyBeKYfX1aIls69+
+=+Dw3
+-----END PGP SIGNATURE-----
diff --git a/net-nds/rpcbind/files/Manifest b/net-nds/rpcbind/files/Manifest
new file mode 100644
index 00000000..8085386c
--- /dev/null
+++ b/net-nds/rpcbind/files/Manifest
@@ -0,0 +1,4 @@
+MISC rpcbind-0.2.0-pkgconfig.patch 2193 RMD160 48646405926a1f119784ecb8edcf0e543af6eae4 SHA1 1e71c484656807261a9aa48a2d252306156ae5a3 SHA256 8cf1f8dc8a6d75e081ecd50d2b09c51e69d85f54038f7cf09c00121c56917c90
+MISC rpcbind-0.2.0-uclibc-nss-rpcsvc.patch 1323 RMD160 3eb27a6db488ffe2e1c4e5214fea1f16a541ded3 SHA1 689c14eb70bba649474da7943177a1d326f41d6f SHA256 f18286c96821282c74ec5eddf82e8cf7050d4de2e5b833b31e254b93900e5a41
+MISC rpcbind.confd 68 RMD160 0b48cacf0ae78db4c1f305a93e019a1f3060d601 SHA1 8ccb1af754b68fca07ecc75a3dae6446a468d94e SHA256 38bb95aefc38d843d0890d9c15affd28f19f2133c17f463396c62970e7e2dffc
+MISC rpcbind.initd 523 RMD160 6742d6e354055d16dfa5ea44e69c94f598c29b54 SHA1 05d325c01431a978b59a17aaf47b59b28909f609 SHA256 6561ae40c5899a9f7a12f1f0867bec47d47c7cc3c583574ffcecbbf6f8d8afbb
diff --git a/net-nds/rpcbind/files/rpcbind-0.2.0-pkgconfig.patch b/net-nds/rpcbind/files/rpcbind-0.2.0-pkgconfig.patch
new file mode 100644
index 00000000..e0339af9
--- /dev/null
+++ b/net-nds/rpcbind/files/rpcbind-0.2.0-pkgconfig.patch
@@ -0,0 +1,65 @@
+From afd71b8fc0df036a884b3af14ddb875674a49a85 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Diego=20Elio=20Petten=F2?= <flameeyes@gmail.com>
+Date: Mon, 29 Nov 2010 16:28:38 -0500
+Subject: [PATCH] Use pkg-config to find libtirpc
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This allows to properly cross-compile rpcbind, as /usr/include/tirpc is
+no longer a valid path in that case.
+
+Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com>
+Signed-off-by: Steve Dickson <steved@redhat.com>
+---
+ configure.in | 4 +++-
+ src/Makefile.am | 13 +++++++------
+ 2 files changed, 10 insertions(+), 7 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index de1c730..7d43fd4 100644
+--- a/configure.in
++++ b/configure.in
+@@ -51,7 +51,9 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h \
+ unistd.h nss.h])
+
+ AC_CHECK_LIB([pthread], [pthread_create])
+-AC_CHECK_LIB([tirpc], [clnt_create])
++
++PKG_CHECK_MODULES([TIRPC], [libtirpc])
++
+ AC_ARG_ENABLE(libwrap,[ --enable-libwrap Enables host name checking],
+ [case "${enableval}" in
+ yes) libwarp=true
+diff --git a/src/Makefile.am b/src/Makefile.am
+index cc0a85b..a2f3e34 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,4 +1,4 @@
+-INCLUDES = -I$(srcdir)/tirpc -DPORTMAP -DINET6 -DVERSION="\"$(VERSION)\"" \
++INCLUDES = $(TIRPC_CFLAGS) -DPORTMAP -DINET6 -DVERSION="\"$(VERSION)\"" \
+ -D_GNU_SOURCE -Wall -pipe
+ if DEBUG
+ INCLUDES += -DRPCBIND_DEBUG -DSVC_RUN_DEBUG -DDEBUG_RMTCALL
+@@ -23,12 +23,13 @@ rpcbind_SOURCES = check_bound.c rpcbind.c \
+ rpcbind.h
+
+ rpcinfo_SOURCES = rpcinfo.c
+-rpcinfo_LDFLAGS = -lpthread -ltirpc
+-rpcinfo_LDADD = $(LIB_TIRPC)
++rpcinfo_LDFLAGS = -lpthread
++rpcinfo_LDADD = $(TIRPC_LIBS)
+
+
+-rpcbind_LDFLAGS = -lpthread -ltirpc
+-rpcbind_LDADD = $(LIB_TIRPC)
+-AM_CPPFLAGS = -I/usr/include/tirpc -DCHECK_LOCAL -DPORTMAP \
++rpcbind_LDFLAGS = -lpthread
++rpcbind_CFLAGS = $(TIRPC_CFLAGS)
++rpcbind_LDADD = $(TIRPC_LIBS)
++AM_CPPFLAGS = -DCHECK_LOCAL -DPORTMAP \
+ -DFACILITY=LOG_MAIL -DSEVERITY=LOG_INFO
+
+--
+1.7.6
+
diff --git a/net-nds/rpcbind/files/rpcbind-0.2.0-uclibc-nss-rpcsvc.patch b/net-nds/rpcbind/files/rpcbind-0.2.0-uclibc-nss-rpcsvc.patch
new file mode 100644
index 00000000..bffcc2fc
--- /dev/null
+++ b/net-nds/rpcbind/files/rpcbind-0.2.0-uclibc-nss-rpcsvc.patch
@@ -0,0 +1,66 @@
+Modified version of patch
+
+From: Natanael Copa <ncopa@alpinelinux.org>
+
+See http://git.alpinelinux.org/cgit/ncopa/aports/tree/main/rpcbind
+
+diff --git a/src/rpcbind.c b/src/rpcbind.c
+--- a/src/rpcbind.c
++++ b/src/rpcbind.c
+@@ -67,7 +67,11 @@
+ #include <pwd.h>
+ #include <string.h>
+ #include <errno.h>
++#if defined(__UCLIBC__)
++#define __nss_configure_lookup(x,y)
++#else
+ #include <nss.h>
++#endif
+ #include "config.h"
+ #include "rpcbind.h"
+
+diff --git a/src/security.c b/src/security.c
+--- a/src/security.c
++++ b/src/security.c
+@@ -20,6 +20,32 @@
+ /*
+ * XXX for special case checks in check_callit.
+ */
++#if defined(__UCLIBC__)
++
++#define MOUNTPROC_MNT 1
++#define MOUNTPROC_UMNT 3
++
++#define NFS_PROGRAM 100003
++#define YPPROG 100004
++#define MOUNTPROG 100005
++#define YPBINDPROG 100007
++#define YPPASSWDPROG 100009
++#define RQUOTAPROG 100011
++
++#define YPPROC_NULL 0
++#define YPPROC_DOMAIN 1
++#define YPPROC_DOMAIN_NONACK 2
++#define YPPROC_MATCH 3
++#define YPPROC_FIRST 4
++#define YPPROC_NEXT 5
++#define YPPROC_XFR 6
++#define YPPROC_CLEAR 7
++#define YPPROC_ALL 8
++
++#define YPBINDPROC_SETDOM 2
++
++#else
++
+ #include <rpcsvc/mount.h>
+ #include <rpcsvc/rquota.h>
+ #include <rpcsvc/nfs_prot.h>
+@@ -27,6 +53,8 @@
+ #include <rpcsvc/ypclnt.h>
+ #include <rpcsvc/yppasswd.h>
+
++#endif
++
+ #include "rpcbind.h"
+
+ #ifdef LIBWRAP
diff --git a/net-nds/rpcbind/files/rpcbind.confd b/net-nds/rpcbind/files/rpcbind.confd
new file mode 100755
index 00000000..ddc09172
--- /dev/null
+++ b/net-nds/rpcbind/files/rpcbind.confd
@@ -0,0 +1,4 @@
+# /etc/conf.d/rpcbind
+
+# Options for `rpcbind`.
+#RPCBIND_OPTS="-l"
diff --git a/net-nds/rpcbind/files/rpcbind.initd b/net-nds/rpcbind/files/rpcbind.initd
new file mode 100755
index 00000000..995ca71d
--- /dev/null
+++ b/net-nds/rpcbind/files/rpcbind.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/files/rpcbind.initd,v 1.1 2007/12/29 09:13:55 vapier Exp $
+
+depend() {
+ use net
+ before inetd xinetd
+ provide portmap
+}
+
+start() {
+ ebegin "Starting rpcbind"
+ start-stop-daemon --start --quiet --exec /sbin/rpcbind -- ${RPCBIND_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping rpcbind"
+ start-stop-daemon --stop --quiet --exec /sbin/rpcbind
+ eend $?
+}
diff --git a/net-nds/rpcbind/metadata.xml b/net-nds/rpcbind/metadata.xml
new file mode 100644
index 00000000..ca66751d
--- /dev/null
+++ b/net-nds/rpcbind/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-fs</herd>
+</pkgmetadata>
diff --git a/net-nds/rpcbind/rpcbind-0.2.0-r99.ebuild b/net-nds/rpcbind/rpcbind-0.2.0-r99.ebuild
new file mode 100644
index 00000000..ba313d1d
--- /dev/null
+++ b/net-nds/rpcbind/rpcbind-0.2.0-r99.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/rpcbind-0.2.0.ebuild,v 1.13 2012/01/26 01:02:24 vapier Exp $
+
+EAPI="4"
+
+inherit autotools
+
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+KEYWORDS="~amd64 ~x86 ~mips"
+
+DESCRIPTION="portmap replacement which supports RPC over various protocols"
+HOMEPAGE="http://sourceforge.net/projects/rpcbind/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="tcpd"
+
+RDEPEND="net-libs/libtirpc
+ tcpd? ( sys-apps/tcp-wrappers )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-pkgconfig.patch
+ epatch "${FILESDIR}"/${P}-uclibc-nss-rpcsvc.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --bindir=/sbin \
+ $(use_enable tcpd libwrap)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ doman man/rpc{bind,info}.8
+ dodoc AUTHORS ChangeLog NEWS README
+ newinitd "${FILESDIR}"/rpcbind.initd rpcbind || die
+ newconfd "${FILESDIR}"/rpcbind.confd rpcbind || die
+}