2 # Copyright (C) 2007-2012 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@KERNEL
/linux
/utils
/$(PKG_NAME
)/v2.20
16 PKG_MD5SUM
:=fcd18041c5390178b1aadc2fd298bee8
19 PKG_BUILD_DEPENDS
=e2fsprogs libncurses
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/util-linux
/Default
26 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/util-linux
/
30 scanf_cv_type_modifier
="ms"
37 $(call Package
/util-linux
/Default
)
39 TITLE
:=Partition table manipulation utility
43 define Package
/cfdisk
/description
44 This package contains a utility for managing disk partition tables.
48 $(call Package
/util-linux
/Default
)
49 TITLE
:=Partition table manipulation utility
53 define Package
/fdisk
/description
54 This package contains a utility for managing disk partition tables.
58 $(call Package
/util-linux
/Default
)
59 TITLE
:=Partition table manipulation utility
(Command-line
)
63 define Package
/sfdisk
/description
64 This package contains a utility for managing disk partition tables using command-line only.
68 $(call Package
/util-linux
/Default
)
69 TITLE
:=Tool for parsing command parameters
72 define Package
/getopt
/description
73 getopt is a program to help
shell scripts parse command-line parameters.
76 define Package
/hwclock
77 $(call Package
/util-linux
/Default
)
78 TITLE
:=Utilities for managing the hardware clock
81 define Package
/hwclock
/description
82 This package contains a utility for managing the hardware clock.
85 define Package
/losetup
86 $(call Package
/util-linux
/Default
)
87 TITLE
:=Loopback devices setup and control utility
90 define Package
/losetup
/description
91 This package contains a utility for managing loopback devices.
94 define Package
/swap-utils
95 $(call Package
/util-linux
/Default
)
97 TITLE
:=Swap space management utilities
98 DEPENDS
+= +libblkid
+libuuid
101 define Package
/swap-utils
/description
102 This package contains a collection of tools for managing swap space
:
108 define Package
/mount-utils
109 $(call Package
/util-linux
/Default
)
110 TITLE
:=Devices mount
/unmounting utilities
111 DEPENDS
+= +libblkid
+libuuid
114 define Package
/mount-utils
/description
115 This package contains utilities to mount
/unmount devices.
119 $(call Package
/util-linux
/Default
)
120 TITLE
:=Manage file locks from
shell scripts
123 define Package
/flock
/description
124 This package contains a utility for managing file locks from
shell scripts.
127 define Package
/setterm
128 $(call Package
/util-linux
/Default
)
129 TITLE
:=Tool for setting terminal attributes
131 DEPENDS
:= +libncurses
134 define Package
/setterm
/description
135 This package contains a utility for setting terminal attributes.
138 define Package
/script
139 $(call Package
/util-linux
/Default
)
140 TITLE
:=Make typescript of terminal session
144 define Package
/script
/description
145 Script makes a typescript of everything printed on your terminal.
149 $(MAKE
) -C
$(PKG_BUILD_DIR
)/disk-utils mkswap
150 $(MAKE
) -C
$(PKG_BUILD_DIR
)/fdisk cfdisk fdisk sfdisk
151 $(MAKE
) -C
$(PKG_BUILD_DIR
)/getopt getopt
152 $(MAKE
) -C
$(PKG_BUILD_DIR
)/hwclock hwclock
153 $(MAKE
) -C
$(PKG_BUILD_DIR
)/mount losetup mount swapon umount
154 $(MAKE
) -C
$(PKG_BUILD_DIR
)/sys-utils flock
155 $(MAKE
) -C
$(PKG_BUILD_DIR
)/term-utils setterm script
158 define Package
/cfdisk
/install
159 $(INSTALL_DIR
) $(1)/sbin
160 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fdisk
/cfdisk
$(1)/sbin
/
163 define Package
/fdisk
/install
164 $(INSTALL_DIR
) $(1)/sbin
165 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fdisk
/fdisk
$(1)/sbin
/
168 define Package
/sfdisk
/install
169 $(INSTALL_DIR
) $(1)/usr
/sbin
170 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fdisk
/sfdisk
$(1)/usr
/sbin
/
173 define Package
/getopt
/install
174 $(INSTALL_DIR
) $(1)/usr
/bin
175 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/getopt
/getopt
$(1)/usr
/bin
/
178 define Package
/hwclock
/install
179 $(INSTALL_DIR
) $(1)/sbin
180 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/hwclock
/hwclock
$(1)/sbin
/
183 define Package
/losetup
/install
184 $(INSTALL_DIR
) $(1)/sbin
185 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mount
/losetup
$(1)/sbin
/
188 define Package
/swap-utils
/install
189 $(INSTALL_DIR
) $(1)/sbin
190 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/disk-utils
/mkswap
$(PKG_BUILD_DIR
)/mount
/swapon
$(1)/sbin
/
191 ln
-sf swapon
$(1)/sbin
/swapoff
194 define Package
/mount-utils
/install
195 $(INSTALL_DIR
) $(1)/bin
/
196 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mount
/{u
,}mount
$(1)/bin
199 define Package
/flock
/install
200 $(INSTALL_DIR
) $(1)/usr
/bin
201 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/sys-utils
/flock
$(1)/usr
/bin
/
204 define Package
/setterm
/install
205 $(INSTALL_DIR
) $(1)/usr
/bin
206 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/term-utils
/setterm
$(1)/usr
/bin
/
209 define Package
/script
/install
210 $(INSTALL_DIR
) $(1)/usr
/bin
211 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/term-utils
/script
$(1)/usr
/bin
/
214 $(eval
$(call BuildPackage
,cfdisk
))
215 $(eval
$(call BuildPackage
,fdisk
))
216 $(eval
$(call BuildPackage
,sfdisk
))
217 $(eval
$(call BuildPackage
,getopt
))
218 $(eval
$(call BuildPackage
,hwclock
))
219 $(eval
$(call BuildPackage
,losetup
))
220 $(eval
$(call BuildPackage
,swap-utils
))
221 $(eval
$(call BuildPackage
,mount-utils
))
222 $(eval
$(call BuildPackage
,flock
))
223 $(eval
$(call BuildPackage
,setterm
))
224 $(eval
$(call BuildPackage
,script
))