Makefile 26 KB

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