From dd131fc02e0a8f52fac4d5e90a6a8c394cd95e93 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Sun, 12 Oct 2014 10:06:10 +0000 Subject: Fix some missing includes. (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key A792A613) --- net-analyzer/netwatch/ChangeLog | 10 ++++- .../netwatch/files/netwatch-1.3.0.1-includes.patch | 22 ++++++++++ net-analyzer/netwatch/netwatch-1.3.0.1-r3.ebuild | 49 ++++++++++++++++++++++ 3 files changed, 79 insertions(+), 2 deletions(-) create mode 100644 net-analyzer/netwatch/files/netwatch-1.3.0.1-includes.patch create mode 100644 net-analyzer/netwatch/netwatch-1.3.0.1-r3.ebuild diff --git a/net-analyzer/netwatch/ChangeLog b/net-analyzer/netwatch/ChangeLog index 2f2eb42eb0bf..ef401d3c727b 100644 --- a/net-analyzer/netwatch/ChangeLog +++ b/net-analyzer/netwatch/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/netwatch -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netwatch/ChangeLog,v 1.18 2013/12/23 02:20:08 jer Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netwatch/ChangeLog,v 1.19 2014/10/12 10:06:10 jer Exp $ + +*netwatch-1.3.0.1-r3 (12 Oct 2014) + + 12 Oct 2014; Jeroen Roovers +netwatch-1.3.0.1-r3.ebuild, + +files/netwatch-1.3.0.1-includes.patch: + Fix some missing includes. 23 Dec 2013; Jeroen Roovers files/netwatch-1.3.0.1-fix-fortify.patch: diff --git a/net-analyzer/netwatch/files/netwatch-1.3.0.1-includes.patch b/net-analyzer/netwatch/files/netwatch-1.3.0.1-includes.patch new file mode 100644 index 000000000000..f0f0ea508a71 --- /dev/null +++ b/net-analyzer/netwatch/files/netwatch-1.3.0.1-includes.patch @@ -0,0 +1,22 @@ +--- a/warning.c ++++ b/warning.c +@@ -2,6 +2,9 @@ + #include "netwatch.h" + #include + #include ++#include /* time() ctime() */ ++#include /* system() */ ++#include /* unlink() */ + + static FILE *tmpfp; + static char tmpname[256]; +--- a/netwatch.c ++++ b/netwatch.c +@@ -71,6 +71,7 @@ + #include + #include + #include ++#include /* isalnum() isspace() ispunct() */ + /* + * #include + */ diff --git a/net-analyzer/netwatch/netwatch-1.3.0.1-r3.ebuild b/net-analyzer/netwatch/netwatch-1.3.0.1-r3.ebuild new file mode 100644 index 000000000000..9a51f4d5495e --- /dev/null +++ b/net-analyzer/netwatch/netwatch-1.3.0.1-r3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netwatch/netwatch-1.3.0.1-r3.ebuild,v 1.1 2014/10/12 10:06:10 jer Exp $ + +EAPI=5 +inherit autotools eutils versionator + +MY_PV=$(replace_version_separator 3 '-') + +DESCRIPTION="Ethernet/PPP IP Packet Monitor" +HOMEPAGE="http://www.slctech.org/~mackay/netwatch.html" +SRC_URI="http://www.slctech.org/~mackay/NETWATCH/${PN}-${MY_PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND="sys-libs/ncurses" +DEPEND=" + ${RDEPEND} + sys-kernel/linux-headers + virtual/pkgconfig +" + +S=${WORKDIR}/${PN}-$(get_version_component_range 1-3) + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-append_ldflags.patch \ + "${FILESDIR}"/${P}-open.patch \ + "${FILESDIR}"/${P}-fix-fortify.patch \ + "${FILESDIR}"/${P}-do-not-call.patch \ + "${FILESDIR}"/${P}-includes.patch \ + "${FILESDIR}"/${P}-tinfo.patch + + eautoreconf +} + +src_install() { + dosbin netresolv netwatch + + doman netwatch.1 + dodoc BUGS CHANGES README* TODO + + if use doc; then + dohtml NetwatchKeyCommands.html + fi +} -- cgit v1.2.3-65-gdbad