Makefile 32 KB

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