Fix kmod-nls-* dependency under brcm-2.4
[openwrt.git] / package / util-linux-ng / Makefile
1 #
2 # Copyright (C) 2007 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:=util-linux-ng
11 PKG_VERSION:=2.13.0.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.13
16 PKG_MD5SUM:=c841dc8743905c8f0db20c9db5094f57
17
18 PKG_BUILD_DEPENDS=libblkid libuuid
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/util-linux/Default
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=@!TARGET_etrax
26 URL:=http://www.kernel.org/pub/linux/utils/util-linux-ng/
27 endef
28
29 define Package/fdisk
30 $(call Package/util-linux/Default)
31 TITLE:=Partition table manipulation utility
32 SUBMENU=disc
33 endef
34
35 define Package/fdisk/description
36 This package contains a utility for managing disk partition tables.
37 endef
38
39 define Package/cfdisk
40 $(call Package/util-linux/Default)
41 TITLE:=Partition table manipulation utility
42 DEPENDS:= +libncurses
43 SUBMENU:=disc
44 endef
45
46 define Package/cfdisk/description
47 This package contains a utility for managing disk partition tables.
48 endef
49
50 define Package/losetup
51 $(call Package/util-linux/Default)
52 TITLE:=Loopback devices setup and control utility
53 endef
54
55 define Package/losetup/description
56 This package contains a utility for managing loopback devices.
57 endef
58
59 define Package/mount-utils
60 $(call Package/util-linux/Default)
61 TITLE:=Devices mount/unmounting utilities
62 endef
63
64 define Package/mount-utils/description
65 This package contains utilities to mount/unmount devices.
66 endef
67
68 define Package/swap-utils
69 $(call Package/util-linux/Default)
70 TITLE:=Swap space management utilities
71 SUBMENU:=disc
72 endef
73
74 define Package/swap-utils/description
75 This package contains a collection of tools for managing swap space:
76 - mkswap
77 - swapon
78 - swapoff
79 endef
80
81 define Package/hwclock
82 $(call Package/util-linux/Default)
83 TITLE:=Utilities for managing the hardware clock
84 endef
85
86 define Package/hwclock/description
87 This package contains a utility for managing the hardware clock.
88 endef
89
90 define Build/Compile
91 $(MAKE) -C $(PKG_BUILD_DIR)/disk-utils mkswap
92 $(MAKE) -C $(PKG_BUILD_DIR)/mount swapon losetup umount mount
93 $(MAKE) -C $(PKG_BUILD_DIR)/fdisk fdisk cfdisk
94 $(MAKE) -C $(PKG_BUILD_DIR)/hwclock hwclock
95 endef
96
97 define Package/fdisk/install
98 $(INSTALL_DIR) $(1)/usr/sbin
99 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/fdisk $(1)/usr/sbin/
100 endef
101
102 define Package/cfdisk/install
103 $(INSTALL_DIR) $(1)/usr/sbin
104 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/cfdisk $(1)/usr/sbin/
105 endef
106
107 define Package/losetup/install
108 $(INSTALL_DIR) $(1)/usr/sbin
109 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/losetup $(1)/usr/sbin/
110 endef
111
112 define Package/mount-utils/install
113 $(INSTALL_DIR) $(1)/usr/sbin/
114 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/{u,}mount $(1)/usr/sbin
115 endef
116
117 define Package/swap-utils/install
118 $(INSTALL_DIR) $(1)/usr/sbin
119 $(INSTALL_BIN) $(PKG_BUILD_DIR)/disk-utils/mkswap $(1)/usr/sbin/
120 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/swapon $(1)/usr/sbin/
121 ln -sf swapon $(1)/usr/sbin/swapoff
122 endef
123
124 define Package/hwclock/install
125 $(INSTALL_DIR) $(1)/usr/sbin
126 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hwclock/hwclock $(1)/usr/sbin/
127 endef
128
129 $(eval $(call BuildPackage,fdisk))
130 $(eval $(call BuildPackage,cfdisk))
131 $(eval $(call BuildPackage,losetup))
132 $(eval $(call BuildPackage,mount-utils))
133 $(eval $(call BuildPackage,swap-utils))
134 $(eval $(call BuildPackage,hwclock))
This page took 0.043249 seconds and 5 git commands to generate.