etherwake (1.09-3) direct (non packaging) changes

Summary

 Makefile     |   12 ++++++++++++
 ether-wake.c |   12 ++++++------
 etherwake.8  |    2 +-
 3 files changed, 19 insertions(+), 7 deletions(-)

    
download this patch

Patch contents

--- etherwake-1.09.orig/ether-wake.c
+++ etherwake-1.09/ether-wake.c
@@ -1,12 +1,12 @@
 /* ether-wake.c: Send a magic packet to wake up sleeping machines. */
 
 static char version_msg[] =
-"ether-wake.c: v1.09 11/12/2003 Donald Becker, http://www.scyld.com/";
+"etherwake.c: v1.09 11/12/2003 Donald Becker, http://www.scyld.com/";
 static char brief_usage_msg[] =
-"usage: ether-wake [-i <ifname>] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55\n"
+"usage: etherwake [-i <ifname>] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55\n"
 "   Use '-u' to see the complete set of options.\n";
 static char usage_msg[] =
-"usage: ether-wake [-i <ifname>] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55\n"
+"usage: etherwake [-i <ifname>] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55\n"
 "\n"
 "	This program generates and transmits a Wake-On-LAN (WOL)\n"
 "	\"Magic Packet\", used for restarting machines that have been\n"
@@ -159,9 +159,9 @@
 #endif
 	if (s < 0) {
 		if (errno == EPERM)
-			fprintf(stderr, "ether-wake: This program must be run as root.\n");
+			fprintf(stderr, "etherwake: This program must be run as root.\n");
 		else
-			perror("ether-wake: socket");
+			perror("etherwake: socket");
 		perm_failure++;
 	}
 	/* Don't revert if debugging allows a normal user to get the raw socket. */
@@ -295,7 +295,7 @@
 					hostid, ether_ntoa(eaddr));
 	} else {
 		(void)fprintf(stderr,
-					  "ether-wake: The Magic Packet host address must be "
+					  "etherwake: The Magic Packet host address must be "
 					  "specified as\n"
 					  "  - a station address, 00:11:22:33:44:55, or\n"
 					  "  - a hostname with a known 'ethers' entry.\n");
--- etherwake-1.09.orig/etherwake.8
+++ etherwake-1.09/etherwake.8
@@ -39,7 +39,7 @@
 .BR nsswitch.conf (5)
 .
 .SH OPTIONS
-\fBetherwake\fP needs a single dash (´-´) in front of options.
+\fBetherwake\fP needs a single dash ('-') in front of options.
 A summary of options is included below.
 .TP
 .B \-b
--- etherwake-1.09.orig/Makefile
+++ etherwake-1.09/Makefile
@@ -0,0 +1,12 @@
+CFLAGS 	= -Wall
+INSTALL = /usr/bin/install
+CC 	= gcc
+
+all: 
+	$(CC) $(CFLAGS) -o etherwake ether-wake.c
+
+clean:
+	rm -f etherwake
+	
+install:
+	$(INSTALL) etherwake $(DESTDIR)/usr/sbin