[package] hotplug2: add platform hotplugging
[openwrt/svn-archive/archive.git] / package / hotplug2 / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=hotplug2
12 PKG_VERSION:=0.9
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://isteve.bofh.cz/~isteve/hotplug2
17 PKG_MD5SUM:=ea2c01d027b4002e4e6b0ff266f51a51
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/hotplug2
22 SECTION:=base
23 CATEGORY:=Base system
24 VERSION:=0.9+r102-$(PKG_RELEASE)
25 TITLE:=Dynamic device management subsystem for embedded systems
26 URL:=http://isteve.bofh.cz/~isteve/hotplug2/
27 endef
28
29 define Package/hotplug2/description
30 Hotplug2 is a trivial replacement of some of the UDev functionality
31 in a tiny pack, intended for Linux early userspace: Init RAM FS and InitRD.
32 endef
33
34 MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) -DHAVE_RULES -I."
35
36 define Package/hotplug2/install
37 $(INSTALL_DIR) $(1)/etc
38 $(INSTALL_DATA) ./files/hotplug2.rules $(1)/etc/
39 $(INSTALL_DIR) $(1)/sbin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hotplug2 $(1)/sbin/
41 endef
42
43 $(eval $(call BuildPackage,hotplug2))