summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-01-08 05:29:35 +0000
committerMike Frysinger <vapier@gentoo.org>2004-01-08 05:29:35 +0000
commitf2e6f2f9caef10a3834351d7c092bfdaea4787e7 (patch)
tree460204e2fed2bb24a9b6105f4317de06be128b65 /net-analyzer/tleds
parentremove all redhat-sources ebuilds, I'll remove the dir later (Manifest recommit) (diff)
downloadgentoo-2-f2e6f2f9caef10a3834351d7c092bfdaea4787e7.tar.gz
gentoo-2-f2e6f2f9caef10a3834351d7c092bfdaea4787e7.tar.bz2
gentoo-2-f2e6f2f9caef10a3834351d7c092bfdaea4787e7.zip
init.d script #37423
Diffstat (limited to 'net-analyzer/tleds')
-rw-r--r--net-analyzer/tleds/ChangeLog9
-rw-r--r--net-analyzer/tleds/files/tleds.conf.d7
-rw-r--r--net-analyzer/tleds/files/tleds.init.d22
-rw-r--r--net-analyzer/tleds/tleds-1.05_beta11.ebuild18
4 files changed, 47 insertions, 9 deletions
diff --git a/net-analyzer/tleds/ChangeLog b/net-analyzer/tleds/ChangeLog
index c909893c6318..77a782b5274d 100644
--- a/net-analyzer/tleds/ChangeLog
+++ b/net-analyzer/tleds/ChangeLog
@@ -1,11 +1,14 @@
# ChangeLog for net-analyzer/tleds
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tleds/ChangeLog,v 1.7 2003/07/13 11:30:14 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tleds/ChangeLog,v 1.8 2004/01/08 05:29:35 vapier Exp $
- 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
-
*tleds-1.05_beta11 (2 Jul 2002)
+ 08 Jan 2004; Mike Frysinger <vapier@gentoo.org> :
+ Add init.d script #37423.
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
14 Oct 2002; Mike Frysinger <vapier@gentoo.org> :
Fix for #9104 ... ebuild was not properly respecting '-X' ...
diff --git a/net-analyzer/tleds/files/tleds.conf.d b/net-analyzer/tleds/files/tleds.conf.d
new file mode 100644
index 000000000000..8f2b1c3a70f1
--- /dev/null
+++ b/net-analyzer/tleds/files/tleds.conf.d
@@ -0,0 +1,7 @@
+# Copyright 2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tleds/files/tleds.conf.d,v 1.1 2004/01/08 05:29:35 vapier Exp $
+
+IFACE="eth0"
+DELAY=50
+EXTRA_OPTS=""
diff --git a/net-analyzer/tleds/files/tleds.init.d b/net-analyzer/tleds/files/tleds.init.d
new file mode 100644
index 000000000000..686557ab4954
--- /dev/null
+++ b/net-analyzer/tleds/files/tleds.init.d
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tleds/files/tleds.init.d,v 1.1 2004/01/08 05:29:35 vapier Exp $
+
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting tleds"
+ /usr/sbin/tleds -d ${DELAY} ${IFACE} ${EXTRA_OPTS} > /dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping tleds"
+ /usr/sbin/tleds -k > /dev/null
+ eend $?
+}
+
diff --git a/net-analyzer/tleds/tleds-1.05_beta11.ebuild b/net-analyzer/tleds/tleds-1.05_beta11.ebuild
index c451d3c50ce3..b308aaf2d84e 100644
--- a/net-analyzer/tleds/tleds-1.05_beta11.ebuild
+++ b/net-analyzer/tleds/tleds-1.05_beta11.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tleds/tleds-1.05_beta11.ebuild,v 1.8 2003/02/13 13:51:57 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tleds/tleds-1.05_beta11.ebuild,v 1.9 2004/01/08 05:29:35 vapier Exp $
-IUSE="X"
+inherit eutils
MY_P=${P/_/}
S=${WORKDIR}/${MY_P/eta11/}
@@ -11,17 +11,18 @@ HOMEPAGE="http://www.hut.fi/~jlohikos/tleds/"
SRC_URI="http://www.hut.fi/~jlohikos/tleds/public/${MY_P/11/10}.tgz
http://www.hut.fi/~jlohikos/tleds/public/${MY_P}.patch.bz2"
-SLOT="0"
LICENSE="GPL-2"
-KEYWORDS="x86 sparc "
+SLOT="0"
+KEYWORDS="x86 sparc"
+IUSE="X"
DEPEND="X? ( virtual/x11 )"
src_unpack() {
unpack tleds-1.05beta10.tgz
cd ${S}
- bzcat ${DISTDIR}/${MY_P}.patch.bz2 | patch || die
- patch < ${FILESDIR}/${P}-gentoo.patch || die
+ epatch ${DISTDIR}/${MY_P}.patch.bz2
+ epatch ${FILESDIR}/${P}-gentoo.patch
}
src_compile() {
@@ -38,4 +39,9 @@ src_install() {
doman tleds.1
dodoc README COPYING Changes
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/tleds.init.d tleds
+ insinto /etc/conf.d
+ newins ${FILESDIR}/tleds.conf.d tleds
}