summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-07-12 18:04:05 +0000
committerJeroen Roovers <jer@gentoo.org>2014-07-12 18:04:05 +0000
commit6132c0ee262df67c7d96cb9a79d1a22043c2a986 (patch)
treea469ff0e59c4504ff354f9ae4d2bb83a5f141a0c /net-analyzer/ippl
parentEAPI bump. Clean up patch. (diff)
downloadgentoo-2-6132c0ee262df67c7d96cb9a79d1a22043c2a986.tar.gz
gentoo-2-6132c0ee262df67c7d96cb9a79d1a22043c2a986.tar.bz2
gentoo-2-6132c0ee262df67c7d96cb9a79d1a22043c2a986.zip
Clean up sed scripts. Use /run not /var/run in init script. Clean up patches.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-analyzer/ippl')
-rw-r--r--net-analyzer/ippl/ChangeLog12
-rw-r--r--net-analyzer/ippl/files/ippl-1.4.14-includes.patch8
-rw-r--r--net-analyzer/ippl/files/ippl-1.4.14-manpage.patch4
-rw-r--r--net-analyzer/ippl/files/ippl-1.4.14-noportresolve.patch48
-rw-r--r--net-analyzer/ippl/files/ippl-1.4.14-privilege-drop.patch16
-rw-r--r--net-analyzer/ippl/files/ippl.rc16
-rw-r--r--net-analyzer/ippl/ippl-1.4.14-r4.ebuild55
7 files changed, 108 insertions, 51 deletions
diff --git a/net-analyzer/ippl/ChangeLog b/net-analyzer/ippl/ChangeLog
index a400a6c908b7..9b11e556f264 100644
--- a/net-analyzer/ippl/ChangeLog
+++ b/net-analyzer/ippl/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-analyzer/ippl
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ippl/ChangeLog,v 1.25 2013/02/24 14:09:39 pinkbyte Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ippl/ChangeLog,v 1.26 2014/07/12 18:04:05 jer Exp $
+
+*ippl-1.4.14-r4 (12 Jul 2014)
+
+ 12 Jul 2014; Jeroen Roovers <jer@gentoo.org> +ippl-1.4.14-r4.ebuild,
+ files/ippl-1.4.14-includes.patch, files/ippl-1.4.14-manpage.patch,
+ files/ippl-1.4.14-noportresolve.patch,
+ files/ippl-1.4.14-privilege-drop.patch, files/ippl.rc:
+ Clean up sed scripts. Use /run not /var/run in init script. Clean up patches.
24 Feb 2013; Sergey Popov <pinkbyte@gentoo.org> -ippl-1.4.14-r1.ebuild:
Drop old revision
diff --git a/net-analyzer/ippl/files/ippl-1.4.14-includes.patch b/net-analyzer/ippl/files/ippl-1.4.14-includes.patch
index d1883ee0883a..12b2832fa342 100644
--- a/net-analyzer/ippl/files/ippl-1.4.14-includes.patch
+++ b/net-analyzer/ippl/files/ippl-1.4.14-includes.patch
@@ -1,5 +1,5 @@
---- a/Source/filter.c 2010-09-15 02:17:55.000000000 +0200
-+++ b/Source/filter.c 2010-09-15 02:23:46.000000000 +0200
+--- a/Source/filter.c
++++ b/Source/filter.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
@@ -8,8 +8,8 @@
#include <fnmatch.h>
---- a/Source/main.c 2010-09-15 02:17:56.000000000 +0200
-+++ b/Source/main.c 2010-09-15 02:24:00.000000000 +0200
+--- a/Source/main.c
++++ b/Source/main.c
@@ -37,6 +37,7 @@
#include <pwd.h>
#include <stdlib.h>
diff --git a/net-analyzer/ippl/files/ippl-1.4.14-manpage.patch b/net-analyzer/ippl/files/ippl-1.4.14-manpage.patch
index c20b60f1a56f..d17e5939cdee 100644
--- a/net-analyzer/ippl/files/ippl-1.4.14-manpage.patch
+++ b/net-analyzer/ippl/files/ippl-1.4.14-manpage.patch
@@ -1,7 +1,7 @@
patch by Marc Haber <mh+debian-packages@zugschlus.de>
---- a/Docs/ippl.conf.man 2000-11-05 22:03:47.000000000 +0000
-+++ b/Docs/ippl.conf.man 2005-03-19 20:53:38.340875122 +0000
+--- a/Docs/ippl.conf.man
++++ b/Docs/ippl.conf.man
@@ -222,9 +222,7 @@
.SS Protocol
.PP
diff --git a/net-analyzer/ippl/files/ippl-1.4.14-noportresolve.patch b/net-analyzer/ippl/files/ippl-1.4.14-noportresolve.patch
index 80cda4274ccb..919623040f7f 100644
--- a/net-analyzer/ippl/files/ippl-1.4.14-noportresolve.patch
+++ b/net-analyzer/ippl/files/ippl-1.4.14-noportresolve.patch
@@ -1,7 +1,7 @@
patch by Marc Haber <mh+debian-packages@zugschlus.de>
---- Docs/ippl.conf.man 2008-06-05 12:39:24 +0000
-+++ Docs/ippl.conf.man 2008-06-05 12:46:02 +0000
+--- a/Docs/ippl.conf.man
++++ b/Docs/ippl.conf.man
@@ -92,6 +92,13 @@
.PP
By default, IP address resolution is disabled for all the protocols.
@@ -30,8 +30,8 @@ patch by Marc Haber <mh+debian-packages@zugschlus.de>
use ident logging (only for TCP).
.PP
---- Source/configuration.c 2008-06-05 12:39:24 +0000
-+++ Source/configuration.c 2008-06-05 12:46:02 +0000
+--- a/Source/configuration.c
++++ b/Source/configuration.c
@@ -60,6 +60,7 @@
extern unsigned int dns_expire;
extern unsigned short log_protocols;
@@ -49,8 +49,8 @@ patch by Marc Haber <mh+debian-packages@zugschlus.de>
tcp_format = LOGFORMAT_NORMAL;
udp_format = LOGFORMAT_NORMAL;
---- Source/filter.c 2008-06-05 12:39:24 +0000
-+++ Source/filter.c 2008-06-05 12:46:02 +0000
+--- a/Source/filter.c
++++ b/Source/filter.c
@@ -46,6 +46,7 @@
extern unsigned short use_ident;
@@ -114,8 +114,8 @@ patch by Marc Haber <mh+debian-packages@zugschlus.de>
#ifdef FILTER_DEBUG
---- Source/filter.h 2008-06-05 12:39:24 +0000
-+++ Source/filter.h 2008-06-05 12:46:02 +0000
+--- a/Source/filter.h
++++ b/Source/filter.h
@@ -53,6 +53,7 @@
struct filter_entry {
short log; /* TRUE for "log", FALSE for "ignore" */
@@ -133,8 +133,8 @@ patch by Marc Haber <mh+debian-packages@zugschlus.de>
short logformat;
};
---- Source/ippl.l 2008-06-05 12:39:24 +0000
-+++ Source/ippl.l 2008-06-05 12:46:02 +0000
+--- a/Source/ippl.l
++++ b/Source/ippl.l
@@ -75,6 +75,9 @@
[lL][oO][gG][cC][lL][oO][sS][iI][nN][gG] return LOGCLOSING;
[nN][oO][lL][oO][gG][cC][lL][oO][sS][iI][nN][gG] return NOLOGCLOSING;
@@ -146,8 +146,8 @@ patch by Marc Haber <mh+debian-packages@zugschlus.de>
[rR][eE][sS][oO][lL][vV][eE] return RESOLVE;
---- Source/ippl.y 2008-06-05 12:39:24 +0000
-+++ Source/ippl.y 2008-06-05 12:46:02 +0000
+--- a/Source/ippl.y
++++ b/Source/ippl.y
@@ -61,6 +61,7 @@
/* Should name resolving be done? */
@@ -203,8 +203,8 @@ patch by Marc Haber <mh+debian-packages@zugschlus.de>
| NORMAL { switches.logformat = LOGFORMAT_NORMAL; }
| DETAILED { switches.logformat = LOGFORMAT_DETAILED; }
---- Source/main.c 2008-06-05 12:39:24 +0000
-+++ Source/main.c 2008-06-05 12:46:02 +0000
+--- a/Source/main.c
++++ b/Source/main.c
@@ -48,6 +48,10 @@
#include "filter.h"
#include "pidfile.h"
@@ -217,8 +217,8 @@ patch by Marc Haber <mh+debian-packages@zugschlus.de>
struct loginfo log;
---- Source/netutils.c 2008-06-05 12:39:24 +0000
-+++ Source/netutils.c 2008-06-05 12:46:02 +0000
+--- a/Source/netutils.c
++++ b/Source/netutils.c
@@ -237,15 +237,21 @@
* Get a service name for a specified protocol
*/
@@ -247,8 +247,8 @@ patch by Marc Haber <mh+debian-packages@zugschlus.de>
pthread_mutex_unlock(&service_mutex);
}
---- Source/netutils.h 2008-06-05 12:39:24 +0000
-+++ Source/netutils.h 2008-06-05 12:46:02 +0000
+--- a/Source/netutils.h
++++ b/Source/netutils.h
@@ -53,6 +53,6 @@
const __u32 src_addr, const __u16 src_port,
const __u32 dst_addr, const __u16 dst_port);
@@ -258,8 +258,8 @@ patch by Marc Haber <mh+debian-packages@zugschlus.de>
#endif
---- Source/tcp.c 2008-06-05 12:39:24 +0000
-+++ Source/tcp.c 2008-06-05 12:46:02 +0000
+--- a/Source/tcp.c
++++ b/Source/tcp.c
@@ -51,6 +51,7 @@
struct loginfo tcp_log;
extern struct loginfo log;
@@ -287,8 +287,8 @@ patch by Marc Haber <mh+debian-packages@zugschlus.de>
get_details(details,
IPHDR.saddr,
---- Source/udp.c 2008-06-05 12:39:24 +0000
-+++ Source/udp.c 2008-06-05 12:46:02 +0000
+--- a/Source/udp.c
++++ b/Source/udp.c
@@ -81,7 +81,7 @@
*details ='\0';
host_print(remote_host, IPHDR.saddr,
@@ -299,8 +299,8 @@ patch by Marc Haber <mh+debian-packages@zugschlus.de>
get_details(details,
IPHDR.saddr,
---- ippl.conf 2008-06-05 12:39:24 +0000
-+++ ippl.conf 2008-06-05 12:48:36 +0000
+--- a/ippl.conf
++++ b/ippl.conf
@@ -4,13 +4,15 @@
# User used
# ---------
diff --git a/net-analyzer/ippl/files/ippl-1.4.14-privilege-drop.patch b/net-analyzer/ippl/files/ippl-1.4.14-privilege-drop.patch
index 7a397a86c054..0f6d03684a93 100644
--- a/net-analyzer/ippl/files/ippl-1.4.14-privilege-drop.patch
+++ b/net-analyzer/ippl/files/ippl-1.4.14-privilege-drop.patch
@@ -1,7 +1,7 @@
privilege-drop by Marc Haber <mh+debian-packages@zugschlus.de>
---- trunk~/Source/icmp.c 2001-09-28 20:47:58.000000000 +0200
-+++ trunk/Source/icmp.c 2007-05-20 12:05:24.000000000 +0200
+--- a/Source/icmp.c
++++ b/Source/icmp.c
@@ -39,6 +39,8 @@
#include "log.h"
#include "filter.h"
@@ -31,8 +31,8 @@ privilege-drop by Marc Haber <mh+debian-packages@zugschlus.de>
for(;;) {
if (read(icmp_socket, (__u8 *) &pkt, ICMP_CAPTURE_LENGTH) == -1) {
---- trunk~/Source/main.c 2000-04-21 21:37:49.000000000 +0200
-+++ trunk/Source/main.c 2007-05-20 12:05:24.000000000 +0200
+--- a/Source/main.c
++++ b/Source/main.c
@@ -153,6 +153,17 @@
run_thread(&udp_t, log_udp, (void *)account);
}
@@ -76,8 +76,8 @@ privilege-drop by Marc Haber <mh+debian-packages@zugschlus.de>
signal(SIGHUP, sighup);
}
---- trunk~/Source/tcp.c 2001-09-29 15:27:01.000000000 +0200
-+++ trunk/Source/tcp.c 2007-05-20 12:05:24.000000000 +0200
+--- a/Source/tcp.c
++++ b/Source/tcp.c
@@ -44,6 +44,8 @@
#include "filter.h"
#include "configuration.h"
@@ -107,8 +107,8 @@ privilege-drop by Marc Haber <mh+debian-packages@zugschlus.de>
for(;;) {
if (read(tcp_socket, (__u8 *) &pkt, TCP_CAPTURE_LENGTH) == -1) {
---- trunk~/Source/udp.c 2001-09-28 20:47:35.000000000 +0200
-+++ trunk/Source/udp.c 2007-05-20 12:05:24.000000000 +0200
+--- a/Source/udp.c
++++ b/Source/udp.c
@@ -39,6 +39,8 @@
#include "filter.h"
#include "configuration.h"
diff --git a/net-analyzer/ippl/files/ippl.rc b/net-analyzer/ippl/files/ippl.rc
index fe68372d6298..9a30c4686423 100644
--- a/net-analyzer/ippl/files/ippl.rc
+++ b/net-analyzer/ippl/files/ippl.rc
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ippl/files/ippl.rc,v 1.5 2005/04/02 13:17:01 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ippl/files/ippl.rc,v 1.6 2014/07/12 18:04:05 jer Exp $
depend() {
need net
@@ -19,19 +19,13 @@ checkconfig() {
start() {
checkconfig || return $?
ebegin "Starting ippl"
- start-stop-daemon --start --quiet --pidfile /var/run/ippl.pid \
- --startas /usr/sbin/ippl
+ start-stop-daemon --start --quiet --pidfile /run/ippl.pid \
+ --exec /usr/sbin/ippl
eend $? "Failed to start ippl"
}
stop() {
ebegin "Stopping ippl"
- start-stop-daemon --stop --quiet --pidfile /var/run/ippl.pid
+ start-stop-daemon --stop --quiet --pidfile /run/ippl.pid
eend $? "Failed to stop ippl"
-
- # clean stale pidfile
- if [ -f /var/run/ippl.pid ]
- then
- rm -f /var/run/ippl.pid
- fi
}
diff --git a/net-analyzer/ippl/ippl-1.4.14-r4.ebuild b/net-analyzer/ippl/ippl-1.4.14-r4.ebuild
new file mode 100644
index 000000000000..97aa0fa08117
--- /dev/null
+++ b/net-analyzer/ippl/ippl-1.4.14-r4.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ippl/ippl-1.4.14-r4.ebuild,v 1.1 2014/07/12 18:04:05 jer Exp $
+
+EAPI=5
+
+inherit eutils toolchain-funcs user
+
+DESCRIPTION="A daemon which logs TCP/UDP/ICMP packets"
+HOMEPAGE="http://pltplp.net/ippl/"
+SRC_URI="http://pltplp.net/ippl/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="virtual/yacc
+ >=sys-devel/flex-2.5.4a-r4"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/ippl-1.4.14-noportresolve.patch \
+ "${FILESDIR}"/ippl-1.4.14-manpage.patch \
+ "${FILESDIR}"/ippl-1.4.14-privilege-drop.patch \
+ "${FILESDIR}"/ippl-1.4.14-includes.patch
+ sed -i Source/Makefile.in \
+ -e 's|^LDFLAGS=|&@LDFLAGS@|g' \
+ || die
+ sed -i Makefile.in \
+ -e 's|make |$(MAKE) |g' \
+ || die
+ # fix for bug #351287
+ sed -i -e '/lex.yy.c/s/ippl.l/& y.tab.c/' Source/Makefile.in \
+ || die
+
+ tc-export CC
+}
+
+src_install() {
+ dosbin Source/ippl
+
+ insinto "/etc"
+ doins ippl.conf
+
+ doman Docs/{ippl.8,ippl.conf.5}
+
+ dodoc BUGS CREDITS HISTORY README TODO
+
+ newinitd "${FILESDIR}"/ippl.rc ippl
+}
+
+pkg_postinst() {
+ enewuser ippl
+}