mac80211: various wds related fixes
[openwrt.git] / package / util-linux-ng / Makefile
1 #
2 # Copyright (C) 2007-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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=util-linux-ng
11 PKG_VERSION:=2.13.0.1
12 PKG_RELEASE:=3
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=e2fsprogs
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/util-linux/Default
23 SECTION:=utils
24 CATEGORY:=Utilities
25 URL:=http://www.kernel.org/pub/linux/utils/util-linux-ng/
26 endef
27
28 define Package/fdisk
29 $(call Package/util-linux/Default)
30 TITLE:=Partition table manipulation utility
31 SUBMENU=disc
32 endef
33
34 define Package/fdisk/description
35 This package contains a utility for managing disk partition tables.
36 endef
37
38 define Package/cfdisk
39 $(call Package/util-linux/Default)
40 SUBMENU:=disc
41 TITLE:=Partition table manipulation utility
42 DEPENDS:= +libncurses
43 endef
44
45 define Package/cfdisk/description
46 This package contains a utility for managing disk partition tables.
47 endef
48
49 define Package/sfdisk
50 $(call Package/util-linux/Default)
51 TITLE:=Partition table manipulation utility (Command-line)
52 SUBMENU=disc
53 endef
54
55 define Package/sfdisk/description
56 This package contains a utility for managing disk partition tables using command-line only.
57 endef
58
59 define Package/losetup
60 $(call Package/util-linux/Default)
61 TITLE:=Loopback devices setup and control utility
62 endef
63
64 define Package/losetup/description
65 This package contains a utility for managing loopback devices.
66 endef
67
68 define Package/mount-utils
69 $(call Package/util-linux/Default)
70 TITLE:=Devices mount/unmounting utilities
71 DEPENDS+= +libblkid +libuuid
72 endef
73
74 define Package/mount-utils/description
75 This package contains utilities to mount/unmount devices.
76 endef
77
78 define Package/swap-utils
79 $(call Package/util-linux/Default)
80 SUBMENU:=disc
81 TITLE:=Swap space management utilities
82 DEPENDS+= +libblkid +libuuid
83 endef
84
85 define Package/swap-utils/description
86 This package contains a collection of tools for managing swap space:
87 - mkswap
88 - swapon
89 - swapoff
90 endef
91
92 define Package/hwclock
93 $(call Package/util-linux/Default)
94 TITLE:=Utilities for managing the hardware clock
95 endef
96
97 define Package/hwclock/description
98 This package contains a utility for managing the hardware clock.
99 endef
100
101 define Package/flock
102 $(call Package/util-linux/Default)
103 TITLE:=Manage file locks from shell scripts
104 endef
105
106 define Package/flock/description
107 This package contains a utility for managing file locks from shell scripts.
108 endef
109
110 define Build/Compile
111 $(MAKE) -C $(PKG_BUILD_DIR)/disk-utils mkswap
112 $(MAKE) -C $(PKG_BUILD_DIR)/mount swapon losetup umount mount
113 $(MAKE) -C $(PKG_BUILD_DIR)/fdisk fdisk cfdisk sfdisk
114 $(MAKE) -C $(PKG_BUILD_DIR)/hwclock hwclock
115 $(MAKE) -C $(PKG_BUILD_DIR)/sys-utils flock
116 endef
117
118 define Package/fdisk/install
119 $(INSTALL_DIR) $(1)/sbin
120 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/fdisk $(1)/sbin/
121 endef
122
123 define Package/cfdisk/install
124 $(INSTALL_DIR) $(1)/sbin
125 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/cfdisk $(1)/sbin/
126 endef
127
128 define Package/sfdisk/install
129 $(INSTALL_DIR) $(1)/usr/sbin
130 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/sfdisk $(1)/usr/sbin/
131 endef
132
133 define Package/losetup/install
134 $(INSTALL_DIR) $(1)/sbin
135 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/losetup $(1)/sbin/
136 endef
137
138 define Package/mount-utils/install
139 $(INSTALL_DIR) $(1)/bin/
140 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/{u,}mount $(1)/bin
141 endef
142
143 define Package/swap-utils/install
144 $(INSTALL_DIR) $(1)/sbin
145 $(INSTALL_BIN) $(PKG_BUILD_DIR)/disk-utils/mkswap $(PKG_BUILD_DIR)/mount/swapon $(1)/sbin/
146 ln -sf swapon $(1)/sbin/swapoff
147 endef
148
149 define Package/hwclock/install
150 $(INSTALL_DIR) $(1)/sbin
151 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hwclock/hwclock $(1)/sbin/
152 endef
153
154 define Package/flock/install
155 $(INSTALL_DIR) $(1)/usr/bin
156 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sys-utils/flock $(1)/usr/bin/
157 endef
158
159 $(eval $(call BuildPackage,fdisk))
160 $(eval $(call BuildPackage,cfdisk))
161 $(eval $(call BuildPackage,sfdisk))
162 $(eval $(call BuildPackage,losetup))
163 $(eval $(call BuildPackage,mount-utils))
164 $(eval $(call BuildPackage,swap-utils))
165 $(eval $(call BuildPackage,hwclock))
166 $(eval $(call BuildPackage,flock))
This page took 0.048241 seconds and 5 git commands to generate.