[brcm47xx]: add vlan definitions for Siemens SE505v2
[openwrt.git] / package / hotplug2 / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=hotplug2
11 PKG_REV:=201
12 PKG_VERSION:=$(PKG_REV)
13 PKG_RELEASE:=4
14
15 PKG_SOURCE_PROTO:=svn
16 PKG_SOURCE_VERSION:=$(PKG_REV)
17 PKG_SOURCE_SUBDIR:=hotplug2-$(PKG_VERSION)
18 PKG_SOURCE_URL:=http://svn.nomi.cz/svn/isteve/hotplug2
19 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
20 #PKG_SOURCE_URL:=http://isteve.bofh.cz/~isteve/hotplug2
21 #PKG_MD5SUM:=ea2c01d027b4002e4e6b0ff266f51a51
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/hotplug2
26 SECTION:=base
27 CATEGORY:=Base system
28 VERSION:=1.0-beta-$(PKG_RELEASE)
29 TITLE:=Version 1.0 Dynamic device management subsystem for embedded systems
30 URL:=http://isteve.bofh.cz/~isteve/hotplug2/
31 DEPENDS:=+!USE_UCLIBC:libbsd
32 endef
33
34 define Package/hotplug2/description
35 Hotplug2 is a trivial replacement of some of the UDev functionality
36 in a tiny pack, intended for Linux early userspace: Init RAM FS and InitRD.
37 This is an implementation of Hotplug2-1.0-beta
38 endef
39
40 define Package/hotplug2/conffiles
41 /etc/hotplug2.rules
42 endef
43
44 MAKE_FLAGS += \
45 COPTS="$(TARGET_CFLAGS)" \
46 STATIC_WORKER="fork"
47
48 ifneq ($(CONFIG_USE_EGLIBC)$(CONFIG_USE_GLIBC),)
49 TARGET_LDFLAGS += -lbsd
50 endif
51
52 define Build/Compile
53 $(call Build/Compile/Default)
54 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o $(PKG_BUILD_DIR)/udevtrigger src/udevtrigger.c
55 endef
56
57 define Package/hotplug2/install
58 $(INSTALL_DIR) $(1)/etc
59 $(INSTALL_DATA) ./files/hotplug2.rules $(1)/etc/
60 $(INSTALL_DIR) $(1)/sbin
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/udevtrigger $(1)/sbin/
62 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hotplug2 $(1)/sbin/
63 endef
64
65 $(eval $(call BuildPackage,hotplug2))
This page took 0.043826 seconds and 5 git commands to generate.