diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer/tleds/files | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
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 $? +} + |