summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer/iplog
downloadgentoo-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/iplog')
-rw-r--r--net-analyzer/iplog/Manifest1
-rw-r--r--net-analyzer/iplog/files/2.2.3-DLT_LINUX_SSL.patch134
-rw-r--r--net-analyzer/iplog/files/iplog.rc637
-rw-r--r--net-analyzer/iplog/iplog-2.2.3-r2.ebuild36
-rw-r--r--net-analyzer/iplog/metadata.xml9
5 files changed, 217 insertions, 0 deletions
diff --git a/net-analyzer/iplog/Manifest b/net-analyzer/iplog/Manifest
new file mode 100644
index 000000000000..60ce72b0e0d9
--- /dev/null
+++ b/net-analyzer/iplog/Manifest
@@ -0,0 +1 @@
+DIST iplog-2.2.3.tar.gz 133639 SHA256 cc3da7b6f360ff25455e5ae7c95d7377de332deb23f6dcb5c1ea11e563702fff SHA512 d7669e39b728af366b5199c58d396c6907496b4895ffb1ba0cba54fae0646f9792170f932de1eae9634b5ac356644a5d6d0ccaf7bc77a62641695992245c9aed WHIRLPOOL c654eb286f494c99d3608ac8fe363d441a242a40b6fad45df9e515ace478a0045c35f3704cc70d3320ea0b280f1d6f82d45ff858a232e4a2020d2a49b72b5a18
diff --git a/net-analyzer/iplog/files/2.2.3-DLT_LINUX_SSL.patch b/net-analyzer/iplog/files/2.2.3-DLT_LINUX_SSL.patch
new file mode 100644
index 000000000000..84a447af4f9f
--- /dev/null
+++ b/net-analyzer/iplog/files/2.2.3-DLT_LINUX_SSL.patch
@@ -0,0 +1,134 @@
+--- a/src/iplog_options.c
++++ b/src/iplog_options.c
+@@ -440,58 +440,58 @@
+
+ static void print_help(void) {
+ mysyslog(
+-"Usage: " PACKAGE " [options] (\"*\" Denotes enabled by default)
+---user or -u <user|UID> Run as specified the user or UID.
+---group or -g <group|GID> Run with specified the group or GID.
+---logfile or -l <file> Log to <file>.
+---pid-file <file> Use <file> as the pid file.
+---ignore or -d Ignore DNS traffic from nameservers listed in
+- /etc/resolv.conf.
+---interface or -i <if0,...,ifN> Listen on the specified interface(s).
+---promisc or -a <network> Log traffic to all hosts on <network>.
+---kill or -k Kill iplog, if it is running.
+---restart or -R Restart iplog, if it is running.
+---no-fork or -o Run in the foreground.
+---stdout or -L Log to stdout.
+---help or -h This help screen.
+---version or -v Print version information and exit.
+-
+---facility <facility> Use the specified syslog facility.
+---priority <priority> Use the specified syslog priority.
+-
+---tcp[=true|false|toggle] %cLog TCP traffic.
+---udp[=true|false|toggle] %cLog UDP traffic.
+---icmp[=true|false|toggle] %cLog ICMP traffic.
+-
+---log-ip[=true|false|toggle] or -w %cLog IP along with hostname.
+---log-dest[=true|false|toggle] or -D %cLog the destination of traffic.
+---dns-cache[=true|false|toggle] or -c %cUse the built-in DNS cache.
+---get-ident[=true|false|toggle] or -e %cGet ident info on connections
+- to listening ports.
+-
+---tcp-resolve[=true|false|toggle] or -T %cResolve IPs of TCP traffic.
+---udp-resolve[=true|false|toggle] or -U %cResolve IPs of UDP traffic.
+---icmp-resolve[=true|false|toggle] or -I %cResolve IPs of ICMP traffic.
+---disable-resolver or -N %cDo not resolve any IPs.
+-
+---verbose[=true|false|toggle] or -V %cBe verbose.
+---fool-nmap[=true|false|toggle] or -z %cFool nmap's OS detection.
+---scans-only[=true|false|toggle] or -m %cOnly log scans.
+---detect-syn-flood[=true|false|toggle] or -s %cStop resolving IPs if a
+- SYN flood is detected.
+-
+---log-frag[=true|false|toggle] or -y %cLog fragment attacks.
+---log-traceroute[=true|false|toggle] or -t %cLog traceroutes.
+---log-ping-flood[=true|false|toggle] or -P %cLog ICMP ping floods.
+---log-smurf[=true|false|toggle] or -S %cLog smurf attacks.
+---log-bogus[=true|false|toggle] or -b %cLog bogus TCP flags.
+---log-portscan[=true|false|toggle] or -p %cLog port scans.
+---log-udp-scan[=true|false|toggle] or -F %cLog UDP scans/floods.
+---log-fin-scan[=true|false|toggle] or -f %cLog FIN scans.
+---log-syn-scan[=true|false|toggle] or -q %cLog SYN scans.
+---log-xmas-scan[=true|false|toggle] or -x %cLog Xmas scans.
+---log-null-scan[=true|false|toggle] or -n %cLog null scans.",
+-IS_DEFAULT(LOG_TCP), IS_DEFAULT(LOG_UDP), IS_DEFAULT(LOG_ICMP),
++"Usage: %s [options] (\"*\" Denotes enabled by default)\n"
++"--user or -u <user|UID> Run as specified the user or UID.\n"
++"--group or -g <group|GID> Run with specified the group or GID.\n"
++"--logfile or -l <file> Log to <file>.\n"
++"--pid-file <file> Use <file> as the pid file.\n"
++"--ignore or -d Ignore DNS traffic from nameservers listed in\n"
++" /etc/resolv.conf.\n"
++"--interface or -i <if0,...,ifN> Listen on the specified interface(s).\n"
++"--promisc or -a <network> Log traffic to all hosts on <network>.\n"
++"--kill or -k Kill iplog, if it is running.\n"
++"--restart or -R Restart iplog, if it is running.\n"
++"--no-fork or -o Run in the foreground.\n"
++"--stdout or -L Log to stdout.\n"
++"--help or -h This help screen.\n"
++"--version or -v Print version information and exit.\n"
++"\n"
++"--facility <facility> Use the specified syslog facility.\n"
++"--priority <priority> Use the specified syslog priority.\n"
++"\n"
++"--tcp[=true|false|toggle] %cLog TCP traffic.\n"
++"--udp[=true|false|toggle] %cLog UDP traffic.\n"
++"--icmp[=true|false|toggle] %cLog ICMP traffic.\n"
++"\n"
++"--log-ip[=true|false|toggle] or -w %cLog IP along with hostname.\n"
++"--log-dest[=true|false|toggle] or -D %cLog the destination of traffic.\n"
++"--dns-cache[=true|false|toggle] or -c %cUse the built-in DNS cache.\n"
++"--get-ident[=true|false|toggle] or -e %cGet ident info on connections\n"
++" to listening ports.\n"
++"\n"
++"--tcp-resolve[=true|false|toggle] or -T %cResolve IPs of TCP traffic.\n"
++"--udp-resolve[=true|false|toggle] or -U %cResolve IPs of UDP traffic.\n"
++"--icmp-resolve[=true|false|toggle] or -I %cResolve IPs of ICMP traffic.\n"
++"--disable-resolver or -N %cDo not resolve any IPs.\n"
++"\n"
++"--verbose[=true|false|toggle] or -V %cBe verbose.\n"
++"--fool-nmap[=true|false|toggle] or -z %cFool nmap's OS detection.\n"
++"--scans-only[=true|false|toggle] or -m %cOnly log scans.\n"
++"--detect-syn-flood[=true|false|toggle] or -s %cStop resolving IPs if a\n"
++" SYN flood is detected.\n"
++"\n"
++"--log-frag[=true|false|toggle] or -y %cLog fragment attacks.\n"
++"--log-traceroute[=true|false|toggle] or -t %cLog traceroutes.\n"
++"--log-ping-flood[=true|false|toggle] or -P %cLog ICMP ping floods.\n"
++"--log-smurf[=true|false|toggle] or -S %cLog smurf attacks.\n"
++"--log-bogus[=true|false|toggle] or -b %cLog bogus TCP flags.\n"
++"--log-portscan[=true|false|toggle] or -p %cLog port scans.\n"
++"--log-udp-scan[=true|false|toggle] or -F %cLog UDP scans/floods.\n"
++"--log-fin-scan[=true|false|toggle] or -f %cLog FIN scans.\n"
++"--log-syn-scan[=true|false|toggle] or -q %cLog SYN scans.\n"
++"--log-xmas-scan[=true|false|toggle] or -x %cLog Xmas scans.\n"
++"--log-null-scan[=true|false|toggle] or -n %cLog null scans.",
++PACKAGE, IS_DEFAULT(LOG_TCP), IS_DEFAULT(LOG_UDP), IS_DEFAULT(LOG_ICMP),
+ IS_DEFAULT(LOG_IP), IS_DEFAULT(LOG_DEST), IS_DEFAULT(DNS_CACHE),
+ IS_DEFAULT(GET_IDENT), IS_DEFAULT(TCP_RES), IS_DEFAULT(UDP_RES),
+ IS_DEFAULT(ICMP_RES), IS_DEFAULT(NO_RESOLV), IS_DEFAULT(VERBOSE),
+--- a/src/iplog_pcap.c
++++ b/src/iplog_pcap.c
+@@ -189,8 +189,16 @@
+ case DLT_PPP_BSDOS:
+ dlt = 24;
+ break;
+- case DLT_SLIP:
+- dlt = 16;
++#ifdef DLT_FDDI
++ case DLT_FDDI:
++ dlt = 21;
++ break;
++#endif
++ case DLT_SLIP:
++#ifdef DLT_LINUX_SLL
++ case DLT_LINUX_SLL:
++#endif
++ dlt = 16;
+ break;
+ case DLT_PPP:
+ case DLT_NULL:
diff --git a/net-analyzer/iplog/files/iplog.rc6 b/net-analyzer/iplog/files/iplog.rc6
new file mode 100644
index 000000000000..3656d32f0479
--- /dev/null
+++ b/net-analyzer/iplog/files/iplog.rc6
@@ -0,0 +1,37 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+pidfile=/var/run/iplog.pid
+
+start() {
+ ebegin "Starting iplog"
+ checkconfig
+ rc=$?
+ if [ $rc -eq 0 ]; then
+ start-stop-daemon --start --quiet --startas /usr/sbin/iplog \
+ --pidfile=${pidfile} --name=iplog
+ rc=$?
+ eend $rc "Failed to start iplog $rc"
+ else
+ eend $rc "/etc/iplog.conf does not exist!"
+ fi
+}
+
+stop() {
+ ebegin "Stopping iplog"
+ start-stop-daemon --stop --retry=5 --quiet --pidfile=${pidfile} --name=iplog
+ # due to a bug in the program, it doesn't properly remove it's pidfile sometimes
+ rm -f ${pidfile}
+ eend $? "Failed to stop iplog!"
+}
+
+checkconfig() {
+ [ -f /etc/iplog.conf ] || return 1
+ return 0
+}
diff --git a/net-analyzer/iplog/iplog-2.2.3-r2.ebuild b/net-analyzer/iplog/iplog-2.2.3-r2.ebuild
new file mode 100644
index 000000000000..4bb47dd40553
--- /dev/null
+++ b/net-analyzer/iplog/iplog-2.2.3-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="iplog is a TCP/IP traffic logger"
+HOMEPAGE="http://ojnk.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ojnk/${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 FDL-1.1 )"
+SLOT="0"
+KEYWORDS="alpha ~mips ppc sparc x86 ~amd64"
+
+DEPEND="net-libs/libpcap"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-DLT_LINUX_SSL.patch
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS} -D_REENTRANT" all
+}
+
+src_install() {
+ emake \
+ prefix="${D}"/usr \
+ mandir="${D}"/usr/share/man \
+ install
+
+ dodoc AUTHORS NEWS README TODO example-iplog.conf
+
+ newinitd "${FILESDIR}"/iplog.rc6 iplog
+}
diff --git a/net-analyzer/iplog/metadata.xml b/net-analyzer/iplog/metadata.xml
new file mode 100644
index 000000000000..29e17cd93056
--- /dev/null
+++ b/net-analyzer/iplog/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>iplog is a TCP/IP traffic logger</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">ojnk</remote-id>
+ </upstream>
+</pkgmetadata>