summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2007-05-12 20:41:24 +0000
committerRoy Marples <uberlord@gentoo.org>2007-05-12 20:41:24 +0000
commitd6f8d00807bd47d60ab9475acd2f93926e345a61 (patch)
treef6dd9f72c44828d969e0bab1e2d39b253edfa370 /net-nds/portmap
parentStable on mips, per #177316. (diff)
downloadgentoo-2-d6f8d00807bd47d60ab9475acd2f93926e345a61.tar.gz
gentoo-2-d6f8d00807bd47d60ab9475acd2f93926e345a61.tar.bz2
gentoo-2-d6f8d00807bd47d60ab9475acd2f93926e345a61.zip
Enable compile without tcp-wrappers, #178242.
(Portage version: 2.1.2.7)
Diffstat (limited to 'net-nds/portmap')
-rw-r--r--net-nds/portmap/ChangeLog6
-rw-r--r--net-nds/portmap/files/portmap-6.0-tcpd.patch15
-rw-r--r--net-nds/portmap/portmap-6.0.ebuild8
3 files changed, 27 insertions, 2 deletions
diff --git a/net-nds/portmap/ChangeLog b/net-nds/portmap/ChangeLog
index c9c281af7808..95dbf9d92daa 100644
--- a/net-nds/portmap/ChangeLog
+++ b/net-nds/portmap/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-nds/portmap
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-nds/portmap/ChangeLog,v 1.36 2007/05/12 10:57:28 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nds/portmap/ChangeLog,v 1.37 2007/05/12 20:41:24 uberlord Exp $
+
+ 12 May 2007; Roy Marples <uberlord@gentoo.org>
+ +files/portmap-6.0-tcpd.patch, portmap-6.0.ebuild:
+ Enable compile without tcp-wrappers, #178242.
*portmap-6.0 (12 May 2007)
diff --git a/net-nds/portmap/files/portmap-6.0-tcpd.patch b/net-nds/portmap/files/portmap-6.0-tcpd.patch
new file mode 100644
index 000000000000..9c74039844ea
--- /dev/null
+++ b/net-nds/portmap/files/portmap-6.0-tcpd.patch
@@ -0,0 +1,15 @@
+Enable compile without tcp-wrappers, #178242.
+
+diff -Nur portmap_6.0.orig/pmap_check.c portmap_6.0/pmap_check.c
+--- portmap_6.0.orig/pmap_check.c 2007-05-12 22:04:31.146962495 +0200
++++ portmap_6.0/pmap_check.c 2007-05-12 22:05:14.938449291 +0200
+@@ -44,7 +44,9 @@
+ #include <netinet/in.h>
+ #include <rpc/rpcent.h>
+ #endif
++#ifdef HOSTS_ACCESS
+ #include <tcpd.h>
++#endif
+ #include <arpa/inet.h>
+ #include <grp.h>
+
diff --git a/net-nds/portmap/portmap-6.0.ebuild b/net-nds/portmap/portmap-6.0.ebuild
index ad3435b04cca..d85311039b18 100644
--- a/net-nds/portmap/portmap-6.0.ebuild
+++ b/net-nds/portmap/portmap-6.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nds/portmap/portmap-6.0.ebuild,v 1.1 2007/05/12 10:57:28 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nds/portmap/portmap-6.0.ebuild,v 1.2 2007/05/12 20:41:24 uberlord Exp $
inherit eutils toolchain-funcs
@@ -23,6 +23,12 @@ pkg_setup() {
enewuser rpc 111 -1 /dev/null rpc
}
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-tcpd.patch"
+}
+
src_compile() {
tc-export CC
emake NO_TCP_WRAPPER="$(use tcpd || echo NO)" || die