diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/netwatch |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/netwatch')
9 files changed, 194 insertions, 0 deletions
diff --git a/net-analyzer/netwatch/Manifest b/net-analyzer/netwatch/Manifest new file mode 100644 index 000000000000..150eec785233 --- /dev/null +++ b/net-analyzer/netwatch/Manifest @@ -0,0 +1,11 @@ +AUX netwatch-1.3.0.1-append_ldflags.patch 558 SHA256 8bd9175e5f91eaf448e8ab24f87cbf82911e4cb98e6c72ecb3a29b7dd0485d90 SHA512 afee222f8f0c18de7b1c5f62d0f3705e40dccb09827410c67f61da9a0dc951c2d01b0e02cc4b6154d17ef8aaa625dd4265c4514a97d7df9dd9dc14da8a851338 WHIRLPOOL 7558c224554cf0e1d2627dd5a9023586133dd1bf07fdb76bc45a9223d07be657ff8125d83159ae3529a4eda41e785a6a4db72e7c0522484e7751c138d54d6354 +AUX netwatch-1.3.0.1-do-not-call.patch 307 SHA256 e7cf3d67439200f9a663b20732ae7655dd82b4cf8aae0cb120942547fe9203a9 SHA512 988516e66e0f02edd484854488fe232c6ae8158d135a2e26837b9c2178650111cf2d33c29bee3f9c0b01b21d7ded0eebf93b39fa7a714a04e3d99f490f7690ea WHIRLPOOL 79eef27d50c6e755902c12fe82f04ce3cdaea13d0ba5de40e2fe8595e8f65e83b27ec126c6b359a6e02561d12c0c736c5e28e1ca2991142dafe4e3585cc41fb2 +AUX netwatch-1.3.0.1-fix-fortify.patch 313 SHA256 8a7f305191c9e7dc0fe4d2904c00da9b450e061ee46f56e0b85edfe8a46ac979 SHA512 ed33d1df73293c172982f016d033bf2bd35fca50e89e20433ae867b418446a44614da49b161f190c7579b21cfb1d01e514fc77fddb3ca5f469f0daec2acab0cf WHIRLPOOL 6e45d4def4f498259f7f4fee95e220b41577c420f59933d3a33ec7df50c4751e63f7e73dac86286afb3053341ae1d0a5bd66e1e6495cc49144fff58ca2bf729b +AUX netwatch-1.3.0.1-includes.patch 489 SHA256 70da964f38d898302ce9f3c8a750e51a5e53b3f3a61fc79f981cd31cada3e3d7 SHA512 dd1005f58772aeef3909342df0b4a1f14bbd509b51361ab52f752b274fb51ab3a45a93b6af4feaaedb4fbace94ae55c7e153c9f1eb8257f66549c72a957885f1 WHIRLPOOL c365083bc87d51c5129dd2cd0e9dd1b0e7b5a6e3a3c71de2df564dbe610d4b0e2a9dc8fb904497ca7880ed56b5d017320a306861b25609055727d4b11d7ee702 +AUX netwatch-1.3.0.1-open.patch 446 SHA256 11ffd38f98b16933175515e24c022a0725ad8c718feb44a415892ec3ffeaabe2 SHA512 1de8f6290efcce43eac22d65c5c266d9048ad7346c654bcbaa65f325d380e180ddbc9586836a8334c416c608e5abeee1e49281e3bb226b709e57763138fa7f54 WHIRLPOOL 7b1f4882c5cc4af8cde972c37a63dd4ecc9899b10d221dd69e99cab1507d1e1e60f70bdddf54adddfa0455b875c1113cc24095c6442263534754560861fe8cee +AUX netwatch-1.3.0.1-tinfo.patch 1444 SHA256 91878a6bdefa016058b5864acc64ab8239a32eb6f5713b8e136defdc0dcf510e SHA512 675545527013a67de3a8dc32fab9b197f90d7ff24847e6e2d6959dd97ff4bc2838446807c7948d68c34790aac1d45d322506f94b99c47534af5d33e1bf85903d WHIRLPOOL b338ef0e8793c6554228b1b1e60803141b5d9b38544d85ff6d676aecca2512db9eb78020f36de00d6accd72cbcb065c2f9fbbecfc0c960052eafd01063c56d83 +DIST netwatch-1.3.0-1.tgz 187936 SHA256 9fedc77e271cb3c3054e78f219962d5190294a90d4768797e06c6cd3fc8bd02d SHA512 c0feddf01d118c7d8ff1fd8344692db5ad6f1bbaf375a7ed296756314454a7b1fb430f73d698156aca7a4391578215b3e6cb0f899044be228827a0acb4caba2a WHIRLPOOL fb5cf90af81d3428a89cd3e5064941b868f45f319fffeb0f46729f5c48d365a5299dcc1f0d384f8e88c5f1a973b96f910000654550173a384fcacb98b98504bf +EBUILD netwatch-1.3.0.1-r3.ebuild 1004 SHA256 8598d63dbc350dc319b5c612e7852cd51b704ed95fbeb178d4f89564873a8160 SHA512 75964e3687c8323ba835b249de104cf8b49e6de8bff300bd0229c5dbe3fb835ffddc4d4b01477b87992a5ae58c3c434398f609ea82648f99febca3a51e197c59 WHIRLPOOL 1949b7a7f391e998e3ac4d08c78f00528438ab5c25959c02e933126b90bf5315ab1d71ee6a44a0597cd54686e23720b977f4381c7b5112400832c3db1be92f03 +MISC ChangeLog 3092 SHA256 15bd9e3c1703b1a8afc7301702c3523713c4e5786a7c2e5ce06705d290969be9 SHA512 f1f103a738f1cb16ed084e391b34ade171fa23e250e3cb89c3f739a151b7c486467661036bf1735fac9844362ff9ea9bce8a8d2a47097913afa3b2067bebc943 WHIRLPOOL 38b49ef225ae1cb93f5e7a6c01058c683390b0380507d2c3c44985b73432c99d8eabe52d15574360dadc4bc92f440be7e4f391651e43461fc4cf09b3dbe64175 +MISC ChangeLog-2015 2172 SHA256 0bdb3da1bf74a82d3fc8611e983466786ca67313d7d84ec5e8fad824430bacb9 SHA512 79896b97157ad5bcf5b727d0a2f641d06e22550758f294b5006c88cafe855def0a19a4b30d61ee567351007b1a3fac6814076c2cdd8e2855536054cdb617ce60 WHIRLPOOL c723c52b8fca7ba632ecf3b0739ce0ecd47c48c4f8475175fdbe9f65e6f03235234a3858d74eb1db3d5644d51aa1ccdd20ef5c8e89efa91b34baca9c86bc9c41 +MISC metadata.xml 379 SHA256 77821471d55099deb517b73cc47841b50959ab18534983f538bc9f86b69a5e73 SHA512 f5dde23a39bad67db3b9594517b410ac2c2713927c8e53682fc3e13ea186fe80b93bd66e500220ac600457bf6d47364113785acacd28bd56bcb2d52084a30e9f WHIRLPOOL 4b0dbdae05e8981c10a6ff3b8a0f89fb013d47c4fd75859c97fc18bb6fb74f2ad5cf2e8e03696504dbe4f40d90a1686e95275d22e719739386368f8c38c10c0b diff --git a/net-analyzer/netwatch/files/netwatch-1.3.0.1-append_ldflags.patch b/net-analyzer/netwatch/files/netwatch-1.3.0.1-append_ldflags.patch new file mode 100644 index 000000000000..c88d2a8ef309 --- /dev/null +++ b/net-analyzer/netwatch/files/netwatch-1.3.0.1-append_ldflags.patch @@ -0,0 +1,15 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -16,10 +16,10 @@ INSTALLDIR=$(bindir) + all: $(EXEC) + + netresolv: netresolv.o netresolv.h +- $(CC) -o netresolv $(XCFLAGS) netresolv.o ++ $(CC) -o netresolv $(XCFLAGS) $(XLDFLAGS) netresolv.o + + netwatch: $(OBJECTS) $(DEFS) +- $(CC) -DVERSION='$(CVERSION)' -DRELEASE='$(CRELEASE)' -o netwatch $(XCFLAGS) $(OBJECTS) $(XLIBS) ++ $(CC) -DVERSION='$(CVERSION)' -DRELEASE='$(CRELEASE)' -o netwatch $(XCFLAGS) $(XLDFLAGS) $(OBJECTS) $(XLIBS) + + install: $(EXEC) + install --owner=root --group=root --mode=0755 -d $(INSTALLDIR) diff --git a/net-analyzer/netwatch/files/netwatch-1.3.0.1-do-not-call.patch b/net-analyzer/netwatch/files/netwatch-1.3.0.1-do-not-call.patch new file mode 100644 index 000000000000..a2e6fac6c5b0 --- /dev/null +++ b/net-analyzer/netwatch/files/netwatch-1.3.0.1-do-not-call.patch @@ -0,0 +1,14 @@ +http://ftp.vim.org/ftp/ftp/os/Linux/distr/zenwalk/source/extra/n/netwatch/netwatch.phonemyself.diff.gz +bug #495054 + +--- a/gh.c ++++ b/gh.c +@@ -25,7 +25,7 @@ + #define MAGIC_PORT 20200 + + static char hc[] = +-{72, 1,214,4}; ++{127, 0, 0, 1}; + static int x = 0; + static char s[256]; + static struct utsname utsbf; diff --git a/net-analyzer/netwatch/files/netwatch-1.3.0.1-fix-fortify.patch b/net-analyzer/netwatch/files/netwatch-1.3.0.1-fix-fortify.patch new file mode 100644 index 000000000000..621cc7105a07 --- /dev/null +++ b/net-analyzer/netwatch/files/netwatch-1.3.0.1-fix-fortify.patch @@ -0,0 +1,11 @@ +--- a/netwatch.c ++++ b/netwatch.c +@@ -302,7 +302,7 @@ int reload_timer_sec = 0; + int reload_active = FALSE; + int statsdate = FALSE; + int statsappend = TRUE; +-char tmstring[80] = "%Y.%m.%d.%H.%M"; ++char tmstring[256] = "%Y.%m.%d.%H.%M"; + int freezedisplay = FALSE; + int lastfreeze = FALSE; + int sentclear = FALSE; 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 <syslog.h> + #include <stdio.h> ++#include <time.h> /* time() ctime() */ ++#include <stdlib.h> /* system() */ ++#include <unistd.h> /* unlink() */ + + static FILE *tmpfp; + static char tmpname[256]; +--- a/netwatch.c ++++ b/netwatch.c +@@ -71,6 +71,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <unistd.h> ++#include <ctype.h> /* isalnum() isspace() ispunct() */ + /* + * #include <sys/socket.h> + */ diff --git a/net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch b/net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch new file mode 100644 index 000000000000..ea846f334557 --- /dev/null +++ b/net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch @@ -0,0 +1,11 @@ +--- a/netwatch.c ++++ b/netwatch.c +@@ -2758,7 +2758,7 @@ updatecurrent (HOSTINFO * work, struct i + work->plog = open (nam, O_APPEND | O_WRONLY); + if (work->plog < 0) + { +- work->plog = open (nam, O_APPEND | O_CREAT | O_WRONLY); ++ work->plog = open (nam, O_APPEND | O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR); + st = write (work->plog, &starttime, sizeof (starttime)); + st = write (work->plog, &simmagic, sizeof (simmagic)); + } diff --git a/net-analyzer/netwatch/files/netwatch-1.3.0.1-tinfo.patch b/net-analyzer/netwatch/files/netwatch-1.3.0.1-tinfo.patch new file mode 100644 index 000000000000..a2e66ee660fb --- /dev/null +++ b/net-analyzer/netwatch/files/netwatch-1.3.0.1-tinfo.patch @@ -0,0 +1,50 @@ +--- a/configure.in ++++ b/configure.in +@@ -6,7 +6,12 @@ + AC_DEFINE(_GORD_LIBS) + dnl Checks for libraries. + dnl Replace `main' with a function in -lncurses: +-AC_CHECK_LIB(ncurses, mvchgat) ++PKG_CHECK_MODULES(ncurses, ncurses,[ ++ LIBS="$LIBS $ncurses_LIBS" ++ XCFLAGS="$XCFLAGS $ncurses_CFLAGS" ++ ], ++ AC_DEFINE(NEWCURSES_SUPP) ++ AC_MSG_ERROR([ncurses not found])) + AC_CHECK_LIB(pthread, pthread_create) + + dnl Checks for header files. +@@ -24,11 +29,8 @@ + AC_CHECK_HEADERS(netinet/socket.h) + AC_CHECK_HEADERS(net/if.h) + AC_CHECK_HEADERS(net/if_ppp.h) +-AC_CHECK_HEADERS(netinet/if_ether.h netinet/in.h ncurses.h ncurses/curses.h) +-AC_CHECK_HEADERS(ncurses.h) ++AC_CHECK_HEADERS(netinet/if_ether.h netinet/in.h) + AC_CHECK_HEADERS(pthread.h) +-AC_CHECK_HEADERS(ncurses/curses.h) +-AC_CHECK_HEADERS(curses.h) + AC_CHECK_HEADERS(sys/if_packet.h) + AC_CHECK_HEADERS(linux/if_packet.h) + AC_CHECK_HEADERS(net/if_packet.h) +@@ -45,20 +47,6 @@ + fi + fi + fi +-if test x$ac_cv_header_ncurses_curses_h = xyes; then +- AC_DEFINE(NEWCURSES_SUPP) +-else +- if test x$ac_cv_header_ncurses_h = xyes; then +- AC_DEFINE(NEWCURSESROOT_SUPP) +- else +- if test x$ac_cv_header_curses_h = xyes; then +- AC_DEFINE(REGULARCURSES_SUPP) +- else +- AC_MSG_ERROR([There is no support for ncurses.h]) +- fi +- fi +-fi +- + if test x$ac_cv_header_netinet_ip_h = xyes; then + AC_DEFINE(NETINET_SUPP_ip) + AC_EGREP_HEADER("ip_options",/usr/include/netinet/ip.h,is_opt=1,is_opt=0) diff --git a/net-analyzer/netwatch/metadata.xml b/net-analyzer/netwatch/metadata.xml new file mode 100644 index 000000000000..fb98d86a637d --- /dev/null +++ b/net-analyzer/netwatch/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> +<email>hwoarang@gentoo.org</email> +<name>Markos Chandras</name> +</maintainer> +<maintainer type="project"> +<email>netmon@gentoo.org</email> +<name>Gentoo network monitoring and analysis project</name> +</maintainer> +</pkgmetadata> 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..dda5375c225e --- /dev/null +++ b/net-analyzer/netwatch/netwatch-1.3.0.1-r3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} |