Makefile 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. #
  2. # Copyright (C) 2007-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=util-linux
  9. PKG_VERSION:=2.30.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.30
  13. PKG_HASH:=1be4363a91ac428c9e43fc04dc6d2c66a19ec1e36f1105bd4b481540be13b841
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_LICENSE_FILES:= COPYING \
  16. getopt/COPYING \
  17. libblkid/COPYING \
  18. libmount/COPYING \
  19. Documentation/licenses/COPYING.GPLv2 \
  20. Documentation/licenses/COPYING.LGPLv2.1 \
  21. libuuid/COPYING \
  22. Documentation/licenses/COPYING.BSD-3
  23. PKG_BUILD_PARALLEL:=1
  24. PKG_FIXUP:=autoreconf
  25. PKG_INSTALL:=1
  26. DISABLE_NLS:=--disable-nls
  27. include $(INCLUDE_DIR)/package.mk
  28. define Package/util-linux/Default
  29. SECTION:=utils
  30. CATEGORY:=Utilities
  31. DEPENDS:= +librt
  32. URL:=http://www.kernel.org/pub/linux/utils/util-linux/
  33. endef
  34. define Package/libblkid
  35. $(call Package/util-linux/Default)
  36. DEPENDS:=+libuuid
  37. TITLE:=block device id library
  38. SECTION:=libs
  39. CATEGORY:=Libraries
  40. endef
  41. define Package/libblkid/description
  42. The libblkid library is used to identify block devices (disks) as to their
  43. content (e.g. filesystem type, partitions) as well as extracting additional
  44. information such as filesystem labels/volume names, partitions, unique
  45. identifiers/serial numbers...
  46. endef
  47. define Package/libfdisk
  48. $(call Package/util-linux/Default)
  49. DEPENDS:=+libuuid +libblkid
  50. TITLE:=partition manipulating library
  51. SECTION:=libs
  52. CATEGORY:=Libraries
  53. endef
  54. define Package/libfdisk/description
  55. The libfdisk library is used for manipulating with partition tables.
  56. endef
  57. define Package/libmount
  58. $(call Package/util-linux/Default)
  59. DEPENDS:=+libblkid
  60. TITLE:=mount library
  61. SECTION:=libs
  62. CATEGORY:=Libraries
  63. endef
  64. define Package/libmount/description
  65. The libmount library is used to parse /etc/fstab, /etc/mtab and
  66. /proc/self/mountinfo files, manage the mtab file, evaluate mount options...
  67. endef
  68. define Package/libuuid
  69. $(call Package/util-linux/Default)
  70. TITLE:=DCE compatible Universally Unique Identifier library
  71. SECTION:=libs
  72. CATEGORY:=Libraries
  73. endef
  74. define Package/libuuid/description
  75. The UUID library is used to generate unique identifiers for objects
  76. that may be accessible beyond the local system. This library
  77. generates UUIDs compatible with those created by the Open Software
  78. Foundation (OSF) Distributed Computing Environment (DCE) utility.
  79. endef
  80. define Package/libsmartcols
  81. $(call Package/util-linux/Default)
  82. TITLE:=table or tree library
  83. SECTION:=libs
  84. CATEGORY:=Libraries
  85. endef
  86. define Package/libsmartcols/description
  87. The smartcols library is used to print tables and trees in a pretty way.
  88. endef
  89. define Package/agetty
  90. $(call Package/util-linux/Default)
  91. TITLE:=alternative Linux getty
  92. SUBMENU=Terminal
  93. endef
  94. define Package/agetty/description
  95. agetty opens a tty port, prompts for a login name and invokes the
  96. /bin/login command
  97. endef
  98. define Package/blkdiscard
  99. $(call Package/util-linux/Default)
  100. TITLE:=discard sectors on a device
  101. SUBMENU=Disc
  102. endef
  103. define Package/blkdiscard/description
  104. The blkdiscard is used to discard device sectors. This is useful for
  105. solid-state drivers (SSDs) and thinly-provisioned storage. Unlike fstrim,
  106. this command is used directly on the block device.
  107. endef
  108. define Package/blkid
  109. $(call Package/util-linux/Default)
  110. TITLE:=locate and print block device attributes
  111. DEPENDS:= +libblkid +libuuid
  112. SUBMENU=Disc
  113. endef
  114. define Package/blkid/description
  115. The blkid program is the command-line interface to working with the libblkid
  116. library.
  117. endef
  118. define Package/cal
  119. $(call Package/util-linux/Default)
  120. TITLE:=display a calendar
  121. DEPENDS:= +libncurses
  122. endef
  123. define Package/cal/description
  124. cal displays a simple calendar
  125. endef
  126. define Package/cfdisk
  127. $(call Package/util-linux/Default)
  128. TITLE:=display or manipulate disk partition table
  129. DEPENDS:= +libblkid +libncurses +libsmartcols +libfdisk +libmount
  130. SUBMENU:=Disc
  131. endef
  132. define Package/cfdisk/description
  133. cfdisk is a curses-based program for partitioning any hard disk drive
  134. endef
  135. define Package/dmesg
  136. $(call Package/util-linux/Default)
  137. TITLE:=print or control the kernel ring buffer
  138. DEPENDS:= +libncursesw
  139. endef
  140. define Package/dmesg/description
  141. dmesg is used to examine or control the kernel ring buffer
  142. endef
  143. define Package/fdisk
  144. $(call Package/util-linux/Default)
  145. TITLE:=manipulate disk partition table
  146. DEPENDS:= +libblkid +libsmartcols +libfdisk +libncursesw
  147. SUBMENU=Disc
  148. endef
  149. define Package/fdisk/description
  150. a menu-driven program for creation and manipulation of partition tables
  151. endef
  152. define Package/findfs
  153. $(call Package/util-linux/Default)
  154. TITLE:=find a filesystem by label or UUID
  155. DEPENDS:= +libblkid
  156. SUBMENU=Disc
  157. endef
  158. define Package/findfs/description
  159. findfs will search the disks in the system looking for a filesystem which has
  160. a label matching label or a UUID equal to uuid
  161. endef
  162. define Package/flock
  163. $(call Package/util-linux/Default)
  164. TITLE:=manage locks from shell scripts
  165. endef
  166. define Package/flock/description
  167. manages flock locks from within shell scripts or the command line
  168. endef
  169. define Package/getopt
  170. $(call Package/util-linux/Default)
  171. TITLE:=parse command options (enhanced)
  172. endef
  173. define Package/getopt/description
  174. getopt is used to break up (parse) options in command lines for easy parsing
  175. by shell procedures, and to check for legal options
  176. endef
  177. define Package/hwclock
  178. $(call Package/util-linux/Default)
  179. TITLE:=query or set the hardware clock
  180. endef
  181. define Package/hwclock/description
  182. hwclock is a tool for accessing the Hardware Clock
  183. endef
  184. define Package/logger
  185. $(call Package/util-linux/Default)
  186. TITLE:=a shell command interface to the syslog system log module
  187. endef
  188. define Package/logger/description
  189. logger makes entries in the system log, it provides a shell command interface
  190. to the syslog system log module
  191. endef
  192. define Package/look
  193. $(call Package/util-linux/Default)
  194. TITLE:=display lines beginning with a given string
  195. endef
  196. define Package/look/description
  197. look utility displays any lines in file which contain string
  198. endef
  199. define Package/losetup
  200. $(call Package/util-linux/Default)
  201. TITLE:=set up and control loop devices
  202. DEPENDS:= +libsmartcols
  203. endef
  204. define Package/losetup/description
  205. losetup is used to associate loop devices with regular files or block devices,
  206. to detach loop devices and to query the status of a loop device
  207. endef
  208. define Package/lsblk
  209. $(call Package/util-linux/Default)
  210. TITLE:=list block devices
  211. DEPENDS:= +libblkid +libmount +libsmartcols
  212. SUBMENU=Disc
  213. endef
  214. define Package/lsblk/description
  215. lsblk lists information about all or the specified block devices
  216. endef
  217. define Package/mcookie
  218. $(call Package/util-linux/Default)
  219. TITLE:=generate magic cookies for xauth
  220. endef
  221. define Package/mcookie/description
  222. mcookie generates a 128-bit random hexadecimal number for use with the X
  223. authority system
  224. endef
  225. define Package/mount-utils
  226. $(call Package/util-linux/Default)
  227. TITLE:=related (u)mount utilities
  228. DEPENDS+= +libmount +libsmartcols
  229. endef
  230. define Package/mount-utils/description
  231. contains: mount, umount, findmnt
  232. endef
  233. define Package/namei
  234. $(call Package/util-linux/Default)
  235. TITLE:=follow a pathname until a terminal point is found
  236. endef
  237. define Package/namei/description
  238. namei uses its arguments as pathnames to any type of Unix file (symlinks,
  239. files, directories, and so forth)
  240. endef
  241. define Package/prlimit
  242. $(call Package/util-linux/Default)
  243. TITLE:=get and set process resource limits
  244. DEPENDS:= +libsmartcols
  245. endef
  246. define Package/prlimit/description
  247. Given a process id and one or more resources, prlimit tries to retrieve
  248. and/or modify the limits.
  249. endef
  250. define Package/rename
  251. $(call Package/util-linux/Default)
  252. TITLE:=rename files
  253. endef
  254. define Package/rename/description
  255. rename will rename the specified files by replacing the first occurrence of
  256. expression in their name by replacement
  257. endef
  258. define Package/partx-utils
  259. $(call Package/util-linux/Default)
  260. TITLE:=inform kernel about the presence and numbering of on-disk partitions
  261. DEPENDS:= +libblkid +libsmartcols
  262. SUBMENU=Disc
  263. endef
  264. define Package/partx-utils/description
  265. contains partx, addpart, delpart
  266. endef
  267. define Package/script-utils
  268. $(call Package/util-linux/Default)
  269. TITLE:=make and replay typescript of terminal session
  270. SUBMENU=Terminal
  271. endef
  272. define Package/script-utils/description
  273. contains: script, scriptreplay
  274. endef
  275. define Package/setterm
  276. $(call Package/util-linux/Default)
  277. TITLE:=set terminal attributes
  278. DEPENDS:= +libncurses
  279. SUBMENU:=Terminal
  280. endef
  281. define Package/setterm/description
  282. setterm writes to standard output a character string that will invoke the
  283. specified terminal capabilities
  284. endef
  285. define Package/sfdisk
  286. $(call Package/util-linux/Default)
  287. TITLE:=partition table manipulator for Linux
  288. SUBMENU=Disc
  289. DEPENDS:= +libblkid +libfdisk +libsmartcols +libncursesw
  290. endef
  291. define Package/sfdisk/description
  292. list the size of a partition, list the partitions on a device, check the
  293. partitions on a device and repartition a device
  294. endef
  295. define Package/swap-utils
  296. $(call Package/util-linux/Default)
  297. TITLE:=swap space management utilities
  298. DEPENDS+= +libblkid
  299. SUBMENU:=Filesystem
  300. endef
  301. define Package/swap-utils/description
  302. contains: mkswap, swaplabel
  303. endef
  304. define Package/uuidd
  305. $(call Package/util-linux/Default)
  306. TITLE:=UUID generation daemon
  307. DEPENDS:= +libuuid
  308. endef
  309. define Package/uuidd/description
  310. The uuidd daemon is used by the UUID library to generate universally unique
  311. identifiers (UUIDs), especially time-based UUIDs, in a secure and
  312. guaranteed-unique fashion, even in the face of large numbers of threads
  313. running on different CPUs trying to grab UUIDs.
  314. endef
  315. define Package/uuidgen
  316. $(call Package/util-linux/Default)
  317. TITLE:=create a new UUID value
  318. DEPENDS:= +libuuid
  319. endef
  320. define Package/uuidgen/description
  321. The uuidgen program creates (and prints) a new universally unique identifier
  322. (UUID) using the libuuid library. The new UUID can reasonably be considered
  323. unique among all UUIDs created on the local system, and among UUIDs created on
  324. other systems in the past and in the future.
  325. endef
  326. define Package/wall
  327. $(call Package/util-linux/Default)
  328. TITLE:=send a message to everybody's terminal
  329. SUBMENU=Terminal
  330. endef
  331. define Package/wall/description
  332. wall sends a message to everybody logged in with their mesg permission
  333. set to yes
  334. endef
  335. define Package/whereis
  336. $(call Package/util-linux/Default)
  337. TITLE:=locate the binary, source, and manual page files for a command
  338. endef
  339. define Package/whereis/description
  340. whereis locates source/binary and manuals sections for specified files
  341. endef
  342. define Package/wipefs
  343. $(call Package/util-linux/Default)
  344. TITLE:=wipe a signature from a device
  345. DEPENDS:= +libblkid
  346. SUBMENU:=Disc
  347. endef
  348. define Package/wipefs/description
  349. wipefs can erase filesystem, raid or partition table signatures (magic
  350. strings) from the specified device to make the signature invisible for
  351. libblkid.
  352. endef
  353. CONFIGURE_ARGS += \
  354. --disable-use-tty-group \
  355. --disable-rpath \
  356. --disable-tls \
  357. --disable-sulogin \
  358. --without-python \
  359. --without-udev \
  360. --without-readline \
  361. --disable-more \
  362. --with-ncursesw
  363. TARGET_CFLAGS += $(FPIC) -std=gnu99
  364. define Build/InstallDev
  365. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  366. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
  367. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
  368. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
  369. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
  370. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
  371. $(INSTALL_DIR) $(1)/usr/include/blkid
  372. $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
  373. $(INSTALL_DIR) $(1)/usr/include/libfdisk
  374. $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
  375. $(INSTALL_DIR) $(1)/usr/include/libmount
  376. $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
  377. $(INSTALL_DIR) $(1)/usr/include/uuid
  378. $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
  379. $(INSTALL_DIR) $(1)/usr/include/libsmartcols
  380. $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
  381. $(INSTALL_DIR) $(1)/usr/lib
  382. $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so* $(1)/usr/lib
  383. $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so* $(1)/usr/lib
  384. $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so* $(1)/usr/lib
  385. $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so* $(1)/usr/lib
  386. $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so* $(1)/usr/lib
  387. $(LN) libblkid.so.1 $(1)/usr/lib/libblkid.so
  388. $(LN) libfdisk.so.1 $(1)/usr/lib/libfdisk.so
  389. $(LN) libmount.so.1 $(1)/usr/lib/libmount.so
  390. $(LN) libuuid.so.1 $(1)/usr/lib/libuuid.so
  391. $(LN) libsmartcols.so.1 $(1)/usr/lib/libsmartcols.so
  392. endef
  393. define Package/libfdisk/install
  394. $(INSTALL_DIR) $(1)/usr/lib
  395. $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so* $(1)/usr/lib/
  396. $(LN) libfdisk.so.1 $(1)/usr/lib/libfdisk.so
  397. endef
  398. define Package/libblkid/install
  399. $(INSTALL_DIR) $(1)/usr/lib
  400. $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so* $(1)/usr/lib/
  401. $(LN) libblkid.so.1 $(1)/usr/lib/libblkid.so
  402. endef
  403. define Package/libmount/install
  404. $(INSTALL_DIR) $(1)/usr/lib
  405. $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so* $(1)/usr/lib/
  406. $(LN) libmount.so.1 $(1)/usr/lib/libmount.so
  407. endef
  408. define Package/libsmartcols/install
  409. $(INSTALL_DIR) $(1)/usr/lib
  410. $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so* $(1)/usr/lib/
  411. $(LN) libsmartcols.so.1 $(1)/usr/lib/libsmartcols.so
  412. endef
  413. define Package/libuuid/install
  414. $(INSTALL_DIR) $(1)/usr/lib
  415. $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so* $(1)/usr/lib/
  416. $(LN) libuuid.so.1 $(1)/usr/lib/libuuid.so
  417. endef
  418. define Package/agetty/install
  419. $(INSTALL_DIR) $(1)/usr/sbin
  420. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
  421. endef
  422. define Package/blkdiscard/install
  423. $(INSTALL_DIR) $(1)/usr/sbin
  424. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
  425. endef
  426. define Package/blkid/install
  427. $(INSTALL_DIR) $(1)/usr/sbin
  428. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
  429. endef
  430. define Package/cal/install
  431. $(INSTALL_DIR) $(1)/usr/bin
  432. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
  433. endef
  434. define Package/cfdisk/install
  435. $(INSTALL_DIR) $(1)/usr/sbin
  436. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
  437. endef
  438. define Package/dmesg/install
  439. $(INSTALL_DIR) $(1)/usr/bin
  440. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
  441. endef
  442. define Package/fdisk/install
  443. $(INSTALL_DIR) $(1)/usr/sbin
  444. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
  445. endef
  446. define Package/findfs/install
  447. $(INSTALL_DIR) $(1)/usr/sbin
  448. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
  449. endef
  450. define Package/flock/install
  451. $(INSTALL_DIR) $(1)/usr/bin
  452. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/
  453. endef
  454. define Package/getopt/install
  455. $(INSTALL_DIR) $(1)/usr/bin
  456. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
  457. endef
  458. define Package/hwclock/install
  459. $(INSTALL_DIR) $(1)/usr/sbin
  460. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
  461. endef
  462. define Package/logger/install
  463. $(INSTALL_DIR) $(1)/usr/bin
  464. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/
  465. endef
  466. define Package/look/install
  467. $(INSTALL_DIR) $(1)/usr/bin
  468. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
  469. endef
  470. define Package/losetup/install
  471. $(INSTALL_DIR) $(1)/usr/sbin
  472. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
  473. endef
  474. define Package/lsblk/install
  475. $(INSTALL_DIR) $(1)/usr/bin
  476. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
  477. endef
  478. define Package/mcookie/install
  479. $(INSTALL_DIR) $(1)/usr/bin
  480. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
  481. endef
  482. define Package/mount-utils/install
  483. $(INSTALL_DIR) $(1)/usr/bin
  484. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
  485. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
  486. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
  487. endef
  488. define Package/namei/install
  489. $(INSTALL_DIR) $(1)/usr/bin
  490. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
  491. endef
  492. define Package/prlimit/install
  493. $(INSTALL_DIR) $(1)/usr/bin
  494. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
  495. endef
  496. define Package/rename/install
  497. $(INSTALL_DIR) $(1)/usr/bin
  498. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
  499. endef
  500. define Package/partx-utils/install
  501. $(INSTALL_DIR) $(1)/usr/sbin
  502. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
  503. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
  504. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
  505. endef
  506. define Package/script-utils/install
  507. $(INSTALL_DIR) $(1)/usr/bin
  508. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
  509. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
  510. endef
  511. define Package/setterm/install
  512. $(INSTALL_DIR) $(1)/usr/bin
  513. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
  514. endef
  515. define Package/sfdisk/install
  516. $(INSTALL_DIR) $(1)/usr/sbin
  517. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
  518. endef
  519. define Package/swap-utils/install
  520. $(INSTALL_DIR) $(1)/usr/sbin
  521. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
  522. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
  523. endef
  524. define Package/uuidd/install
  525. $(INSTALL_DIR) $(1)/usr/sbin
  526. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin//uuidd $(1)/usr/sbin/
  527. endef
  528. define Package/uuidgen/install
  529. $(INSTALL_DIR) $(1)/usr/bin
  530. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//uuidgen $(1)/usr/bin/
  531. endef
  532. define Package/wall/install
  533. $(INSTALL_DIR) $(1)/usr/bin
  534. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
  535. endef
  536. define Package/whereis/install
  537. $(INSTALL_DIR) $(1)/usr/bin
  538. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
  539. endef
  540. define Package/wipefs/install
  541. $(INSTALL_DIR) $(1)/usr/sbin
  542. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
  543. endef
  544. $(eval $(call BuildPackage,libblkid))
  545. $(eval $(call BuildPackage,libfdisk))
  546. $(eval $(call BuildPackage,libmount))
  547. $(eval $(call BuildPackage,libsmartcols))
  548. $(eval $(call BuildPackage,libuuid))
  549. $(eval $(call BuildPackage,agetty))
  550. $(eval $(call BuildPackage,blkdiscard))
  551. $(eval $(call BuildPackage,blkid))
  552. $(eval $(call BuildPackage,cal))
  553. $(eval $(call BuildPackage,cfdisk))
  554. $(eval $(call BuildPackage,dmesg))
  555. $(eval $(call BuildPackage,fdisk))
  556. $(eval $(call BuildPackage,findfs))
  557. $(eval $(call BuildPackage,flock))
  558. $(eval $(call BuildPackage,getopt))
  559. $(eval $(call BuildPackage,hwclock))
  560. $(eval $(call BuildPackage,logger))
  561. $(eval $(call BuildPackage,look))
  562. $(eval $(call BuildPackage,losetup))
  563. $(eval $(call BuildPackage,lsblk))
  564. $(eval $(call BuildPackage,mcookie))
  565. $(eval $(call BuildPackage,mount-utils))
  566. $(eval $(call BuildPackage,namei))
  567. $(eval $(call BuildPackage,prlimit))
  568. $(eval $(call BuildPackage,rename))
  569. $(eval $(call BuildPackage,partx-utils))
  570. $(eval $(call BuildPackage,script-utils))
  571. $(eval $(call BuildPackage,setterm))
  572. $(eval $(call BuildPackage,sfdisk))
  573. $(eval $(call BuildPackage,swap-utils))
  574. $(eval $(call BuildPackage,uuidd))
  575. $(eval $(call BuildPackage,uuidgen))
  576. $(eval $(call BuildPackage,wall))
  577. $(eval $(call BuildPackage,whereis))
  578. $(eval $(call BuildPackage,wipefs))