summaryrefslogtreecommitdiffstats
path: root/patches/mii-diag-2.11.orig/0001-mii-diag_2.11-2-Makefile.patch
blob: f92bad95e926f98939ce1b21ea3bfe375cb74048 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
From: Jon Ringle <jon@ringle.org>
Date: Fri, 27 May 2011 17:48:06 -0400
Subject: [PATCH] mii-diag_2.11-2 Makefile

Get rid of debian/ stuff
Keep only Makefile and typo fixes

Signed-off-by: Jon Ringle <jon@ringle.org>
---
 Makefile   |   26 ++++++++++++++++++++++++++
 mii-diag.8 |    4 ++--
 2 files changed, 28 insertions(+), 2 deletions(-)
 create mode 100644 Makefile

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..cdfc573
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+CFLAGS= -O -Wall
+CC=gcc
+INSTALL=install
+
+LIBS=libmii.o
+
+all: mii-diag mii-diag-udeb
+
+mii-diag:
+	$(CC) $(CFLAGS) -Wstrict-prototypes -O mii-diag.c -DLIBMII \
+				libmii.c -o mii-diag
+
+mii-diag-udeb:
+	$(CC) -Os -Wstrict-prototypes -O mii-diag.c -o mii-diag
+clean:
+	rm -f *.o mii-diag mii-diag-udeb *~
+
+install-mii-diag:
+	mkdir -p $(DESTDIR)/usr/sbin
+	$(INSTALL) mii-diag $(DESTDIR)/usr/sbin
+
+install-mii-diag-udeb:
+	mkdir -p $(DESTDIR)/usr/sbin
+	$(INSTALL) mii-diag-udeb $(DESTDIR)/usr/sbin/mii-diag
+	
+install: all install-mii-diag
diff --git a/mii-diag.8 b/mii-diag.8
index 38837da..2890582 100644
--- a/mii-diag.8
+++ b/mii-diag.8
@@ -61,7 +61,7 @@ A summary of options is as follows.
 .B \-F, --fixed-speed <speed|setting>
 
 Speed is one of: 100baseT4, 100baseTx, 100baseTx-FD, 100baseTx-HD, 10baseT,
-10baseT-FD, 10baseT-HD.  For more precise control an explict numeric
+10baseT-FD, 10baseT-HD.  For more precise control an explicit numeric
 register setting is also allowed.
 
 
@@ -117,7 +117,7 @@ capabilities, configuration and current status.
 .PP
 The '--monitor' option allows scripting link beat changes.
 .PP
-This option is similar to --watch, but with lower overhead and simplifed
+This option is similar to --watch, but with lower overhead and simplified
 output.  It polls the interface only once a second and the output format
 is a single line per link change with three fixed words
   <unknown|down||negotiating|up> <STATUS> <PARTNER-CAP>
-- 
1.7.0.4