credit where credit is due
[openwrt-10.03/.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:=base
20 DEPENDS:=@LINUX_2_4_BRCM
21 TITLE:=Broadcom config utility
22 DESCRIPTION:=control utility for broadcom's 'nvram' config area
23 endef
24
25 define Build/Prepare
26         mkdir -p $(PKG_BUILD_DIR)
27         $(CP) ./src/* $(PKG_BUILD_DIR)
28 endef
29
30 define Package/nvram/install
31         install -d -m0755 $(1)/usr/lib
32         $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(1)/usr/lib/
33         install -d -m0755 $(1)/usr/sbin
34         install -m0755 $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
35 endef
36
37 define Build/InstallDev
38         mkdir -p $(STAGING_DIR)/usr/lib
39         $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(STAGING_DIR)/usr/lib/
40 endef
41
42 define Build/UninstallDev
43         rm -f $(STAGING_DIR)/usr/lib/lib{nvram,shared}*.so
44 endef
45
46 $(eval $(call BuildPackage,nvram))