diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-analyzer')
1683 files changed, 67108 insertions, 0 deletions
diff --git a/net-analyzer/2ping/2ping-1.2.3.ebuild b/net-analyzer/2ping/2ping-1.2.3.ebuild new file mode 100644 index 000000000000..ad1efe1932b9 --- /dev/null +++ b/net-analyzer/2ping/2ping-1.2.3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="A bi-directional ping utility" +HOMEPAGE="http://www.finnie.org/software/2ping/" +SRC_URI="http://www.finnie.org/software/2ping/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crc ipv6 md5 sha server" + +# The 2ping script itself checks if these optional deps are available. +DEPEND=" + dev-lang/perl + virtual/perl-Getopt-Long + virtual/perl-Pod-Parser + virtual/perl-IO + virtual/perl-Time-HiRes + ipv6? ( dev-perl/IO-Socket-INET6 ) + md5? ( virtual/perl-Digest-MD5 ) + sha? ( virtual/perl-Digest-SHA ) + crc? ( dev-perl/Digest-CRC ) +" +RDEPEND="${DEPEND}" + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install + dodoc ChangeLog README + use server && { + doinitd "${FILESDIR}"/2pingd + newconfd "${FILESDIR}"/2pingd.conf 2pingd + } +} diff --git a/net-analyzer/2ping/2ping-2.0.ebuild b/net-analyzer/2ping/2ping-2.0.ebuild new file mode 100644 index 000000000000..ad1efe1932b9 --- /dev/null +++ b/net-analyzer/2ping/2ping-2.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="A bi-directional ping utility" +HOMEPAGE="http://www.finnie.org/software/2ping/" +SRC_URI="http://www.finnie.org/software/2ping/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crc ipv6 md5 sha server" + +# The 2ping script itself checks if these optional deps are available. +DEPEND=" + dev-lang/perl + virtual/perl-Getopt-Long + virtual/perl-Pod-Parser + virtual/perl-IO + virtual/perl-Time-HiRes + ipv6? ( dev-perl/IO-Socket-INET6 ) + md5? ( virtual/perl-Digest-MD5 ) + sha? ( virtual/perl-Digest-SHA ) + crc? ( dev-perl/Digest-CRC ) +" +RDEPEND="${DEPEND}" + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install + dodoc ChangeLog README + use server && { + doinitd "${FILESDIR}"/2pingd + newconfd "${FILESDIR}"/2pingd.conf 2pingd + } +} diff --git a/net-analyzer/2ping/2ping-2.1.1.ebuild b/net-analyzer/2ping/2ping-2.1.1.ebuild new file mode 100644 index 000000000000..1b9cd45e5459 --- /dev/null +++ b/net-analyzer/2ping/2ping-2.1.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit perl-module + +DESCRIPTION="A bi-directional ping utility" +HOMEPAGE="http://www.finnie.org/software/2ping/" +SRC_URI="http://www.finnie.org/software/2ping/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crc ipv6 md5 sha server" + +# The 2ping script itself checks if these optional deps are available. +DEPEND=" + >=dev-lang/perl-5.6.0:= + virtual/perl-Getopt-Long + virtual/perl-Pod-Parser + virtual/perl-IO + virtual/perl-Time-HiRes + ipv6? ( dev-perl/IO-Socket-INET6 ) + md5? ( virtual/perl-Digest-MD5 ) + sha? ( virtual/perl-Digest-SHA ) + crc? ( dev-perl/Digest-CRC ) +" + +RDEPEND="${DEPEND}" diff --git a/net-analyzer/2ping/Manifest b/net-analyzer/2ping/Manifest new file mode 100644 index 000000000000..6284dfe0a386 --- /dev/null +++ b/net-analyzer/2ping/Manifest @@ -0,0 +1,3 @@ +DIST 2ping-1.2.3.tar.gz 28755 SHA256 1d0c3f30c99f1437f799f6ba9d0b49d60468cd78c03feb7bea0dde7eff22d3b5 +DIST 2ping-2.0.tar.gz 33048 SHA256 c6c9c16969cd6b0541a2b0d5d8b1694f176ba7e32448bfa500f6ff8763cf75df SHA512 2bbf5347bc5fc354c8c2c8b8cca00a5c4375d48b984273d91bfe0bf62d0592990a55ac5afcecfa3ed46bf59d58607b505339f07e987d0c084889ab0f41368a2a WHIRLPOOL f3f383f05e891c48dcf23e12670834f3093caf27f8d8525960a8fec6854b497cf940e27370bd4ec95fba0771e64ae59d842acff505c222ba2d87468a74f4ad75 +DIST 2ping-2.1.1.tar.gz 27232 SHA256 20fc09dbbc7fa37b90bfa415bad801697bd56c16c653cda551bfadbad3936f65 SHA512 d290fc2cf03dd40a38f72d9f46abfc0ef2e3c65f420b53d00c299b442ad3d9312f459317f6125d3d9b2de888a1292f5f56f49de6de6b869f1dc325b24e20de19 WHIRLPOOL 9273991e2ddd4f68da4f31e9a282d45a05d993079dd86873ca6822904f0fb0c7fc25fe691c89239020d317feea901409ce13f5a6dfce53fdc10f66437b1eb0ed diff --git a/net-analyzer/2ping/files/2pingd b/net-analyzer/2ping/files/2pingd new file mode 100644 index 000000000000..a1cf292ac5fe --- /dev/null +++ b/net-analyzer/2ping/files/2pingd @@ -0,0 +1,36 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DAEMON="/usr/bin/2ping" +PIDFILE="/var/run/2ping" + +depend() { + need net +} + +start() { + ebegin "Starting 2ping server" + start-stop-daemon --start \ + --background --make-pidfile \ + --pidfile "${PIDFILE}" \ + --exec "${DAEMON}" -- \ + --listen -q ${OPTS} \ + >/dev/null + eend $? +} + +stop() { + ebegin "Stopping 2ping server" + start-stop-daemon --stop --pidfile "${PIDFILE}" + eend $? +} + +restart() { + ebegin "Restarting 2ping server" + start-stop-daemon --stop --pidfile "${PIDFILE}" + sleep 1 + start-stop-daemon --start --exec "${DAEMON}" --pidfile "${PIDFILE}" + eend $? +} diff --git a/net-analyzer/2ping/files/2pingd.conf b/net-analyzer/2ping/files/2pingd.conf new file mode 100644 index 000000000000..12c263d3d054 --- /dev/null +++ b/net-analyzer/2ping/files/2pingd.conf @@ -0,0 +1,2 @@ +#Pass any extra 2ping server options here +#OPTS="--ipv6" diff --git a/net-analyzer/2ping/metadata.xml b/net-analyzer/2ping/metadata.xml new file mode 100644 index 000000000000..ea661e700f0a --- /dev/null +++ b/net-analyzer/2ping/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> + <longdescription> + A bi-directional ping utility + </longdescription> + <use> + <flag name='crc'>Enable crc check.</flag> + <flag name='md5'>Enable md5 hash check.</flag> + <flag name='sha'>Enable sha1 or sha256 check.</flag> + <flag name='server'>Install the server init scripts.</flag> + </use> +</pkgmetadata> diff --git a/net-analyzer/aimsniff/Manifest b/net-analyzer/aimsniff/Manifest new file mode 100644 index 000000000000..1677df2e8458 --- /dev/null +++ b/net-analyzer/aimsniff/Manifest @@ -0,0 +1,2 @@ +DIST aimsniff-0.9d.tar.gz 24044 SHA256 11ce4cd3e1dcdabee0319dbb8a52c176debfbcd59c0c0c913078bb4b85619ac1 SHA512 eba8d1ff21c6c841f5e1b344769c38bf00936613c975dd60e0c3922e67805733c2e949006be36a83d75fc6c9c77de510a6914d184c6159e46b9d35cc4f12efa6 WHIRLPOOL 40a882204e0da03843a6a461b036dfb6a84f29fbee22f83c4d962ba0ca838b71499b51f8736ff99eadad7a0ecd30405c7df743081d258b0f4a7141bb20ef69cd +DIST was-0.1.2b.tar.gz 73651 SHA256 0d1af84e7ed529cf0f8a63f4c72e8656ceccf0316cc42dcc9d856cbf8091635b SHA512 afbe8554c16df8305e781cf2dde3af1e7b25345dc1f5defc7723654479cc91d8f6fe9ddc3850fd487f77b241d40274edb2b7328ab011df93996264f14b98e6cd WHIRLPOOL cabbdbb0131ff633472b18226ed424c5d905f0dfbb92a36ccdd08cdba024ba94b88e4b497e10d9d6c4ebd000efa832a0a66ecd105e50a894ed48591633d80d16 diff --git a/net-analyzer/aimsniff/aimsniff-0.9d.ebuild b/net-analyzer/aimsniff/aimsniff-0.9d.ebuild new file mode 100644 index 000000000000..201fa4b00416 --- /dev/null +++ b/net-analyzer/aimsniff/aimsniff-0.9d.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils webapp eutils depend.apache + +WAS_VER="0.1.2b" + +DESCRIPTION="Utility for monitoring and archiving AOL Instant Messenger messages across a network" +HOMEPAGE="http://sourceforge.net/projects/aimsniff/" +SRC_URI=" + mirror://sourceforge/${PN}/${P}.tar.gz + http? ( mirror://sourceforge/${PN}/was-${WAS_VER}.tar.gz ) +" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ppc x86" +#SLOT empty due to webapp +IUSE="samba mysql http" + +RDEPEND=" + dev-lang/perl[gdbm] + dev-perl/Net-Pcap + dev-perl/NetPacket + dev-perl/Unicode-String + dev-perl/Proc-Daemon + dev-perl/Proc-Simple + dev-perl/DBI + dev-perl/Unix-Syslog + mysql? ( virtual/mysql dev-perl/DBD-mysql ) + samba? ( net-fs/samba ) +" + +want_apache2 http + +pkg_setup() { + depend.apache_pkg_setup http + + use http && webapp_pkg_setup +} + +src_install() { + use http && webapp_src_preinst + + newsbin aimSniff.pl aimsniff + insinto /etc/${PN} + doins aimsniff.config + insinto /usr/share/doc/${PF} + doins table.struct + dodoc README ChangeLog + + if use http; then + cp ../was-${WAS_VER}/docs/README README.WAS + dodoc README.WAS + + rm -rf ../was-${WAS_VER}/docs + mv ../was-${WAS_VER}/ "${D}"${MY_HTDOCSDIR}/was + + webapp_serverowned ${MY_HTDOCSDIR}/was + + # This file needs to be serverowned as the server won't be able to write to it if it were + # webapp_configfile'ed. + webapp_serverowned ${MY_HTDOCSDIR}/was/.config.php + + webapp_src_install + fi + + newinitd "${FILESDIR}"/aimsniff.rc aimsniff +} + +pkg_postinst() { + if use mysql + then + echo + elog "To create and enable the mysql database, please run: " + elog "emerge --config =${PF}" + + if use http; then + echo "To create and enable the mysql database, please run: + emerge --config =${PF}" > apache-postinst + webapp_postinst_txt en apache-postinst + fi + fi + + if use http; then + elog + elog "Go to http://${HOSTNAME}/was/admin.php to configure WAS." + + echo "Go to http://${HOSTNAME}/was/admin.php to configure WAS." > was-postinst + webapp_postinst_txt en was-postinst + fi +} + +pkg_config() { + echo + einfo "Creating mysql database aimsniff using /usr/share/doc/${PF}/table.struct:" + echo -n "Please enter your mysql root password: " + read mysql_root + /usr/bin/mysqladmin -p$mysql_root -u root create aimsniff + /usr/bin/mysql -p$mysql_root -u root aimsniff < /usr/share/doc/${PF}/table.struct + echo -n "Please enter your username that you want to connect to the database with: " + read user + echo -n "Please enter the password that you want to use for your database: " + read password + einfo "Granting permisions on database using 'GRANT ALL ON aimsniff.* TO $user IDENTIFIED BY '$password';'" + echo "GRANT ALL ON aimsniff.* TO $user@localhost IDENTIFIED BY '$password';" | /usr/bin/mysql -p$mysql_root -u root aimsniff + echo +} diff --git a/net-analyzer/aimsniff/files/aimsniff.rc b/net-analyzer/aimsniff/files/aimsniff.rc new file mode 100644 index 000000000000..d94f6a9dcc79 --- /dev/null +++ b/net-analyzer/aimsniff/files/aimsniff.rc @@ -0,0 +1,18 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting asniff" + start-stop-daemon -o --quiet --start --exec /usr/sbin/aimsniff -- \ + -C=/etc/aimsniff/aimsniff.config + eend $? +} + +stop() { + ebegin "Stopping asniff" + start-stop-daemon -o --stop -p /var/run/aimsniff_parent.pid -s QUIT + eend $? +} diff --git a/net-analyzer/aimsniff/metadata.xml b/net-analyzer/aimsniff/metadata.xml new file mode 100644 index 000000000000..b17448781b40 --- /dev/null +++ b/net-analyzer/aimsniff/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> + <longdescription>aimsniff is a utility used for retrieving and storing AIM messages across a network.</longdescription> + <use> + <flag name="http">Install the WAS (Web AIM Sniff) frontend</flag> + </use> + <upstream> + <remote-id type="sourceforge">aimsniff</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-analyzer/alive/Manifest b/net-analyzer/alive/Manifest new file mode 100644 index 000000000000..d61a53bcf0d7 --- /dev/null +++ b/net-analyzer/alive/Manifest @@ -0,0 +1,2 @@ +DIST alive-2.0.1.tar.xz 172320 SHA256 539fabc6e3e8fee9dc4753b5ba8cf3cde566bd4b0d9410d81b54c18e11644ba6 SHA512 9f1d4020b72568e96ea67010728cb1274a883f7328444009839be999a1fc9466e8199d8415e589e27314106a8ae1c4a18f0b1bd342185e7878895ad962289ecf WHIRLPOOL 881b4b4a8d5d78d64353f1ef374c8dbf5a522276b1545b255ebf7f1ce8eedc7a27e358c620dfe91cda38e980023e3caa92291028be8ed3009bd31698fbf89c70 +DIST alive-2.0.2.tar.xz 174936 SHA256 120dd9ef361833623be353ad8cfac585abae51a16fedd3a84f1d99a842793fef SHA512 7e9c88f62ab5c0248d1e42b81e2106f43fc9587543782623e8a564ab99fd1d4a55058a175dc46d25520454c07f732101c7e62248ce992d1a8a615f531b1c090e WHIRLPOOL 8c223e26565e0d85ab0e075bd66b78452d5e3446681f9fd2d020a1b0ddee347b7fa6b9144b041684b15cd7f21709271ea6b1d8e1566cc0f3a530a69eb9c1384e diff --git a/net-analyzer/alive/alive-2.0.1.ebuild b/net-analyzer/alive/alive-2.0.1.ebuild new file mode 100644 index 000000000000..45bbef89d1e5 --- /dev/null +++ b/net-analyzer/alive/alive-2.0.1.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="a periodic ping program" +HOMEPAGE="http://www.gnu.org/software/alive/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="" + +DEPEND="app-arch/xz-utils" +RDEPEND=" + dev-scheme/guile + net-misc/iputils +" diff --git a/net-analyzer/alive/alive-2.0.2.ebuild b/net-analyzer/alive/alive-2.0.2.ebuild new file mode 100644 index 000000000000..048035d477c8 --- /dev/null +++ b/net-analyzer/alive/alive-2.0.2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="a periodic ping program" +HOMEPAGE="http://www.gnu.org/software/alive/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="" + +COMMON_DEPEND="net-misc/iputils" +DEPEND=" + app-arch/xz-utils + ${COMMON_DEPEND} +" +RDEPEND=" + dev-scheme/guile + ${COMMON_DEPEND} +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ping-test.patch + eautoreconf +} diff --git a/net-analyzer/alive/files/alive-2.0.2-ping-test.patch b/net-analyzer/alive/files/alive-2.0.2-ping-test.patch new file mode 100644 index 000000000000..3b1b1257c9b3 --- /dev/null +++ b/net-analyzer/alive/files/alive-2.0.2-ping-test.patch @@ -0,0 +1,14 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -35,11 +35,6 @@ + [alive_cv_nice_ping=yes], + [alive_cv_nice_ping=no])]) + +-dnl Luckily both inetutils-ping and iputils-ping are nice. +-AS_IF([test xno = x$alive_cv_nice_ping], +-[AC_MSG_ERROR([$PING does not support ‘-n -c 1’. +-Please install a ping program that does, and retry.])]) +- + AC_CONFIG_FILES([ + Makefile + src/Makefile diff --git a/net-analyzer/alive/metadata.xml b/net-analyzer/alive/metadata.xml new file mode 100644 index 000000000000..03aa50bab7e3 --- /dev/null +++ b/net-analyzer/alive/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +</pkgmetadata> diff --git a/net-analyzer/amap/Manifest b/net-analyzer/amap/Manifest new file mode 100644 index 000000000000..5b4f82e11b63 --- /dev/null +++ b/net-analyzer/amap/Manifest @@ -0,0 +1 @@ +DIST amap-5.4.tar.gz 263331 SHA256 a75ea58de75034de6b10b0de0065ec88e32f9e9af11c7d69edbffc4da9a5b059 SHA512 e1a9f03940eded3eedad0028786f4ea6c18077072d52eb2f843ef0b4ff736bf1766c4bdb4eff52d3a8f6038d8f795e39be1c15bcae8283ddae8f40a7fff8647d WHIRLPOOL a7f08440d4e9ccf8ef1909aecebd95bb7a2bb7ddb5917d76b796e146821fe2d962518673faedd9f7665e18b97302e5ac50953f875473dd41328e1b5e77996240 diff --git a/net-analyzer/amap/amap-5.4.ebuild b/net-analyzer/amap/amap-5.4.ebuild new file mode 100644 index 000000000000..3c628314531e --- /dev/null +++ b/net-analyzer/amap/amap-5.4.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="A network scanning tool for pentesters" +HOMEPAGE="https://www.thc.org/thc-amap/" +SRC_URI="https://www.thc.org/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd" +IUSE="ssl" + +DEPEND=" + dev-libs/libpcre + ssl? ( >=dev-libs/openssl-0.9.6j ) +" +RDEPEND=" + ${DEPEND} + !sci-biology/amap +" + +src_prepare() { + rm -r pcre-3.9 || die + sed -i -e "s:etc/:share/amap/:g" amap-lib.c || die + # Above change requires below change. See sources... + sed -i '/strlen(AMAP_PREFIX/s: 5 : 12 :' amap-lib.c || die + sed -i 's:/usr/local:/usr:' amap.h || die + # Files to be updated are at different location, bug 207839. + sed -i '/AMAP_RESOURCE/s:www:freeworld:' amap.h || die + + sed -i '/DATADIR/s:/etc:/share/amap:' Makefile.am || die + + epatch "${FILESDIR}"/4.8-system-pcre.patch +} + +src_configure() { + # non-autotools configure script + ./configure || die + sed -i \ + -e '/^XDEFINES=/s:=.*:=:' \ + -e '/^XLIBS=/s:=.*:=:' \ + -e '/^XLIBPATHS/s:=.*:=:' \ + -e '/^XIPATHS=/s:=.*:=:' \ + -e "/^CC=/d" \ + Makefile || die + if use ssl ; then + sed -i \ + -e '/^XDEFINES=/s:=:=-DOPENSSL:' \ + -e '/^XLIBS=/s:=:=-lcrypto -lssl:' \ + Makefile || die + fi + sed -i Makefile \ + -e '/-o amap/{s|(OPT) |(OPT) $(LDFLAGS) |g}' \ + || die +} + +src_compile() { + emake CC=$(tc-getCC) OPT="${CFLAGS}" +} + +src_install() { + dobin amap amapcrap + insinto /usr/share/amap + doins appdefs.* + + doman ${PN}.1 + dodoc README TODO CHANGES +} diff --git a/net-analyzer/amap/files/4.8-system-pcre.patch b/net-analyzer/amap/files/4.8-system-pcre.patch new file mode 100644 index 000000000000..097bfbf45eb5 --- /dev/null +++ b/net-analyzer/amap/files/4.8-system-pcre.patch @@ -0,0 +1,45 @@ +diff --exclude='*~' -urN amap-4.8.orig/amap-inc.h amap-4.8/amap-inc.h +--- amap-4.8.orig/amap-inc.h 2005-02-21 21:47:47.251638320 -0500 ++++ amap-4.8/amap-inc.h 2005-02-21 21:48:27.774477912 -0500 +@@ -20,7 +20,7 @@ + #include <errno.h> + #include <sys/resource.h> + #include <sys/wait.h> +-#include "pcre-3.9/pcre.h" ++#include <pcre.h> + #ifdef OPENSSL + #include <openssl/ssl.h> + #include <openssl/err.h> +diff --exclude='*~' -urN amap-4.8.orig/configure amap-4.8/configure +--- amap-4.8.orig/configure 2005-02-21 21:47:47.240639992 -0500 ++++ amap-4.8/configure 2005-02-21 21:48:41.379409648 -0500 +@@ -13,10 +13,6 @@ + exit 0 + fi + +-cd pcre-3.9 || exit 1 +-./configure || exit 1 +-cd .. +- + echo + echo + echo "Starting amap auto configuration ..." +diff --exclude='*~' -urN amap-4.8.orig/Makefile.am amap-4.8/Makefile.am +--- amap-4.8.orig/Makefile.am 2005-02-21 21:47:47.242639688 -0500 ++++ amap-4.8/Makefile.am 2005-02-21 21:49:16.070135856 -0500 +@@ -1,5 +1,5 @@ + CC=gcc +-LIB=-lpcre -L./pcre-3.9/ -I./pcre-3.9/ ++LIB=-lpcre + OPT=-O2 + OPT_DEBUG=-ggdb -Wall -lefence + BINDIR=/bin +@@ -7,7 +7,7 @@ + MANDIR=/man/man1 + SCRIPTS=appdefs.trig appdefs.resp appdefs.rpc + MANPAGE=amap.1 +-all: pcre strip ++all: amap amapcrap + + pcre: + cd pcre-3.9 && make diff --git a/net-analyzer/amap/metadata.xml b/net-analyzer/amap/metadata.xml new file mode 100644 index 000000000000..03aa50bab7e3 --- /dev/null +++ b/net-analyzer/amap/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +</pkgmetadata> diff --git a/net-analyzer/angst/Manifest b/net-analyzer/angst/Manifest new file mode 100644 index 000000000000..3cbb8d0646ae --- /dev/null +++ b/net-analyzer/angst/Manifest @@ -0,0 +1 @@ +DIST angst-0.4b.tar.gz 13909 SHA256 609a7008030649171d6041bd1dd29ec1644db011ad7f8ba2074727a583366dc8 SHA512 5584b1dd01d781cd34b594fcc8970764874599a1f15b1185066ee21c11cde23af148270c178d6a0b3436d71955aaf1cd904703f9dfb0c75d0b70c04d394fb449 WHIRLPOOL 85ece3435a9adf81d20a4579beb86f96002fbe8b8f6d75e96080a88fdc4a0dc3fc133db09fab818874571709e07ec8c73ec26c5391bc2dda46a65b1ef478b0b4 diff --git a/net-analyzer/angst/angst-0.4b-r2.ebuild b/net-analyzer/angst/angst-0.4b-r2.ebuild new file mode 100644 index 000000000000..84b29ec14f97 --- /dev/null +++ b/net-analyzer/angst/angst-0.4b-r2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="an active sniffer that provides methods for aggressive sniffing on switched LANs" +HOMEPAGE="http://angst.sourceforge.net/" +SRC_URI="http://angst.sourceforge.net/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" + +DEPEND="net-libs/libpcap + net-libs/libnet:1.0" +RDEPEND="${DEPEND}" + +src_prepare() { + cp -av Makefile.linux{,.orig} + epatch "${FILESDIR}"/${PV}-libnet-1.0.patch + sed -i Makefile.linux \ + -e 's|^CC =|CC ?=|g' \ + -e '/ -o angst /s|$(OBJS)|$(LDFLAGS) &|g' \ + || die +} + +src_compile() { + emake \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CC="$(tc-getCC)" \ + -f Makefile.linux +} + +src_install() { + dosbin angst + doman angst.8 + dodoc README TODO ChangeLog +} diff --git a/net-analyzer/angst/files/0.4b-libnet-1.0.patch b/net-analyzer/angst/files/0.4b-libnet-1.0.patch new file mode 100644 index 000000000000..b78243a1a187 --- /dev/null +++ b/net-analyzer/angst/files/0.4b-libnet-1.0.patch @@ -0,0 +1,12 @@ +--- Makefile.linux.orig 2003-08-19 01:22:26.737300264 -0400 ++++ Makefile.linux 2003-08-19 01:22:26.745299048 -0400 +@@ -14,2 +14,2 @@ +-LIBS = -L/usr/local/lib `libnet-config --libs` -lpcap +-DEFINE = `libnet-config --defines` -DLINUX #-DDEBUG ++LIBS = -L/usr/local/lib `libnet-1.0-config --libs` -lpcap ++DEFINE = `libnet-1.0-config --defines` -DLINUX #-DDEBUG +--- angst.h.orig 2003-08-19 01:22:26.741299656 -0400 ++++ angst.h 2003-08-19 01:22:26.751298136 -0400 +@@ -12 +12 @@ +-#include <libnet.h> ++#include <libnet-1.0.h> diff --git a/net-analyzer/angst/metadata.xml b/net-analyzer/angst/metadata.xml new file mode 100644 index 000000000000..ed71c61c5906 --- /dev/null +++ b/net-analyzer/angst/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +<longdescription>an active sniffer that provides methods for aggressive sniffing on switched LAN</longdescription> +</pkgmetadata> diff --git a/net-analyzer/apinger/Manifest b/net-analyzer/apinger/Manifest new file mode 100644 index 000000000000..98899b45568a --- /dev/null +++ b/net-analyzer/apinger/Manifest @@ -0,0 +1 @@ +DIST apinger-0.4.1.tar.gz 26328 SHA256 eb63985d231e7af3ad894d4ef6a2f1c413a937598431d386b5f4044680577f93 SHA512 b8a67149f43da5b6e240dee97315c31a3e6257f1de70da81a6aa63d1e1d7d5bff0b54abe5085a57e90eb7789b7fa8b83c09a51411a6247a81b6f99de3d83120f WHIRLPOOL ab4b73dd13d62cc59becf3c18531738700083e110a6e809c853695e18616e4838b0789a7c357f5b5b81a91a37d8a940409a53562ab8a80b3fbece0f840faec7c diff --git a/net-analyzer/apinger/apinger-0.4.1.ebuild b/net-analyzer/apinger/apinger-0.4.1.ebuild new file mode 100644 index 000000000000..b52981599b4f --- /dev/null +++ b/net-analyzer/apinger/apinger-0.4.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools + +DESCRIPTION="Alarm Pinger" +HOMEPAGE="https://github.com/Jajcus/apinger/" +SRC_URI="${HOMEPAGE}archive/${PN^^}_${PV//./_}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + sys-devel/flex + virtual/yacc +" + +S=${WORKDIR}/${PN}-${PN^^}_${PV//./_} + +DOCS=( AUTHORS ChangeLog NEWS README TODO ) + +src_prepare() { + sed -i -e 's|\\$||g' acinclude.m4 || die + eautoreconf +} + +src_compile() { + emake -C src/ cfgparser1.h + default +} + +src_install() { + default + insinto /etc + doins src/${PN}.conf +} diff --git a/net-analyzer/apinger/metadata.xml b/net-analyzer/apinger/metadata.xml new file mode 100644 index 000000000000..37a3ce04f3bd --- /dev/null +++ b/net-analyzer/apinger/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> + <upstream> + <remote-id type="github">Jajcus/apinger</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-analyzer/argus-clients/Manifest b/net-analyzer/argus-clients/Manifest new file mode 100644 index 000000000000..60024d3424d8 --- /dev/null +++ b/net-analyzer/argus-clients/Manifest @@ -0,0 +1 @@ +DIST argus-clients-3.0.8.tar.gz 2627515 SHA256 aee8585d50959e00070a382f3121edfaa844a0a51dc0b73edf84c0f4eb8912c9 SHA512 79022b3c3e472ebc526b27c20c25ae97abdb9a363a91ebbe3baf405f2aba9bdd80fbc0250b444d3d7ab4488e3c1325389a4719e92d9aded7598a91c3309369c2 WHIRLPOOL 5147a80ade6beaa44029253807033b1257b0826631deba66cb1176d82919e7e454b5e95df453d15e5a0a6b9b6e09472ab84d21b06ae97e69fca4217028513849 diff --git a/net-analyzer/argus-clients/argus-clients-3.0.8.ebuild b/net-analyzer/argus-clients/argus-clients-3.0.8.ebuild new file mode 100644 index 000000000000..690bb134abd0 --- /dev/null +++ b/net-analyzer/argus-clients/argus-clients-3.0.8.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils toolchain-funcs + +DESCRIPTION="Clients for net-analyzer/argus" +HOMEPAGE="http://www.qosient.com/argus/" +SRC_URI="http://qosient.com/argus/dev/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="debug ft geoip mysql sasl tcpd" + +MY_CDEPEND=" + net-analyzer/rrdtool[perl] + net-libs/libpcap + sys-libs/ncurses + sys-libs/readline + sys-libs/zlib + ft? ( net-analyzer/flow-tools ) + geoip? ( dev-libs/geoip ) + mysql? ( virtual/mysql ) + sasl? ( dev-libs/cyrus-sasl ) +" + +RDEPEND=" + ${MY_CDEPEND} +" + +DEPEND=" + ${MY_CDEPEND} + sys-devel/bison + sys-devel/flex + virtual/pkgconfig +" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-3.0.4.1-disable-tcp-wrappers-automagic.patch \ + "${FILESDIR}"/${PN}-3.0.7.21-curses-readline.patch + + sed -i -e 's| ar | $(AR) |g' common/Makefile.in || die + tc-export AR RANLIB + + eautoreconf +} + +src_configure() { + use debug && touch .debug + econf \ + $(use_with ft libft) \ + $(use_with geoip GeoIP /usr/) \ + $(use_with sasl) \ + $(use_with tcpd wrappers) \ + $(use_with mysql) +} + +src_compile() { + # racurses uses both libncurses and libtinfo, if present + emake \ + CCOPT="${CFLAGS} ${LDFLAGS}" \ + RANLIB=$(tc-getRANLIB) \ + CURSESLIB="$( $(tc-getPKG_CONFIG) --libs ncurses)" +} + +src_install() { + dobin bin/ra* + dodoc ChangeLog CREDITS README CHANGES + doman man/man{1,5}/* +} diff --git a/net-analyzer/argus-clients/files/argus-clients-3.0.4.1-disable-tcp-wrappers-automagic.patch b/net-analyzer/argus-clients/files/argus-clients-3.0.4.1-disable-tcp-wrappers-automagic.patch new file mode 100644 index 000000000000..a08d974ce893 --- /dev/null +++ b/net-analyzer/argus-clients/files/argus-clients-3.0.4.1-disable-tcp-wrappers-automagic.patch @@ -0,0 +1,23 @@ +--- configure.ac.org 2011-01-28 18:26:54.000000000 +0100 ++++ configure.ac 2011-04-20 00:09:37.000000000 +0200 +@@ -121,6 +121,12 @@ + esac + + AC_QOSIENT_THREADS(V_THREADS) ++ ++AC_ARG_WITH(wrappers, ++ [ --with-wrappers build with libwrappers suuport], ++ with_wrappers="$withval", ++ with_wrappers="yes") ++if test "x$with_wrappers" != "xno"; then + AC_QOSIENT_TCPWRAP(V_WRAPDEP, V_INCLS) + if test ! -z "$V_WRAPDEP"; then + if test -f $V_WRAPDEP; then +@@ -144,6 +150,7 @@ + AC_DEFINE([HAVE_TCP_WRAPPER], [], [Using Tcp wrappers]) + WRAPLIBS="$V_WRAPDEP" + fi ++fi + + CURSESLIB="" + diff --git a/net-analyzer/argus-clients/files/argus-clients-3.0.7.21-curses-readline.patch b/net-analyzer/argus-clients/files/argus-clients-3.0.7.21-curses-readline.patch new file mode 100644 index 000000000000..787ff5ac9118 --- /dev/null +++ b/net-analyzer/argus-clients/files/argus-clients-3.0.7.21-curses-readline.patch @@ -0,0 +1,21 @@ +--- a/examples/ratop/Makefile.in ++++ b/examples/ratop/Makefile.in +@@ -54,7 +54,8 @@ + DEFS = @DEFS@ + COMPATLIB = @COMPATLIB@ @LIB_SASL@ @LIBS@ @V_THREADS@ @V_GEOIPDEP@ @V_PCRE@ @V_FTDEP@ @ZLIB@ + +-CURSESLIB = @CURSESLIB@ @V_READLINE@ ++CURSESLIB = @CURSESLIB@ ++V_READLINE = @V_READLINE@ + + # Standard CFLAGS + CFLAGS = $(CCOPT) $(INCLS) $(DEFS) +@@ -93,7 +94,7 @@ + all: $(PROGS) + + $(INSTALLBIN)/ratop: $(OBJ) $(LIB) +- $(CC) $(CFLAGS) -o $@ $(OBJ) $(LDFLAGS) $(LIB) $(COMPATLIB) $(CURSESLIB) ++ $(CC) $(CFLAGS) -o $@ $(OBJ) $(LDFLAGS) $(LIB) $(COMPATLIB) $(CURSESLIB) $(V_READLINE) + + CLEANFILES = $(OBJ) $(PROGS) + diff --git a/net-analyzer/argus-clients/metadata.xml b/net-analyzer/argus-clients/metadata.xml new file mode 100644 index 000000000000..ca640803f2e3 --- /dev/null +++ b/net-analyzer/argus-clients/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +<use><flag name="ft">Enable support for flow packets through +<pkg>net-analyzer/flow-tools</pkg></flag></use> +</pkgmetadata> diff --git a/net-analyzer/argus/Manifest b/net-analyzer/argus/Manifest new file mode 100644 index 000000000000..de07ceb29069 --- /dev/null +++ b/net-analyzer/argus/Manifest @@ -0,0 +1,2 @@ +DIST argus-3.0.8.1.tar.gz 523375 SHA256 1fb921104c8bd843fb9f5a1c32b57b20bfe8cd8a103b3f1d9bb686b9e6c490a4 SHA512 d96332849df7ce2297aa0d81a9f22c12763d04b2936ffaffc0e4b1942535846cfbc41dadf28791eb88d1ffd0429bdc280d16dff44369c415c713064849b158f7 WHIRLPOOL 2c9495d585c2297b3f9951e74a8fd28840941be6b298c0178d44801242d1abda4bd08f9469e2dd1a4b802735611c9ff82bc028d838628b1ccb184ba80d5dc529 +DIST argus-3.0.8.tar.gz 1193140 SHA256 335d889d288763487ad3545c09b944d7d6aa2538630d1fd72eea3704a57bf6e3 SHA512 e4211bb09f442f4dc5c210b878d0f5a9527ff9c95030570e20520f2ca5c3053cc603aa3f0c4aad33363fee6ce02c3d5262bbfdecd2e2157dc00a34f333f14232 WHIRLPOOL 0a07f7f2e57bf7082af0d1ec203463cf0bedf0b682db89ae484e2162bb79f24b084a7c3d30da447d998885458444bc3799bb401c86e1a2b2dc6a7643127da0c9 diff --git a/net-analyzer/argus/argus-3.0.8.1.ebuild b/net-analyzer/argus/argus-3.0.8.1.ebuild new file mode 100644 index 000000000000..9a99e1488bbf --- /dev/null +++ b/net-analyzer/argus/argus-3.0.8.1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils user + +DESCRIPTION="network Audit Record Generation and Utilization System" +HOMEPAGE="http://www.qosient.com/argus/" +SRC_URI="http://qosient.com/argus/src/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="debug sasl tcpd" + +RDEPEND=" + net-libs/libpcap + sys-libs/zlib + sasl? ( dev-libs/cyrus-sasl ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) +" + +DEPEND=" + ${RDEPEND} + >=sys-devel/bison-1.28 + >=sys-devel/flex-2.4.6 +" + +src_prepare() { + sed -e 's:/etc/argus.conf:/etc/argus/argus.conf:' \ + -i argus/argus.c \ + -i support/Config/argus.conf \ + -i man/man8/argus.8 \ + -i man/man5/argus.conf.5 || die + + sed -e 's:#\(ARGUS_SETUSER_ID=\).*:\1argus:' \ + -e 's:#\(ARGUS_SETGROUP_ID=\).*:\1argus:' \ + -e 's:\(#ARGUS_CHROOT_DIR=\).*:\1/var/lib/argus:' \ + -i support/Config/argus.conf || die + epatch \ + "${FILESDIR}"/${PN}-3.0.8.1-disable-tcp-wrappers-automagic.patch \ + "${FILESDIR}"/${PN}-3.0.5-Makefile.patch \ + "${FILESDIR}"/${PN}-3.0.7.3-DLT_IPNET.patch + eautoreconf +} + +src_configure() { + use debug && touch .debug # enable debugging + econf $(use_with tcpd wrappers) $(use_with sasl) +} + +src_compile() { + emake CCOPT="${CFLAGS} ${LDFLAGS}" +} + +src_install () { + doman man/man5/*.5 man/man8/*.8 + + dosbin bin/argus{,bug} + + dodoc ChangeLog CREDITS README + + insinto /etc/argus + doins support/Config/argus.conf + + newinitd "${FILESDIR}/argus.initd" argus + keepdir /var/lib/argus +} + +pkg_preinst() { + enewgroup argus + enewuser argus -1 -1 /var/lib/argus argus +} + +pkg_postinst() { + elog "Note, if you modify ARGUS_DAEMON value in argus.conf it's quite" + elog "possible that the init script will fail to work." +} diff --git a/net-analyzer/argus/argus-3.0.8.ebuild b/net-analyzer/argus/argus-3.0.8.ebuild new file mode 100644 index 000000000000..1010dcf1d591 --- /dev/null +++ b/net-analyzer/argus/argus-3.0.8.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils user + +DESCRIPTION="network Audit Record Generation and Utilization System" +HOMEPAGE="http://www.qosient.com/argus/" +SRC_URI="http://qosient.com/argus/src/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="debug sasl tcpd" + +RDEPEND=" + net-libs/libpcap + sys-libs/zlib + sasl? ( dev-libs/cyrus-sasl ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) +" + +DEPEND=" + ${RDEPEND} + >=sys-devel/bison-1.28 + >=sys-devel/flex-2.4.6 +" + +src_prepare() { + sed -e 's:/etc/argus.conf:/etc/argus/argus.conf:' \ + -i argus/argus.c \ + -i support/Config/argus.conf \ + -i man/man8/argus.8 \ + -i man/man5/argus.conf.5 || die + + sed -e 's:#\(ARGUS_SETUSER_ID=\).*:\1argus:' \ + -e 's:#\(ARGUS_SETGROUP_ID=\).*:\1argus:' \ + -e 's:\(#ARGUS_CHROOT_DIR=\).*:\1/var/lib/argus:' \ + -i support/Config/argus.conf || die + epatch \ + "${FILESDIR}"/${PN}-3.0.4-disable-tcp-wrappers-automagic.patch \ + "${FILESDIR}"/${PN}-3.0.5-Makefile.patch \ + "${FILESDIR}"/${PN}-3.0.7.3-DLT_IPNET.patch + eautoreconf +} + +src_configure() { + use debug && touch .debug # enable debugging + econf $(use_with tcpd wrappers) $(use_with sasl) +} + +src_compile() { + emake CCOPT="${CFLAGS} ${LDFLAGS}" +} + +src_install () { + doman man/man5/*.5 man/man8/*.8 + + dosbin bin/argus{,bug} + + dodoc ChangeLog CREDITS README + + insinto /etc/argus + doins support/Config/argus.conf + + newinitd "${FILESDIR}/argus.initd" argus + keepdir /var/lib/argus +} + +pkg_preinst() { + enewgroup argus + enewuser argus -1 -1 /var/lib/argus argus +} + +pkg_postinst() { + elog "Note, if you modify ARGUS_DAEMON value in argus.conf it's quite" + elog "possible that the init script will fail to work." +} diff --git a/net-analyzer/argus/files/argus-3.0.4-disable-tcp-wrappers-automagic.patch b/net-analyzer/argus/files/argus-3.0.4-disable-tcp-wrappers-automagic.patch new file mode 100644 index 000000000000..77bde434282c --- /dev/null +++ b/net-analyzer/argus/files/argus-3.0.4-disable-tcp-wrappers-automagic.patch @@ -0,0 +1,22 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -270,6 +270,11 @@ + LIBS="$LIBS $V_PCAPDEP" + fi + ++AC_ARG_WITH(wrappers, ++ [ --with-wrappers build with libwrappers suuport], ++ with_wrappers="$withval", ++ with_wrappers="yes") ++if test "x$with_wrappers" != "xno"; then + AC_QOSIENT_TCPWRAP(V_WRAPDEP, V_INCLS) + if test ! -z "$V_WRAPDEP"; then + if test -f $V_WRAPDEP; then +@@ -293,6 +298,7 @@ + AC_DEFINE([HAVE_TCP_WRAPPER], [], [Using Tcp wrappers]) + WRAPLIBS="$V_WRAPDEP" + fi ++fi + + AC_CHECK_FUNCS(xdrmem_create) + if test "$ac_cv_func_xdrmem_create" = yes; then diff --git a/net-analyzer/argus/files/argus-3.0.5-Makefile.patch b/net-analyzer/argus/files/argus-3.0.5-Makefile.patch new file mode 100644 index 000000000000..87b1c155caf8 --- /dev/null +++ b/net-analyzer/argus/files/argus-3.0.5-Makefile.patch @@ -0,0 +1,20 @@ +Do not continue when a sub-make errors (bug #380953). + +--- a/Makefile.in ++++ b/Makefile.in +@@ -55,11 +55,11 @@ + .PHONY: install installdirs all + + all: force +- @-for d in $(DIRS);\ ++ @for d in $(DIRS);\ + do \ +- (cd $$d; echo "### Making in" `pwd`;\ +- $(MAKE) $(MFLAGS) ;\ +- echo "### Done with" `pwd`);\ ++ echo "### Making in" $$d;\ ++ $(MAKE) -C $$d $(MFLAGS) || exit 1;\ ++ echo "### Done with" $$d;\ + done + + install: force diff --git a/net-analyzer/argus/files/argus-3.0.7.3-DLT_IPNET.patch b/net-analyzer/argus/files/argus-3.0.7.3-DLT_IPNET.patch new file mode 100644 index 000000000000..f7b4bfa4cc6c --- /dev/null +++ b/net-analyzer/argus/files/argus-3.0.7.3-DLT_IPNET.patch @@ -0,0 +1,17 @@ +In file included from ./ArgusModeler.h:330:0, + from ./argus.h:40, + from ArgusSource.c:67: +./ArgusSource.h:893:6: error: ‘ArgusIpNetPacket’ undeclared here (not in a function) + +--- a/argus/ArgusSource.h ++++ b/argus/ArgusSource.h +@@ -889,9 +889,6 @@ + #ifdef DLT_JUNIPER_ETHER + { ArgusJuniperPacket, DLT_JUNIPER_ETHER, "ArgusJuniperPacket()" }, + #endif +-#ifdef DLT_IPNET +- { ArgusIpNetPacket, DLT_IPNET, "ArgusIpNetPacket()" }, +-#endif + { NULL, DLT_NULL, "" }, + #endif + { NULL, 0, NULL}, diff --git a/net-analyzer/argus/files/argus-3.0.8.1-disable-tcp-wrappers-automagic.patch b/net-analyzer/argus/files/argus-3.0.8.1-disable-tcp-wrappers-automagic.patch new file mode 100644 index 000000000000..917f864cf065 --- /dev/null +++ b/net-analyzer/argus/files/argus-3.0.8.1-disable-tcp-wrappers-automagic.patch @@ -0,0 +1,22 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -251,6 +251,11 @@ + AC_QOSIENT_MEMORY + + AC_QOSIENT_THREADS(V_THREADS) ++AC_ARG_WITH(wrappers, ++ [ --with-wrappers build with libwrappers support], ++ with_wrappers="$withval", ++ with_wrappers="yes") ++if test "x$with_wrappers" != "xno"; then + AC_QOSIENT_TCPWRAP(V_WRAPDEP, V_INCLS) + if test ! -z "$V_WRAPDEP"; then + if test -f "$V_WRAPDEP"; then +@@ -274,6 +279,7 @@ + AC_DEFINE([HAVE_TCP_WRAPPER], [], [Using Tcp wrappers]) + WRAPLIBS="$V_WRAPDEP" + fi ++fi + + AC_QOSIENT_LIBPCAP(V_PCAPDEP, V_INCLS) + if test ! -z "$V_PCAPDEP"; then diff --git a/net-analyzer/argus/files/argus.initd b/net-analyzer/argus/files/argus.initd new file mode 100644 index 000000000000..cbc8cfdd112c --- /dev/null +++ b/net-analyzer/argus/files/argus.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting argus" + start-stop-daemon --start --quiet --exec /usr/sbin/argus -- -d + eend $? +} + +stop() { + ebegin "Stopping argus" + start-stop-daemon --stop --quiet --exec /usr/sbin/argus + eend $? +} diff --git a/net-analyzer/argus/metadata.xml b/net-analyzer/argus/metadata.xml new file mode 100644 index 000000000000..a688da311250 --- /dev/null +++ b/net-analyzer/argus/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +<longdescription>network Audit Record Generation and Utilization System</longdescription> +</pkgmetadata> diff --git a/net-analyzer/arp-scan/Manifest b/net-analyzer/arp-scan/Manifest new file mode 100644 index 000000000000..a3c7bdb510cd --- /dev/null +++ b/net-analyzer/arp-scan/Manifest @@ -0,0 +1 @@ +DIST arp-scan-1.9.tar.gz 488442 SHA256 ce908ac71c48e85dddf6dd4fe5151d13c7528b1f49717a98b2a2535bd797d892 SHA512 5061ac82d1acad3dd5dab998e4e2d2d9d2dbf436a2839ee1f68dd2997278df7e77f5dda7e54bdb13c9200d7a714b8d82737c041cec8438571d1d14c9d7f936ac WHIRLPOOL b23e193c6335c32a64363e3f0e66f6c7c39efdc292e02efdccf36452b48feb878486c5dfde4b8977e6fde6669aeeefad1931c1ea35e4a6a75b69817682b1d73a diff --git a/net-analyzer/arp-scan/arp-scan-1.9.ebuild b/net-analyzer/arp-scan/arp-scan-1.9.ebuild new file mode 100644 index 000000000000..e029a42ef278 --- /dev/null +++ b/net-analyzer/arp-scan/arp-scan-1.9.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="ARP scanning and fingerprinting tool" +HOMEPAGE="http://www.nta-monitor.com/tools-resources/security-tools/arp-scan" +SRC_URI="http://www.nta-monitor.com/files/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="net-libs/libpcap" +RDEPEND=" + ${DEPEND} + dev-lang/perl +" diff --git a/net-analyzer/arp-scan/metadata.xml b/net-analyzer/arp-scan/metadata.xml new file mode 100644 index 000000000000..03aa50bab7e3 --- /dev/null +++ b/net-analyzer/arp-scan/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +</pkgmetadata> diff --git a/net-analyzer/arp-sk/Manifest b/net-analyzer/arp-sk/Manifest new file mode 100644 index 000000000000..b244641df50a --- /dev/null +++ b/net-analyzer/arp-sk/Manifest @@ -0,0 +1 @@ +DIST arp-sk-0.0.16.tgz 211636 SHA256 6e1c98ff5396dd2d1c95a0d8f08f85e51cf05b1ed85ea7b5bcf73c4ca5d301dd SHA512 d827ab5c701e1e3a6444dbe7e1e7c0a73ee2bfb2339a55fc7d3591ee8e9e9aadef4dfd4aaf331251fbe22d83c9b1135068e5afa6303eae934b3fd149ca0819a6 WHIRLPOOL 66e774c1c47c912132559067c5991c16bec4738b39d474a7a7b3d0011c4b17b1c09d4073843fd705b87cd30036c6a2cf9566c384a03a0dc177925d4293db938a diff --git a/net-analyzer/arp-sk/arp-sk-0.0.16-r2.ebuild b/net-analyzer/arp-sk/arp-sk-0.0.16-r2.ebuild new file mode 100644 index 000000000000..0a795a42185b --- /dev/null +++ b/net-analyzer/arp-sk/arp-sk-0.0.16-r2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils multilib + +DESCRIPTION="A swiss knife tool for ARP" +HOMEPAGE="http://sid.rstack.org/arp-sk/" +SRC_URI="http://sid.rstack.org/arp-sk/files/${P}.tgz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +DEPEND=">=net-libs/libnet-1.1" +RDEPEND="${DEPEND}" + +DOCS=( ARP AUTHORS CONTRIB ChangeLog README TODO ) + +src_prepare() { + epatch "${FILESDIR}"/${P}-libnet1_2.patch + sed -i configure.in -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' || die + rm missing || die + epatch_user + + eautoreconf +} + +src_install() { + default + + # We don't need libcompat as it has a potential to clash with other packages. + rm -fr "${D}"/usr/$(get_libdir) +} diff --git a/net-analyzer/arp-sk/files/arp-sk-0.0.16-libnet1_2.patch b/net-analyzer/arp-sk/files/arp-sk-0.0.16-libnet1_2.patch new file mode 100644 index 000000000000..1fac654c0d86 --- /dev/null +++ b/net-analyzer/arp-sk/files/arp-sk-0.0.16-libnet1_2.patch @@ -0,0 +1,50 @@ +--- a/configure.in ++++ b/configure.in +@@ -114,47 +114,6 @@ + AC_MSG_RESULT(yes) ] + ) + +-dnl Now let's checck the version of libnet (1.1.x requirerd) +-AC_MSG_CHECKING(for version 1.1.x of libnet) +-AC_TRY_RUN([ +-#include "$NETINC/libnet.h" +-#include <string.h> +-int main() +-{ +- return (strncmp(LIBNET_VERSION, "1.1.", 4)); +-} +-], +-[ AC_MSG_RESULT(yes)], +-[ AC_MSG_RESULT(no) +- AC_MSG_ERROR(Bad libnet version found in $NETINC/libnet.h: +-download libnet-1.1.x from http://www.packetfactory.net/projects/libnet/. +-If you think this version of libnet is already installed on your system +-tell arp-sk where it is using --with-libnet=DIR) +-] +-dnl , +-dnl [ v=(`sed -n /LIBNET_VERSION/p /usr/local/include/libnet.h | sed s/\"//g |awk '{print $3}'`) +-dnl echo "v=$v" +-dnl save_IFS="${IFS}" +-dnl IFS=. +-dnl vatb=(${v[0]}) +-dnl IFS=$save_IFS +-dnl LIBNET_MAJOR=${vtab[0]} +-dnl LIBNET_MINOR=${vtab[1]} +- +-dnl if [ $LIBNET_MAJOR==1 -a $LIBNET_MINOR==1 ]; then +-dnl AC_MSG_RESULT(yes); +-dnl else +-dnl AC_MSG_RESULT(no) +-dnl AC_MSG_ERROR(Bad libnet version: +- +-dnl $NETINC/libnet.h +- +-dnl download libnet-1.1.x from http://www.packetfactory.net/projects/libnet/. +-dnl If you think this version of libnet id already installed on your system, +-dnl tell arp-sk where it is using --with-libnet=DIR) +-dnl fi +-dnl ] +-) + + + NETINC="-I$NETINC" diff --git a/net-analyzer/arp-sk/metadata.xml b/net-analyzer/arp-sk/metadata.xml new file mode 100644 index 000000000000..03aa50bab7e3 --- /dev/null +++ b/net-analyzer/arp-sk/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +</pkgmetadata> diff --git a/net-analyzer/arping/Manifest b/net-analyzer/arping/Manifest new file mode 100644 index 000000000000..aaf05e8be906 --- /dev/null +++ b/net-analyzer/arping/Manifest @@ -0,0 +1 @@ +DIST arping-2.15.tar.gz 149061 SHA256 9d45dae3a88749092cef1dd7f5cbb4d3b7be8715a938384ef3139790884251f3 SHA512 89fb5ef1d7663d3577094e250751675ed9bc54fe95fa96d85138a2cf31f422c9b829c90902877bd6dd3f1102194ce0b53af9ef483fbb7e33ce2ae81283b5d52b WHIRLPOOL 2dd43c644f57182c8372c2bc14820352db72309eab594b2797e123af20e3f8af7a6016c22e5b014f93102b689bb7e60ace349f2b14d9ff00d5de944c6e2e4d6f diff --git a/net-analyzer/arping/arping-2.15-r2.ebuild b/net-analyzer/arping/arping-2.15-r2.ebuild new file mode 100644 index 000000000000..93b1d790862a --- /dev/null +++ b/net-analyzer/arping/arping-2.15-r2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="A utility to see if a specific IP address is taken and what MAC address owns it" +HOMEPAGE="http://www.habets.pp.se/synscan/programs.php?prog=arping" +SRC_URI="http://www.habets.pp.se/synscan/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" + +DEPEND=" + net-libs/libpcap + net-libs/libnet:1.1 +" +RDEPEND="${DEPEND} + !net-misc/iputils[arping(+)]" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.15-setgroups.patch + + eautoreconf +} diff --git a/net-analyzer/arping/arping-2.15.ebuild b/net-analyzer/arping/arping-2.15.ebuild new file mode 100644 index 000000000000..c2cdc98995dc --- /dev/null +++ b/net-analyzer/arping/arping-2.15.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="A utility to see if a specific IP address is taken and what MAC address owns it" +HOMEPAGE="http://www.habets.pp.se/synscan/programs.php?prog=arping" +SRC_URI="http://www.habets.pp.se/synscan/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="2" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" + +DEPEND=" + net-libs/libpcap + net-libs/libnet:1.1 +" +RDEPEND="${DEPEND}" + +src_prepare() { + rm -f Makefile + + # since we install as arping2, use arping2 in documentation + sed -i \ + -e "s|\(${PN}\)|\12|g" \ + -e "s|\(${PN}\)\(\W\)|\12\2|g" \ + -e "s|${PN}2-|${PN}-|g" \ + -e "s|(${PN}2 2.*\.x only)||g" \ + doc/${PN}.8 || die + sed -i \ + -e "s|\(${PN}\) |\12 |g" \ + extra/${PN}-scan-net.sh || die +} + +src_install() { + # since we install as arping2, we cannot use emake install + newsbin src/${PN} ${PN}2 + newman doc/${PN}.8 ${PN}2.8 + dodoc README extra/arping-scan-net.sh +} diff --git a/net-analyzer/arping/files/arping-2.15-setgroups.patch b/net-analyzer/arping/files/arping-2.15-setgroups.patch new file mode 100644 index 000000000000..59b675814814 --- /dev/null +++ b/net-analyzer/arping/files/arping-2.15-setgroups.patch @@ -0,0 +1,23 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -35,6 +35,7 @@ + stdlib.h \ + sys/socket.h \ + time.h \ ++grp.h \ + sys/time.h \ + sys/types.h \ + sys/capability.h \ +--- a/src/arping.c ++++ b/src/arping.c +@@ -98,6 +98,10 @@ + #endif + #include <pcap.h> + ++#if HAVE_GRP_H ++#include <grp.h> ++#endif ++ + #include "arping.h" + + #ifndef ETH_ALEN diff --git a/net-analyzer/arping/metadata.xml b/net-analyzer/arping/metadata.xml new file mode 100644 index 000000000000..03aa50bab7e3 --- /dev/null +++ b/net-analyzer/arping/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +</pkgmetadata> diff --git a/net-analyzer/arpoison/Manifest b/net-analyzer/arpoison/Manifest new file mode 100644 index 000000000000..46a8dadb3826 --- /dev/null +++ b/net-analyzer/arpoison/Manifest @@ -0,0 +1 @@ +DIST arpoison-0.6.tar.gz 8646 SHA256 2922a7f98901a2eb3b26822e576ef22a64d3585fb69c4c3c4c32c2ca3993e537 SHA512 7c14a15b9b85f777e5151fae82dfbdb44dbfc85ce8f632b7d76727bce79ed7f958f725f39348489bc4659cb5e3b7ab5370e88e33c03277e16ab2f9ff00bb4038 WHIRLPOOL 17fb536d184c60a31d5f07c91da5232763a02c953ea821938f72293500f7f3adae43c1a2e58685852cd3f27803991f31447bce03a1ad71f89b026bae22164bd4 diff --git a/net-analyzer/arpoison/arpoison-0.6-r2.ebuild b/net-analyzer/arpoison/arpoison-0.6-r2.ebuild new file mode 100644 index 000000000000..76c4dcaf915c --- /dev/null +++ b/net-analyzer/arpoison/arpoison-0.6-r2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="A utility to poison ARP caches" +HOMEPAGE="http://arpoison.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ppc x86" + +RDEPEND="net-libs/libnet:1.1" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}" + +src_prepare() { + # respect CFLAGS, LDFLAGS and compiler, bug #337896 + # fix for crosscompilation, bug #375655 + sed -i Makefile \ + -e 's|gcc \(-Wall\)|$(CC) \1 $(CFLAGS) $(LDFLAGS)|' \ + -e "s|libnet-config|${ROOT}usr/bin/libnet-config|g" \ + || die +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dosbin arpoison + doman arpoison.8 + dodoc README TODO +} diff --git a/net-analyzer/arpoison/metadata.xml b/net-analyzer/arpoison/metadata.xml new file mode 100644 index 000000000000..0ed24829a4e7 --- /dev/null +++ b/net-analyzer/arpoison/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> + <upstream> + <remote-id type="sourceforge">arpoison</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-analyzer/arpon/Manifest b/net-analyzer/arpon/Manifest new file mode 100644 index 000000000000..304f62ce42da --- /dev/null +++ b/net-analyzer/arpon/Manifest @@ -0,0 +1,2 @@ +DIST ArpON-2.7.2.tar.gz 2780607 SHA256 99adf83e4cdf2eda01601a60e2e1a611b5bce73865745fe67774c525c5f7d6d0 SHA512 7518f8f8920817725c9b3e0a6420190dcc101b1c0c7cd9eec50870b3f893fe2322eddc90cb71e9c3c35326b4e1730aa02797ca51775caa9401807da3978628b4 WHIRLPOOL a164419425ad55d35ebb2bea17cedb4d834b99a17deb0c5a46d39b047cc937113359c39c5b6e1d156daecf3490a9dbf29eeff06c22c4dd2020ffcac00552cc00 +DIST ArpON-2.7.tar.gz 3009833 SHA256 6ad51204bc33cf004c493f62d7ab24d83213c1621b00efc540e30a0c9fe3db94 SHA512 472261bd23c61cd6a5caabe02c95d8749b488b84177fdcd5d35bb19414a3a547ff9f7b722f8e9fb1cb59a1d6d358de4a560459e9c037aa247e7a97df0d49ecb8 WHIRLPOOL a0259e91c3b91942c6f8e5b497404d7a753e957b79643f9ce7444fe8f3dfb7673827be2986aeb32ed0485b1dad047a864ea3faedc732d85bd0ea7a69326a4a0f diff --git a/net-analyzer/arpon/arpon-2.7-r1.ebuild b/net-analyzer/arpon/arpon-2.7-r1.ebuild new file mode 100644 index 000000000000..7b44475b469c --- /dev/null +++ b/net-analyzer/arpon/arpon-2.7-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit cmake-utils readme.gentoo + +DESCRIPTION="ArpON (Arp handler inspectiON) is a portable Arp handler" + +MY_PN="ArpON" +MY_P="${MY_PN}-${PV}" +HOMEPAGE="http://arpon.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-libs/libdnet + net-libs/libnet:1.1 + net-libs/libpcap" + +RDEPEND=${DEPEND} + +S="${WORKDIR}"/${MY_P} + +src_prepare() { + sed -i -e "/set(CMAKE_C_FLAGS/d" CMakeLists.txt || die + + DOC_CONTENTS="${PN} now installs an init script. Please edit + the /etc/conf.d/arpon file to match your needs" +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + readme.gentoo_create_doc +} diff --git a/net-analyzer/arpon/arpon-2.7.2.ebuild b/net-analyzer/arpon/arpon-2.7.2.ebuild new file mode 100644 index 000000000000..ed65ce249075 --- /dev/null +++ b/net-analyzer/arpon/arpon-2.7.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit cmake-utils readme.gentoo + +DESCRIPTION="ArpON (Arp handler inspectiON) is a portable Arp handler" + +MY_PN="ArpON" +MY_P="${MY_PN}-${PV}" +HOMEPAGE="http://arpon.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-libs/libdnet + net-libs/libnet:1.1 + net-libs/libpcap" + +RDEPEND=${DEPEND} + +S="${WORKDIR}"/${MY_P} + +src_prepare() { + sed -i -e "/set(CMAKE_C_FLAGS/d" CMakeLists.txt || die + + DOC_CONTENTS="${PN} now installs an init script. Please edit + the /etc/conf.d/arpon file to match your needs" +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + readme.gentoo_create_doc +} diff --git a/net-analyzer/arpon/files/arpon.confd b/net-analyzer/arpon/files/arpon.confd new file mode 100644 index 000000000000..d1ce050fa4cb --- /dev/null +++ b/net-analyzer/arpon/files/arpon.confd @@ -0,0 +1,5 @@ +METHOD="--darpi" +IFACE="eth0" +LOGFILE="/var/log/arpon.log" + +ARPON_OPTS="${METHOD} --iface ${IFACE} --log-file ${LOGFILE} --log" diff --git a/net-analyzer/arpon/files/arpon.initd b/net-analyzer/arpon/files/arpon.initd new file mode 100644 index 000000000000..5f6a1bd8c6e2 --- /dev/null +++ b/net-analyzer/arpon/files/arpon.initd @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting arpon" + start-stop-daemon --start --background --make-pidfile --pidfile "/var/run/arpon.pid" \ + --exec /usr/sbin/arpon -- ${ARPON_OPTS} >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping arpon" + start-stop-daemon --stop --pidfile "/var/run/arpon.pid" + eend $? +} diff --git a/net-analyzer/arpon/metadata.xml b/net-analyzer/arpon/metadata.xml new file mode 100644 index 000000000000..ea4208c346e9 --- /dev/null +++ b/net-analyzer/arpon/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>hwoarang@gentoo.org</email> + <name>Markos Chandras</name> + </maintainer> + <longdescription lang="en"> +</longdescription> + <upstream> + <remote-id type="sourceforge">arpon</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-analyzer/arptools/Manifest b/net-analyzer/arptools/Manifest new file mode 100644 index 000000000000..3f435dc55e39 --- /dev/null +++ b/net-analyzer/arptools/Manifest @@ -0,0 +1 @@ +DIST arptools-1.0.2.tar.gz 87475 SHA256 7d53ee3fc70c2ad13338d721b84507f407a41ac1d4602ef6b5532651f928e9b6 SHA512 c976a5a7778a9330ebda6ed69ef045ede3747b98d27a7e575f985646a52bf57e4a6584da280a0a13520a43b5d765b2ddbec2239d7c3ac865ffdf1ae23f5ff347 WHIRLPOOL c88b2b20bf42eac35be972c64b54df3bac71ebba03d0a2ea282ada9203a5d0681a46d3080eac3c28b7e99aaa6080257d421e7d4d2cc14f9620243a1b0f96c132 diff --git a/net-analyzer/arptools/arptools-1.0.2.ebuild b/net-analyzer/arptools/arptools-1.0.2.ebuild new file mode 100644 index 000000000000..f7f59fa48b01 --- /dev/null +++ b/net-analyzer/arptools/arptools-1.0.2.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="a collection of libnet and libpcap based ARP utilities" +HOMEPAGE="http://www.burghardt.pl/wiki/software/arptools" +SRC_URI="http://www.burghardt.pl/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND=" + net-libs/libnet:1.1 + net-libs/libpcap +" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog NEWS README TODO ) diff --git a/net-analyzer/arptools/metadata.xml b/net-analyzer/arptools/metadata.xml new file mode 100644 index 000000000000..02380372391a --- /dev/null +++ b/net-analyzer/arptools/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +<maintainer> + <email>robbat2@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/net-analyzer/arpwatch/Manifest b/net-analyzer/arpwatch/Manifest new file mode 100644 index 000000000000..a71337996cf8 --- /dev/null +++ b/net-analyzer/arpwatch/Manifest @@ -0,0 +1,3 @@ +DIST arpwatch-2.1a15.tar.gz 202729 SHA256 c1df9737e208a96a61fa92ddad83f4b4d9be66f8992f3c917e9edf4b05ff5898 SHA512 f770b5b7954afe910dafb016e6e886a4e785564bcdc0ea0de9d7b1ca6a9a0b219a9d1b50b6f42a67afc2f836e782e8ff85ba5780583015d62c9694ac53f0bf90 WHIRLPOOL e653eb83d8dbc8777c3aaa5920bc1e5b46c64aa740c64a79b24a42abdee4625baa72a51f9f0441549b7325fcb07b94f1964887df1b6d707eddde162e1073691f +DIST arpwatch-patchset-0.5.tbz2 127740 SHA256 aa69513ba36cdb9f41862f5f9c47e47d60786d01d302a1e8177f9e1f8aae71d3 SHA512 cd1a71fc39489f3498b7614fa793226cb3dd23dbac88082baab5598d441cd585da2d2f2ee8d40183b810893f4cddd0282f5cc8aa8b6009c40bfbf2c295365dc3 WHIRLPOOL 736be0f0ea18ebd96136c5b629134b0920c3c1a648974eac7f86f57c5d5ee58c1cd284371685562a73468a79b29fc130a668bc9487e85175f61d7a3642f58db9 +DIST arpwatch-patchset-0.6.tbz2 128973 SHA256 2bfc7078fc4d5bad6bf7bd5d512df669799d09939ca249c2fe3f9fa3b8969ad8 SHA512 01c8b85e859765783a783c09ed9470b7f109b20f6713bb40ebcdc8e838ea00290df7609aa96ed1a6a2e39250e9735d6cfbd19e444961b79fdd1b04819c729253 WHIRLPOOL 96ae54f3cffe3f5eba8153ff79a6c66956ac95424dfae87e438372a4a27bf9d00136271f1e3c0e56850011cae873b2de57c6af7589fdd5a0253ef482328a602f diff --git a/net-analyzer/arpwatch/arpwatch-2.1.15-r6.ebuild b/net-analyzer/arpwatch/arpwatch-2.1.15-r6.ebuild new file mode 100644 index 000000000000..0c7cdcbefd8c --- /dev/null +++ b/net-analyzer/arpwatch/arpwatch-2.1.15-r6.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils user versionator + +PATCH_VER="0.5" + +MY_P="${PN}-$(replace_version_separator 2 'a')" +DESCRIPTION="An ethernet monitor program that keeps track of ethernet/ip address pairings" +HOMEPAGE="http://ee.lbl.gov/" +SRC_URI="ftp://ftp.ee.lbl.gov/${MY_P}.tar.gz + mirror://gentoo/arpwatch-patchset-${PATCH_VER}.tbz2" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ppc sparc x86 ~x86-fbsd" +IUSE="selinux" + +DEPEND="net-libs/libpcap + sys-libs/ncurses" + +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-arpwatch )" + +S=${WORKDIR}/${MY_P} + +pkg_preinst() { + enewuser arpwatch +} + +src_prepare() { + EPATCH_SOURCE="${WORKDIR}"/arpwatch-patchset/ EPATCH_SUFFIX="patch" epatch + cp "${WORKDIR}"/arpwatch-patchset/*.8 . || die +} + +src_install () { + dosbin arpwatch arpsnmp arp2ethers massagevendor arpfetch bihourly.sh + doman arpwatch.8 arpsnmp.8 arp2ethers.8 massagevendor.8 arpfetch.8 bihourly.8 + + insinto /usr/share/arpwatch + doins ethercodes.dat + + insinto /usr/share/arpwatch/awk + doins duplicates.awk euppertolower.awk p.awk e.awk d.awk + + keepdir /var/lib/arpwatch + dodoc README CHANGES + + newinitd "${FILESDIR}"/arpwatch.initd arpwatch + newconfd "${FILESDIR}"/arpwatch.confd arpwatch +} + +pkg_postinst() { + fowners arpwatch:0 "${ROOT}"/var/lib/arpwatch +} diff --git a/net-analyzer/arpwatch/arpwatch-2.1.15-r7.ebuild b/net-analyzer/arpwatch/arpwatch-2.1.15-r7.ebuild new file mode 100644 index 000000000000..78774b9d6270 --- /dev/null +++ b/net-analyzer/arpwatch/arpwatch-2.1.15-r7.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils user versionator + +PATCH_VER="0.6" + +MY_P="${PN}-$(replace_version_separator 2 'a')" +DESCRIPTION="An ethernet monitor program that keeps track of ethernet/ip address pairings" +HOMEPAGE="http://ee.lbl.gov/" +SRC_URI=" + ftp://ftp.ee.lbl.gov/${MY_P}.tar.gz + https://dev.gentoo.org/~jer/arpwatch-patchset-${PATCH_VER}.tbz2 +" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" +IUSE="selinux" + +DEPEND=" + net-libs/libpcap + sys-libs/ncurses +" + +RDEPEND=" + ${DEPEND} + selinux? ( sec-policy/selinux-arpwatch ) +" + +S=${WORKDIR}/${MY_P} + +pkg_preinst() { + enewuser arpwatch +} + +src_prepare() { + EPATCH_SOURCE="${WORKDIR}"/arpwatch-patchset/ EPATCH_SUFFIX="patch" epatch + cp "${WORKDIR}"/arpwatch-patchset/*.8 . || die +} + +src_install () { + dosbin arpwatch arpsnmp arp2ethers massagevendor arpfetch bihourly.sh + doman arpwatch.8 arpsnmp.8 arp2ethers.8 massagevendor.8 arpfetch.8 bihourly.8 + + insinto /usr/share/arpwatch + doins ethercodes.dat + + insinto /usr/share/arpwatch/awk + doins duplicates.awk euppertolower.awk p.awk e.awk d.awk + + keepdir /var/lib/arpwatch + dodoc README CHANGES + + newinitd "${FILESDIR}"/arpwatch.initd arpwatch + newconfd "${FILESDIR}"/arpwatch.confd arpwatch +} + +pkg_postinst() { + fowners arpwatch:0 "${ROOT}"/var/lib/arpwatch +} diff --git a/net-analyzer/arpwatch/files/arpwatch.confd b/net-analyzer/arpwatch/files/arpwatch.confd new file mode 100644 index 000000000000..98abe0417740 --- /dev/null +++ b/net-analyzer/arpwatch/files/arpwatch.confd @@ -0,0 +1,11 @@ +# Config file for /etc/init.d/arpwatch +# see arpwatch.8 for more information + +#IFACES="eth0 eth1" +IFACES="eth0" + +# Additional options to pass to arpwatch. +OPTIONS="-N -p" + +# Comment this line if you wish arpwatch to run as root user (not recommended) +ARPUSER="arpwatch" diff --git a/net-analyzer/arpwatch/files/arpwatch.initd b/net-analyzer/arpwatch/files/arpwatch.initd new file mode 100644 index 000000000000..0a517e00c665 --- /dev/null +++ b/net-analyzer/arpwatch/files/arpwatch.initd @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + for IFACE in ${IFACES} + do + ebegin "Starting arpwatch on ${IFACE}" + DATAFILE=/var/lib/arpwatch/${IFACE}.dat + [ ! -f ${DATAFILE} ] && touch ${DATAFILE} + + if [ -z ${ARPUSER} ]; then + start-stop-daemon --start --quiet --pidfile=/var/run/arpwatch.${IFACE}.pid --exec \ + /usr/sbin/arpwatch -- -i ${IFACE} -f ${DATAFILE} -P /var/run/arpwatch.${IFACE}.pid ${OPTIONS} + else + chown ${ARPUSER} ${DATAFILE} + start-stop-daemon --start --quiet --pidfile=/var/run/arpwatch.${IFACE}.pid --exec \ + /usr/sbin/arpwatch -- -i $IFACE -u ${ARPUSER} -f ${DATAFILE} -P /var/run/arpwatch.${IFACE}.pid ${OPTIONS} + fi + eend $? + done +} + +stop() { + for IFACE in ${IFACES} + do + ebegin "Stopping arpwatch on ${IFACE}" + start-stop-daemon --stop --quiet --pidfile=/var/run/arpwatch.${IFACE}.pid --exec \ + /usr/sbin/arpwatch + eend $? + done +} diff --git a/net-analyzer/arpwatch/metadata.xml b/net-analyzer/arpwatch/metadata.xml new file mode 100644 index 000000000000..4fc697499bf6 --- /dev/null +++ b/net-analyzer/arpwatch/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> + <longdescription lang="en"> + The arpwatch package contains arpwatch and arpsnmp. Arpwatch and arpsnmp + are both network monitoring tools. Both utilities monitor Ethernet or + FDDI network traffic and build databases of Ethernet/IP address pairs, + and can report certain changes via email. Install the arpwatch package + if you need networking monitoring devices which will automatically keep + track of the IP addresses on your network. + </longdescription> +</pkgmetadata> diff --git a/net-analyzer/authforce/Manifest b/net-analyzer/authforce/Manifest new file mode 100644 index 000000000000..1cef6ec923a1 --- /dev/null +++ b/net-analyzer/authforce/Manifest @@ -0,0 +1 @@ +DIST authforce-0.9.9.tar.gz 424557 SHA256 366adfda9dbdb2c6dfefa9c50f143fa535a77db17cbe0b7ef338f835e211f7db diff --git a/net-analyzer/authforce/authforce-0.9.9-r1.ebuild b/net-analyzer/authforce/authforce-0.9.9-r1.ebuild new file mode 100644 index 000000000000..d844bf67f763 --- /dev/null +++ b/net-analyzer/authforce/authforce-0.9.9-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit base + +DESCRIPTION="An HTTP authentication brute forcer" +HOMEPAGE="http://www.divineinvasion.net/authforce/" +SRC_URI="http://www.divineinvasion.net/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="curl nls" + +DEPEND=" + sys-libs/readline + curl? ( net-misc/curl ) + nls? ( sys-devel/gettext )" + +DOCS=( AUTHORS BUGS NEWS README THANKS TODO ) +PATCHES=( + "${FILESDIR}"/${P}-curl.patch + "${FILESDIR}"/${P}-locale.patch + ) + +src_configure() { + econf \ + $(use_with curl) \ + $(use_enable nls) \ + --with-path=/usr/share/${PN}/data:. +} diff --git a/net-analyzer/authforce/files/authforce-0.9.9-curl.patch b/net-analyzer/authforce/files/authforce-0.9.9-curl.patch new file mode 100644 index 000000000000..22552f8aafd4 --- /dev/null +++ b/net-analyzer/authforce/files/authforce-0.9.9-curl.patch @@ -0,0 +1,10 @@ +--- authforce-0.9.9/src/http.c ++++ authforce-0.9.9/src/http.c +@@ -7,7 +7,6 @@ + #include <time.h> + #ifdef USE_CURL + #include <curl/curl.h> +-#include <curl/types.h> + #include <curl/easy.h> + #endif /* USE_CURL */ + #ifdef MEMWATCH diff --git a/net-analyzer/authforce/files/authforce-0.9.9-locale.patch b/net-analyzer/authforce/files/authforce-0.9.9-locale.patch new file mode 100644 index 000000000000..89792db3ea12 --- /dev/null +++ b/net-analyzer/authforce/files/authforce-0.9.9-locale.patch @@ -0,0 +1,15 @@ + src/main.c | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/src/main.c b/src/main.c +index 0fd275a..296e181 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -14,6 +14,7 @@ + #include "extern.h" + #ifdef ENABLE_NLS + #define _(x) dgettext(PACKAGE_NAME, x) ++#include <locale.h> + #else + #define _(x) (x) + #endif diff --git a/net-analyzer/authforce/metadata.xml b/net-analyzer/authforce/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/net-analyzer/authforce/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/net-analyzer/barnyard/Manifest b/net-analyzer/barnyard/Manifest new file mode 100644 index 000000000000..aadd121b29c7 --- /dev/null +++ b/net-analyzer/barnyard/Manifest @@ -0,0 +1,2 @@ +DIST barnyard-0.2.0-patches.tar.bz2 12911 SHA256 cecc0c983899d12ae217232e2cd34d86e780b4be34ac36ccb3f73a1b954ea6f0 +DIST barnyard-0.2.0.tar.gz 161543 SHA256 09e0f8e095e79cfe70ea069d13e7d02521a504a1f400a45556a634dccfd31a3a diff --git a/net-analyzer/barnyard/barnyard-0.2.0-r3.ebuild b/net-analyzer/barnyard/barnyard-0.2.0-r3.ebuild new file mode 100644 index 000000000000..922d8fe65e74 --- /dev/null +++ b/net-analyzer/barnyard/barnyard-0.2.0-r3.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit eutils autotools + +DESCRIPTION="Fast output system for Snort" +HOMEPAGE="http://sourceforge.net/projects/barnyard" +SRC_URI=" + mirror://sourceforge/barnyard/barnyard-${PV/_/-}.tar.gz + mirror://gentoo/${P}-patches.tar.bz2" + +SLOT="0" +LICENSE="QPL GPL-2" +KEYWORDS="~amd64 -sparc ~x86" +IUSE="mysql postgres sguil" + +DEPEND=" + net-libs/libpcap + postgres? ( dev-db/postgresql[server] ) + mysql? ( virtual/mysql ) + sguil? ( dev-lang/tcl:0 )" +RDEPEND="${DEPEND} + net-analyzer/snort" + +S="${WORKDIR}/${P/_/-}" + +src_prepare() { + epatch "${FILESDIR}/barnyard.64bit.diff" + if use sguil ; then + epatch "${WORKDIR}/${PV}-sguil_files.patch" + epatch "${WORKDIR}/${PV}-configure-in.patch" + cd "${S}/src/output-plugins" + epatch "${WORKDIR}/${PV}-op_plugbase.c.patch" + cd "${S}" + fi + eautoreconf +} + +src_configure() { + local myconf + if use sguil ; then + myconf="--enable-tcl" + fi + + econf \ + ${myconf} \ + --sysconfdir=/etc/snort \ + $(use_enable postgres) \ + $(use_enable mysql) +} +src_compile() { + emake || die "compile problem" +} + +src_install () { + + make DESTDIR="${D}" install || die + + dodoc docs/* + dodoc AUTHORS README + + keepdir /var/log/snort + keepdir /var/log/snort/archive + + insinto /etc/snort + newins etc/barnyard.conf barnyard.conf + if use sguil ; then + sed -i -e "/config hostname:/s%snorthost%$(hostname)%" \ + -e "/config interface/s:fxp0:eth0:" \ + -e "s:output alert_fast:#output alert_fast:" \ + -e "s:output log_dump:#output log_dump:" \ + "${D}/etc/snort/barnyard.conf" || die "sed failed" + fi + + newconfd "${FILESDIR}"/barnyard.confd barnyard + if use sguil ; then + sed -i -e s:/var/log/snort:/var/lib/sguil/$(hostname): \ + -e s:/var/run/barnyard.pid:/var/run/sguil/barnyard.pid: \ + "${D}/etc/conf.d/barnyard" || die "sed failed" + fi + + newinitd "${FILESDIR}"/barnyard.rc6 barnyard + if use sguil ; then + sed -i -e "/start-stop-daemon --start/s:--exec:-c sguil --exec:" \ + "${D}/etc/init.d/barnyard" || die "sed failed" + fi +} + +pkg_postinst() { + if use sguil ; then + elog + elog "Make sure to edit /etc/snort/barnyard.conf and uncomment the" + elog "sguil section along with supplying the appropriate database" + elog "information." + elog + fi +} diff --git a/net-analyzer/barnyard/files/barnyard.64bit.diff b/net-analyzer/barnyard/files/barnyard.64bit.diff new file mode 100644 index 000000000000..f338d291ff1c --- /dev/null +++ b/net-analyzer/barnyard/files/barnyard.64bit.diff @@ -0,0 +1,81 @@ +diff -ur barnyard-0.2.0/src/barnyard.h barnyard-0.2.0.64bit/src/barnyard.h +--- barnyard-0.2.0/src/barnyard.h 2004-05-01 12:43:29.000000000 -0400 ++++ barnyard-0.2.0.64bit/src/barnyard.h 2007-08-11 23:22:53.000000000 -0400 +@@ -34,7 +34,8 @@ + + typedef struct _SnortPktHeader + { +- struct timeval ts; /* packet timestamp */ ++ // struct timeval ts; /* packet timestamp */ ++ struct pcap_timeval ts; /* packet timestamp */ + u_int32_t caplen; /* packet capture length */ + u_int32_t pktlen; /* packet "real" length */ + } SnortPktHeader; +Only in barnyard-0.2.0.64bit/src: barnyard.h~ +diff -ur barnyard-0.2.0/src/event.h barnyard-0.2.0.64bit/src/event.h +--- barnyard-0.2.0/src/event.h 2003-05-02 22:44:12.000000000 -0400 ++++ barnyard-0.2.0.64bit/src/event.h 2007-08-12 00:13:44.000000000 -0400 +@@ -19,6 +19,11 @@ + #include <sys/types.h> + #include <sys/time.h> + ++struct pcap_timeval { ++ u_int32_t tv_sec; /* seconds */ ++ u_int32_t tv_usec; /* microseconds */ ++}; ++ + typedef struct _Event + { + u_int32_t sig_generator; /* which part of snort generated the alert? */ +@@ -30,6 +35,7 @@ + u_int32_t event_reference; /* reference to other events that have gone off, + * such as in the case of tagged packets... + */ +- struct timeval ref_time; /* reference time for the event reference */ ++ // struct timeval ref_time; /* reference time for the event reference */ ++ struct pcap_timeval ref_time; /* reference time for the event reference */ + } Event; + #endif /* __EVENT_H__ */ +Only in barnyard-0.2.0.64bit/src: event.h~ +diff -ur barnyard-0.2.0/src/input-plugins/dp_alert.h barnyard-0.2.0.64bit/src/input-plugins/dp_alert.h +--- barnyard-0.2.0/src/input-plugins/dp_alert.h 2004-02-19 20:59:48.000000000 -0500 ++++ barnyard-0.2.0.64bit/src/input-plugins/dp_alert.h 2007-08-11 23:24:25.000000000 -0400 +@@ -34,7 +34,8 @@ + typedef struct _UnifiedAlertRecord + { + Event event; +- struct timeval ts; /* event timestamp */ ++ // struct timeval ts; /* event timestamp */ ++ struct pcap_timeval ts; /* event timestamp */ + u_int32_t sip; /* src ip */ + u_int32_t dip; /* dest ip */ + u_int16_t sp; /* src port */ +Only in barnyard-0.2.0.64bit/src/input-plugins: dp_alert.h~ +diff -ur barnyard-0.2.0/src/util.c barnyard-0.2.0.64bit/src/util.c +--- barnyard-0.2.0/src/util.c 2004-03-06 17:30:15.000000000 -0500 ++++ barnyard-0.2.0.64bit/src/util.c 2007-08-12 00:14:52.000000000 -0400 +@@ -514,7 +514,8 @@ + + static char tmpbuf[256]; + +-int RenderTimeval(struct timeval *tv, char *timebuf, size_t len) ++// int RenderTimeval(struct timeval *tv, char *timebuf, size_t len) ++int RenderTimeval(struct pcap_timeval *tv, char *timebuf, size_t len) + { + struct tm *lt; + time_t timet; +Only in barnyard-0.2.0.64bit/src: util.c~ +diff -ur barnyard-0.2.0/src/util.h barnyard-0.2.0.64bit/src/util.h +--- barnyard-0.2.0/src/util.h 2004-03-06 19:23:50.000000000 -0500 ++++ barnyard-0.2.0.64bit/src/util.h 2007-08-11 23:23:46.000000000 -0400 +@@ -39,7 +39,8 @@ + void ClearDumpBuf(); + void GoDaemon(); + size_t RenderTimestamp(time_t timet, char *timebuf, size_t len); +-int RenderTimeval(struct timeval *tv, char *timebuf, size_t len); ++// int RenderTimeval(struct timeval *tv, char *timebuf, size_t len); ++int RenderTimeval(struct pcap_timeval *tv, char *timebuf, size_t len); + int CreatePidFile(char *filename); + int String2Long(char *string, long *result); + int String2ULong(char *string, unsigned long *result); +Only in barnyard-0.2.0.64bit/src: util.h~ diff --git a/net-analyzer/barnyard/files/barnyard.confd b/net-analyzer/barnyard/files/barnyard.confd new file mode 100644 index 000000000000..be0013cb1fe9 --- /dev/null +++ b/net-analyzer/barnyard/files/barnyard.confd @@ -0,0 +1,19 @@ +# Config file for /etc/init.d/barnyard +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PIDFILE="/var/run/barnyard.pid" +LOG_FILE="snort_unified.log" + +# You probably don't want to change this, but in case you do +LOGDIR="/var/log/snort" +ARCHIVEDIR="$LOGDIR/archive" +GENMSG_FILE="/etc/snort/gen-msg.map" +SIDMSG_FILE="/etc/snort/sid-msg.map" +WALDO_FILE="$LOGDIR/barnyard.waldo" + +# Probably not this either +CONF=/etc/snort/barnyard.conf + +# This pulls in the options above +BARNYARD_OPTS="-D -c $CONF -d $LOGDIR -g $GENMSG_FILE -s $SIDMSG_FILE -w $WALDO_FILE -L $LOGDIR -a $ARCHIVEDIR -f $LOG_FILE -X $PIDFILE" diff --git a/net-analyzer/barnyard/files/barnyard.rc6 b/net-analyzer/barnyard/files/barnyard.rc6 new file mode 100644 index 000000000000..15471aa62021 --- /dev/null +++ b/net-analyzer/barnyard/files/barnyard.rc6 @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +checkconfig() { + if [ ! -e $CONF ] ; then + eerror "You need a configuration file to run barnyard" + eerror "There is an example config in /etc/snort/barnyard.conf.distrib" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting barnyard" + start-stop-daemon --start --quiet --exec /usr/bin/barnyard \ + -- ${BARNYARD_OPTS} >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping barnyard" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + eend $? +} diff --git a/net-analyzer/barnyard/metadata.xml b/net-analyzer/barnyard/metadata.xml new file mode 100644 index 000000000000..c2407e4f2026 --- /dev/null +++ b/net-analyzer/barnyard/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> + <longdescription>Fast output system for Snort</longdescription> + <use> + <flag name="sguil">Enable sguil (The Analyst Console for Network Security +Monitoring) support</flag> + </use> + <upstream> + <remote-id type="sourceforge">barnyard</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-analyzer/barnyard2/Manifest b/net-analyzer/barnyard2/Manifest new file mode 100644 index 000000000000..e79979972151 --- /dev/null +++ b/net-analyzer/barnyard2/Manifest @@ -0,0 +1 @@ +DIST barnyard2-1.9.tar.gz 652879 SHA256 6bce0d5bd4a6fa2be2e5b1daaed1d6d0ec8e7f50b33bc1125125c8a9e78a5b0c diff --git a/net-analyzer/barnyard2/barnyard2-1.9.ebuild b/net-analyzer/barnyard2/barnyard2-1.9.ebuild new file mode 100644 index 000000000000..7b15053016d8 --- /dev/null +++ b/net-analyzer/barnyard2/barnyard2-1.9.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +DESCRIPTION="Parser for Snort unified/unified2 files" +HOMEPAGE="http://www.securixlive.com/barnyard2/" +SRC_URI="http://www.securixlive.com/download/barnyard2/${P}.tar.gz" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="static debug gre mpls mysql odbc postgres" + +DEPEND="net-libs/libpcap + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql[server] ) + odbc? ( dev-db/unixODBC )" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i -e "s:^#config interface:config interface:" \ + "${WORKDIR}/${P}/etc/barnyard2.conf" || die + sed -i -e "s:^output alert_fast:#output alert_fast:" \ + "${WORKDIR}/${P}/etc/barnyard2.conf" || die +} + +src_configure() { + econf \ + $(use_enable !static shared) \ + $(use_enable static) \ + $(use_enable debug) \ + $(use_enable gre) \ + $(use_enable mpls) \ + $(use_with mysql) \ + $(use_with odbc) \ + $(use_with postgres postgresql) \ + --disable-ipv6 \ + --disable-prelude \ + --disable-mysql-ssl-support \ + --disable-aruba \ + --without-tcl \ + --without-oracle || die + + emake || die +} + +src_install () { + make DESTDIR="${D}" install || die + newconfd "${FILESDIR}/barnyard2.confd" barnyard2 || die + newinitd "${FILESDIR}/barnyard2.initd" barnyard2 || die + dodir /etc/barnyard2 \ + /var/log/snort \ + /var/log/snort/archive \ + /var/log/barnyard2 || die + dodoc RELEASE.NOTES \ + etc/barnyard2.conf \ + doc/README* \ + schemas/create_* || die + rm "${D}"/etc/barnyard2.conf || die +} + +pkg_postinst() { + elog "Configuration options can be set in /etc/conf.d/barnyard2." + elog + elog "An example configuration file can be found in /usr/share/doc/${PF}." +} diff --git a/net-analyzer/barnyard2/files/barnyard2.confd b/net-analyzer/barnyard2/files/barnyard2.confd new file mode 100644 index 000000000000..d114f826c707 --- /dev/null +++ b/net-analyzer/barnyard2/files/barnyard2.confd @@ -0,0 +1,36 @@ +# Config file for /etc/init.d/barnyard2 + +# This file only contains variables needed by the init.d script. +# All other configuration options are located in the barnyard2.conf file + +# This should be the first part of the unified/unified2 log file name (without the time stamp) +# Ex. If you log files look like this 'snort.unified2.1239801645' then you would use 'snort.unified2' +SPOOL_FILE="snort.unified2" + +# Location of your unified/unified2 log files +SPOOL_DIR="/var/log/snort" + +# Directory to log to +LOG_DIR="/var/log/barnyard2" + +# This MUST match what you set for "config interface:" in your barnyard2.conf +# If you do not set this correctly then Barnyard2 will not stop when you do a +# "/etc/init.d/barnyard2 stop" +INTERFACE="eth0" + +# You probably don't want to change this, but in case you do +PID_FILE="barnyard2_${INTERFACE}.pid" +PID_PATH="/var/run" + +# The waldo file is located in the SPOOL_DIR to support multipule instances of barnyard2 +WALDO_FILE="${SPOOL_DIR}/barnyard2.waldo" +CONF="/etc/barnyard2/barnyard2.conf" + +# Location of the archive directory if you choose to use it. +# The ARCHIVE_DIR is located in the SPOOL_DIR to support multipule instances of barnyard2 +#ARCHIVE_DIR="${SPOOL_DIR}/archive" + +# This pulls in the options above +BARNYARD_OPTS="-D -c ${CONF} -d ${SPOOL_DIR} -w ${WALDO_FILE} -f ${SPOOL_FILE} -l ${LOG_DIR}" +# Or with an archive directory +#BARNYARD_OPTS="-D -c ${CONF} -d ${SPOOL_DIR} -w ${WALDO_FILE} -f ${LOG_FILE} -l ${LOG_DIR} -a ${ARCHIVE_DIR}" diff --git a/net-analyzer/barnyard2/files/barnyard2.initd b/net-analyzer/barnyard2/files/barnyard2.initd new file mode 100644 index 000000000000..6409a009540e --- /dev/null +++ b/net-analyzer/barnyard2/files/barnyard2.initd @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +checkconfig() { + if [ ! -e ${CONF} ] ; then + eerror "You need a configuration file to run barnyard2" + eerror "There is an example config in /etc/snort/barnyard2.conf.distrib" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting barnyard2" + start-stop-daemon --start --quiet --exec /usr/bin/barnyard2 \ + -- --pid-path ${PID_PATH} --nolock-pidfile ${BARNYARD_OPTS} >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping barnyard2" + start-stop-daemon --stop --quiet --pidfile ${PID_PATH}/${PID_FILE} + eend $? +} diff --git a/net-analyzer/barnyard2/metadata.xml b/net-analyzer/barnyard2/metadata.xml new file mode 100644 index 000000000000..fa875be301be --- /dev/null +++ b/net-analyzer/barnyard2/metadata.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>netmon</herd>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ <description>Maintainer</description>
+ </maintainer>
+ <maintainer>
+ <email>jason.r.wallace@gmail.com</email>
+ <name>Jason Wallace</name>
+ <description>Proxy maintainer. CC him on bugs</description>
+ </maintainer>
+ <longdescription>
+ Barnyard2 is a fork of the original barnyard project (which is no longer under development).
+ Barnyard2 is an open source interpreter for Snort unified2 binary output files. Its primary
+ use is allowing Snort to write to disk in an efficient manner and leaving the task of
+ parsing binary data into various formats to a separate process that will not cause Snort to
+ miss network traffic. Barnyard2 is under active development and continues to adapt based on
+ user feedback.
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>dev@securixlive.com</email>
+ <name>Securixlive</name>
+ </maintainer>
+ <doc>http://www.securixlive.com/barnyard2/docs/index.php</doc>
+ <bugs-to>mailto:dev@securixlive.com</bugs-to>
+ </upstream>
+ <use>
+ <flag name='gre'>Enable GRE support</flag>
+ <flag name='mpls'>Enable support for mpls networks</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-analyzer/bigeye/Manifest b/net-analyzer/bigeye/Manifest new file mode 100644 index 000000000000..00da8328b267 --- /dev/null +++ b/net-analyzer/bigeye/Manifest @@ -0,0 +1,2 @@ +DIST bigeye-0.3-gcc34.diff.bz2 2774 SHA256 06e50f31e6e162502dc9e24db416301ad7bbd5439b7611faa405020085668738 SHA512 8ed54aa7b95aac8703e2bf99fde985cbbe7e62f7a6b549e58b2b54856336c5560c450a8c6ad9cbcdcd6bf61c842797c1abca001cfca20ff82614d8c328cab4ba WHIRLPOOL 72ea0009f5c55369fa5faf0e0b89d13a62ec77e7c1a3691a848ebffb9b906134b48faa7daab4682eaa304dfc34f622f6157ec40473af166ad3feaf480f73add2 +DIST bigeye-0.3.tgz 32462 SHA256 e03aacd1797dece3b8a1521f7df44dd63f8417e988ce0be218079ae49cd7490d SHA512 73a146fd2f5df86a3d16dec05cf3f278393347f341a5cc319feccf6d23e1f2fe9d29070ac154a5b2336ade146843ab163e3545e9aefad1a0fa8903928d9b1ed0 WHIRLPOOL 491699b8470472ecd9907b4d5a2e207c34ab3ed9777cdaaf3cd323daaaadb80ee8e39dbc6e718cc808393ba65daeddc0b248b5c7b46fea78765fb3d656969a7f diff --git a/net-analyzer/bigeye/bigeye-0.3-r3.ebuild b/net-analyzer/bigeye/bigeye-0.3-r3.ebuild new file mode 100644 index 000000000000..afaaf2925af2 --- /dev/null +++ b/net-analyzer/bigeye/bigeye-0.3-r3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="network utility dump and simple honeypot utility" +HOMEPAGE="http://violating.us/projects/bigeye/" +SRC_URI="http://violating.us/projects/bigeye/download/${P}.tgz + mirror://gentoo/${P}-gcc34.diff.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" + +src_prepare() { + epatch \ + "${WORKDIR}"/${P}-gcc34.diff \ + "${FILESDIR}"/${P}-overflow.patch + sed -i README \ + -e "s|-- /messages/|-- /usr/share/bigeye/messages/|g" \ + || die "sed README" +} + +src_compile() { + cd src || die + $(tc-getCC) ${CFLAGS} ${LDFLAGS} bigeye.c emulate.c -o bigeye || die +} + +src_install() { + dobin src/bigeye + + insinto /usr/share/bigeye + doins sig.file + doins -r messages + + dodoc README +} diff --git a/net-analyzer/bigeye/files/bigeye-0.3-overflow.patch b/net-analyzer/bigeye/files/bigeye-0.3-overflow.patch new file mode 100644 index 000000000000..1ca159a65b79 --- /dev/null +++ b/net-analyzer/bigeye/files/bigeye-0.3-overflow.patch @@ -0,0 +1,11 @@ +--- a/src/bigeye.c ++++ b/src/bigeye.c +@@ -787,7 +787,7 @@ + local.sin_family = AF_INET; + local.sin_port = htons(porta); + local.sin_addr.s_addr = INADDR_ANY; +- bzero(&(local.sin_zero),sizeof(local)); ++ memset(&(local.sin_zero), "\0", sizeof(local.sin_zero)); + + if(setsockopt(sock_a, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) { + perror("setsockopt"); diff --git a/net-analyzer/bigeye/metadata.xml b/net-analyzer/bigeye/metadata.xml new file mode 100644 index 000000000000..03aa50bab7e3 --- /dev/null +++ b/net-analyzer/bigeye/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +</pkgmetadata> diff --git a/net-analyzer/bing/Manifest b/net-analyzer/bing/Manifest new file mode 100644 index 000000000000..94240426c4e1 --- /dev/null +++ b/net-analyzer/bing/Manifest @@ -0,0 +1 @@ +DIST bing_1.1.3.orig.tar.gz 38847 SHA256 318865a38aac472e03ba44dd34ba2bf0c535f46187a22a3075be466b293e55c3 diff --git a/net-analyzer/bing/bing-1.1.3-r1.ebuild b/net-analyzer/bing/bing-1.1.3-r1.ebuild new file mode 100644 index 000000000000..10346ba52505 --- /dev/null +++ b/net-analyzer/bing/bing-1.1.3-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit toolchain-funcs + +DESCRIPTION="A point-to-point bandwidth measurement tool" +SRC_URI="mirror://debian/pool/main/b/bing/${PN}_${PV}.orig.tar.gz" +HOMEPAGE="http://fgouget.free.fr/bing/index-en.shtml" + +LICENSE="BSD-4" +SLOT="0" +KEYWORDS="amd64 ~arm ia64 ppc sparc x86" +IUSE="" + +RDEPEND="" +DEPEND=">=sys-apps/sed-4" + +src_prepare() { + sed -i -e "s:#COPTIM = -g: COPTIM = ${CFLAGS}:" Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)"|| die "emake failed" +} + +src_install() { + dobin bing || die + doman unix/bing.8 || die + dodoc ChangeLog Readme.{1st,txt} || die +} diff --git a/net-analyzer/bing/metadata.xml b/net-analyzer/bing/metadata.xml new file mode 100644 index 000000000000..243b1ca9f63a --- /dev/null +++ b/net-analyzer/bing/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> + </maintainer> +</pkgmetadata> diff --git a/net-analyzer/bmon/Manifest b/net-analyzer/bmon/Manifest new file mode 100644 index 000000000000..ea51ee8644a3 --- /dev/null +++ b/net-analyzer/bmon/Manifest @@ -0,0 +1,2 @@ +DIST bmon-3.6.tar.gz 57883 SHA256 7d9d9b5af751cb61e267b43309506f03e82636282742fce89209f2378ae6a4b1 SHA512 e0c3d828d5391511ea52b1058a22f5eea250c5221664a7c05d7c36fabc361905dcc6cb97184ba0f366e4fe710e33816f72ad59a5856b90265a6b1a415de319e7 WHIRLPOOL d6eaf1b94f6a3dc7d16afe03146a2f8c67514c5fd9cf2956a89f5da6730d329e474b98d6cf3f6138e19e3e1d063aa4b69f325f478b63f8d4bb6fb6b708d13570 +DIST bmon-3.7.tar.gz 58233 SHA256 1e595c9936d8dbc85d91ecc00c3b6a4e49d4f6cade7a8bced3b291925894bb16 SHA512 ef0a50491a2f905b368eb23db5bcfb1c05b2f7fb81f272248a9c6134e7bef06e3db775f18c8e5500cd209461bcb7265c086abb88b55f36009a2040641f64df56 WHIRLPOOL 6ba57c7c726273d0891041580e826654ef75c53cc92b96b4c40021a42aa5959062140a26808f20bfe166bbbbb57ca5daa8b877528e0aa708144e13a3d69003be diff --git a/net-analyzer/bmon/bmon-3.6-r1.ebuild b/net-analyzer/bmon/bmon-3.6-r1.ebuild new file mode 100644 index 000000000000..493a2463bd02 --- /dev/null +++ b/net-analyzer/bmon/bmon-3.6-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils linux-info toolchain-funcs + +DESCRIPTION="interface bandwidth monitor" +HOMEPAGE="http://www.infradead.org/~tgr/bmon/" +SRC_URI=" + https://codeload.github.com/tgraf/${PN}/tar.gz/v${PV} -> ${P}.tar.gz +" + +LICENSE="BSD-2 MIT" +SLOT="0" +KEYWORDS="amd64 hppa ~ppc ~sparc x86" + +RDEPEND=" + >=sys-libs/ncurses-5.3-r2 + dev-libs/confuse + dev-libs/libnl:3 +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +DOCS=( ChangeLog ) + +CONFIG_CHECK="~NET_SCHED" +ERROR_NET_SCHED=" + CONFIG_NET_SCHED is not set when it should be. + Run ${PN} -i proc to use the deprecated proc interface instead. +" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-docdir-examples.patch \ + "${FILESDIR}"/${P}-net_if.h.patch + + epatch_user + + eautoreconf +} + +src_configure() { + econf \ + CURSES_LIB="$( $(tc-getPKG_CONFIG) --libs ncurses)" \ + --docdir="/usr/share/doc/${PF}" +} diff --git a/net-analyzer/bmon/bmon-3.7.ebuild b/net-analyzer/bmon/bmon-3.7.ebuild new file mode 100644 index 000000000000..c2de5558484b --- /dev/null +++ b/net-analyzer/bmon/bmon-3.7.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils linux-info toolchain-funcs + +DESCRIPTION="interface bandwidth monitor" +HOMEPAGE="http://www.infradead.org/~tgr/bmon/" +SRC_URI=" + https://codeload.github.com/tgraf/${PN}/tar.gz/v${PV} -> ${P}.tar.gz +" + +LICENSE="BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" + +RDEPEND=" + >=sys-libs/ncurses-5.3-r2 + dev-libs/confuse + dev-libs/libnl:3 +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +DOCS=( ChangeLog ) + +CONFIG_CHECK="~NET_SCHED" +ERROR_NET_SCHED=" + CONFIG_NET_SCHED is not set when it should be. + Run ${PN} -i proc to use the deprecated proc interface instead. +" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-3.6-docdir-examples.patch + + epatch_user + + eautoreconf +} + +src_configure() { + econf \ + CURSES_LIB="$( $(tc-getPKG_CONFIG) --libs ncurses)" \ + --docdir="/usr/share/doc/${PF}" +} diff --git a/net-analyzer/bmon/files/bmon-3.6-docdir-examples.patch b/net-analyzer/bmon/files/bmon-3.6-docdir-examples.patch new file mode 100644 index 000000000000..bb7d969cedde --- /dev/null +++ b/net-analyzer/bmon/files/bmon-3.6-docdir-examples.patch @@ -0,0 +1,10 @@ +--- a/examples/Makefile.am ++++ b/examples/Makefile.am +@@ -1,6 +1,6 @@ + # -*- Makefile -*- + +-exampledir = $(datarootdir)/doc/@PACKAGE@/examples ++exampledir = $(docdir)/examples + example_DATA = bmon.conf + + EXTRA_DIST = $(example_DATA) diff --git a/net-analyzer/bmon/files/bmon-3.6-net_if.h.patch b/net-analyzer/bmon/files/bmon-3.6-net_if.h.patch new file mode 100644 index 000000000000..74a174b2f381 --- /dev/null +++ b/net-analyzer/bmon/files/bmon-3.6-net_if.h.patch @@ -0,0 +1,11 @@ +--- a/src/in_netlink.c ++++ b/src/in_netlink.c +@@ -37,6 +37,8 @@ + static struct element_group *grp; + static struct bmon_module netlink_ops; + ++#include <net/if.h> ++ + #include <netlink/netlink.h> + #include <netlink/cache.h> + #include <netlink/utils.h> diff --git a/net-analyzer/bmon/metadata.xml b/net-analyzer/bmon/metadata.xml new file mode 100644 index 000000000000..03aa50bab7e3 --- /dev/null +++ b/net-analyzer/bmon/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +</pkgmetadata> diff --git a/net-analyzer/braa/Manifest b/net-analyzer/braa/Manifest new file mode 100644 index 000000000000..f8e0f21fcd77 --- /dev/null +++ b/net-analyzer/braa/Manifest @@ -0,0 +1 @@ +DIST braa-0.82.tar.gz 39927 SHA256 d650d34cdf30fcbbbbf4e4f11c8f5d51fd5caa3cca58d620fa1d978b8c18919c SHA512 8c88d288287a12c19c8d49606c8d2b70531b7f2be1aa3c4ccc6b01739aead751c03c56dc3f1a346b3dd20730a8bd0d30e33167a5f7c676f629348195762e23d4 WHIRLPOOL 23bd927ee9be8331069865c75389ee6417adec1ffaa4f2c4604cec0f55f786e341249e1bc96948d1e43fb5b6a925aea2e3940a2d8dce3c4060591105efe1c82a diff --git a/net-analyzer/braa/braa-0.82.ebuild b/net-analyzer/braa/braa-0.82.ebuild new file mode 100644 index 000000000000..e5a6940cf809 --- /dev/null +++ b/net-analyzer/braa/braa-0.82.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs eutils + +DESCRIPTION="Quick and dirty mass SNMP scanner" +HOMEPAGE="http://s-tech.elsat.net.pl/braa/" +SRC_URI="http://s-tech.elsat.net.pl/braa/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8-gentoo.diff + sed -i braa.c -e 's|0.81|0.82|g' || die + tc-export CC +} + +src_install() { + dobin braa + dodoc README +} diff --git a/net-analyzer/braa/files/braa-0.8-gentoo.diff b/net-analyzer/braa/files/braa-0.8-gentoo.diff new file mode 100644 index 000000000000..3167269f4a68 --- /dev/null +++ b/net-analyzer/braa/files/braa-0.8-gentoo.diff @@ -0,0 +1,24 @@ +--- a/Makefile ++++ b/Makefile +@@ -4,8 +4,6 @@ + ################################################################### + + # Linux, FreeBSD, OpenBSD +-CFLAGS = +-LDFLAGS = + + # Solaris / SPARC + # CFLAGS = -DSOLARIS_SPARC +@@ -24,9 +22,8 @@ + LIBS = + + all: ${OBJECTS} +- cc $(OBJECTS) -o $(OUT) $(LDFLAGS) $(LIBS) +- strip $(OUT) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $(OUT) $(LIBS) + + clean: + rm -rf $(OBJECTS) $(OUT) +- +\ No newline at end of file ++ diff --git a/net-analyzer/braa/metadata.xml b/net-analyzer/braa/metadata.xml new file mode 100644 index 000000000000..78692635ad22 --- /dev/null +++ b/net-analyzer/braa/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> +</pkgmetadata> diff --git a/net-analyzer/bsnmp/Manifest b/net-analyzer/bsnmp/Manifest new file mode 100644 index 000000000000..c306223fcec7 --- /dev/null +++ b/net-analyzer/bsnmp/Manifest @@ -0,0 +1,2 @@ +DIST bsnmp-1.11a.tar.gz 408165 SHA256 72d74b12742b153ac9c0bb4deb86bda6fc982eb41c775cc6fd7f343924b887f8 +DIST bsnmp-1.12.tar.gz 418653 SHA256 986d02d71c55693ec0b90b24564cb43195ce03254e85a8cd70457b318eefbee0 SHA512 c2c292e21632ea475d30aafaf7f66566389bccabfd20886a27bc4af98dba24139568c0eaddd36710655abac9ca6a38525136e06f2cf7be8b9db8ca656b2021c9 WHIRLPOOL 13e2bf9ac986b28e1437bc3a22aa8ceb09810f72d061c145a4e97c350d3c9bbf60180e2716c0ca0ed5513efc595a84b771eff04d3b7b3480fdd0982273ce77aa diff --git a/net-analyzer/bsnmp/bsnmp-1.11a.ebuild b/net-analyzer/bsnmp/bsnmp-1.11a.ebuild new file mode 100644 index 000000000000..4569dff5cd42 --- /dev/null +++ b/net-analyzer/bsnmp/bsnmp-1.11a.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils flag-o-matic + +DESCRIPTION="Mini-SNMP Daemon and Library" +HOMEPAGE="http://people.freebsd.org/~harti/" +SRC_URI="http://people.freebsd.org/~harti/bsnmp/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86-fbsd" +IUSE="tcpd" + +DEPEND="dev-libs/libbegemot + tcpd? ( sys-apps/tcp-wrappers )" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${PN}-1.10-gcc34.patch" +} + +src_compile() { + if use elibc_glibc; then + # bsnmp is bsd-based, without this it will fail + append-flags "-D_BSD_SOURCE" + fi + + filter-flags -fno-inline + + econf \ + --with-libbegemot=/usr \ + $(use_with tcpd tcpwrappers) \ + || die "econf failed" + + emake -j1 || die "emake failed" +} + +src_install() { + einstall || die "make install failed" +} diff --git a/net-analyzer/bsnmp/bsnmp-1.12-r1.ebuild b/net-analyzer/bsnmp/bsnmp-1.12-r1.ebuild new file mode 100644 index 000000000000..d515becc1242 --- /dev/null +++ b/net-analyzer/bsnmp/bsnmp-1.12-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils flag-o-matic + +DESCRIPTION="Mini-SNMP Daemon and Library" +HOMEPAGE="http://people.freebsd.org/~harti/" +SRC_URI="http://people.freebsd.org/~harti/bsnmp/${P}.tar.gz" + +LICENSE="BSD GPL-2" # GPL-2 init script +SLOT="0" +KEYWORDS="~amd64-fbsd ~x86-fbsd" +IUSE="tcpd" + +DEPEND="dev-libs/libbegemot + tcpd? ( sys-apps/tcp-wrappers )" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${PN}-1.10-gcc34.patch" + epatch "${FILESDIR}/werror.patch" + epatch "${FILESDIR}/${P}-mibII.patch" +} + +src_compile() { + if use elibc_glibc; then + # bsnmp is bsd-based, without this it will fail + append-flags "-D_BSD_SOURCE" + fi + + filter-flags -fno-inline + + econf \ + --with-libbegemot=/usr \ + $(use_with tcpd tcpwrappers) \ + || die "econf failed" + + emake -j1 || die "emake failed" +} + +src_install() { + einstall || die "make install failed" + newinitd "${FILESDIR}"/bsnmpd.init bsnmpd || die + insinto /etc + doins "${FILESDIR}"/snmpd.config +} diff --git a/net-analyzer/bsnmp/bsnmp-1.12.ebuild b/net-analyzer/bsnmp/bsnmp-1.12.ebuild new file mode 100644 index 000000000000..41749c41b932 --- /dev/null +++ b/net-analyzer/bsnmp/bsnmp-1.12.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils flag-o-matic + +DESCRIPTION="Mini-SNMP Daemon and Library" +HOMEPAGE="http://people.freebsd.org/~harti/" +SRC_URI="http://people.freebsd.org/~harti/bsnmp/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64-fbsd ~x86-fbsd" +IUSE="tcpd" + +DEPEND="dev-libs/libbegemot + tcpd? ( sys-apps/tcp-wrappers )" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${PN}-1.10-gcc34.patch" + epatch "${FILESDIR}/werror.patch" +} + +src_compile() { + if use elibc_glibc; then + # bsnmp is bsd-based, without this it will fail + append-flags "-D_BSD_SOURCE" + fi + + filter-flags -fno-inline + + econf \ + --with-libbegemot=/usr \ + $(use_with tcpd tcpwrappers) \ + || die "econf failed" + + emake -j1 || die "emake failed" +} + +src_install() { + einstall || die "make install failed" +} diff --git a/net-analyzer/bsnmp/files/bsnmp-1.10-gcc34.patch b/net-analyzer/bsnmp/files/bsnmp-1.10-gcc34.patch new file mode 100644 index 000000000000..f1220b83d521 --- /dev/null +++ b/net-analyzer/bsnmp/files/bsnmp-1.10-gcc34.patch @@ -0,0 +1,12 @@ +diff -ur -x '*~' bsnmp-1.10/snmp_ntp/snmp_ntp.c bsnmp-1.10-fix/snmp_ntp/snmp_ntp.c +--- bsnmp-1.10/snmp_ntp/snmp_ntp.c 2005-05-23 11:03:48.000000000 +0200 ++++ bsnmp-1.10-fix/snmp_ntp/snmp_ntp.c 2005-07-10 01:58:35.557888936 +0200 +@@ -360,6 +360,8 @@ + free(rpkt); + return (-1); + } ++ ++ return (-1); + } + + /* diff --git a/net-analyzer/bsnmp/files/bsnmp-1.12-mibII.patch b/net-analyzer/bsnmp/files/bsnmp-1.12-mibII.patch new file mode 100644 index 000000000000..c93191823d6e --- /dev/null +++ b/net-analyzer/bsnmp/files/bsnmp-1.12-mibII.patch @@ -0,0 +1,13 @@ +diff --git a/snmp_mibII/Makefile.in b/snmp_mibII/Makefile.in +index d14c179..3a99850 100755 +--- a/snmp_mibII/Makefile.in ++++ b/snmp_mibII/Makefile.in +@@ -10,7 +10,7 @@ MOD= mibII + SRCS= ${MOD}_tree.c mibII.c mibII_ifmib.c mibII_ip.c \ + mibII_interfaces.c mibII_ipaddr.c mibII_ifstack.c \ + mibII_rcvaddr.c mibII_nettomedia.c mibII_tcp.c mibII_udp.c \ +- mibII_route.c ++ mibII_route.c mibII_begemot.c + INCS= snmp_${MOD}.h + DEFS= mibII_tree.def + MAN3= snmp_mibII.3 diff --git a/net-analyzer/bsnmp/files/bsnmpd.init b/net-analyzer/bsnmp/files/bsnmpd.init new file mode 100644 index 000000000000..5b3f7749d46d --- /dev/null +++ b/net-analyzer/bsnmp/files/bsnmpd.init @@ -0,0 +1,12 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="Mini-SNMP Daemon" +command="/usr/bin/bsnmpd" +pidfile="/var/run/snmpd.pid" + +depend() { + use net +} diff --git a/net-analyzer/bsnmp/files/snmpd.config b/net-analyzer/bsnmp/files/snmpd.config new file mode 100644 index 000000000000..26f9f1aeb163 --- /dev/null +++ b/net-analyzer/bsnmp/files/snmpd.config @@ -0,0 +1,98 @@ +# $FreeBSD: src/etc/snmpd.config,v 1.9.10.1.8.1 2012/03/03 06:15:13 kensmith Exp $ +# +# Example configuration file for bsnmpd(1). +# + +# +# Set some common variables +# +location := "Room 200" +contact := "sysmeister@example.com" +system := 1 # FreeBSD +traphost := localhost +trapport := 162 + +# Change this! +read := "public" +# Uncomment begemotSnmpdCommunityString.0.2 below that sets the community +# string to enable write access. +write := "geheim" +trap := "mytrap" + +# +# Configuration +# +%snmpd +begemotSnmpdDebugDumpPdus = 2 +begemotSnmpdDebugSyslogPri = 7 + +# +# Set the read and write communities. +# +# The default value of the community strings is NULL (note, that this is +# different from the empty string). This disables both read and write access. +# To enable read access only the read community string must be set. Setting +# the write community string enables both read and write access with that +# string. +# +# Be sure to understand the security implications of SNMPv2 - the community +# strings are readable on the wire! +# +begemotSnmpdCommunityString.0.1 = $(read) +# begemotSnmpdCommunityString.0.2 = $(write) +begemotSnmpdCommunityDisable = 1 + +# open standard SNMP ports +begemotSnmpdPortStatus.0.0.0.0.161 = 1 + +# open a unix domain socket +begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 +begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 + +# send traps to the traphost +begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 +begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 +begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) + +sysContact = $(contact) +sysLocation = $(location) +sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) + +snmpEnableAuthenTraps = 2 + +# +# Load MIB-2 module +# +begemotSnmpdModulePath."mibII" = "/usr/lib/libsnmp_mibII.so.3.0" + +# Force a polling rate for the 64-bit interface counters in case +# the automatic computation is wrong (which may be the case if an interface +# announces the wrong bit rate via its MIB). +#%mibII +#begemotIfForcePoll = 2000 + +# +# Netgraph module +# +#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" +# +#%netgraph +#begemotNgControlNodeName = "snmpd" + +# +# pf(4) module +# +#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" + +# +# Host resources module +# This requires the mibII module. +# +#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" + +# +# Bridge module +# This requires the mibII module. +# +#begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so" + diff --git a/net-analyzer/bsnmp/files/werror.patch b/net-analyzer/bsnmp/files/werror.patch new file mode 100644 index 000000000000..7a0968e84441 --- /dev/null +++ b/net-analyzer/bsnmp/files/werror.patch @@ -0,0 +1,11 @@ +--- bsnmp-1.12/config/Makefile.pre.old 2012-04-26 10:45:58.000000000 -0400 ++++ bsnmp-1.12/config/Makefile.pre 2012-04-26 10:46:11.000000000 -0400 +@@ -53,7 +53,7 @@ + # Assume a Posix-ish make that passes MAKEFLAGS in the environment. + SUBMAKE= $(MAKE) --no-print-directory + +-WARNS= -Wsystem-headers -Werror -Wall -Wno-format-y2k -W \ ++WARNS= -Wsystem-headers -Wall -Wno-format-y2k -W \ + -Wstrict-prototypes -Wmissing-prototypes \ + -Wpointer-arith -Wreturn-type -Wcast-qual \ + -Wwrite-strings -Wswitch -Wshadow -Wcast-align \ diff --git a/net-analyzer/bsnmp/metadata.xml b/net-analyzer/bsnmp/metadata.xml new file mode 100644 index 000000000000..ecedda4aa2cc --- /dev/null +++ b/net-analyzer/bsnmp/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>bsd</herd> +</pkgmetadata> diff --git a/net-analyzer/bwbar/Manifest b/net-analyzer/bwbar/Manifest new file mode 100644 index 000000000000..d9ab4bd216dc --- /dev/null +++ b/net-analyzer/bwbar/Manifest @@ -0,0 +1 @@ +DIST bwbar-1.2.3.tar.bz2 30202 SHA256 d82f8ba7defbdb9ae6671cbd7a064597a2a717ee6eeb32df6093403e8a86d1c1 SHA512 cb534f50007db6e39aa134d0d9a08ec6935c8a393f8dd5ab80f3c6ef94048821e065cd6c1be80657a2d6338fd16a73dcc0f89f5b15aba9e3bd38f0737a6d43c4 WHIRLPOOL acc5b09305f1d4f827bdf11098f23c8e3b2353343b83166b6168e9d39c5233acdd10fbfa9b302346f02c42073e0196dc8593bdfc03c25cabcc75264bf178e679 diff --git a/net-analyzer/bwbar/bwbar-1.2.3.ebuild b/net-analyzer/bwbar/bwbar-1.2.3.ebuild new file mode 100644 index 000000000000..681a9c7ec1d9 --- /dev/null +++ b/net-analyzer/bwbar/bwbar-1.2.3.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="The kernel.org \"Current bandwidth utilization\" bar" +HOMEPAGE="http://www.kernel.org/pub/software/web/bwbar/" +SRC_URI="mirror://kernel/software/web/bwbar/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND=">=media-libs/libpng-1.2" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-libpng15.patch +} + +src_install() { + dobin bwbar + dodoc README +} diff --git a/net-analyzer/bwbar/files/bwbar-1.2.3-libpng15.patch b/net-analyzer/bwbar/files/bwbar-1.2.3-libpng15.patch new file mode 100644 index 000000000000..4d1bd67c6d34 --- /dev/null +++ b/net-analyzer/bwbar/files/bwbar-1.2.3-libpng15.patch @@ -0,0 +1,19 @@ +--- a/bwbar.c ++++ b/bwbar.c +@@ -30,6 +30,7 @@ + #include <alloca.h> + #include <getopt.h> + #include <png.h> ++#include <zlib.h> + + void skipline(FILE *f) + { +@@ -79,7 +80,7 @@ + if ( !info_ptr ) + goto barf; + +- if ( setjmp(png_ptr->jmpbuf) ) { ++ if ( setjmp(png_jmpbuf(png_ptr)) ) { + status = 1; + goto barf; /* libpng abort */ + } diff --git a/net-analyzer/bwbar/metadata.xml b/net-analyzer/bwbar/metadata.xml new file mode 100644 index 000000000000..03aa50bab7e3 --- /dev/null +++ b/net-analyzer/bwbar/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +</pkgmetadata> diff --git a/net-analyzer/bwm-ng/Manifest b/net-analyzer/bwm-ng/Manifest new file mode 100644 index 000000000000..eb0a4d148c88 --- /dev/null +++ b/net-analyzer/bwm-ng/Manifest @@ -0,0 +1 @@ +DIST bwm-ng-0.6.tar.gz 141564 SHA256 c1134358e268329d438b0996399003b0f0b966034fb4b5b138761c2f3c62ffdd SHA512 7327ec848b0c18d68b2cb0a0ca570bb4d783b534186868d13b453346dbf3ddbcd7e1070803406ff207dc1fd00aa91c06187b0ea7fea28c6c006b44165331c21b WHIRLPOOL 45cc30b6a99ed9c267095e6dca170380be3da698e7b8aab50436d51ea914714facf954b9c26e465f47a1bcd59ca3fbd5511cd654b42fd9d4a5131e2f5bbca233 diff --git a/net-analyzer/bwm-ng/bwm-ng-0.6-r1.ebuild b/net-analyzer/bwm-ng/bwm-ng-0.6-r1.ebuild new file mode 100644 index 000000000000..a7edfb7ef70b --- /dev/null +++ b/net-analyzer/bwm-ng/bwm-ng-0.6-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Bandwidth Monitor NG is a small and simple console-based bandwidth monitor" +SRC_URI="http://www.gropp.org/bwm-ng/${P}.tar.gz" +HOMEPAGE="http://www.gropp.org/" + +KEYWORDS="amd64 ~arm ppc x86" +LICENSE="GPL-2" +SLOT="0" +IUSE="html csv" + +DEPEND=">=sys-libs/ncurses-5.4-r4 + >=sys-apps/net-tools-1.60-r1" + +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog INSTALL NEWS README THANKS ) + +src_configure() { + econf \ + --with-ncurses \ + --with-procnetdev \ + $(use_enable html) \ + $(use_enable csv) +} diff --git a/net-analyzer/bwm-ng/metadata.xml b/net-analyzer/bwm-ng/metadata.xml new file mode 100644 index 000000000000..6927b1f6ed79 --- /dev/null +++ b/net-analyzer/bwm-ng/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +<use> +<flag name='csv'>Enable csv output</flag> +<flag name='html'>Enable html output</flag> +</use> +</pkgmetadata> diff --git a/net-analyzer/bwmon/Manifest b/net-analyzer/bwmon/Manifest new file mode 100644 index 000000000000..23a0bc7e5212 --- /dev/null +++ b/net-analyzer/bwmon/Manifest @@ -0,0 +1 @@ +DIST bwmon-1.3.tar.gz 5668 SHA256 624381208d0faae6c123bc6198a59d6c4316cd4fffb1ba5aca206374f5a42df6 SHA512 6552ba03f0cfe7d2adebe7ae49379cc109b4f8da56dafec1264ac39c114809c7cde161f6321a67516b22b04abbad5d1ab3b4efb313479ad131fb20638c6871e8 WHIRLPOOL 1b05208fdae45881b3175f5f84fe5d816c1d0db182ccb34be1b61e3f2e14bde5cb627dda0ded10cb1f21490277eb6d5c3cd3456001854e0dd418cca6d63cb8d1 diff --git a/net-analyzer/bwmon/bwmon-1.3-r2.ebuild b/net-analyzer/bwmon/bwmon-1.3-r2.ebuild new file mode 100644 index 000000000000..e54f6d2ef235 --- /dev/null +++ b/net-analyzer/bwmon/bwmon-1.3-r2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="Simple ncurses bandwidth monitor" +HOMEPAGE="http://bwmon.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +RDEPEND="sys-libs/ncurses" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +SLOT="0" +LICENSE="GPL-2 public-domain" +KEYWORDS="amd64 hppa ppc sparc x86" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-typo-fix.patch \ + "${FILESDIR}"/${P}-overflow.patch \ + "${FILESDIR}"/${P}-tinfo.patch +} + +src_compile() { + emake -C src CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" +} + +src_install () { + dobin ${PN} + dodoc README +} diff --git a/net-analyzer/bwmon/files/bwmon-1.3-build.patch b/net-analyzer/bwmon/files/bwmon-1.3-build.patch new file mode 100644 index 000000000000..6d4eadf15551 --- /dev/null +++ b/net-analyzer/bwmon/files/bwmon-1.3-build.patch @@ -0,0 +1,22 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -10,8 +10,8 @@ CC = gcc + RM = /bin/rm + INSTALL = install + +-CFLAGS = -I../include -Wall -D__THREADS +-LDFLAGS = -lpthread -lncurses ++CFLAGS += -I../include -Wall -D__THREADS ++LIBS = -lpthread -lncurses + + SRC = bwmon.c + OBJS = $(SRC:.c=.o) +@@ -19,7 +19,7 @@ OBJS = $(SRC:.c=.o) + all: bwmon + + bwmon: $(OBJS) +- $(CC) $(LDFLAGS) -o ../$@ $(OBJS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o ../$@ $(OBJS) $(LIBS) + + clean: + @for i in $(OBJS) *~ core bwmon; do \ diff --git a/net-analyzer/bwmon/files/bwmon-1.3-overflow.patch b/net-analyzer/bwmon/files/bwmon-1.3-overflow.patch new file mode 100644 index 000000000000..052d1d766351 --- /dev/null +++ b/net-analyzer/bwmon/files/bwmon-1.3-overflow.patch @@ -0,0 +1,20 @@ +--- a/src/bwmon.c ++++ b/src/bwmon.c +@@ -408,7 +408,7 @@ bool_t + print_uptime(float * uptime) + { + unsigned int tmp = 0, hour = 0, min = 0, sec = 0; +- char hostname[30]; ++ char hostname[50]; + + tmp = (uint)(*uptime); + sec = tmp % 60; +@@ -418,7 +418,7 @@ print_uptime(float * uptime) + hour = tmp % 24; + tmp = (tmp - hour) / 24; + +- if (gethostname(hostname, strlen(hostname)) != 0) ++ if (gethostname(hostname, sizeof(hostname)) != 0) + strcpy(hostname, "System"); + + printw("\n%s uptime: %u day%c %u hour%c %u minutes and %u seconds\n", diff --git a/net-analyzer/bwmon/files/bwmon-1.3-tinfo.patch b/net-analyzer/bwmon/files/bwmon-1.3-tinfo.patch new file mode 100644 index 000000000000..df0bb06cb968 --- /dev/null +++ b/net-analyzer/bwmon/files/bwmon-1.3-tinfo.patch @@ -0,0 +1,11 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -11,7 +11,7 @@ + INSTALL = install + + CFLAGS += -I../include -Wall -D__THREADS +-LIBS = -lpthread -lncurses ++LIBS = -lpthread $(shell ${PKG_CONFIG} --libs ncurses) + + SRC = bwmon.c + OBJS = $(SRC:.c=.o) diff --git a/net-analyzer/bwmon/files/bwmon-1.3-typo-fix.patch b/net-analyzer/bwmon/files/bwmon-1.3-typo-fix.patch new file mode 100644 index 000000000000..36f6af8e5ee6 --- /dev/null +++ b/net-analyzer/bwmon/files/bwmon-1.3-typo-fix.patch @@ -0,0 +1,11 @@ +--- a/src/bwmon.c ++++ b/src/bwmon.c +@@ -36,7 +36,7 @@ + "by Kimmo Nupponen (kimmoon@users.sourceforge.net)\n" + "$Date: 2014/07/10 19:51:24 $\n\n" + "usage: %s [-b] [-h] [-a] [-m] [-u seconds]\n" +- "\t-a Print bandwidth utiliasation in Kbytes rather than Kbits. The default\n" ++ "\t-b Print bandwidth utilisation in KBytes rather than Kbits. The default\n" + "\t is to use Kbits\n" + "\t-a Print also average bandwidth since last boot per interface\n" + "\t-m Print maximum bandwidth since launch of this utility\n" diff --git a/net-analyzer/bwmon/metadata.xml b/net-analyzer/bwmon/metadata.xml new file mode 100644 index 000000000000..27806ec6db3f --- /dev/null +++ b/net-analyzer/bwmon/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> + <longdescription>Simple ncurses bandwidth monitor</longdescription> + <upstream> + <remote-id type="sourceforge">bwmon</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-analyzer/bwping/Manifest b/net-analyzer/bwping/Manifest new file mode 100644 index 000000000000..b2bc34a63695 --- /dev/null +++ b/net-analyzer/bwping/Manifest @@ -0,0 +1 @@ +DIST bwping-1.7.tar.gz 90441 SHA256 a73db87b47d363d722cd60473a546930a5e78df8d21437191ba4ca06d7197297 SHA512 74b695a80c2fa54693af1afab78417dc6ca35130bbd9367950681ddbbebe36b38166068532e8296f336c5cad8230339b4fb4fb975f4b066cdacba8a99179cac7 WHIRLPOOL 41567722306d0ee72bad2ba9802bf399f0b435848a11d075bb89f746487c06ab16484056f54223b5cbea26e2855f2273b52a1247743c7cc77ad89beb26c3da01 diff --git a/net-analyzer/bwping/bwping-1.7-r1.ebuild b/net-analyzer/bwping/bwping-1.7-r1.ebuild new file mode 100644 index 000000000000..b3faf3c923f4 --- /dev/null +++ b/net-analyzer/bwping/bwping-1.7-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +inherit autotools-utils + +DESCRIPTION="A tool to measure bandwidth and RTT between two hosts using ICMP" +HOMEPAGE="http://bwping.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~sparc x86 ~x86-fbsd" +IUSE="ipv6" + +#PATCHES=( +# "${FILESDIR}/${P}-buildsystem-configurable-ipv6.patch" # bug 454256 +#) + +src_configure() { + local myeconfargs=( + $(use_enable ipv6) + ) + autotools-utils_src_configure +} diff --git a/net-analyzer/bwping/files/bwping-1.7-buildsystem-configurable-ipv6.patch b/net-analyzer/bwping/files/bwping-1.7-buildsystem-configurable-ipv6.patch new file mode 100644 index 000000000000..306b2b9fd22c --- /dev/null +++ b/net-analyzer/bwping/files/bwping-1.7-buildsystem-configurable-ipv6.patch @@ -0,0 +1,55 @@ +Index: bwping-1.7/configure.in +=================================================================== +--- bwping-1.7.orig/configure.in ++++ bwping-1.7/configure.in +@@ -32,9 +32,30 @@ AC_CHECK_FUNC(getaddrinfo) + if test $ac_cv_func_getaddrinfo = no; then + AC_SEARCH_LIBS(getaddrinfo, [nsl socket], [], [ echo "getaddrinfo() is required for build"; exit -1 ]) + fi +-AC_MSG_CHECKING(for IPv6 support) +-AC_CACHE_VAL(ac_cv_ipv6, +- AC_TRY_RUN([ ++ ++AC_ARG_ENABLE(ipv6, ++ AC_HELP_STRING([--disable-ipv6],[disable IPv6 support]), ++ [case "${enable_ipv6}" in ++ no) ++ ipv6=no ++ ;; ++ yes) ++ ipv6=yes ++ ;; ++ *) ++ AC_MSG_ERROR([Invalid --enable-ipv6 argument '$enable_ipv6']) ++ ;; ++ esac ++ ], [ ++ dnl If nothing is specified, assume auto-detection ++ ipv6=yes ++ ] ++) ++ ++if test $ipv6 = yes; then ++ AC_MSG_CHECKING(for IPv6 support) ++ AC_CACHE_VAL(ac_cv_ipv6, ++ AC_TRY_LINK([ + #include <sys/types.h> + #include <sys/socket.h> + #include <netinet/in.h> +@@ -54,9 +75,12 @@ main() + ac_cv_ipv6=yes, + ac_cv_ipv6=no, + ac_cv_ipv6=no)) +-AC_MSG_RESULT($ac_cv_ipv6) +-if test $ac_cv_ipv6 = yes ; then +- AC_DEFINE(IPV6,, "check if system supports IPV6") ++ if test $ac_cv_ipv6 = yes ; then ++ AC_DEFINE(IPV6,, "check if system supports IPV6") ++ else ++ AC_MSG_ERROR([IPv6 support was request, but not found]) ++ fi ++ AC_MSG_RESULT($ac_cv_ipv6) + fi +-AM_CONDITIONAL([BUILDIPV6], [ test $ac_cv_ipv6 = yes ]) ++AM_CONDITIONAL([BUILDIPV6], [ test $ipv6 = yes ]) + AC_OUTPUT(Makefile) diff --git a/net-analyzer/bwping/metadata.xml b/net-analyzer/bwping/metadata.xml new file mode 100644 index 000000000000..905c8f0a5329 --- /dev/null +++ b/net-analyzer/bwping/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> + <maintainer> + <email>hwoarang@gentoo.org</email> + <name>Markos Chandras</name> + </maintainer> + <upstream> + <maintainer> + <email>oleg.derevenetz@gmail.com</email> + <name>Oleg Derevenetz</name> + </maintainer> + <remote-id type="sourceforge">bwping</remote-id> + </upstream> + <longdescription> + A tool to measure bandwidth and response times between two hosts using + Internet Control Message Protocol (ICMP) echo request/echo reply mechanism. + </longdescription> +</pkgmetadata> diff --git a/net-analyzer/cacti-spine/Manifest b/net-analyzer/cacti-spine/Manifest new file mode 100644 index 000000000000..f93518e3d521 --- /dev/null +++ b/net-analyzer/cacti-spine/Manifest @@ -0,0 +1,2 @@ +DIST cacti-spine-0.8.8e.tar.gz 757042 SHA256 e014488acffd4dd3a88306c3809e93a89c8538a050c2a58a9666e4c04c004b92 SHA512 165e93d4cce3378e911aec41fcd68fb541d82d849ebf3e2e28e0ddb65027ff2eb77d488acbaa133244091cd02adb58d8f74ea5abc36abed07af9ea72bc104f40 WHIRLPOOL 59442f54fbb8956a945404f374eba848bc21b60d53dacb025132a91dc077115aa65ee30959ba81fb521beb9732c1c5944adb1c555a36ad6ea72898172404970c +DIST cacti-spine-0.8.8f.tar.gz 757078 SHA256 d0599239187f2f5a29f82b809e6941447f18bb7b170cd42e67455633b195e3c7 SHA512 8c5e1713bb1d41227cef6047e5348ef33b90b5591976cf24390abbf1e5c68de6714f785d9517ca9aed21b42b6b8772512af176b9f62bf18d6d74d949a6359a22 WHIRLPOOL 70545057f80d5cc5940059179bc3b72eabf48ff61c5eed5b0b344e995eb1411e3a89359e8c0b6bc3850b029233597d581ece59a99c6653ac7cfd028ef2e24232 diff --git a/net-analyzer/cacti-spine/cacti-spine-0.8.8e.ebuild b/net-analyzer/cacti-spine/cacti-spine-0.8.8e.ebuild new file mode 100644 index 000000000000..f46332095f98 --- /dev/null +++ b/net-analyzer/cacti-spine/cacti-spine-0.8.8e.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +MY_P=${PN}-${PV/_p/-} + +DESCRIPTION="Spine is a fast poller for Cacti (formerly known as Cactid)" +HOMEPAGE="http://cacti.net/spine_info.php" +SRC_URI="http://www.cacti.net/downloads/spine/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 hppa ~ppc ~ppc64 sparc x86" + +DEPEND=" + dev-libs/openssl:* + net-analyzer/net-snmp + virtual/mysql +" +RDEPEND=" + ${DEPEND} + >net-analyzer/cacti-0.8.8 +" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-0.8.8e-fix-ac-macro.patch \ + "${FILESDIR}"/${PN}-0.8.8e-net-snmp.patch \ + "${FILESDIR}"/${PN}-0.8.8d-mysql.patch \ + "${FILESDIR}"/${PN}-0.8.8d-ping.patch \ + "${FILESDIR}"/${PN}-0.8.8d-snmp_spine_close.patch + + sed -i -e 's/^bin_PROGRAMS/sbin_PROGRAMS/' Makefile.am + AT_M4DIR="config" eautoreconf +} + +src_install() { + dosbin spine + insinto /etc/ + insopts -m0640 -o root + newins spine.conf{.dist,} + dodoc ChangeLog README +} diff --git a/net-analyzer/cacti-spine/cacti-spine-0.8.8f.ebuild b/net-analyzer/cacti-spine/cacti-spine-0.8.8f.ebuild new file mode 100644 index 000000000000..81e07ffbb733 --- /dev/null +++ b/net-analyzer/cacti-spine/cacti-spine-0.8.8f.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +MY_P=${PN}-${PV/_p/-} + +DESCRIPTION="Spine is a fast poller for Cacti (formerly known as Cactid)" +HOMEPAGE="http://cacti.net/spine_info.php" +SRC_URI="http://www.cacti.net/downloads/spine/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +DEPEND=" + dev-libs/openssl:* + net-analyzer/net-snmp + virtual/mysql +" +RDEPEND=" + ${DEPEND} + >net-analyzer/cacti-0.8.8 +" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-0.8.8f-fix-ac-macro.patch \ + "${FILESDIR}"/${PN}-0.8.8e-net-snmp.patch \ + "${FILESDIR}"/${PN}-0.8.8d-mysql.patch \ + "${FILESDIR}"/${PN}-0.8.8d-ping.patch \ + "${FILESDIR}"/${PN}-0.8.8d-snmp_spine_close.patch + + sed -i -e 's/^bin_PROGRAMS/sbin_PROGRAMS/' Makefile.am + AT_M4DIR="config" eautoreconf +} + +src_install() { + dosbin spine + insinto /etc/ + insopts -m0640 -o root + newins spine.conf{.dist,} + dodoc ChangeLog README +} diff --git a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-mysql.patch b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-mysql.patch new file mode 100644 index 000000000000..d60653678a2c --- /dev/null +++ b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-mysql.patch @@ -0,0 +1,11 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -239,7 +239,7 @@ + fi + CFLAGS="-I$MYSQL_INC_DIR $CFLAGS" + +-AC_CHECK_LIB(mysqlclient_r,mysql_init, LIBS="-lmysqlclient_r", ++AC_CHECK_LIB(mysqlclient_r,mysql_init, LIBS="$LIBS -lmysqlclient_r", + AC_MSG_ERROR([MySQL libraries not found]) + ) + diff --git a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-ping.patch b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-ping.patch new file mode 100644 index 000000000000..0d94674ce5a3 --- /dev/null +++ b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-ping.patch @@ -0,0 +1,11 @@ +--- a/ping.c ++++ b/ping.c +@@ -813,7 +813,7 @@ + int rv; + + buf = malloc(len*sizeof(char)); +- memset(buf, 0, sizeof(buf)); ++ memset(buf, 0, len*sizeof(char)); + + while (1) { + rv = gethostbyname_r(hostname, &result_buf, buf, len, diff --git a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-snmp_spine_close.patch b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-snmp_spine_close.patch new file mode 100644 index 000000000000..f39e8c6575e1 --- /dev/null +++ b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-snmp_spine_close.patch @@ -0,0 +1,10 @@ +--- a/snmp.h ++++ b/snmp.h +@@ -32,6 +32,7 @@ + */ + + extern void snmp_spine_init(void); ++extern void snmp_spine_close(void); + extern void *snmp_host_init(int host_id, char *hostname, int snmp_version, char *snmp_community, char *snmp_username, char *snmp_password, char *snmp_auth_protocol, char *snmp_priv_passphrase, char *snmp_priv_protocol, char *snmp_context, int snmp_port, int snmp_timeout); + extern void snmp_host_cleanup(void *snmp_session); + extern char *snmp_get(host_t *current_host, char *snmp_oid); diff --git a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8e-fix-ac-macro.patch b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8e-fix-ac-macro.patch new file mode 100644 index 000000000000..5249cdf9386b --- /dev/null +++ b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8e-fix-ac-macro.patch @@ -0,0 +1,11 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -10,7 +10,7 @@ + AC_LANG(C) + + AM_INIT_AUTOMAKE(spine, 0.8.8e) +-AM_CONFIG_HEADER(config/config.h) ++AC_CONFIG_HEADERS(config/config.h) + + # static libraries + AC_ARG_WITH(static, diff --git a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8e-net-snmp.patch b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8e-net-snmp.patch new file mode 100644 index 000000000000..c96bbc9a7322 --- /dev/null +++ b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8e-net-snmp.patch @@ -0,0 +1,19 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -254,14 +254,14 @@ + ) + + AC_MSG_CHECKING([if Net-SNMP needs crypto support]) +-AC_TRY_COMPILE([#include <net-snmp-config.h>], [exit(USE_OPENSSL != 1);], ++AC_TRY_COMPILE([#include <net-snmp/net-snmp-config.h>], [exit(USE_OPENSSL != 1);], + [ AC_MSG_RESULT(yes) + SNMP_SSL=yes + ], + AC_MSG_RESULT(no) + ) + +-AC_TRY_COMPILE([ #include <net-snmp-config.h> ++AC_TRY_COMPILE([ #include <net-snmp/net-snmp-config.h> + #include <net-snmp/utilities.h> + #include <net-snmp/net-snmp-includes.h> + #include <net-snmp/config_api.h> diff --git a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8f-fix-ac-macro.patch b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8f-fix-ac-macro.patch new file mode 100644 index 000000000000..a879d5e0bf96 --- /dev/null +++ b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8f-fix-ac-macro.patch @@ -0,0 +1,11 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -10,7 +10,7 @@ + AC_LANG(C) + + AM_INIT_AUTOMAKE(spine, 0.8.8f) +-AM_CONFIG_HEADER(config/config.h) ++AC_CONFIG_HEADERS(config/config.h) + + # static libraries + AC_ARG_WITH(static, diff --git a/net-analyzer/cacti-spine/metadata.xml b/net-analyzer/cacti-spine/metadata.xml new file mode 100644 index 000000000000..18ad94010831 --- /dev/null +++ b/net-analyzer/cacti-spine/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> + <longdescription lang="en"> + Spine (formerly known as Cactid) is a poller for Cacti that primarily + strives to be as fast as possible. For this reason it is written in + native C, makes use of POSIX threads, and is linked directly against the + net-snmp library for minmumal SNMP polling overhead. Spine is a + replacement for the default cmd.php poller so you must decide if using + Spine makes sense for your installation. + </longdescription> +</pkgmetadata> + diff --git a/net-analyzer/cacti/Manifest b/net-analyzer/cacti/Manifest new file mode 100644 index 000000000000..1ab0eaa53a73 --- /dev/null +++ b/net-analyzer/cacti/Manifest @@ -0,0 +1,2 @@ +DIST cacti-0.8.8e.tar.gz 2594446 SHA256 43b091957faf03a4b0baacc8c327320394c0843476ea34e3beb1416506ad3f55 SHA512 11eeace353b7bacb2e4f065b1557b6978f0315d372f03f25bbdd210aaa494b70661b24502885bb610d8cf042cdcd68c69ea1a6fd1cb7073af29553116500df0c WHIRLPOOL ea5f29a71504f4e1fb4d8981db84b46fb87842921d8f6f422b8a0c2b127e80b785fca60b3b037036396cf9de456240a573cd446118f03a93f25a2406fe22be40 +DIST cacti-0.8.8f.tar.gz 2594409 SHA256 2ea92407c11bf13302558a5bc9e1f3a57bd14a1d9ded48c505ec495762f76738 SHA512 b712a9f8b7bee632cb4982fed72793ac2f4d70aa042784bbd2fd3923a27901f457393aa95bbd63960187e85fe462c35e88fa3cd93e8537a3a68f94bdbf5d7f2b WHIRLPOOL 58c883780fed833df2501b204a21fc8605e76a7b5ac26ebd13f0bf22f45dda6363be35ada8af2a65f4e7db506d103b6739d73699676c1622e7051eb8a89ad555 diff --git a/net-analyzer/cacti/cacti-0.8.8e.ebuild b/net-analyzer/cacti/cacti-0.8.8e.ebuild new file mode 100644 index 000000000000..a2bfbc6bd5a4 --- /dev/null +++ b/net-analyzer/cacti/cacti-0.8.8e.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit depend.php eutils webapp + +# Support for _p* in version. +MY_P=${P/_p*/} + +DESCRIPTION="Cacti is a complete frontend to rrdtool" +HOMEPAGE="http://www.cacti.net/" +SRC_URI="http://www.cacti.net/downloads/${MY_P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="alpha amd64 ~arm hppa ~ppc ~ppc64 sparc x86" +IUSE="snmp doc" + +need_httpd + +RDEPEND=" + dev-lang/php[cli,mysql,session,sockets,xml] + dev-php/adodb + net-analyzer/rrdtool[graph] + virtual/cron + virtual/mysql + snmp? ( >=net-analyzer/net-snmp-5.2.0 ) +" + +src_prepare() { + sed -i -e \ + 's:$config\["library_path"\] . "/adodb/adodb.inc.php":"adodb/adodb.inc.php":' \ + "${S}"/include/global.php || die + + rm -rf lib/adodb || die # don't use bundled adodb +} + +src_compile() { :; } + +src_install() { + webapp_src_preinst + + rm LICENSE README || die + dodoc docs/{CHANGELOG,CONTRIB,README,txt/manual.txt} + use doc && dohtml -r docs/html/ + rm -rf docs + + edos2unix `find -type f -name '*.php'` + + dodir ${MY_HTDOCSDIR} + cp -r . "${D}"${MY_HTDOCSDIR} + + webapp_serverowned ${MY_HTDOCSDIR}/rra + webapp_serverowned ${MY_HTDOCSDIR}/log/cacti.log + webapp_configfile ${MY_HTDOCSDIR}/include/config.php + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + + webapp_src_install +} diff --git a/net-analyzer/cacti/cacti-0.8.8f.ebuild b/net-analyzer/cacti/cacti-0.8.8f.ebuild new file mode 100644 index 000000000000..79420be5fa67 --- /dev/null +++ b/net-analyzer/cacti/cacti-0.8.8f.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit depend.php eutils webapp + +# Support for _p* in version. +MY_P=${P/_p*/} + +DESCRIPTION="Cacti is a complete frontend to rrdtool" +HOMEPAGE="http://www.cacti.net/" +SRC_URI="http://www.cacti.net/downloads/${MY_P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="snmp doc" + +need_httpd + +RDEPEND=" + dev-lang/php[cli,mysql,session,sockets,xml] + dev-php/adodb + net-analyzer/rrdtool[graph] + virtual/cron + virtual/mysql + snmp? ( >=net-analyzer/net-snmp-5.2.0 ) +" + +src_prepare() { + sed -i -e \ + 's:$config\["library_path"\] . "/adodb/adodb.inc.php":"adodb/adodb.inc.php":' \ + "${S}"/include/global.php || die + + rm -rf lib/adodb || die # don't use bundled adodb +} + +src_compile() { :; } + +src_install() { + webapp_src_preinst + + rm LICENSE README || die + dodoc docs/{CHANGELOG,CONTRIB,README,txt/manual.txt} + use doc && dohtml -r docs/html/ + rm -rf docs + + edos2unix `find -type f -name '*.php'` + + dodir ${MY_HTDOCSDIR} + cp -r . "${D}"${MY_HTDOCSDIR} + + webapp_serverowned ${MY_HTDOCSDIR}/rra + webapp_serverowned ${MY_HTDOCSDIR}/log/cacti.log + webapp_configfile ${MY_HTDOCSDIR}/include/config.php + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + + webapp_src_install +} diff --git a/net-analyzer/cacti/files/postinstall-en.txt b/net-analyzer/cacti/files/postinstall-en.txt new file mode 100644 index 000000000000..732c718005cb --- /dev/null +++ b/net-analyzer/cacti/files/postinstall-en.txt @@ -0,0 +1,62 @@ + +New Install + +1. Create the new cacti database + shell> mysqladmin -p --user=root create cacti +2. Import the default cacti database: + shell> mysql -p --user=root cacti < ${MY_INSTALLDIR}/cacti.sql +3. Create a MySQL username and password for cacti. + shell> mysql -p --user=root mysql + mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword'; + mysql> flush privileges; +4. Edit ${MY_INSTALLDIR}/include/config.php and modify the MySQL user, + password and database for your cacti configuration. + + Example: + \$database_default = "cacti"; + \$database_hostname = "localhost"; + \$database_username = "cactiuser"; + \$database_password = "somepassword"; + +5. Point your web browser to: http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/ + Make sure to fill in all of the path variables carefully and + correctly on the following screen. +6. After you've gone through the setup wizard, go back to the main cacti page + and login as: + Username: admin + Password: admin + +Upgrading + +1. Backup DB in the case that something goes wrong. + shell> mysqldump -l --add-drop-table cacti > mysql.cacti +2. Backup your rra/ directory and any custom scripts in your scripts/ + directory. +3. Edit ${MY_INSTALLDIR}/include/config.php, and confirm that the MySQL user, + password and database is correct for your cacti configuration. + + Example: + \$database_default = "cacti"; + \$database_hostname = "localhost"; + \$database_username = "cactiuser"; + \$database_password = "somepassword"; +4. Point your web browser to: http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/ + Select "Upgrade". + Make sure to fill in all of the path variables carefully and + correctly on the following screen. + +Cronjob + +Either new or upgrading, make sure you have a cron job - Add this line to +your /etc/crontab file: + + */5 * * * * ${VHOST_SERVER_GID} /usr/bin/php ${MY_INSTALLDIR}/poller.php > /dev/null 2>&1 + +Note that you should use poller.php as the cronjob instead of cmd.php (as it was with +earlier versions) to enable you to switch between cmd.php and cactid. + +Also make sure that the user poller.php runs as ( ${VHOST_SERVER_GID} ) has +permission to create new files in Cacti's 'rra/' directory which is +${MY_INSTALLDIR}/rra + + diff --git a/net-analyzer/cacti/metadata.xml b/net-analyzer/cacti/metadata.xml new file mode 100644 index 000000000000..dc5780747aad --- /dev/null +++ b/net-analyzer/cacti/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> + <longdescription lang="en"> + Cacti is a complete network graphing solution designed to harness the + power of RRDTool's data storage and graphing functionality. Cacti + provides a fast poller, advanced graph templating, multiple data + acquisition methods, and user management features out of the box. All of + this is wrapped in an intuitive, easy to use interface that makes sense + for LAN-sized installations up to complex networks with hundreds of + devices. + </longdescription> + <use> + <flag name='doc'>install html documentation</flag> + </use> +</pkgmetadata> diff --git a/net-analyzer/calamaris/Manifest b/net-analyzer/calamaris/Manifest new file mode 100644 index 000000000000..9f600e71bd8f --- /dev/null +++ b/net-analyzer/calamaris/Manifest @@ -0,0 +1,2 @@ +DIST calamaris-2.59.tar.gz 56168 SHA256 60103bf6bfe0142bf2a0dfa7f7647ae7ed739b8b3082f11b8e55e21c2546d7ae SHA512 8c8ed820a1af6e21cfe9f03397c159b2261c8253b3395a8d6dbd21064151439406496132917d0ef087eed805c7945cf28f2d12dc1e52340991c18e6a27484ade WHIRLPOOL ff8bf09664d52a65629747431ed89955882c2ec7ee33e75cfeedcfc39cb776670b3ed874e063e4727157b17e212e5fbf08c311caa29967e7f0b3cdcea9118b63 +DIST calamaris-2.99.4.0.tar.gz 105860 SHA256 a28333ed770996397cc752e813586ac9177aab5c9dfee0104133d9c2c7dea42c SHA512 4127a3963fd0ea5baa1d5ce9a784f45658bb685f18e576c134fee1b4e8fdad535676974498119018e771924a8a622ed83b8aa095d3909b7bb3d009dd6024dbef WHIRLPOOL c5b9d9294937496d99abe7e1dd3eca7636f008847d55e5ab74c0d9a644a842ef88c9c11102fbb31a3c42d34d0fdcdff14f1740f9a3f0bed5f0479e655d6a601c diff --git a/net-analyzer/calamaris/calamaris-2.59.ebuild b/net-analyzer/calamaris/calamaris-2.59.ebuild new file mode 100644 index 000000000000..f22d3d876e0f --- /dev/null +++ b/net-analyzer/calamaris/calamaris-2.59.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Calamaris parses the logfiles of a wide variety of Web proxy servers and generates reports" +HOMEPAGE="http://cord.de/calamaris-home-page" +SRC_URI="http://cord.de/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +DEPEND="dev-lang/perl" + +src_install () { + dobin calamaris + doman calamaris.1 + dodoc CHANGES EXAMPLES README +} diff --git a/net-analyzer/calamaris/calamaris-2.99.4.0.ebuild b/net-analyzer/calamaris/calamaris-2.99.4.0.ebuild new file mode 100644 index 000000000000..dd0778225298 --- /dev/null +++ b/net-analyzer/calamaris/calamaris-2.99.4.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Calamaris parses the logfiles of a wide variety of Web proxy servers and generates reports" +HOMEPAGE="http://cord.de/calamaris-home-page" +SRC_URI="http://cord.de/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" + +RDEPEND=" + dev-lang/perl + dev-perl/GDGraph +" + +src_prepare() { + sed -i \ + -e "s:\(use lib\).*$:\1 '/usr/share/';:" \ + calamaris || die +} + +src_install() { + dobin calamaris calamaris-cache-convert + + insinto /usr/share/${PN} + doins *.pm + + doman calamaris.1 + + dodoc BUGS CHANGES EXAMPLES EXAMPLES.v3 README TODO calamaris.conf +} diff --git a/net-analyzer/calamaris/metadata.xml b/net-analyzer/calamaris/metadata.xml new file mode 100644 index 000000000000..e0a1efa4d101 --- /dev/null +++ b/net-analyzer/calamaris/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +<longdescription>Calamaris parses the logfiles of a wide variety of Web proxy servers and generates reports</longdescription> +</pkgmetadata> diff --git a/net-analyzer/carl/Manifest b/net-analyzer/carl/Manifest new file mode 100644 index 000000000000..d08d441f5d07 --- /dev/null +++ b/net-analyzer/carl/Manifest @@ -0,0 +1 @@ +DIST carl-0.9.tar.gz 11096 SHA256 52f55f47ec216b97b4a819853f831a19875d145ef48f03245b9f52e463e09550 SHA512 9876e30d171bf00c4e53c6e90c98181ac25aeda004bdb8a03060c45a99c55fa087062076ff3964a222d2981ed682ae7b8f4cbade13c69154198200d35e1a577e WHIRLPOOL 3d9b1ca525be947fe12f8d98160e705e1eb6fb7e168e55687271a9a63724c5083cdbe9dc22c6567f90cb690e5c0818757fc549b84591da50971dae6b7d3b910a diff --git a/net-analyzer/carl/carl-0.9-r1.ebuild b/net-analyzer/carl/carl-0.9-r1.ebuild new file mode 100644 index 000000000000..9d400d4ec609 --- /dev/null +++ b/net-analyzer/carl/carl-0.9-r1.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3) + +inherit distutils-r1 + +DESCRIPTION="An rsync logfile analyzer" +HOMEPAGE="http://www.schwarzvogel.de/software-misc.shtml" +SRC_URI="http://www.schwarzvogel.de/pkgs/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 x86" +IUSE="" + +DOCS="README" diff --git a/net-analyzer/carl/metadata.xml b/net-analyzer/carl/metadata.xml new file mode 100644 index 000000000000..adf1f1463dfe --- /dev/null +++ b/net-analyzer/carl/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +<maintainer> + <email>klausman@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/net-analyzer/cbm/Manifest b/net-analyzer/cbm/Manifest new file mode 100644 index 000000000000..2938934488d0 --- /dev/null +++ b/net-analyzer/cbm/Manifest @@ -0,0 +1 @@ +DIST cbm-0.1.tar.gz 310247 SHA256 fa44b4b53218ddcfc0f3e7539a1a232485bdb0a574c4a07a084a262d938f3c7b SHA512 24bf6a4d68fed253977b965d7e5b6aff4fb9db502c47b4a2b3b36f8c2963c9648b78ae607e9753fe4792a73ddbc29b86b3a1acc3c431a9355b11ff348566add4 WHIRLPOOL 22779c8332d2729ebf138a504fd81fa1bebe1295aa7c0ff9806bb545f868e9622038a447a59610e04c62cbf99e473cbf0bb365517ae6c8c018881c8733294aed diff --git a/net-analyzer/cbm/cbm-0.1-r1.ebuild b/net-analyzer/cbm/cbm-0.1-r1.ebuild new file mode 100644 index 000000000000..3ddd3e8d920e --- /dev/null +++ b/net-analyzer/cbm/cbm-0.1-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils + +DESCRIPTION="Display the current traffic on all network devices" +HOMEPAGE="http://www.isotton.com/software/unix/cbm/" +SRC_URI="http://www.isotton.com/software/unix/${PN}/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + sys-libs/ncurses +" +DEPEND=" + ${RDEPEND} + app-text/xmlto + app-text/docbook-xml-dtd:4.4 + virtual/pkgconfig +" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gcc-4.3.patch \ + "${FILESDIR}"/${P}-gcc-4.7.patch \ + "${FILESDIR}"/${P}-tinfo.patch \ + "${FILESDIR}"/${P}-headers-status-line.patch + eautoreconf +} diff --git a/net-analyzer/cbm/files/cbm-0.1-gcc-4.3.patch b/net-analyzer/cbm/files/cbm-0.1-gcc-4.3.patch new file mode 100644 index 000000000000..ae9b58f6e99b --- /dev/null +++ b/net-analyzer/cbm/files/cbm-0.1-gcc-4.3.patch @@ -0,0 +1,10 @@ +--- a/src/statistics.hpp ++++ b/src/statistics.hpp +@@ -3,6 +3,7 @@ + + #include <list> + #include <string> ++#include <sys/time.h> + + namespace statistics { + diff --git a/net-analyzer/cbm/files/cbm-0.1-gcc-4.7.patch b/net-analyzer/cbm/files/cbm-0.1-gcc-4.7.patch new file mode 100644 index 000000000000..94b50a6877f7 --- /dev/null +++ b/net-analyzer/cbm/files/cbm-0.1-gcc-4.7.patch @@ -0,0 +1,10 @@ +--- a/src/cbm.cpp ++++ b/src/cbm.cpp +@@ -18,6 +18,7 @@ + #include <sys/socket.h> + #include <arpa/inet.h> + #include <net/if.h> ++#include <unistd.h> + + // Externs + extern int optind, opterr, optopt; diff --git a/net-analyzer/cbm/files/cbm-0.1-headers-status-line.patch b/net-analyzer/cbm/files/cbm-0.1-headers-status-line.patch new file mode 100644 index 000000000000..4b09bbb69793 --- /dev/null +++ b/net-analyzer/cbm/files/cbm-0.1-headers-status-line.patch @@ -0,0 +1,55 @@ +From bdc4f02a6d7fb1416f36aef89af4592c691576d8 Mon Sep 17 00:00:00 2001 +From: Jari Aalto <jari.aalto@cante.net> +Date: Mon, 19 Sep 2011 14:27:04 +0300 +Subject: [PATCH] [fix] Headers and status line don't display by Paul Martin + <pm@debian.org> +Organization: Private +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +Signed-off-by: Jari Aalto <jari.aalto@cante.net> +--- + src/cbm.cpp | 9 ++++++++- + src/widgets/Window.cpp | 2 +- + 2 files changed, 9 insertions(+), 2 deletions(-) + +index 74282e2..0197443 100644 +--- a/src/cbm.cpp ++++ b/src/cbm.cpp +@@ -156,13 +156,20 @@ int main(int argc, char **argv) { + interfaceTable.setColumns(4); + interfaceTable.setActiveStyle(A_BOLD); + interfaceTable.setActiveRow(1); ++ // Position the interface table ++ interfaceTable.setPosition(2, 2); ++ interfaceTable.setSize(screen.getWidth() - 4, ++ 8); // TODO + + // Create the detail table + VerticalTable detailTable(screen); + detailTable.setColumns(2); + detailTable.setRows(2); + detailTable.setActiveRow(-1); +- ++ // Position the detail table ++ detailTable.setPosition(2, 12); // TODO ++ detailTable.setSize(screen.getWidth() - 4, 10); // TODO ++ + // Populate the detail table + detailTable.setText (0, 0, "Interface"); + detailTable.setStyle(0, 0, COLOR_PAIR(COLOR_HEADING) | A_BOLD); +index 322cb9b..572eef7 100644 +--- a/src/widgets/Window.cpp ++++ b/src/widgets/Window.cpp +@@ -14,7 +14,7 @@ Window::~Window() { + } + + void Window::setPosition(unsigned x, unsigned y) { +- mvwin((WINDOW*) win_, y, x); ++ mvderwin((WINDOW*) win_, y, x); + } + + void Window::setSize(unsigned width, unsigned height) { +-- +1.7.5.4 + diff --git a/net-analyzer/cbm/files/cbm-0.1-tinfo.patch b/net-analyzer/cbm/files/cbm-0.1-tinfo.patch new file mode 100644 index 000000000000..955d762214c4 --- /dev/null +++ b/net-analyzer/cbm/files/cbm-0.1-tinfo.patch @@ -0,0 +1,19 @@ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -3,4 +3,4 @@ + cbm_SOURCES = cbm.cpp \ + ErrnoError.hpp \ + statistics.cpp statistics.hpp +-cbm_LDADD = -lncurses widgets/libwidgets.la ++cbm_LDADD = $(ncurses_LIBS) widgets/libwidgets.la +--- a/configure.ac ++++ b/configure.ac +@@ -18,6 +18,8 @@ + + # Checks for libraries. + ++PKG_CHECK_MODULES(ncurses,ncurses) ++ + # Checks for header files. + + # Checks for typedefs, structures, and compiler characteristics. diff --git a/net-analyzer/cbm/metadata.xml b/net-analyzer/cbm/metadata.xml new file mode 100644 index 000000000000..7b47a3a9c4a9 --- /dev/null +++ b/net-analyzer/cbm/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> + <maintainer> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> +</pkgmetadata> diff --git a/net-analyzer/chaosreader/Manifest b/net-analyzer/chaosreader/Manifest new file mode 100644 index 000000000000..2f1c63f3dfb4 --- /dev/null +++ b/net-analyzer/chaosreader/Manifest @@ -0,0 +1 @@ +DIST chaosreader-0.94.bz2 41039 SHA256 523f2107502dda9a1a9c73d8bc14605046f7352ada442bfcafec39a81b41f35b diff --git a/net-analyzer/chaosreader/chaosreader-0.94-r1.ebuild b/net-analyzer/chaosreader/chaosreader-0.94-r1.ebuild new file mode 100644 index 000000000000..121fb9bc05cc --- /dev/null +++ b/net-analyzer/chaosreader/chaosreader-0.94-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils + +DESCRIPTION="A tool to trace TCP/UDP/... sessions and fetch application data from snoop or tcpdump logs" +HOMEPAGE="http://chaosreader.sourceforge.net" +SRC_URI="http://dev.gentoo.org/~spock/portage/distfiles/${P}.bz2" +SLOT="0" + +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos" +LICENSE="GPL-2" + +IUSE="" + +DEPEND=">=dev-lang/perl-5.8.0" +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/chaosreader-0.94-zombies.patch + epatch "${FILESDIR}"/chaosreader-0.94-chunkcheck.patch + epatch "${FILESDIR}"/chaosreader-0.94-darwin.patch + epatch "${FILESDIR}"/chaosreader-0.94-divisionbyzero.patch + epatch "${FILESDIR}"/chaosreader-0.94-oldmultiline.patch +} + +src_install() { + newbin ${P} chaosreader +} diff --git a/net-analyzer/chaosreader/chaosreader-0.94.ebuild b/net-analyzer/chaosreader/chaosreader-0.94.ebuild new file mode 100644 index 000000000000..922050b801e5 --- /dev/null +++ b/net-analyzer/chaosreader/chaosreader-0.94.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils + +DESCRIPTION="A tool to trace TCP/UDP/... sessions and fetch application data from snoop or tcpdump logs" +HOMEPAGE="http://users.tpg.com.au/bdgcvb/chaosreader.html" +SRC_URI="http://dev.gentoo.org/~spock/portage/distfiles/${P}.bz2" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86 ~amd64-linux ~x86-linux ~x86-macos" +LICENSE="GPL-2" +IUSE="" +DEPEND=">=dev-lang/perl-5.8.0" +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/chaosreader-0.94-zombies.patch +} + +src_install() { + newbin ${P} chaosreader || die +} diff --git a/net-analyzer/chaosreader/files/chaosreader-0.94-chunkcheck.patch b/net-analyzer/chaosreader/files/chaosreader-0.94-chunkcheck.patch new file mode 100644 index 000000000000..547af04db5b7 --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.94-chunkcheck.patch @@ -0,0 +1,27 @@ +--- chaosreader 2011-11-10 19:17:50.000000000 +0100 ++++ chaosreader-0.94 2012-03-09 18:15:21.096105305 +0100 +@@ -5350,6 +5353,24 @@ + next if length($http_data) < 8; + $partnum++; + $parttext = sprintf("%02d",$partnum); ++ ++ ## from http://sourceforge.net/tracker/?func=detail&aid=2019799&group_id=107384&atid=647491 ++ ### Chunk Check ++ if ( $http_header =~ /Transfer-Encoding: chunked/ ) { ++ my $new_http_data=""; ++ my $chunksize=-1; ++ my $pos=0; ++ until ($chunksize==0) { ++ my $eolpos=index($http_data,"\r\n",$pos); ++ $chunksize=hex(substr($http_data,$pos,$eolpos - $pos)); ++ $pos=($eolpos+2); ++ if ($chunksize > 0) { ++ $new_http_data.=substr($http_data,$pos,$chunksize); ++ } ++ $pos+=($chunksize+2); ++ } ++ $http_data=$new_http_data; ++ } + + ### Part - Checks + $http_type = &File_Type($http_data); diff --git a/net-analyzer/chaosreader/files/chaosreader-0.94-darwin.patch b/net-analyzer/chaosreader/files/chaosreader-0.94-darwin.patch new file mode 100644 index 000000000000..2eaca80909ae --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.94-darwin.patch @@ -0,0 +1,11 @@ +--- chaosreader 2011-11-10 19:17:50.000000000 +0100 ++++ chaosreader-0.94 2012-03-09 18:15:21.096105305 +0100 +@@ -6233,6 +6254,8 @@ + $command = "tcpdump -s9999 -w"; + } elsif ($^O eq "solaris") { + $command = "snoop -o"; ++ } elsif ($^O eq "darwin") { ++ $command = "tcpdump -i en1 -s9999 -w"; + } else { + die "ERROR54: Can't find the sniffer command for \"$^O\".\n" . + "\t Please use log mode instead.\n"; diff --git a/net-analyzer/chaosreader/files/chaosreader-0.94-divisionbyzero.patch b/net-analyzer/chaosreader/files/chaosreader-0.94-divisionbyzero.patch new file mode 100644 index 000000000000..7f3ec2804dd4 --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.94-divisionbyzero.patch @@ -0,0 +1,18 @@ +--- chaosreader 2011-11-10 19:17:50.000000000 +0100 ++++ chaosreader-0.94 2012-03-09 18:15:21.096105305 +0100 +@@ -4028,7 +4024,14 @@ + ### This causes the replay program to pause + print REPLAY "ms($timediff1);\n"; + } +- $speed = sprintf("%.2f",$bytes / (1024 * $duration)); ++ # avoid division by zero ++ # from http://sourceforge.net/tracker/?func=detail&aid=2210488&group_id=107384&atid=647489 ++ if ( $duration > 0 ) { ++ $speed = sprintf("%.2f",$bytes / (1024 * $duration)); ++ } ++ else { ++ $speed = "unknown"; ++ } + print REPLAY "print \"\n\n" . + "Summary: $duration2 seconds, $bytes bytes, $speed Kb/sec\\n\";"; + close REPLAY; diff --git a/net-analyzer/chaosreader/files/chaosreader-0.94-oldmultiline.patch b/net-analyzer/chaosreader/files/chaosreader-0.94-oldmultiline.patch new file mode 100644 index 000000000000..1fada077058e --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.94-oldmultiline.patch @@ -0,0 +1,15 @@ +--- chaosreader 2012-01-18 21:47:02.000000000 +0100 ++++ chaosreader-0.94 2012-03-13 12:10:44.740136742 +0100 +@@ -259,12 +259,6 @@ + $| = 1; # flush output + + # +-# The following is needed for old perl5 multiline matching. New perl5 uses +-# a "/s" on the RE (which is used in this program as well). +-# +-$* = 1; # old perl5 +- +-# + # These ports have been selected to be saved as coloured 2-way HTML files + # + @Save_As_HTML_TCP_Ports = (21,23,25,79,80,109,110,119,143,513,514,1080, diff --git a/net-analyzer/chaosreader/files/chaosreader-0.94-zombies.patch b/net-analyzer/chaosreader/files/chaosreader-0.94-zombies.patch new file mode 100644 index 000000000000..8f7dd04e50ed --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.94-zombies.patch @@ -0,0 +1,11 @@ +--- chaosreader-orig 2006-12-24 15:12:23.000000000 +0100 ++++ chaosreader-0.94 2006-12-24 15:11:56.000000000 +0100 +@@ -396,6 +395,8 @@ if ($Arg{normal}) { + + elsif ($Arg{standalone}) { + ++ $SIG{CHLD} = "IGNORE"; ++ + ############################################################ + # --- STANDALONE - Create Packet Logs and Process them --- + # diff --git a/net-analyzer/chaosreader/metadata.xml b/net-analyzer/chaosreader/metadata.xml new file mode 100644 index 000000000000..49bbe83e76c3 --- /dev/null +++ b/net-analyzer/chaosreader/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maintainers</herd> +<maintainer> + <email>rainbow@irh.it</email> +</maintainer> +</pkgmetadata> diff --git a/net-analyzer/check_mk/Manifest b/net-analyzer/check_mk/Manifest new file mode 100644 index 000000000000..ba061f483c42 --- /dev/null +++ b/net-analyzer/check_mk/Manifest @@ -0,0 +1 @@ +DIST check_mk-1.2.4p5.tar.gz 6626768 SHA256 e71963542d9d79d98e69aadccb37d05552829acab14665207d6af10415179c21 SHA512 ca2c06288b91f44f017ebbc45bd6712ddcbebdc4e293598b793ae1ad19ad96814983a30bd66ee2f19940dc1d1439fba2ae2b171dcbe0e670ce1b7d0a8c18d890 WHIRLPOOL 7399706ac33246e46795c4c55737043782d8ca12b8e9d03bcd5b4f34f3335baf57d699b4f531e32e732bdb9cb3310a803e93cb5efd593f7986395b88af08939b diff --git a/net-analyzer/check_mk/check_mk-1.2.4_p5.ebuild b/net-analyzer/check_mk/check_mk-1.2.4_p5.ebuild new file mode 100644 index 000000000000..004203d256a0 --- /dev/null +++ b/net-analyzer/check_mk/check_mk-1.2.4_p5.ebuild @@ -0,0 +1,306 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +MY_P="${P/_p/p}" +MY_PV="${MY_P/check_mk-/}" +S="${WORKDIR}/${MY_P}" + +inherit eutils toolchain-funcs + +DESCRIPTION="General purpose Nagios/Icinga plugin for retrieving data" +HOMEPAGE="http://mathias-kettner.de/check_mk.html" +SRC_URI="http://mathias-kettner.de/download/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" |