debian/0000755000000000000000000000000012235001355007162 5ustar debian/source/0000755000000000000000000000000012235001355010462 5ustar debian/source/format0000644000000000000000000000001412235001355011670 0ustar 3.0 (quilt) debian/control0000644000000000000000000000143112235001355010564 0ustar Source: etherwake Section: net Priority: optional Maintainer: Pierre Blanc Build-Depends: debhelper (>= 9.0) Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/collab-maint/etherwake.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/etherwake.git Package: etherwake Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: wakeonlan Description: tool to send magic Wake-on-LAN packets WOL (Wake-on-LAN) is a standard that allows you to turn on a computer over an Ethernet connection. Computers with WOL-enabled network interface cards can be woken from sleep mode, or powered up from standby via a BIOS feature. . One feature that separates etherwake from other implementations is that it also supports WOL passwords. debian/dirs0000644000000000000000000000001112235001355010036 0ustar usr/sbin debian/compat0000644000000000000000000000000212235001355010360 0ustar 9 debian/rules0000755000000000000000000000026312235001355010243 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 %: dh $@ debian/patches/0000755000000000000000000000000012235001355010611 5ustar debian/patches/series0000644000000000000000000000012012235001355012017 0ustar clean-man-file.patch rename-binary.patch add-makefile.patch fix-hardening.patch debian/patches/clean-man-file.patch0000644000000000000000000000044212235001355014402 0ustar clean man page --- a/etherwake.8 +++ b/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 debian/patches/fix-hardening.patch0000644000000000000000000000166612235001355014366 0ustar Fix the pointer targets in initialization which differ in signedness --- a/ether-wake.c +++ b/ether-wake.c @@ -131,7 +131,7 @@ case 'D': debug++; break; case 'i': ifname = optarg; break; case 'p': get_wol_pw(optarg); break; - case 'u': printf(usage_msg); return 0; + case 'u': printf("%s",usage_msg); return 0; case 'v': verbose++; break; case 'V': do_version++; break; case '?': @@ -140,7 +140,7 @@ if (verbose || do_version) printf("%s\n", version_msg); if (errflag) { - fprintf(stderr, brief_usage_msg); + fprintf(stderr,"%s", brief_usage_msg); return 3; } @@ -181,7 +181,7 @@ The code to retrieve the local station address is Linux specific. */ if (! opt_no_src_addr) { struct ifreq if_hwaddr; - unsigned char *hwaddr = if_hwaddr.ifr_hwaddr.sa_data; + const char *hwaddr = if_hwaddr.ifr_hwaddr.sa_data; strcpy(if_hwaddr.ifr_name, ifname); if (ioctl(s, SIOCGIFHWADDR, &if_hwaddr) < 0) { debian/patches/add-makefile.patch0000644000000000000000000000040112235001355014130 0ustar Add Makefile --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +INSTALL = /usr/bin/install +CC = gcc + +all: + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o etherwake ether-wake.c + +clean: + rm -f etherwake + +install: + $(INSTALL) etherwake $(DESTDIR)/usr/sbin debian/patches/rename-binary.patch0000644000000000000000000000314512235001355014366 0ustar Rename ether-wake to etherwake --- a/ether-wake.c +++ b/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 ] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55\n" +"usage: etherwake [-i ] [-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 ] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55\n" +"usage: etherwake [-i ] [-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"); debian/watch0000644000000000000000000000021112235001355010205 0ustar # This software was downloaded from: # http://www.scyld.com/expert/wake-on-lan.html # However, the upstream website does no longer exist debian/copyright0000644000000000000000000000105012235001355011111 0ustar This package was debianized by Alain Schroeder on Thu, 7 Dec 2000 10:00:24 +0100. It is now maintained by Alexander Reichle-Schmehl It was downloaded from http://www.scyld.com/expert/wake-on-lan.html Upstream Author: Donald Becker Copyright: Copyright (C) 1999-2003 Donald Becker You are free to distribute this software under the terms of the GNU General Public License. The full text of this license can be found in the file /usr/share/common-licenses/GPL. debian/changelog0000644000000000000000000000746512235001355011050 0ustar etherwake (1.09-4) unstable; urgency=low * Adopt package. (Closes: #726546) * Fix typo and grammar description field. (Closes: #567517) * Streamline rules file with dh command. * Enable hardening. * Add empty watch file. * Change package source format to 3 (quilt). * Bump Standars version to 3.9.4. -- Pierre Blanc Thu, 17 Oct 2013 23:27:17 +0200 etherwake (1.09-3) unstable; urgency=low * Adopt package. (Closes: #540998) * Add Depends on ${misc:Depends}. * Don't use DH_COMPAT any more, but debian/compat. * Don't ignore error on make clean. * Clean up debian/rules; remove unused dh_foo calls. * Remove empty maintainer scripts. * Makefile: clean doesn't bail out, if etherwake doesn't exist. * Bump Standards to 3.8.3 (no further changes needed). -- Alexander Reichle-Schmehl Mon, 18 Jan 2010 23:14:51 +0100 etherwake (1.09-2) unstable; urgency=low * Use the name 'etherwake', not 'ether-wake' in program messages. (Closes: #342604) * Include wakeonlan in description and recommends. (Closes: #422531) -- Alain Schroeder Mon, 18 Jun 2007 23:13:28 +0200 etherwake (1.09-1) unstable; urgency=low * New upstream release. -- Alain Schroeder Sun, 10 Jul 2005 20:53:02 +0200 etherwake (1.08-1) unstable; urgency=low * New upstream release. - improves help texts - cleans (PF_INET,SOCK_PACKET) problems. (Closes: #171051) * Rename ether-wake.8 to etherwake.8. (Closes: #185134) * Revise the manpage. (Closes: #179290) * Clean my helptext from multiline strings. Thanks to Daniel Schepler . (Closes: #194909) * Bump Standards version to 3.5.10.0. -- Alain Schroeder Fri, 6 Jun 2003 21:02:11 +0200 etherwake (1.06-2) unstable; urgency=low * Revamp description to explain what WOL is. (Closes: #135420) * Revamp manpage a bit. * Bump Standards version to 3.5.6.0. -- Alain Schroeder Sun, 24 Feb 2002 00:45:07 +0100 etherwake (1.06-1) unstable; urgency=low * New upstream release. -- Alain Schroeder Fri, 15 Feb 2002 19:15:07 +0100 etherwake (1.05-6) unstable; urgency=low * Fix etherwake to use sockets correctly - removes "uses obsolete (PF_INET,SOCK_PACKET)" message. (Closes: #111681) -- Alain Schroeder Sat, 22 Dec 2001 21:51:06 +0100 etherwake (1.05-5) unstable; urgency=low * Improve description again. (Closes: #124604) -- Alain Schroeder Sat, 22 Dec 2001 20:22:16 +0100 etherwake (1.05-4) unstable; urgency=low * Fix more typos in description. (Again thanks to Carlos Valdivia Yagüe) -- Alain Schroeder Thu, 10 May 2001 15:55:48 +0200 etherwake (1.05-3) unstable; urgency=low * Fix typo in description. (Closes: #95946) -- Alain Schroeder Tue, 1 May 2001 21:14:41 +0200 etherwake (1.05-2) unstable; urgency=low * Upload with diff. It was incidentally uploaded as a native Debian package. * Fix issues with new libc. The old sys/socket.h did not include bits/uio.h, which it does now. This unfortunately causes that etherwake wasn't build anymore. I just commented specific part as a quick fix for now. It seems that everything works even with the old libc. (Closes #87014) -- Alain Schroeder Fri, 23 Feb 2001 00:27:02 +0100 etherwake (1.05-1) unstable; urgency=low * New upstream release (help was added). * Modify manpage to reflect upstream changes. * Change binary name to original name. -- Alain Schroeder Tue, 20 Feb 2001 11:39:03 +0100 etherwake (1.03-1) unstable; urgency=low * Initial Release. * Add a manpage. * Add a Makefile. -- Alain Schroeder Thu, 7 Dec 2000 10:00:24 +0100 debian/manpages0000644000000000000000000000001412235001355010673 0ustar etherwake.8