summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/tleds/tleds-1.05_beta11.ebuild')
-rw-r--r--net-analyzer/tleds/tleds-1.05_beta11.ebuild46
1 files changed, 26 insertions, 20 deletions
diff --git a/net-analyzer/tleds/tleds-1.05_beta11.ebuild b/net-analyzer/tleds/tleds-1.05_beta11.ebuild
index 987c359e393e..521578f964c3 100644
--- a/net-analyzer/tleds/tleds-1.05_beta11.ebuild
+++ b/net-analyzer/tleds/tleds-1.05_beta11.ebuild
@@ -1,41 +1,47 @@
-# Copyright 2002 Gentoo Technologies, Inc.
+# Copyright 1999-2005 Gentoo Foundation
# 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.1 2002/07/02 09:51:21 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tleds/tleds-1.05_beta11.ebuild,v 1.1.1.1 2005/11/30 10:12:29 chriswhite Exp $
+
+inherit eutils
MY_P=${P/_/}
S=${WORKDIR}/${MY_P/eta11/}
-DESCRIPTION="Blinks keyboard LEDs (Light Emitting Diode) indicating outgoing
-and incoming network packets on selected network interface."
-
-HOMEPAGE="http://www.hut.fi/~jlohikos/tleds/"
+DESCRIPTION="Blinks keyboard LEDs indicating outgoing and incoming network packets on selected network interface"
+HOMEPAGE="http://www.hut.fi/~jlohikos/tleds_orig.html"
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"
-DEPEND="virtual/glibc
- X? ( virtual/x11 )"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc sparc x86"
+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() {
-
- emake all || die
+ if use X ; then
+ emake all || die "make failed :("
+ else
+ emake tleds || die "make tleds failed :("
+ fi
}
-src_install () {
-
- dobin tleds
-
- use X && dobin xtleds
+src_install() {
+ dosbin tleds
+ use X && dosbin xtleds
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
}