Makefile 20 KB

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