diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-01-08 05:29:35 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-01-08 05:29:35 +0000 |
commit | 1e2d877d5e14492a0465945936d56e938742b0d9 (patch) | |
tree | 60897bdc87a66ced0e481299c2f59211c61215b3 /net-analyzer/tleds | |
parent | remove all redhat-sources ebuilds, I'll remove the dir later (diff) | |
download | historical-1e2d877d5e14492a0465945936d56e938742b0d9.tar.gz historical-1e2d877d5e14492a0465945936d56e938742b0d9.tar.bz2 historical-1e2d877d5e14492a0465945936d56e938742b0d9.zip |
init.d script #37423
Diffstat (limited to 'net-analyzer/tleds')
-rw-r--r-- | net-analyzer/tleds/ChangeLog | 9 | ||||
-rw-r--r-- | net-analyzer/tleds/files/tleds.conf.d | 7 | ||||
-rw-r--r-- | net-analyzer/tleds/files/tleds.init.d | 22 | ||||
-rw-r--r-- | net-analyzer/tleds/tleds-1.05_beta11.ebuild | 18 |
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 } |