summaryrefslogtreecommitdiffstats
path: root/package/unvram/Makefile
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-04-27 12:57:29 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-04-27 12:57:29 +0000
commita5de2f131a7d4f0b9cfa3c2d827e76ae12afb328 (patch)
tree1616eaf105d38ff779f2eead8d7406ab999d030b /package/unvram/Makefile
parent70fef03e199be882e2d2596fe538ac26f3081665 (diff)
[package] unvram: rename executable to "nvram" and place it in /usr/sbin, add fixup init script from old nvram package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15435 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/unvram/Makefile')
-rw-r--r--package/unvram/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/package/unvram/Makefile b/package/unvram/Makefile
index c62873e6f..fa8f66175 100644
--- a/package/unvram/Makefile
+++ b/package/unvram/Makefile
@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=unvram
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
@@ -18,6 +18,7 @@ define Package/unvram
SECTION:=utils
CATEGORY:=Base system
TITLE:=Userspace port of the Broadcom NVRAM manipulation tool
+ DEPENDS:=@TARGET_brcm_2_4||@TARGET_brcm47xx
endef
define Package/unvram/description
@@ -41,8 +42,10 @@ define Build/Compile
endef
define Package/unvram/install
- $(INSTALL_DIR) $(1)/sbin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/unvram $(1)/sbin/
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libnvram.so.0.1 $(1)/usr/lib/
endef