[package] uhttpd:
[openwrt.git] / package / udev / Makefile
1 #
2 # Copyright (C) 2006-2008 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:=udev
11 PKG_VERSION:=142
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/hotplug/
16 PKG_MD5SUM:=3edc4cf383dccb06d866c5156d59ddd5
17
18 include $(INCLUDE_DIR)/package.mk
19
20 PKG_INSTALL=1
21
22 define Package/udev
23 SECTION:=base
24 CATEGORY:=Base system
25 DEPENDS:=@LINUX_2_6
26 TITLE:=Dynamic device management subsystem
27 URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
28 MAINTAINER:=Geoff Levand <geoffrey.levand@am.sony.com>
29 MENU:=1
30 endef
31
32 define Package/udev/description
33 udev allows Linux users to have a dynamic /dev directory and it
34 provides the ability to have persistent device names.
35 endef
36
37 define Package/udev/config
38 source "$(SOURCE)/Config.in"
39 endef
40
41 udev-args-$(CONFIG_UDEV_DISABLE_LOGGING) += --disable-logging
42 udev-args-$(CONFIG_UDEV_ENABLE_DEBUG) += --enable-debug
43
44 CONFIGURE_ARGS += --prefix=/usr --exec-prefix= --sysconfdir=/etc \
45 --sbindir=/sbin $(udev-args-y)
46
47 udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_ata_id) += ata_id
48
49 udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_cdrom_id) += cdrom_id
50 udev-extra-rules-$(CONFIG_UDEV_EXTRA_cdrom_id) += 60-cdrom_id.rules
51
52 udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_collect) += collect
53
54 udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_edd_id) += edd_id
55 udev-extra-rules-$(CONFIG_UDEV_EXTRA_edd_id) += 61-persistent-storage-edd.rules
56
57 udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_firmware) += firmware.sh
58 udev-extra-rules-$(CONFIG_UDEV_EXTRA_firmware) += 50-firmware.rules
59
60 udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_floppy) += create_floppy_devices
61
62 udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_fstab_import) += fstab_import
63 udev-extra-rules-$(CONFIG_UDEV_EXTRA_fstab_import) += 79-fstab_import.rules
64
65 udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_path_id) += path_id
66
67 udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_rule_generator) += \
68 write_cd_rules write_net_rules
69 udev-extra-lib-data-$(CONFIG_UDEV_EXTRA_rule_generator) += \
70 rule_generator.functions
71 udev-extra-rules-$(CONFIG_UDEV_EXTRA_rule_generator) += \
72 75-cd-aliases-generator.rules 75-persistent-net-generator.rules
73
74 udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_scsi_id) += scsi_id
75
76 udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_usb_id) += usb_id
77
78 define Package/udev/install
79 $(INSTALL_DIR) $(1)/etc/udev/rules.d
80 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/udev/udev.conf $(1)/etc/udev
81
82 $(INSTALL_DIR) $(1)/sbin
83 $(INSTALL_BIN) \
84 $(PKG_INSTALL_DIR)/sbin/udevadm \
85 $(PKG_INSTALL_DIR)/sbin/udevd \
86 $(1)/sbin
87
88 $(INSTALL_DIR) $(1)/lib/udev/rules.d
89 $(INSTALL_DATA) \
90 $(addprefix $(PKG_INSTALL_DIR)/lib/udev/rules.d/, \
91 $(udev-extra-rules-y)) \
92 $(addprefix $(PKG_INSTALL_DIR)/lib/udev/rules.d/, \
93 50-udev-default.rules \
94 60-persistent-input.rules \
95 60-persistent-serial.rules \
96 60-persistent-storage.rules \
97 80-drivers.rules \
98 95-udev-late.rules) \
99 $(1)/lib/udev/rules.d
100
101 $(INSTALL_DIR) $(1)/lib
102 $(INSTALL_BIN) \
103 $(PKG_INSTALL_DIR)/lib/libudev.so.* \
104 $(1)/lib
105
106 $(INSTALL_DIR) $(1)/lib/udev
107 ifneq ($(udev-extra-lib-bin-y),)
108 $(INSTALL_BIN) \
109 $(addprefix $(PKG_INSTALL_DIR)/lib/udev/, \
110 $(udev-extra-lib-bin-y)) \
111 $(1)/lib/udev/
112 endif
113 ifneq ($(udev-extra-lib-data-y),)
114 $(INSTALL_DATA) \
115 $(addprefix $(PKG_INSTALL_DIR)/lib/udev/, \
116 $(udev-extra-lib-data-y)) \
117 $(1)/lib/udev/
118 endif
119 endef
120
121 $(eval $(call BuildPackage,udev))
This page took 0.05608 seconds and 5 git commands to generate.