2
0

Makefile 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062
  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.41.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.41
  13. PKG_HASH:=be9ad9a276f4305ab7dd2f5225c8be1ff54352f565ff4dede9628c1aaa7dec57
  14. PKG_CPE_ID:=cpe:/a:kernel:util-linux
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/meson.mk
  18. define Package/util-linux/Default
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. DEPENDS:= +librt
  22. URL:=http://www.kernel.org/pub/linux/utils/util-linux/
  23. endef
  24. define Package/libblkid
  25. $(call Package/util-linux/Default)
  26. DEPENDS:=+libuuid
  27. TITLE:=block device id library
  28. SECTION:=libs
  29. CATEGORY:=Libraries
  30. ABI_VERSION:=1
  31. LICENSE:=LGPL-2.1-or-later
  32. LICENSE_FILES:=Documentation/licenses/COPYING.LGPL-2.1-or-later
  33. endef
  34. define Package/libblkid/description
  35. The libblkid library is used to identify block devices (disks) as to their
  36. content (e.g. filesystem type, partitions) as well as extracting additional
  37. information such as filesystem labels/volume names, partitions, unique
  38. identifiers/serial numbers...
  39. endef
  40. define Package/libfdisk
  41. $(call Package/util-linux/Default)
  42. DEPENDS:=+libuuid +libblkid
  43. TITLE:=partition manipulating library
  44. SECTION:=libs
  45. CATEGORY:=Libraries
  46. ABI_VERSION:=1
  47. LICENSE:=LGPL-2.1-or-later
  48. LICENSE_FILES:=Documentation/licenses/COPYING.LGPL-2.1-or-later
  49. endef
  50. define Package/libfdisk/description
  51. The libfdisk library is used for manipulating with partition tables.
  52. endef
  53. define Package/libmount
  54. $(call Package/util-linux/Default)
  55. DEPENDS:=+libblkid
  56. TITLE:=mount library
  57. SECTION:=libs
  58. CATEGORY:=Libraries
  59. ABI_VERSION:=1
  60. LICENSE:=LGPL-2.1-or-later
  61. LICENSE_FILES:=Documentation/licenses/COPYING.LGPL-2.1-or-later
  62. endef
  63. define Package/libmount/description
  64. The libmount library is used to parse /etc/fstab, /etc/mtab and
  65. /proc/self/mountinfo files, manage the mtab file, evaluate mount options...
  66. endef
  67. define Package/libuuid
  68. $(call Package/util-linux/Default)
  69. TITLE:=DCE compatible Universally Unique Identifier library
  70. SECTION:=libs
  71. CATEGORY:=Libraries
  72. ABI_VERSION:=1
  73. LICENSE:=BSD-3-Clause
  74. LICENSE_FILES:=Documentation/licenses/COPYING.BSD-3-Clause
  75. endef
  76. define Package/libuuid/description
  77. The UUID library is used to generate unique identifiers for objects
  78. that may be accessible beyond the local system. This library
  79. generates UUIDs compatible with those created by the Open Software
  80. Foundation (OSF) Distributed Computing Environment (DCE) utility.
  81. endef
  82. define Package/libsmartcols
  83. $(call Package/util-linux/Default)
  84. TITLE:=table or tree library
  85. SECTION:=libs
  86. CATEGORY:=Libraries
  87. ABI_VERSION:=1
  88. LICENSE:=LGPL-2.1-or-later
  89. LICENSE_FILES:=Documentation/licenses/COPYING.LGPL-2.1-or-later
  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. LICENSE:=Public-Domain
  99. endef
  100. define Package/agetty/description
  101. agetty opens a tty port, prompts for a login name and invokes the
  102. /bin/login command
  103. endef
  104. define Package/blkdiscard
  105. $(call Package/util-linux/Default)
  106. TITLE:=discard sectors on a device
  107. SUBMENU=Disc
  108. DEPENDS:=libblkid
  109. LICENSE:=GPL-2.0-or-later
  110. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  111. endef
  112. define Package/blkdiscard/description
  113. The blkdiscard is used to discard device sectors. This is useful for
  114. solid-state drivers (SSDs) and thinly-provisioned storage. Unlike fstrim,
  115. this command is used directly on the block device.
  116. endef
  117. define Package/blkid
  118. $(call Package/util-linux/Default)
  119. TITLE:=locate and print block device attributes
  120. DEPENDS:= +libblkid +libuuid
  121. SUBMENU=Disc
  122. LICENSE:=LGPL-2.1-or-later
  123. LICENSE_FILES:=Documentation/licenses/COPYING.LGPL-2.1-or-later
  124. endef
  125. define Package/blkid/description
  126. The blkid program is the command-line interface to working with the libblkid
  127. library.
  128. endef
  129. define Package/blockdev
  130. $(call Package/util-linux/Default)
  131. TITLE:=call block device ioctls from the command line
  132. SUBMENU=Disc
  133. LICENSE:=GPL-2.0-or-later
  134. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  135. endef
  136. define Package/blockdev/description
  137. The blockdev program is the command-line interface to call block device ioctls.
  138. endef
  139. define Package/cal
  140. $(call Package/util-linux/Default)
  141. TITLE:=display a calendar
  142. DEPENDS:= +libncurses
  143. LICENSE=BSD-4-Clause-UC
  144. LICENSE_FILES:=Documentation/licenses/COPYING.BSD-4-Clause-UC
  145. endef
  146. define Package/cal/description
  147. cal displays a simple calendar
  148. endef
  149. define Package/cfdisk
  150. $(call Package/util-linux/Default)
  151. TITLE:=display or manipulate disk partition table
  152. DEPENDS:= +libblkid +libncurses +libsmartcols +libfdisk +libmount
  153. SUBMENU:=Disc
  154. LICENSE:=GPL-2.0-or-later
  155. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  156. endef
  157. define Package/cfdisk/description
  158. cfdisk is a curses-based program for partitioning any hard disk drive
  159. endef
  160. define Package/colrm
  161. $(call Package/util-linux/Default)
  162. TITLE:=colrm removes selected columns from a file
  163. DEPENDS:=
  164. LICENSE=BSD-4-Clause-UC
  165. LICENSE_FILES:=Documentation/licenses/COPYING.BSD-4-Clause-UC
  166. endef
  167. define Package/colrm/description
  168. colrm removes selected columns from a file. Input is taken from
  169. standard input. Output is sent to standard output.
  170. endef
  171. define Package/dmesg
  172. $(call Package/util-linux/Default)
  173. TITLE:=print or control the kernel ring buffer
  174. DEPENDS:= +libncursesw
  175. LICENSE:=GPL-2.0-or-later
  176. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  177. endef
  178. define Package/dmesg/description
  179. dmesg is used to examine or control the kernel ring buffer
  180. endef
  181. define Package/eject
  182. $(call Package/util-linux/Default)
  183. TITLE:=eject removable media
  184. DEPENDS:= +libblkid +libmount +libuuid
  185. SUBMENU=Disc
  186. LICENSE:=GPL-2.0-or-later
  187. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  188. endef
  189. define Package/eject/description
  190. eject allows removable media (typically a CD-ROM, floppy disk, tape, or JAZ
  191. or ZIP disk) to be ejected under software control.
  192. endef
  193. define Package/fdisk
  194. $(call Package/util-linux/Default)
  195. TITLE:=manipulate disk partition table
  196. DEPENDS:= +libblkid +libsmartcols +libfdisk +libncursesw
  197. SUBMENU=Disc
  198. LICENSE:=GPL-1.0-or-later
  199. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-1.0-or-later
  200. endef
  201. define Package/fdisk/description
  202. a menu-driven program for creation and manipulation of partition tables
  203. endef
  204. define Package/findfs
  205. $(call Package/util-linux/Default)
  206. TITLE:=find a filesystem by label or UUID
  207. DEPENDS:= +libblkid
  208. SUBMENU=Disc
  209. LICENSE:=GPL-1.0-or-later
  210. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-1.0-or-later
  211. endef
  212. define Package/findfs/description
  213. findfs will search the disks in the system looking for a filesystem which has
  214. a label matching label or a UUID equal to uuid
  215. endef
  216. define Package/flock
  217. $(call Package/util-linux/Default)
  218. TITLE:=manage locks from shell scripts
  219. ALTERNATIVES:=200:/usr/bin/flock:/usr/bin/util-linux-flock
  220. LICENSE:=MIT
  221. LICENSE_FILES:=Documentation/licenses/COPYING.MIT
  222. endef
  223. define Package/flock/description
  224. manages flock locks from within shell scripts or the command line
  225. endef
  226. define Package/fstrim
  227. $(call Package/util-linux/Default)
  228. TITLE:=discard unused blocks on a mounted filesystem
  229. DEPENDS:= +libblkid +libuuid +libsmartcols +libmount
  230. SUBMENU=Filesystem
  231. LICENSE:=GPL-2.0-or-later
  232. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  233. endef
  234. define Package/fstrim/description
  235. fstrim is used on a mounted filesystem to discard (or "trim") blocks
  236. which are not in use by the filesystem. This is useful for solid-
  237. state drives (SSDs) and thinly-provisioned storage.
  238. endef
  239. define Package/getopt
  240. $(call Package/util-linux/Default)
  241. TITLE:=parse command options (enhanced)
  242. LICENSE:=GPL-2.0-or-later
  243. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  244. endef
  245. define Package/getopt/description
  246. getopt is used to break up (parse) options in command lines for easy parsing
  247. by shell procedures, and to check for legal options
  248. endef
  249. define Package/hwclock
  250. $(call Package/util-linux/Default)
  251. TITLE:=query or set the hardware clock
  252. LICENSE:=GPL-3.0-or-later
  253. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-3.0-or-later
  254. endef
  255. define Package/hwclock/description
  256. hwclock is a tool for accessing the Hardware Clock
  257. endef
  258. define Package/ipcs
  259. $(call Package/util-linux/Default)
  260. TITLE:=show information on IPC facilities
  261. LICENSE:=GPL-2.0-or-later
  262. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  263. endef
  264. define Package/ipcs/description
  265. ipcs shows information on the inter-process communication facilities for
  266. which the calling process has read access. By default it shows information
  267. about all three resources: shared memory segments, message queues, and
  268. semaphore arrays.
  269. endef
  270. define Package/logger
  271. $(call Package/util-linux/Default)
  272. TITLE:=a shell command interface to the syslog system log module
  273. ALTERNATIVES:=200:/usr/bin/logger:/usr/bin/util-linux-logger
  274. LICENSE=BSD-4-Clause-UC
  275. LICENSE_FILES:=Documentation/licenses/COPYING.BSD-4-Clause-UC
  276. endef
  277. define Package/logger/description
  278. logger makes entries in the system log, it provides a shell command interface
  279. to the syslog system log module
  280. endef
  281. define Package/look
  282. $(call Package/util-linux/Default)
  283. TITLE:=display lines beginning with a given string
  284. LICENSE=BSD-4-Clause-UC
  285. LICENSE_FILES:=Documentation/licenses/COPYING.BSD-4-Clause-UC
  286. endef
  287. define Package/look/description
  288. look utility displays any lines in file which contain string
  289. endef
  290. define Package/losetup
  291. $(call Package/util-linux/Default)
  292. TITLE:=set up and control loop devices
  293. DEPENDS:= +libsmartcols
  294. LICENSE:=GPL-2.0-or-later
  295. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  296. endef
  297. define Package/losetup/description
  298. losetup is used to associate loop devices with regular files or block devices,
  299. to detach loop devices and to query the status of a loop device
  300. endef
  301. define Package/lsblk
  302. $(call Package/util-linux/Default)
  303. TITLE:=list block devices
  304. DEPENDS:= +libblkid +libmount +libsmartcols +libncurses
  305. SUBMENU=Disc
  306. LICENSE:=GPL-2.0-or-later
  307. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  308. endef
  309. define Package/lsblk/description
  310. lsblk lists information about all or the specified block devices
  311. endef
  312. define Package/lscpu
  313. $(call Package/util-linux/Default)
  314. TITLE:=display information about the CPU architecture
  315. DEPENDS:= +libsmartcols
  316. LICENSE:=GPL-2.0-or-later
  317. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  318. endef
  319. define Package/lscpu/description
  320. lscpu displays information about the CPU architecture
  321. endef
  322. define Package/lslocks
  323. $(call Package/util-linux/Default)
  324. TITLE:=list local system locks
  325. DEPENDS:= +libmount +libsmartcols
  326. LICENSE:=GPL-2.0-or-later
  327. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  328. endef
  329. define Package/lslocks/description
  330. lslocks lists information about all the currently held file locks in a Linux system
  331. endef
  332. define Package/lsns
  333. $(call Package/util-linux/Default)
  334. TITLE:=list system namespaces
  335. DEPENDS:= +libblkid +libmount +libsmartcols
  336. LICENSE:=GPL-2.0-or-later
  337. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  338. endef
  339. define Package/lsns/description
  340. lsns lists information about all namespaces and their processes
  341. endef
  342. define Package/more
  343. $(call Package/util-linux/Default)
  344. TITLE:=filter for paging through text one screenful at a time
  345. DEPENDS:= +libncurses
  346. LICENSE:=BSD-4.3TAHOE
  347. endef
  348. define Package/more/description
  349. more is a filter for paging through text one screenful at a time
  350. endef
  351. define Package/mcookie
  352. $(call Package/util-linux/Default)
  353. TITLE:=generate magic cookies for xauth
  354. LICENSE:=Public-Domain
  355. endef
  356. define Package/mcookie/description
  357. mcookie generates a 128-bit random hexadecimal number for use with the X
  358. authority system
  359. endef
  360. define Package/mount-utils
  361. $(call Package/util-linux/Default)
  362. TITLE:=related (u)mount utilities
  363. DEPENDS+= +libmount +libsmartcols
  364. LICENSE:=GPL-2.0-or-later
  365. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  366. endef
  367. define Package/mount-utils/description
  368. contains: mount, umount, findmnt
  369. endef
  370. define Package/namei
  371. $(call Package/util-linux/Default)
  372. TITLE:=follow a pathname until a terminal point is found
  373. LICENSE:=GPL-2.0-or-later
  374. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  375. endef
  376. define Package/namei/description
  377. namei uses its arguments as pathnames to any type of Unix file (symlinks,
  378. files, directories, and so forth)
  379. endef
  380. define Package/nsenter
  381. $(call Package/util-linux/Default)
  382. TITLE:=enter a namespace
  383. LICENSE:=GPL-2.0-only
  384. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-only
  385. endef
  386. define Package/nsenter/description
  387. run program with namespaces of other processes
  388. endef
  389. define Package/prlimit
  390. $(call Package/util-linux/Default)
  391. TITLE:=get and set process resource limits
  392. DEPENDS:= +libsmartcols
  393. LICENSE:=GPL-2.0-or-later
  394. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  395. endef
  396. define Package/prlimit/description
  397. Given a process id and one or more resources, prlimit tries to retrieve
  398. and/or modify the limits.
  399. endef
  400. define Package/rename
  401. $(call Package/util-linux/Default)
  402. TITLE:=rename files
  403. LICENSE:=GPL-2.0-or-later
  404. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  405. endef
  406. define Package/rename/description
  407. rename will rename the specified files by replacing the first occurrence of
  408. expression in their name by replacement
  409. endef
  410. define Package/rev
  411. $(call Package/util-linux/Default)
  412. TITLE:=Reverse lines characterwise
  413. LICENSE=BSD-4-Clause-UC
  414. LICENSE_FILES:=Documentation/licenses/COPYING.BSD-4-Clause-UC
  415. endef
  416. define Package/rev/description
  417. rev utility copies the specified files to the standard output, reversing the
  418. order of characters in every line. If no files are specified, the standard
  419. input is read.
  420. endef
  421. define Package/partx-utils
  422. $(call Package/util-linux/Default)
  423. TITLE:=inform kernel about the presence and numbering of on-disk partitions
  424. DEPENDS:= +libblkid +libsmartcols
  425. SUBMENU=Disc
  426. LICENSE:=GPL-2.0-or-later
  427. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  428. endef
  429. define Package/partx-utils/description
  430. contains partx, addpart, delpart
  431. endef
  432. define Package/script-utils
  433. $(call Package/util-linux/Default)
  434. TITLE:=make and replay typescript of terminal session
  435. SUBMENU=Terminal
  436. LICENSE=BSD-4-Clause-UC
  437. LICENSE_FILES:=Documentation/licenses/COPYING.BSD-4-Clause-UC
  438. endef
  439. define Package/script-utils/description
  440. contains: script, scriptreplay
  441. endef
  442. define Package/setterm
  443. $(call Package/util-linux/Default)
  444. TITLE:=set terminal attributes
  445. DEPENDS:= +libncurses
  446. SUBMENU:=Terminal
  447. LICENSE:=GPL-2.0-or-later
  448. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  449. endef
  450. define Package/setterm/description
  451. setterm writes to standard output a character string that will invoke the
  452. specified terminal capabilities
  453. endef
  454. define Package/sfdisk
  455. $(call Package/util-linux/Default)
  456. TITLE:=partition table manipulator for Linux
  457. SUBMENU=Disc
  458. DEPENDS:= +libblkid +libfdisk +libsmartcols +libncursesw
  459. LICENSE:=GPL-1.0-or-later
  460. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-1.0-or-later
  461. endef
  462. define Package/sfdisk/description
  463. list the size of a partition, list the partitions on a device, check the
  464. partitions on a device and repartition a device
  465. endef
  466. define Package/swap-utils
  467. $(call Package/util-linux/Default)
  468. TITLE:=swap space management utilities
  469. DEPENDS+= +libblkid
  470. SUBMENU:=Filesystem
  471. LICENSE:=GPL-2.0-or-later
  472. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  473. endef
  474. define Package/swap-utils/description
  475. contains: mkswap, swaplabel
  476. endef
  477. define Package/taskset
  478. $(call Package/util-linux/Default)
  479. TITLE:=set or retrieve a process's CPU affinity
  480. ALTERNATIVES:=200:/usr/bin/taskset:/usr/bin/util-linux-taskset
  481. LICENSE:=GPL-2.0-only
  482. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-only
  483. endef
  484. define Package/taskset/description
  485. contains: taskset
  486. endef
  487. define Package/unshare
  488. $(call Package/util-linux/Default)
  489. TITLE:=unshare userspace tool
  490. LICENSE:=GPL-2.0-or-later
  491. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  492. endef
  493. define Package/unshare/description
  494. run programs with some namespaces unshared from parent
  495. endef
  496. define Package/uuidd
  497. $(call Package/util-linux/Default)
  498. TITLE:=UUID generation daemon
  499. DEPENDS:= +libuuid
  500. LICENSE:=GPL-1.0-or-later
  501. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-1.0-or-later
  502. endef
  503. define Package/uuidd/description
  504. The uuidd daemon is used by the UUID library to generate universally unique
  505. identifiers (UUIDs), especially time-based UUIDs, in a secure and
  506. guaranteed-unique fashion, even in the face of large numbers of threads
  507. running on different CPUs trying to grab UUIDs.
  508. endef
  509. define Package/uuidgen
  510. $(call Package/util-linux/Default)
  511. TITLE:=create a new UUID value
  512. DEPENDS:= +libuuid
  513. LICENSE:=GPL-1.0-or-later
  514. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-1.0-or-later
  515. endef
  516. define Package/uuidgen/description
  517. The uuidgen program creates (and prints) a new universally unique identifier
  518. (UUID) using the libuuid library. The new UUID can reasonably be considered
  519. unique among all UUIDs created on the local system, and among UUIDs created on
  520. other systems in the past and in the future.
  521. endef
  522. define Package/wall
  523. $(call Package/util-linux/Default)
  524. TITLE:=send a message to everybody's terminal
  525. SUBMENU=Terminal
  526. LICENSE=BSD-4-Clause-UC
  527. LICENSE_FILES:=Documentation/licenses/COPYING.BSD-4-Clause-UC
  528. endef
  529. define Package/wall/description
  530. wall sends a message to everybody logged in with their mesg permission
  531. set to yes
  532. endef
  533. define Package/wdctl
  534. $(call Package/util-linux/Default)
  535. TITLE:=show hardware watchdog status
  536. DEPENDS:= +libsmartcols
  537. LICENSE:=GPL-2.0-or-later
  538. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  539. endef
  540. define Package/wdctl/description
  541. Show hardware watchdog status. The default device is /dev/watchdog. If more
  542. than one device is specified then the output is separated by one blank line.
  543. If the device is already used or user has no permissions to read from the
  544. device, then wdctl reads data from sysfs. In this case information about
  545. supported features (flags) might be missing. Note that the number of supported
  546. watchdog features is hardware specific.
  547. endef
  548. define Package/whereis
  549. $(call Package/util-linux/Default)
  550. TITLE:=locate the binary, source, and manual page files for a command
  551. LICENSE=BSD-4-Clause-UC
  552. LICENSE_FILES:=Documentation/licenses/COPYING.BSD-4-Clause-UC
  553. endef
  554. define Package/whereis/description
  555. whereis locates source/binary and manuals sections for specified files
  556. endef
  557. define Package/wipefs
  558. $(call Package/util-linux/Default)
  559. TITLE:=wipe a signature from a device
  560. DEPENDS:= +libblkid +libsmartcols
  561. SUBMENU:=Disc
  562. LICENSE:=GPL-2.0-or-later
  563. LICENSE_FILES:=Documentation/licenses/COPYING.GPL-2.0-or-later
  564. endef
  565. define Package/wipefs/description
  566. wipefs can erase filesystem, raid or partition table signatures (magic
  567. strings) from the specified device to make the signature invisible for
  568. libblkid.
  569. endef
  570. MESON_ARGS += \
  571. -Dsystemd=disabled \
  572. -Dtinfo=disabled \
  573. -Dcryptsetup=disabled \
  574. -Dlibutil=disabled \
  575. -Dlibutempter=disabled \
  576. -Dlibpcre2-posix=disabled \
  577. -Dlibuser=disabled \
  578. -Duse-tty-group=false \
  579. -Duse-tls=false \
  580. -Dtranslate-docs=disabled \
  581. -Dbuild-python=disabled \
  582. -Dbuild-zramctl=disabled \
  583. -Dbuild-fsck=disabled \
  584. -Dbuild-wipefs=disabled \
  585. -Dbuild-fallocate=disabled \
  586. -Dbuild-setpriv=disabled \
  587. -Dbuild-hardlink=disabled \
  588. -Dbuild-cramfs=disabled \
  589. -Dbuild-bfs=disabled \
  590. -Dbuild-minix=disabled \
  591. -Dbuild-fdformat=disabled \
  592. -Dbuild-lslogins=disabled \
  593. -Dbuild-switch_root=disabled \
  594. -Dbuild-pivot_root=disabled \
  595. -Dbuild-lsmem=disabled \
  596. -Dbuild-lsirq=disabled \
  597. -Dbuild-irqtop=disabled \
  598. -Dbuild-chmem=disabled \
  599. -Dbuild-ipcrm=disabled \
  600. -Dbuild-rfkill=disabled \
  601. -Dbuild-tunelp=disabled \
  602. -Dbuild-kill=disabled \
  603. -Dbuild-last=disabled \
  604. -Dbuild-utmpdump=disabled \
  605. -Dbuild-line=disabled \
  606. -Dbuild-mesg=disabled \
  607. -Dbuild-raw=disabled \
  608. -Dbuild-vipw=disabled \
  609. -Dbuild-newgrp=disabled \
  610. -Dbuild-chfn-chsh=disabled \
  611. -Dbuild-login=disabled \
  612. -Dbuild-nologin=disabled \
  613. -Dbuild-sulogin=disabled \
  614. -Dbuild-su=disabled \
  615. -Dbuild-runuser=disabled \
  616. -Dbuild-ul=disabled \
  617. -Dbuild-pg=disabled \
  618. -Dbuild-write=disabled \
  619. -Dbuild-bash-completion=disabled \
  620. -Dbuild-pylibmount=disabled \
  621. -Dbuild-liblastlog2=disabled \
  622. -Dreadline=disabled \
  623. -Dmagic=disabled \
  624. -Dncursesw=enabled
  625. define Build/InstallDev
  626. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  627. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
  628. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
  629. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
  630. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
  631. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
  632. $(INSTALL_DIR) $(1)/usr/include/blkid
  633. $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
  634. $(INSTALL_DIR) $(1)/usr/include/libfdisk
  635. $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
  636. $(INSTALL_DIR) $(1)/usr/include/libmount
  637. $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
  638. $(INSTALL_DIR) $(1)/usr/include/uuid
  639. $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
  640. $(INSTALL_DIR) $(1)/usr/include/libsmartcols
  641. $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
  642. $(INSTALL_DIR) $(1)/usr/lib
  643. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libblkid.so* $(1)/usr/lib
  644. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdisk.so* $(1)/usr/lib
  645. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmount.so* $(1)/usr/lib
  646. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuuid.so* $(1)/usr/lib
  647. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsmartcols.so* $(1)/usr/lib
  648. endef
  649. define Package/libfdisk/install
  650. $(INSTALL_DIR) $(1)/usr/lib
  651. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdisk.so.* $(1)/usr/lib/
  652. endef
  653. define Package/libblkid/install
  654. $(INSTALL_DIR) $(1)/usr/lib
  655. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libblkid.so.* $(1)/usr/lib/
  656. endef
  657. define Package/libmount/install
  658. $(INSTALL_DIR) $(1)/usr/lib
  659. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmount.so.* $(1)/usr/lib/
  660. endef
  661. define Package/libsmartcols/install
  662. $(INSTALL_DIR) $(1)/usr/lib
  663. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsmartcols.so.* $(1)/usr/lib/
  664. endef
  665. define Package/libuuid/install
  666. $(INSTALL_DIR) $(1)/usr/lib
  667. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuuid.so.* $(1)/usr/lib/
  668. endef
  669. define Package/agetty/install
  670. $(INSTALL_DIR) $(1)/usr/sbin
  671. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
  672. endef
  673. define Package/blkdiscard/install
  674. $(INSTALL_DIR) $(1)/usr/sbin
  675. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
  676. endef
  677. define Package/blkid/install
  678. $(INSTALL_DIR) $(1)/usr/sbin
  679. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
  680. endef
  681. define Package/blockdev/install
  682. $(INSTALL_DIR) $(1)/usr/sbin
  683. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blockdev $(1)/usr/sbin/
  684. endef
  685. define Package/cal/install
  686. $(INSTALL_DIR) $(1)/usr/bin
  687. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
  688. endef
  689. define Package/cfdisk/install
  690. $(INSTALL_DIR) $(1)/usr/sbin
  691. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
  692. endef
  693. define Package/colrm/install
  694. $(INSTALL_DIR) $(1)/usr/bin
  695. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/colrm $(1)/usr/bin/
  696. endef
  697. define Package/dmesg/install
  698. $(INSTALL_DIR) $(1)/usr/bin
  699. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
  700. endef
  701. define Package/eject/install
  702. $(INSTALL_DIR) $(1)/usr/bin
  703. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eject $(1)/usr/bin/
  704. endef
  705. define Package/fdisk/install
  706. $(INSTALL_DIR) $(1)/usr/sbin
  707. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
  708. endef
  709. define Package/findfs/install
  710. $(INSTALL_DIR) $(1)/usr/sbin
  711. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
  712. endef
  713. define Package/flock/install
  714. $(INSTALL_DIR) $(1)/usr/bin
  715. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/util-linux-flock
  716. endef
  717. define Package/fstrim/install
  718. $(INSTALL_DIR) $(1)/usr/sbin
  719. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fstrim $(1)/usr/sbin/
  720. endef
  721. define Package/getopt/install
  722. $(INSTALL_DIR) $(1)/usr/bin
  723. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
  724. endef
  725. define Package/hwclock/install
  726. $(INSTALL_DIR) $(1)/usr/sbin
  727. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
  728. endef
  729. define Package/ipcs/install
  730. $(INSTALL_DIR) $(1)/usr/bin
  731. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipcs $(1)/usr/bin/
  732. endef
  733. define Package/logger/install
  734. $(INSTALL_DIR) $(1)/usr/bin
  735. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/util-linux-logger
  736. endef
  737. define Package/look/install
  738. $(INSTALL_DIR) $(1)/usr/bin
  739. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
  740. endef
  741. define Package/losetup/install
  742. $(INSTALL_DIR) $(1)/usr/sbin
  743. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
  744. endef
  745. define Package/lsblk/install
  746. $(INSTALL_DIR) $(1)/usr/bin
  747. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
  748. endef
  749. define Package/lscpu/install
  750. $(INSTALL_DIR) $(1)/usr/bin
  751. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lscpu $(1)/usr/bin/
  752. endef
  753. define Package/lslocks/install
  754. $(INSTALL_DIR) $(1)/usr/bin
  755. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lslocks $(1)/usr/bin/
  756. endef
  757. define Package/lsns/install
  758. $(INSTALL_DIR) $(1)/usr/bin
  759. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsns $(1)/usr/bin/
  760. endef
  761. define Package/more/install
  762. $(INSTALL_DIR) $(1)/usr/bin
  763. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/more $(1)/usr/bin/
  764. endef
  765. define Package/mcookie/install
  766. $(INSTALL_DIR) $(1)/usr/bin
  767. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
  768. endef
  769. define Package/mount-utils/install
  770. $(INSTALL_DIR) $(1)/usr/bin
  771. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
  772. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
  773. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
  774. endef
  775. define Package/namei/install
  776. $(INSTALL_DIR) $(1)/usr/bin
  777. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
  778. endef
  779. define Package/nsenter/install
  780. $(INSTALL_DIR) $(1)/usr/bin
  781. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsenter $(1)/usr/bin/
  782. endef
  783. define Package/prlimit/install
  784. $(INSTALL_DIR) $(1)/usr/bin
  785. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
  786. endef
  787. define Package/rename/install
  788. $(INSTALL_DIR) $(1)/usr/bin
  789. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
  790. endef
  791. define Package/rev/install
  792. $(INSTALL_DIR) $(1)/usr/bin
  793. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rev $(1)/usr/bin/
  794. endef
  795. define Package/partx-utils/install
  796. $(INSTALL_DIR) $(1)/usr/sbin
  797. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
  798. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
  799. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
  800. endef
  801. define Package/script-utils/install
  802. $(INSTALL_DIR) $(1)/usr/bin
  803. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
  804. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
  805. endef
  806. define Package/setterm/install
  807. $(INSTALL_DIR) $(1)/usr/bin
  808. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
  809. endef
  810. define Package/sfdisk/install
  811. $(INSTALL_DIR) $(1)/usr/sbin
  812. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
  813. endef
  814. define Package/swap-utils/install
  815. $(INSTALL_DIR) $(1)/usr/sbin
  816. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
  817. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
  818. endef
  819. define Package/taskset/install
  820. $(INSTALL_DIR) $(1)/usr/bin
  821. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/taskset $(1)/usr/bin/util-linux-taskset
  822. endef
  823. define Package/unshare/install
  824. $(INSTALL_DIR) $(1)/usr/bin
  825. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/unshare $(1)/usr/bin/
  826. endef
  827. define Package/uuidd/install
  828. $(INSTALL_DIR) $(1)/usr/sbin
  829. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/uuidd $(1)/usr/sbin/
  830. endef
  831. define Package/uuidgen/install
  832. $(INSTALL_DIR) $(1)/usr/bin
  833. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/uuidgen $(1)/usr/bin/
  834. endef
  835. define Package/wall/install
  836. $(INSTALL_DIR) $(1)/usr/bin
  837. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
  838. endef
  839. # Install to /bin instead of /usr/bin to not conflict wdctl from wifidog
  840. define Package/wdctl/install
  841. $(INSTALL_DIR) $(1)/bin
  842. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wdctl $(1)/bin/
  843. endef
  844. define Package/whereis/install
  845. $(INSTALL_DIR) $(1)/usr/bin
  846. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
  847. endef
  848. define Package/wipefs/install
  849. $(INSTALL_DIR) $(1)/usr/sbin
  850. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
  851. endef
  852. # these lines need to be ordered by dependency because of ABI versioning
  853. $(eval $(call BuildPackage,libuuid))
  854. $(eval $(call BuildPackage,libblkid))
  855. $(eval $(call BuildPackage,libfdisk))
  856. $(eval $(call BuildPackage,libmount))
  857. $(eval $(call BuildPackage,libsmartcols))
  858. $(eval $(call BuildPackage,agetty))
  859. $(eval $(call BuildPackage,blkdiscard))
  860. $(eval $(call BuildPackage,blkid))
  861. $(eval $(call BuildPackage,blockdev))
  862. $(eval $(call BuildPackage,cal))
  863. $(eval $(call BuildPackage,cfdisk))
  864. $(eval $(call BuildPackage,colrm))
  865. $(eval $(call BuildPackage,dmesg))
  866. $(eval $(call BuildPackage,eject))
  867. $(eval $(call BuildPackage,fdisk))
  868. $(eval $(call BuildPackage,findfs))
  869. $(eval $(call BuildPackage,flock))
  870. $(eval $(call BuildPackage,fstrim))
  871. $(eval $(call BuildPackage,getopt))
  872. $(eval $(call BuildPackage,hwclock))
  873. $(eval $(call BuildPackage,ipcs))
  874. $(eval $(call BuildPackage,logger))
  875. $(eval $(call BuildPackage,look))
  876. $(eval $(call BuildPackage,losetup))
  877. $(eval $(call BuildPackage,lsblk))
  878. $(eval $(call BuildPackage,lscpu))
  879. $(eval $(call BuildPackage,lslocks))
  880. $(eval $(call BuildPackage,lsns))
  881. $(eval $(call BuildPackage,more))
  882. $(eval $(call BuildPackage,mcookie))
  883. $(eval $(call BuildPackage,mount-utils))
  884. $(eval $(call BuildPackage,namei))
  885. $(eval $(call BuildPackage,nsenter))
  886. $(eval $(call BuildPackage,prlimit))
  887. $(eval $(call BuildPackage,rename))
  888. $(eval $(call BuildPackage,rev))
  889. $(eval $(call BuildPackage,partx-utils))
  890. $(eval $(call BuildPackage,script-utils))
  891. $(eval $(call BuildPackage,setterm))
  892. $(eval $(call BuildPackage,sfdisk))
  893. $(eval $(call BuildPackage,swap-utils))
  894. $(eval $(call BuildPackage,taskset))
  895. $(eval $(call BuildPackage,unshare))
  896. $(eval $(call BuildPackage,uuidd))
  897. $(eval $(call BuildPackage,uuidgen))
  898. $(eval $(call BuildPackage,wall))
  899. $(eval $(call BuildPackage,wdctl))
  900. $(eval $(call BuildPackage,whereis))
  901. $(eval $(call BuildPackage,wipefs))