diff options
Diffstat (limited to 'net-analyzer/tleds/files')
-rw-r--r-- | net-analyzer/tleds/files/tleds-1.05_beta11-gentoo.patch | 53 | ||||
-rw-r--r-- | net-analyzer/tleds/files/tleds.conf.d | 7 | ||||
-rw-r--r-- | net-analyzer/tleds/files/tleds.init.d | 22 |
3 files changed, 82 insertions, 0 deletions
diff --git a/net-analyzer/tleds/files/tleds-1.05_beta11-gentoo.patch b/net-analyzer/tleds/files/tleds-1.05_beta11-gentoo.patch new file mode 100644 index 000000000000..96e6e3d21d45 --- /dev/null +++ b/net-analyzer/tleds/files/tleds-1.05_beta11-gentoo.patch @@ -0,0 +1,53 @@ +--- a/Changes ++++ b/Changes +@@ -1,4 +1,7 @@ + VERSION DATE WHAT WAS FIXED OR WHAT WAS/IS NEW ++ ++ 2 Jul 2002 2.4/2.5 patch ++ + 1.05b11 7 Mar 2002 Support for multiple interfaces + + 1.05b7 2 Apr 1998 Keeps LEDs deattached also after VT is reset if run +--- a/tleds.c ++++ b/tleds.c +@@ -43,16 +43,6 @@ + #define VERSION "1.05beta11" + #define MYNAME "tleds" + +-/* Supported kernel version */ +-/* If you want to compile for Linux 2.1.x add -DKERNEL2_1 to gcc options. */ +-/* Currently kernel v2.1.97 is "tested", older v2.1.x kernels may not work */ +-#ifdef KERNEL2_1 +-#undef KERNEL2_1 +-#define KERNEL2_0 0 +-#else +-#define KERNEL2_0 1 +-#endif +- + /* If you don't want X stuff. */ + #ifdef NO_X_SUPPORT + #define REMOVE_X_CODE 1 +--- a/Makefile ++++ b/Makefile +@@ -9,18 +9,18 @@ + + # For 2.1.x kernels, you have to include -DKERNEL2_1 option for gcc + +-GCCOPTS = -D_GNU_SOURCE -O3 -Wall ++GCCOPTS = -D_GNU_SOURCE $(CFLAGS) $(LDFLAGS) -Wall + + # The first one is if you want to include X code + xtleds: tleds.c Makefile + # Making xtleds +- gcc $(GCCOPTS) -o xtleds tleds.c -I /usr/X11R6/include/ -L /usr/X11R6/lib/ -lX11 ++ $(CC) $(GCCOPTS) -o xtleds tleds.c -I /usr/include/ -L /usr/lib/ -lX11 + + # This second one works only when started in VT. Check the REMOVE_X_CODE + # in the source code. + tleds: tleds.c Makefile + # Making tleds +- gcc -DNO_X_SUPPORT $(GCCOPTS) -o tleds tleds.c ++ $(CC) -DNO_X_SUPPORT $(GCCOPTS) -o tleds tleds.c + + help: + # make help - this. diff --git a/net-analyzer/tleds/files/tleds.conf.d b/net-analyzer/tleds/files/tleds.conf.d new file mode 100644 index 000000000000..523995204e24 --- /dev/null +++ b/net-analyzer/tleds/files/tleds.conf.d @@ -0,0 +1,7 @@ +# Copyright 2003-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..9470c2a5b0e0 --- /dev/null +++ b/net-analyzer/tleds/files/tleds.init.d @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + + +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 $? +} + |