summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2003-10-27 05:50:53 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2003-10-27 05:50:53 +0000
commit9815cec74a983b79a807551adb1df2071d677883 (patch)
tree76deb841c516b4bc25bbff259a1897559ccff94f /net-analyzer/iplog
parentadd my own startup script for iplog (diff)
downloadgentoo-2-9815cec74a983b79a807551adb1df2071d677883.tar.gz
gentoo-2-9815cec74a983b79a807551adb1df2071d677883.tar.bz2
gentoo-2-9815cec74a983b79a807551adb1df2071d677883.zip
add my own startup script for iplog
Diffstat (limited to 'net-analyzer/iplog')
-rw-r--r--net-analyzer/iplog/ChangeLog8
-rw-r--r--net-analyzer/iplog/Manifest6
-rw-r--r--net-analyzer/iplog/files/digest-iplog-2.2.3-r21
-rw-r--r--net-analyzer/iplog/files/iplog.rc637
-rw-r--r--net-analyzer/iplog/iplog-2.2.3-r2.ebuild38
5 files changed, 86 insertions, 4 deletions
diff --git a/net-analyzer/iplog/ChangeLog b/net-analyzer/iplog/ChangeLog
index e65382268144..cc4590e185d4 100644
--- a/net-analyzer/iplog/ChangeLog
+++ b/net-analyzer/iplog/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/iplog
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iplog/ChangeLog,v 1.6 2003/10/19 03:04:06 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iplog/ChangeLog,v 1.7 2003/10/27 05:50:50 robbat2 Exp $
+
+*iplog-2.2.3-r2 (26 Oct 2003)
+
+ 26 Oct 2003; Robin H. Johnson <robbat2@gentoo.org> iplog-2.2.3-r2.ebuild,
+ files/iplog.rc6:
+ add my own startup script for iplog
*iplog-2.2.3-r1 (18 Oct 2003)
diff --git a/net-analyzer/iplog/Manifest b/net-analyzer/iplog/Manifest
index 61b612244b7f..60763c009b82 100644
--- a/net-analyzer/iplog/Manifest
+++ b/net-analyzer/iplog/Manifest
@@ -1,8 +1,8 @@
-MD5 6f083b8677c81f7eab7ba9c5bf345f81 iplog-2.2.3-r2.ebuild 893
+MD5 a1af4ae6842289141d8f75726f9371df iplog-2.2.3-r2.ebuild 894
MD5 169a91fd4a53375291232b8646c878c3 iplog-2.2.3-r1.ebuild 796
-MD5 d5db083ae1af8e1662ab3e76b550a611 ChangeLog 904
+MD5 9587dcb35d008b23b493cb967ac207d3 ChangeLog 1070
MD5 7ba5e7a4ffce0d9cd312326cfdd13ec7 iplog-2.2.3.ebuild 714
-MD5 2f4c10e30f9ca74e7c77ebd5ba230e5b files/iplog.rc6 733
+MD5 9a2909fdf1fb1a3e5efc41d2712ee363 files/iplog.rc6 964
MD5 9b2831dc3b6c9860cc6857ec5d8ed088 files/digest-iplog-2.2.3 63
MD5 9b2831dc3b6c9860cc6857ec5d8ed088 files/digest-iplog-2.2.3-r1 63
MD5 9b2831dc3b6c9860cc6857ec5d8ed088 files/digest-iplog-2.2.3-r2 63
diff --git a/net-analyzer/iplog/files/digest-iplog-2.2.3-r2 b/net-analyzer/iplog/files/digest-iplog-2.2.3-r2
new file mode 100644
index 000000000000..15654566682b
--- /dev/null
+++ b/net-analyzer/iplog/files/digest-iplog-2.2.3-r2
@@ -0,0 +1 @@
+MD5 de98dd64018ab10ebe36e481cf00b7db iplog-2.2.3.tar.gz 133639
diff --git a/net-analyzer/iplog/files/iplog.rc6 b/net-analyzer/iplog/files/iplog.rc6
new file mode 100644
index 000000000000..e8b816237815
--- /dev/null
+++ b/net-analyzer/iplog/files/iplog.rc6
@@ -0,0 +1,37 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iplog/files/iplog.rc6,v 1.1 2003/10/27 05:50:50 robbat2 Exp $
+
+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..0925008d8ed2
--- /dev/null
+++ b/net-analyzer/iplog/iplog-2.2.3-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iplog/iplog-2.2.3-r2.ebuild,v 1.1 2003/10/27 05:50:50 robbat2 Exp $
+
+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="~x86 ~ppc ~sparc"
+
+DEPEND="net-libs/libpcap"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-DLT_LINUX_SSL.patch
+}
+
+src_compile() {
+ econf || die
+ make CFLAGS="${CFLAGS} -D_REENTRANT" all || die
+}
+
+src_install() {
+ make \
+ prefix=${D}/usr \
+ mandir=${D}/usr/share/man \
+ install || die
+ dodoc AUTHORS COPYING.* NEWS README TODO example-iplog.conf
+ into /
+ insinto /etc/init.d
+ newins ${FILESDIR}/iplog.rc6 iplog
+ chmod +x ${D}/etc/init.d/iplog
+}