diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/ipcad |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/ipcad')
-rw-r--r-- | net-analyzer/ipcad/Manifest | 10 | ||||
-rw-r--r-- | net-analyzer/ipcad/files/ipcad-3.7-linux-2.6.27.patch | 21 | ||||
-rw-r--r-- | net-analyzer/ipcad/files/ipcad-3.7-linux-2.6.35.patch | 43 | ||||
-rw-r--r-- | net-analyzer/ipcad/files/ipcad-3.7.3-signal_h.patch | 32 | ||||
-rw-r--r-- | net-analyzer/ipcad/files/ipcad.conf.d | 9 | ||||
-rw-r--r-- | net-analyzer/ipcad/files/ipcad.init | 36 | ||||
-rw-r--r-- | net-analyzer/ipcad/ipcad-3.7.3.ebuild | 52 | ||||
-rw-r--r-- | net-analyzer/ipcad/metadata.xml | 12 |
8 files changed, 215 insertions, 0 deletions
diff --git a/net-analyzer/ipcad/Manifest b/net-analyzer/ipcad/Manifest new file mode 100644 index 000000000000..bf43ef5c70c9 --- /dev/null +++ b/net-analyzer/ipcad/Manifest @@ -0,0 +1,10 @@ +AUX ipcad-3.7-linux-2.6.27.patch 440 SHA256 72f09db7ef239ee3f0bd0c7fe80cca0d276131e2c0141a19280030ade0d2465a SHA512 08916ac3635885776d44ccd313bfae1dc85d9de0406572537aa756b152860a10d9f3155cd335e409e8831ed1ae6fe7d95f17836a54d9712bfbb2df5c79e9bf8c WHIRLPOOL e4a7210674b2974d028f0b122ed9f8bd3f9ea68051ce08422749e23bc815d07b20a6add153575b5eeb0f255211cffc34d12893e82be6fde73210f86dc25c3f54 +AUX ipcad-3.7-linux-2.6.35.patch 1219 SHA256 cb1722f230ec0c08aec3acf49f6b425d2b9ab54ab732b550a17d630d622ad03e SHA512 8781cb4074db97a06a461558b1094c2934803fbb00bc619bc97742f908ece1fed1a5303cd337a75a9e3736536d0506b38053b310b30537468a377613127074c9 WHIRLPOOL 38594a6db43565c5f0429be6483617d6e18b14f4cf3dde25720539d2ac754829d61fa7ecf280d08243fafc83b70a7db963949ade5545625b7c575f4804a98bfb +AUX ipcad-3.7.3-signal_h.patch 480 SHA256 ada8e91fd55c50e27f861cc1dd52b2eff238c1da9318a6e7aec67f9a90cd7069 SHA512 6a1032d52575c483a0e25fa88ccb2719474c7619ea20f923fe6d8ca0358c3810277c73137e7ddd7138992f3f1ff517b3c9f354c88d862df6ab4ed71cc481f313 WHIRLPOOL 5ccf57e7cc1ae5f4240503031f68e10cac9e8db5c853644a3e09fb3aa118661018827959b590855a2b019e1949311bb2c20448a7d85788dba00cb69ef6a70526 +AUX ipcad.conf.d 320 SHA256 4962387db2452a1fb892c658da8b5ea9d816b69b5451fc0faf7670ef448b2797 SHA512 bfe0c3b988cbe1442c5637728ef2f51e58cb8f8d6752a94eb9ce42ec1ba4a1ed7129c65e11971ab227901a91e23872eb38ee47ff1bb539b04948d91d227a8944 WHIRLPOOL 9992849414b42dd354333e2efd6088ca7ba746004ad259c8d947c08f24660aaf570d5f598bfc5e2c4912a77a902e7a3323036170ca5cdab7c1cde7dc11e14920 +AUX ipcad.init 818 SHA256 8a9f9b664d679805bf1b863bf4386a2cdd0ac9dc1839e4d34fd2c9cc77205490 SHA512 638c527ea723cd1cbadf24dcafe84803575251ee465b8e0cdf4a3a8e76302190694f75153ef33086fdf47a17be335d136b9fc38dc962fbeb143c784d1e2caa3a WHIRLPOOL abb538b06c986637c60bb233ae3d82b507543b4e0af05946b545996baa89ab531ef15023e0ce60c2a8b0094d9a5ce88fb255816c7e25dc117487154064703426 +DIST ipcad-3.7.3.tar.gz 172457 SHA256 72372d46ae35e4d7cc74d96fbaf8bb0ae189aa9ecfd89026487aca790c2f0716 SHA512 a25a2551bd88727c20f969b780e09d2776bf1fe4f684b0a7a6e571bb7b5684743ade0571b7993849b65c58def4550aa88bcb52a91d5cc6c21e562627fb3b80b6 WHIRLPOOL 17f8d9f7d04dd84f83f0910c64b5c4a1aee475bbe79fe058b6ecdab0efe12fe4e04c50aff039fb9c1fa018a0ebe9acbd921f89f47707778e8d3fe625e552144d +EBUILD ipcad-3.7.3.ebuild 1136 SHA256 2f063641dd8ec089991e7b121978a32849b6b0a340d71ee4de2fddebbcd250ad SHA512 0d158a37e82d8bf1061513c191ae19d34b076526ca8cae24aca62524c8649cd3bdf4c5027b88718a770a5a69d60476f02622dc5b938b9cc02de3b0f0b534d873 WHIRLPOOL b09e9fb9a1303512699a02fec8b726e5b2d1bbab0ba61632b78846c04fe51bb669099b0f8a35b9424485984a42bb1eaedd120c6926f83cc8d8b835c3e912d2e5 +MISC ChangeLog 2815 SHA256 d5cc9e8b45c2da94f599755290cfe9b0d20d07e2c2880759942d2ef308db31c8 SHA512 16be11d436b727e54b31869e65aecf2944580c0683aea2c78159b2bb25f4336169f4ebae5939dcc7445c1c644756986aa89e60a7c5da048c4339284477f7cfb4 WHIRLPOOL 9f8be64d5584ca71659bdcea8b6401f7df3873b4ff97b220cf4db0834771b103fd980d44a73b59e454f6684a490b2a5b34da8cd08549583b3adfbec8232f7c09 +MISC ChangeLog-2015 5845 SHA256 5d80e9be0b1e735f49cfbf42b5a036b5e75e7d48f20e27414bd9bb1718c9d64d SHA512 95fb3aa6e75f60d8a84e7d5e7da0d5ebc4b7e54cf074bed5c34ec296bd57357dbf43d0081b93415646ccfa932401ed2c11942bdccf85e3ce7462863efbb72cbe WHIRLPOOL b8731875eb12a43645d7c31d4ee047939b663af7c4c09cd954b00d151d05e29bbcbb622af34cb920e6565ddbafa44181a5c060d1bb0519c0bbe950006c392e66 +MISC metadata.xml 418 SHA256 fbbb9a4362cd2cbed06b2ac1e4224cd7764bea84e94bfe1124c0d50fa6cdf67f SHA512 b13c8bec8eb28fbd650c4448f4af8b179e284334ad1245abb7283fd45edbbf42b1d81033c3bfb693eed5a07f2190fae803f506ade5e3424d3388b59546a15afc WHIRLPOOL eef5c7f00ceaa0618857947f1cfc58dadc96c9367239bb7ff31a8fcb2467810bb815466795da4042bca64a67da29a1a1db22d15effec2ac0c9d3a4e04f5cdf7d 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 <linux/socket.h> ++#endif ++#ifdef HAVE_LINUX_IN_H ++#include <linux/in.h> + #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 <pva@gentoo.org> +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 <sys/socket.h> ++#endif]) + AC_CHECK_HEADERS(linux/socket.h) + AC_CHECK_HEADERS(linux/netlink.h,,, + [#ifdef HAVE_LINUX_SOCKET_H + #include <linux/socket.h> ++#endif ++#ifdef HAVE_SYS_SOCKET_H ++#include <sys/socket.h> + #endif]) + AC_CHECK_HEADERS(linux/netfilter.h,,, + [#ifdef HAVE_LINUX_SOCKET_H + #include <linux/socket.h> + #endif ++#ifdef HAVE_SYS_SOCKET_H ++#include <sys/socket.h> ++#endif ++#ifdef HAVE_LINUX_IN6_H ++#include <linux/in6.h> ++#endif + #ifdef HAVE_LINUX_IN_H + #include <linux/in.h> + #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.h> /* signal */ ++ + #include "ipcad.h" + #include "cfgvar.h" + #include "servers.h" +--- a/pps.c ++++ b/pps.c +@@ -26,6 +26,7 @@ + * $Id$ + */ + ++#include <signal.h> /* sigprocmask */ + + #include "ipcad.h" + #include "opt.h" +--- a/servers.c ++++ b/servers.c +@@ -26,6 +26,8 @@ + * $Id$ + */ + ++#include <signal.h> /* 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..8304b5d161e9 --- /dev/null +++ b/net-analyzer/ipcad/files/ipcad.conf.d @@ -0,0 +1,9 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# 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..84ff3eeebf31 --- /dev/null +++ b/net-analyzer/ipcad/files/ipcad.init @@ -0,0 +1,36 @@ +#!/sbin/openrc-run +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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..e9723ab496af --- /dev/null +++ b/net-analyzer/ipcad/ipcad-3.7.3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="IP Cisco Accounting Daemon" +HOMEPAGE="https://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..007abc824220 --- /dev/null +++ b/net-analyzer/ipcad/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> + </maintainer> + <longdescription>IP Cisco Accounting Daemon</longdescription> + <upstream> + <remote-id type="sourceforge">ipcad</remote-id> + </upstream> +</pkgmetadata> |