summaryrefslogtreecommitdiff
path: root/package/ether-wake/Makefile
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-10 15:47:29 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-10 15:47:29 +0000
commit31ad0c45dc659b15a127a7a2d4da2dd4e4f68dcb (patch)
tree81ae106c43f0216404982ba6859aa98b7740fabc /package/ether-wake/Makefile
parent518fcb30b85780d9f602f472b972536db09b51b1 (diff)
Add ether-wake package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1595 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ether-wake/Makefile')
-rw-r--r--package/ether-wake/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/ether-wake/Makefile b/package/ether-wake/Makefile
new file mode 100644
index 0000000000..5ebcf46da1
--- /dev/null
+++ b/package/ether-wake/Makefile
@@ -0,0 +1,32 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=ether-wake
+PKG_VERSION:=1.09
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,ETHER_WAKE,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.prepared:
+ mkdir -p $(PKG_BUILD_DIR)
+ cp ./files/$(PKG_NAME).c $(PKG_BUILD_DIR)/
+ $(PATCH) $(PKG_BUILD_DIR) ./patches
+ touch $@
+
+$(PKG_BUILD_DIR)/.configured:
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME).c
+ touch $@
+
+$(IPKG_ETHER_WAKE):
+ install -d -m0755 $(IDIR_ETHER_WAKE)/usr/sbin
+ install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_ETHER_WAKE)/usr/sbin/
+ $(RSTRIP) $(IDIR_ETHER_WAKE)
+ $(IPKG_BUILD) $(IDIR_ETHER_WAKE) $(PACKAGE_DIR)