enable nvram utility by default
[openwrt.git] / package / nvram / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=nvram
12 PKG_RELEASE:=1
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/nvram
19 SECTION:=utils
20 CATEGORY:=Utilities
21 DEFAULT:=y
22 DEPENDS:=@LINUX_2_4_BRCM
23 TITLE:=Broadcom config utility
24 DESCRIPTION:=\
25 This package contains an utility to control broadcom's 'nvram' config \\\
26 area.
27 endef
28
29 define Build/Prepare
30 mkdir -p $(PKG_BUILD_DIR)
31 $(CP) ./src/* $(PKG_BUILD_DIR)
32 endef
33
34 define Build/InstallDev
35 mkdir -p $(STAGING_DIR)/usr/lib
36 $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(STAGING_DIR)/usr/lib/
37 endef
38
39 define Build/UninstallDev
40 rm -f $(STAGING_DIR)/usr/lib/lib{nvram,shared}*.so
41 endef
42
43 define Package/nvram/install
44 install -d -m0755 $(1)/usr/lib
45 $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(1)/usr/lib/
46 install -d -m0755 $(1)/usr/sbin
47 install -m0755 $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
48 endef
49
50 $(eval $(call BuildPackage,nvram))
This page took 0.043506 seconds and 5 git commands to generate.