projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wol: Add a init script and a UCI configuration file
[openwrt/svn-archive/archive.git]
/
net
/
wol
/
Makefile
diff --git
a/net/wol/Makefile
b/net/wol/Makefile
index fe8616cdcd297dcc89a6d06add6d3bd506ee80b8..c8be97ee0a0b053b5460de02f3435a9a162a52c8 100644
(file)
--- a/
net/wol/Makefile
+++ b/
net/wol/Makefile
@@
-10,7
+10,7
@@
include $(TOPDIR)/rules.mk
PKG_NAME:=wol
PKG_VERSION:=0.7.1
PKG_NAME:=wol
PKG_VERSION:=0.7.1
-PKG_RELEASE:=
1
+PKG_RELEASE:=
2
PKG_SOURCE_URL:=@SF/ahh
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/ahh
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
@@
-40,6
+40,10
@@
CONFIGURE_VARS += \
define Package/wol/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/
define Package/wol/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(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,wol))
endef
$(eval $(call BuildPackage,wol))