diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-06-17 06:04:24 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-06-17 06:04:24 +0000 |
commit | dcee0927168a072b107c873acc3b647de9ddd639 (patch) | |
tree | 38e84aaf37fe52bd79ed5b088f4abdd551181ed7 /sys-apps/netkit-base | |
parent | Version bump. (diff) | |
download | gentoo-2-dcee0927168a072b107c873acc3b647de9ddd639.tar.gz gentoo-2-dcee0927168a072b107c873acc3b647de9ddd639.tar.bz2 gentoo-2-dcee0927168a072b107c873acc3b647de9ddd639.zip |
Disable useless rpc services #371395 by Diego Elio Pettenò.
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/netkit-base')
-rw-r--r-- | sys-apps/netkit-base/ChangeLog | 6 | ||||
-rw-r--r-- | sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch | 26 | ||||
-rw-r--r-- | sys-apps/netkit-base/netkit-base-0.17-r9.ebuild | 12 |
3 files changed, 37 insertions, 7 deletions
diff --git a/sys-apps/netkit-base/ChangeLog b/sys-apps/netkit-base/ChangeLog index 480892c5bb46..e2ebd3df45f3 100644 --- a/sys-apps/netkit-base/ChangeLog +++ b/sys-apps/netkit-base/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/netkit-base # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/netkit-base/ChangeLog,v 1.31 2011/04/16 19:13:52 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/netkit-base/ChangeLog,v 1.32 2011/06/17 06:04:24 vapier Exp $ + + 17 Jun 2011; Mike Frysinger <vapier@gentoo.org> netkit-base-0.17-r9.ebuild, + +files/005_all_netkit-base-0.17-no-rpc.patch: + Disable useless rpc services #371395 by Diego Elio Pettenò. 16 Apr 2011; Ulrich Mueller <ulm@gentoo.org> netkit-base-0.17-r8.ebuild, netkit-base-0.17-r9.ebuild: diff --git a/sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch b/sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch new file mode 100644 index 000000000000..3981b50e76e1 --- /dev/null +++ b/sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch @@ -0,0 +1,26 @@ +the rpc logic here isn't terribly useful, so just punt it + +http://bugs.gentoo.org/371395 + +--- a/inetd/inetd.c ++++ b/inetd/inetd.c +@@ -158,8 +158,8 @@ + #include <rpc/rpc.h> + #include <rpc/pmap_clnt.h> + #undef __wait +-#endif + #include <rpc/pmap_clnt.h> ++#endif + + #ifndef MIN + #define MIN(a, b) ((a) < (b) ? (a) : (b)) +--- a/inetd/inetd.h ++++ b/inetd/inetd.h +@@ -4,7 +4,6 @@ + + #define RETRYTIME (60*10) /* retry time after bind/server fail */ + +-#define RPC /* Use SunRPC */ + + + /* globals */ diff --git a/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild b/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild index d56165f6d9ef..d8f58e18d66e 100644 --- a/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild +++ b/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild,v 1.2 2011/04/16 19:13:52 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild,v 1.3 2011/06/17 06:04:24 vapier Exp $ EAPI=2 @@ -23,10 +23,10 @@ PATCHES=( "${FILESDIR}" ) src_configure() { ./configure || die - sed -e "s:^CFLAGS=.*:CFLAGS=${CFLAGS} -Wall -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline:" \ - MCONFIG > MCONFIG.new || die "Unable to set CFLAGS for build" - sed -e "s:^LDFLAGS=.*:LDFLAGS=${LDFLAGS}:" \ - MCONFIG.new > MCONFIG || die "Unable to set LDFLAGS for build" + sed -i \ + -e "/^CFLAGS=/s:=.*:=${CFLAGS} -Wall -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline:" \ + -e "/^LDFLAGS=/s:=.*:=${LDFLAGS}:" \ + MCONFIG || die } src_install() { @@ -34,7 +34,7 @@ src_install() { -e 's:in\.telnetd$:in.telnetd -L /usr/sbin/telnetlogin:' \ etc.sample/inetd.conf - dosbin inetd/inetd + dosbin inetd/inetd || die doman inetd/inetd.8 newinitd "${FILESDIR}"/inetd.rc6 inetd |