Makefile 25 KB

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