]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
etherwake: New package.
authorSchantl Stefan <Stevee@ipfire.org>
Tue, 23 Feb 2010 22:13:17 +0000 (23:13 +0100)
committerSchantl Stefan <Stevee@ipfire.org>
Tue, 23 Feb 2010 22:13:17 +0000 (23:13 +0100)
I had to create a patch for installing ethwake, because /usr/bin/install doesn´t exist in naoki.

pkgs/core/etherwake/etherwake.nm [new file with mode: 0644]
pkgs/core/etherwake/patches/etherwake-1.09-install.patch [new file with mode: 0644]

diff --git a/pkgs/core/etherwake/etherwake.nm b/pkgs/core/etherwake/etherwake.nm
new file mode 100644 (file)
index 0000000..961e405
--- /dev/null
@@ -0,0 +1,54 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include $(PKGROOT)/Include
+
+PKG_NAME       = etherwake
+PKG_VER        = 1.09
+PKG_REL        = 0
+
+PKG_MAINTAINER =
+PKG_GROUP      = Networking/Tools
+PKG_URL        = 
+PKG_LICENSE    = 
+PKG_SUMMARY    = Can wake up sleeping PCs by WOL.
+
+PKG_BUILD_DEPS+=
+
+define PKG_DESCRIPTION
+       A little tool to send magic Wake-on-LAN packets You can wake up WOL \
+       compliant Computers which have been powered down to sleep mode or start \
+       WOL compliant Computers with a BIOS feature.
+endef
+
+PKG_TARBALL    = $(THISAPP).tar.gz
+
+define STAGE_BUILD
+       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
+endef
+
+define STAGE_INSTALL
+       -mkdir -pv $(BUILDROOT)/usr/sbin
+       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
+endef
diff --git a/pkgs/core/etherwake/patches/etherwake-1.09-install.patch b/pkgs/core/etherwake/patches/etherwake-1.09-install.patch
new file mode 100644 (file)
index 0000000..77588eb
--- /dev/null
@@ -0,0 +1,10 @@
+diff -Nur old/Makefile new/Makefile
+--- old/Makefile       2006-06-08 09:14:23.000000000 +0200
++++ new/Makefile       2010-02-23 23:07:09.000000000 +0100
+@@ -1,5 +1,5 @@
+ CFLAGS        = -Wall
+-INSTALL = /usr/bin/install
++INSTALL = install
+ CC    = gcc
+ all: