Makefile 31 KB

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