blob: 56abdfd1f3cda4f145f838d6d27b3ec46924c884 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils toolchain-funcs
MY_P="${P/_/}"
S="${WORKDIR}/${MY_P/eta11/}"
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
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="X"
DEPEND="X? ( x11-libs/libX11 )"
RDEPEND="${DEPEND}"
src_prepare() {
# code patches
epatch \
"${WORKDIR}"/${MY_P}.patch \
"${FILESDIR}"/${P}-gentoo.patch
}
src_compile() {
emake CC=$(tc-getCC) $(usex X all tleds)
}
src_install() {
dosbin tleds
use X && dosbin xtleds
doman tleds.1
dodoc README Changes
newinitd "${FILESDIR}"/tleds.init.d tleds
newconfd "${FILESDIR}"/tleds.conf.d tleds
}
|