summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-07-12 18:04:07 +0000
committerJeroen Roovers <jer@gentoo.org>2014-07-12 18:04:07 +0000
commit2b6cda75602f164d7944b51ade8c18cc4f8c8db4 (patch)
tree8a5f32339fcf55faa5ab30e6de5606812aed625f /net-analyzer/ippl/files
parentEAPI bump. Clean up patch. (diff)
downloadhistorical-2b6cda75602f164d7944b51ade8c18cc4f8c8db4.tar.gz
historical-2b6cda75602f164d7944b51ade8c18cc4f8c8db4.tar.bz2
historical-2b6cda75602f164d7944b51ade8c18cc4f8c8db4.zip
Clean up sed scripts. Use /run not /var/run in init script. Clean up patches.
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0xA792A613
Diffstat (limited to 'net-analyzer/ippl/files')
-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
5 files changed, 43 insertions, 49 deletions
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
}