From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- net-analyzer/ipcad/Manifest | 1 + .../ipcad/files/ipcad-3.7-linux-2.6.27.patch | 21 +++++++++ .../ipcad/files/ipcad-3.7-linux-2.6.35.patch | 43 ++++++++++++++++++ .../ipcad/files/ipcad-3.7.3-signal_h.patch | 32 +++++++++++++ net-analyzer/ipcad/files/ipcad.conf.d | 10 ++++ net-analyzer/ipcad/files/ipcad.init | 37 +++++++++++++++ net-analyzer/ipcad/ipcad-3.7.3.ebuild | 53 ++++++++++++++++++++++ net-analyzer/ipcad/metadata.xml | 9 ++++ 8 files changed, 206 insertions(+) create mode 100644 net-analyzer/ipcad/Manifest create mode 100644 net-analyzer/ipcad/files/ipcad-3.7-linux-2.6.27.patch create mode 100644 net-analyzer/ipcad/files/ipcad-3.7-linux-2.6.35.patch create mode 100644 net-analyzer/ipcad/files/ipcad-3.7.3-signal_h.patch create mode 100644 net-analyzer/ipcad/files/ipcad.conf.d create mode 100644 net-analyzer/ipcad/files/ipcad.init create mode 100644 net-analyzer/ipcad/ipcad-3.7.3.ebuild create mode 100644 net-analyzer/ipcad/metadata.xml (limited to 'net-analyzer/ipcad') diff --git a/net-analyzer/ipcad/Manifest b/net-analyzer/ipcad/Manifest new file mode 100644 index 000000000000..daa4de71f57f --- /dev/null +++ b/net-analyzer/ipcad/Manifest @@ -0,0 +1 @@ +DIST ipcad-3.7.3.tar.gz 172457 SHA256 72372d46ae35e4d7cc74d96fbaf8bb0ae189aa9ecfd89026487aca790c2f0716 SHA512 a25a2551bd88727c20f969b780e09d2776bf1fe4f684b0a7a6e571bb7b5684743ade0571b7993849b65c58def4550aa88bcb52a91d5cc6c21e562627fb3b80b6 WHIRLPOOL 17f8d9f7d04dd84f83f0910c64b5c4a1aee475bbe79fe058b6ecdab0efe12fe4e04c50aff039fb9c1fa018a0ebe9acbd921f89f47707778e8d3fe625e552144d diff --git a/net-analyzer/ipcad/files/ipcad-3.7-linux-2.6.27.patch b/net-analyzer/ipcad/files/ipcad-3.7-linux-2.6.27.patch new file mode 100644 index 000000000000..3b21efb4ff4e --- /dev/null +++ b/net-analyzer/ipcad/files/ipcad-3.7-linux-2.6.27.patch @@ -0,0 +1,21 @@ +--- a/configure.in ++++ b/configure.in +@@ -156,6 +156,7 @@ + ]) + + AC_CHECK_HEADERS(asm/types.h) ++AC_CHECK_HEADERS(linux/in.h) + AC_CHECK_HEADERS(linux/socket.h) + AC_CHECK_HEADERS(linux/netlink.h,,, + [#ifdef HAVE_LINUX_SOCKET_H +@@ -164,6 +165,9 @@ + AC_CHECK_HEADERS(linux/netfilter.h,,, + [#ifdef HAVE_LINUX_SOCKET_H + #include ++#endif ++#ifdef HAVE_LINUX_IN_H ++#include + #endif]) + + AC_CHECK_HEADERS(linux/if.h,,, + diff --git a/net-analyzer/ipcad/files/ipcad-3.7-linux-2.6.35.patch b/net-analyzer/ipcad/files/ipcad-3.7-linux-2.6.35.patch new file mode 100644 index 000000000000..84cc52da6bfb --- /dev/null +++ b/net-analyzer/ipcad/files/ipcad-3.7-linux-2.6.35.patch @@ -0,0 +1,43 @@ +Author: Peter Volkov +Fixes: https://bugs.gentoo.org/show_bug.cgi?id=335592 + +i686-pc-linux-gnu-gcc -DIPCAD_VERSION=\"3.7.2\" -DCONFIG_FILE=\"/etc/ipcad.conf\" -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE -DPSRC_pcap -DIFST_linux -O2 -pipe -O2 -pipe -I/usr/local/include -DHAVE_CONFIG_H -W -Wall -o dump.o -c dump.c +In file included from ipcad.h:33:0, + from disp.c:29: + psrc.h:93:23: error: field ‘peer’ has incomplete type + +--- a/configure.in ++++ b/configure.in +@@ -155,17 +155,29 @@ + #endif + ]) + +-AC_CHECK_HEADERS(asm/types.h) +-AC_CHECK_HEADERS(linux/in.h) ++AC_CHECK_HEADERS(asm/types.h sys/socket.h) ++AC_CHECK_HEADERS(linux/in.h linux/in6.h,,, ++[#ifdef HAVE_SYS_SOCKET_H ++#include ++#endif]) + AC_CHECK_HEADERS(linux/socket.h) + AC_CHECK_HEADERS(linux/netlink.h,,, + [#ifdef HAVE_LINUX_SOCKET_H + #include ++#endif ++#ifdef HAVE_SYS_SOCKET_H ++#include + #endif]) + AC_CHECK_HEADERS(linux/netfilter.h,,, + [#ifdef HAVE_LINUX_SOCKET_H + #include + #endif ++#ifdef HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_LINUX_IN6_H ++#include ++#endif + #ifdef HAVE_LINUX_IN_H + #include + #endif]) + diff --git a/net-analyzer/ipcad/files/ipcad-3.7.3-signal_h.patch b/net-analyzer/ipcad/files/ipcad-3.7.3-signal_h.patch new file mode 100644 index 000000000000..83d0a35e01fc --- /dev/null +++ b/net-analyzer/ipcad/files/ipcad-3.7.3-signal_h.patch @@ -0,0 +1,32 @@ +--- a/main.c ++++ b/main.c +@@ -26,6 +26,8 @@ + * $Id$ + */ + ++#include /* signal */ ++ + #include "ipcad.h" + #include "cfgvar.h" + #include "servers.h" +--- a/pps.c ++++ b/pps.c +@@ -26,6 +26,7 @@ + * $Id$ + */ + ++#include /* sigprocmask */ + + #include "ipcad.h" + #include "opt.h" +--- a/servers.c ++++ b/servers.c +@@ -26,6 +26,8 @@ + * $Id$ + */ + ++#include /* pthread_kill and sigprocmask */ ++ + #include "ipcad.h" + #include "servers.h" + #include "opt.h" diff --git a/net-analyzer/ipcad/files/ipcad.conf.d b/net-analyzer/ipcad/files/ipcad.conf.d new file mode 100644 index 000000000000..acdedbfc1242 --- /dev/null +++ b/net-analyzer/ipcad/files/ipcad.conf.d @@ -0,0 +1,10 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Config file for /etc/init.d/ipcad + +# Any extra options you want to pass to ipcad +# on start-up should be put here. +# Read tables on startup (-r), daemonize (-d), and save tables on exit (-s). +IPCAD_OPTS="-rds" diff --git a/net-analyzer/ipcad/files/ipcad.init b/net-analyzer/ipcad/files/ipcad.init new file mode 100644 index 000000000000..ba3a88e712e7 --- /dev/null +++ b/net-analyzer/ipcad/files/ipcad.init @@ -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 +} + +checkconfig() { + if [ ! -f /etc/ipcad.conf ] ; then + eerror "No /etc/ipcad.conf file exists!" + return 1 + fi + + `egrep -v "(^#|^$)" /etc/ipcad.conf | grep interface > /dev/null 2>&1` || { + eerror "Please, configure at least one interface in /etc/ipcad.conf." ; + return 1 ; + } + + return 0 +} + +start() { + # Comment out the following line to get faster startups + checkconfig || return 1 + + ebegin "Starting ipcad" + start-stop-daemon --start --pidfile=/var/ipcad/run/ipcad.pid --exec /usr/sbin/ipcad -- ${IPCAD_OPTS} + eend $? +} + +stop () { + ebegin "Stopping ipcad" + start-stop-daemon --stop --pidfile=/var/ipcad/run/ipcad.pid --exec /usr/sbin/ipcad --retry 20 + eend $? +} diff --git a/net-analyzer/ipcad/ipcad-3.7.3.ebuild b/net-analyzer/ipcad/ipcad-3.7.3.ebuild new file mode 100644 index 000000000000..3ac9d9af617a --- /dev/null +++ b/net-analyzer/ipcad/ipcad-3.7.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="IP Cisco Accounting Daemon" +HOMEPAGE="http://sourceforge.net/projects/ipcad/ http://lionet.info/ipcad/" +SRC_URI="mirror://sourceforge/ipcad/${P}.tar.gz" + +LICENSE="BSD-2 GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +RDEPEND=" + net-libs/libpcap + net-firewall/iptables +" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-3.7-linux-2.6.27.patch \ + "${FILESDIR}"/${PN}-3.7-linux-2.6.35.patch \ + "${FILESDIR}"/${P}-signal_h.patch + + sed -i \ + -e "s|^chroot = /adm/tmp;|chroot = /var/ipcad;|" \ + -e "s|^interface|#&|" \ + -e "s|^aggregate|#&|" \ + -e "s|^pidfile = ipcad.pid;|pidfile = /run/ipcad.pid;|" \ + ipcad.conf.default || die + + eautoreconf +} + +src_install() { + dodoc AUTHORS ChangeLog README BUGS FAQ ipcad.conf.simple ipcad.conf.default + + dosbin ipcad + + insinto /etc + insopts -m0600 + newins ipcad.conf.default ipcad.conf + + keepdir /var/ipcad/run + + doman ipcad.8 ipcad.conf.5 + + newinitd "${FILESDIR}"/ipcad.init ipcad + newconfd "${FILESDIR}"/ipcad.conf.d ipcad +} diff --git a/net-analyzer/ipcad/metadata.xml b/net-analyzer/ipcad/metadata.xml new file mode 100644 index 000000000000..a40109394b5d --- /dev/null +++ b/net-analyzer/ipcad/metadata.xml @@ -0,0 +1,9 @@ + + + + netmon + IP Cisco Accounting Daemon + + ipcad + + -- cgit v1.2.3-65-gdbad