[package] add uci support to etherwake, patch from Matthias Buecher (#6025)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20321 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -1,14 +1,15 @@
|
||||
#
|
||||
# Copyright (C) 2007 OpenWrt.org
|
||||
# Copyright (C) 2007-2009 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=etherwake
|
||||
PKG_VERSION:=1.09
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
|
||||
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/etherwake
|
||||
@ -21,7 +22,7 @@ include $(INCLUDE_DIR)/package.mk
|
||||
define Package/etherwake
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=A little tool to send magic Wake-on-LAN packets
|
||||
TITLE:=WoL client for magic packets via ethernet frames
|
||||
URL:=http://ftp.debian.org/debian/pool/main/e/etherwake
|
||||
endef
|
||||
|
||||
@ -40,6 +41,10 @@ endef
|
||||
define Package/etherwake/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/etherwake $(1)/usr/bin/
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_DATA) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,etherwake))
|
||||
|
Reference in New Issue
Block a user