diff options
author | Qing He <qing.he@intel.com> | 2010-08-11 10:23:16 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-13 13:36:03 +0100 |
commit | 22ae6b193d2af1cd11a84937cc2432767782fa14 (patch) | |
tree | e5adbeb437eac526ed014a032140009cad3b6dbb /meta/packages/portmap/portmap-6.0/tcpd-config.patch | |
parent | 6ffc4f2e04f2d405b14f198220a3613d386489e7 (diff) | |
download | openembedded-core-22ae6b193d2af1cd11a84937cc2432767782fa14.tar.gz openembedded-core-22ae6b193d2af1cd11a84937cc2432767782fa14.tar.bz2 openembedded-core-22ae6b193d2af1cd11a84937cc2432767782fa14.tar.xz openembedded-core-22ae6b193d2af1cd11a84937cc2432767782fa14.zip |
portmap: enable tcp-wrappers support
this enables the hosts access control facility (i.e. /etc/hosts.allow
and /etc/hosts.deny)
changes:
- enable tcp-wrappers by change make flags and cppflags
- rename patch no-tcpd-support to avoid confusion
- minor cleanups
Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/packages/portmap/portmap-6.0/tcpd-config.patch')
-rw-r--r-- | meta/packages/portmap/portmap-6.0/tcpd-config.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/packages/portmap/portmap-6.0/tcpd-config.patch b/meta/packages/portmap/portmap-6.0/tcpd-config.patch new file mode 100644 index 000000000..da55f3799 --- /dev/null +++ b/meta/packages/portmap/portmap-6.0/tcpd-config.patch @@ -0,0 +1,28 @@ +From: Mike Frysinger <vapier@gentoo.org> +Date: Sun, 13 May 2007 21:17:32 +0000 (-0400) +Subject: fix building with tcpd support disabled +X-Git-Url: http://neil.brown.name/git?p=portmap;a=commitdiff_plain;h=7847207aed1b44faf077eed14a9ac9c68244eba5 + +fix building with tcpd support disabled + +Make sure pmap_check.c only includes tcpd.h when HOSTS_ACCESS is defined. + +Signed-off-by: Timothy Redaelli <drizzt@gentoo.org> +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +Signed-off-by: Neil Brown <neilb@suse.de> +--- + +diff --git a/pmap_check.c b/pmap_check.c +index 84f2c12..443a822 100644 +--- a/pmap_check.c ++++ b/pmap_check.c +@@ -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> + |