2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=util-linux-ng
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@KERNEL
/linux
/utils
/$(PKG_NAME
)/v2.13
16 PKG_MD5SUM
:=c841dc8743905c8f0db20c9db5094f57
18 PKG_BUILD_DEPENDS
=e2fsprogs
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/util-linux
/Default
25 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/util-linux-ng
/
29 $(call Package
/util-linux
/Default
)
30 TITLE
:=Partition table manipulation utility
34 define Package
/fdisk
/description
35 This package contains a utility for managing disk partition tables.
39 $(call Package
/util-linux
/Default
)
41 TITLE
:=Partition table manipulation utility
45 define Package
/cfdisk
/description
46 This package contains a utility for managing disk partition tables.
50 $(call Package
/util-linux
/Default
)
51 TITLE
:=Partition table manipulation utility
(Command-line
)
55 define Package
/sfdisk
/description
56 This package contains a utility for managing disk partition tables using command-line only.
59 define Package
/losetup
60 $(call Package
/util-linux
/Default
)
61 TITLE
:=Loopback devices setup and control utility
64 define Package
/losetup
/description
65 This package contains a utility for managing loopback devices.
68 define Package
/mount-utils
69 $(call Package
/util-linux
/Default
)
70 TITLE
:=Devices mount
/unmounting utilities
71 DEPENDS
+= +libblkid
+libuuid
74 define Package
/mount-utils
/description
75 This package contains utilities to mount
/unmount devices.
78 define Package
/swap-utils
79 $(call Package
/util-linux
/Default
)
81 TITLE
:=Swap space management utilities
82 DEPENDS
+= +libblkid
+libuuid
85 define Package
/swap-utils
/description
86 This package contains a collection of tools for managing swap space
:
92 define Package
/hwclock
93 $(call Package
/util-linux
/Default
)
94 TITLE
:=Utilities for managing the hardware clock
97 define Package
/hwclock
/description
98 This package contains a utility for managing the hardware clock.
102 $(call Package
/util-linux
/Default
)
103 TITLE
:=Manage file locks from
shell scripts
106 define Package
/flock
/description
107 This package contains a utility for managing file locks from
shell scripts.
110 define Package
/setterm
111 $(call Package
/util-linux
/Default
)
112 TITLE
:=Tool for setting terminal attributes
114 DEPENDS
:= +libncurses
117 define Package
/setterm
/description
118 This package contains a utility for setting terminal attributes
123 $(MAKE
) -C
$(PKG_BUILD_DIR
)/disk-utils mkswap
124 $(MAKE
) -C
$(PKG_BUILD_DIR
)/mount swapon losetup umount mount
125 $(MAKE
) -C
$(PKG_BUILD_DIR
)/fdisk fdisk cfdisk sfdisk
126 $(MAKE
) -C
$(PKG_BUILD_DIR
)/hwclock hwclock
127 $(MAKE
) -C
$(PKG_BUILD_DIR
)/sys-utils flock
128 $(MAKE
) -C
$(PKG_BUILD_DIR
)/misc-utils setterm
131 define Package
/fdisk
/install
132 $(INSTALL_DIR
) $(1)/sbin
133 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fdisk
/fdisk
$(1)/sbin
/
136 define Package
/cfdisk
/install
137 $(INSTALL_DIR
) $(1)/sbin
138 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fdisk
/cfdisk
$(1)/sbin
/
141 define Package
/sfdisk
/install
142 $(INSTALL_DIR
) $(1)/usr
/sbin
143 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fdisk
/sfdisk
$(1)/usr
/sbin
/
146 define Package
/losetup
/install
147 $(INSTALL_DIR
) $(1)/sbin
148 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mount
/losetup
$(1)/sbin
/
151 define Package
/mount-utils
/install
152 $(INSTALL_DIR
) $(1)/bin
/
153 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mount
/{u
,}mount
$(1)/bin
156 define Package
/swap-utils
/install
157 $(INSTALL_DIR
) $(1)/sbin
158 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/disk-utils
/mkswap
$(PKG_BUILD_DIR
)/mount
/swapon
$(1)/sbin
/
159 ln
-sf swapon
$(1)/sbin
/swapoff
162 define Package
/hwclock
/install
163 $(INSTALL_DIR
) $(1)/sbin
164 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/hwclock
/hwclock
$(1)/sbin
/
167 define Package
/flock
/install
168 $(INSTALL_DIR
) $(1)/usr
/bin
169 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/sys-utils
/flock
$(1)/usr
/bin
/
172 define Package
/setterm
/install
173 $(INSTALL_DIR
) $(1)/usr
/bin
174 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/misc-utils
/setterm
$(1)/usr
/bin
/
178 $(eval
$(call BuildPackage
,fdisk
))
179 $(eval
$(call BuildPackage
,cfdisk
))
180 $(eval
$(call BuildPackage
,sfdisk
))
181 $(eval
$(call BuildPackage
,losetup
))
182 $(eval
$(call BuildPackage
,mount-utils
))
183 $(eval
$(call BuildPackage
,swap-utils
))
184 $(eval
$(call BuildPackage
,hwclock
))
185 $(eval
$(call BuildPackage
,flock
))
186 $(eval
$(call BuildPackage
,setterm
))