Makefile 22 KB

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