Makefile 22 KB

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