Makefile 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918
  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.38.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.38
  13. PKG_HASH:=60492a19b44e6cf9a3ddff68325b333b8b52b6c59ce3ebd6a0ecaa4c5117e84f
  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/partx-utils
  343. $(call Package/util-linux/Default)
  344. TITLE:=inform kernel about the presence and numbering of on-disk partitions
  345. DEPENDS:= +libblkid +libsmartcols
  346. SUBMENU=Disc
  347. endef
  348. define Package/partx-utils/description
  349. contains partx, addpart, delpart
  350. endef
  351. define Package/script-utils
  352. $(call Package/util-linux/Default)
  353. TITLE:=make and replay typescript of terminal session
  354. SUBMENU=Terminal
  355. endef
  356. define Package/script-utils/description
  357. contains: script, scriptreplay
  358. endef
  359. define Package/setterm
  360. $(call Package/util-linux/Default)
  361. TITLE:=set terminal attributes
  362. DEPENDS:= +libncurses
  363. SUBMENU:=Terminal
  364. endef
  365. define Package/setterm/description
  366. setterm writes to standard output a character string that will invoke the
  367. specified terminal capabilities
  368. endef
  369. define Package/sfdisk
  370. $(call Package/util-linux/Default)
  371. TITLE:=partition table manipulator for Linux
  372. SUBMENU=Disc
  373. DEPENDS:= +libblkid +libfdisk +libsmartcols +libncursesw
  374. endef
  375. define Package/sfdisk/description
  376. list the size of a partition, list the partitions on a device, check the
  377. partitions on a device and repartition a device
  378. endef
  379. define Package/swap-utils
  380. $(call Package/util-linux/Default)
  381. TITLE:=swap space management utilities
  382. DEPENDS+= +libblkid
  383. SUBMENU:=Filesystem
  384. endef
  385. define Package/swap-utils/description
  386. contains: mkswap, swaplabel
  387. endef
  388. define Package/taskset
  389. $(call Package/util-linux/Default)
  390. TITLE:=set or retrieve a process's CPU affinity
  391. endef
  392. define Package/taskset/description
  393. contains: taskset
  394. endef
  395. define Package/unshare
  396. $(call Package/util-linux/Default)
  397. TITLE:=unshare userspace tool
  398. endef
  399. define Package/unshare/description
  400. run programs with some namespaces unshared from parent
  401. endef
  402. define Package/uuidd
  403. $(call Package/util-linux/Default)
  404. TITLE:=UUID generation daemon
  405. DEPENDS:= +libuuid
  406. endef
  407. define Package/uuidd/description
  408. The uuidd daemon is used by the UUID library to generate universally unique
  409. identifiers (UUIDs), especially time-based UUIDs, in a secure and
  410. guaranteed-unique fashion, even in the face of large numbers of threads
  411. running on different CPUs trying to grab UUIDs.
  412. endef
  413. define Package/uuidgen
  414. $(call Package/util-linux/Default)
  415. TITLE:=create a new UUID value
  416. DEPENDS:= +libuuid
  417. endef
  418. define Package/uuidgen/description
  419. The uuidgen program creates (and prints) a new universally unique identifier
  420. (UUID) using the libuuid library. The new UUID can reasonably be considered
  421. unique among all UUIDs created on the local system, and among UUIDs created on
  422. other systems in the past and in the future.
  423. endef
  424. define Package/wall
  425. $(call Package/util-linux/Default)
  426. TITLE:=send a message to everybody's terminal
  427. SUBMENU=Terminal
  428. endef
  429. define Package/wall/description
  430. wall sends a message to everybody logged in with their mesg permission
  431. set to yes
  432. endef
  433. define Package/whereis
  434. $(call Package/util-linux/Default)
  435. TITLE:=locate the binary, source, and manual page files for a command
  436. endef
  437. define Package/whereis/description
  438. whereis locates source/binary and manuals sections for specified files
  439. endef
  440. define Package/wipefs
  441. $(call Package/util-linux/Default)
  442. TITLE:=wipe a signature from a device
  443. DEPENDS:= +libblkid +libsmartcols
  444. SUBMENU:=Disc
  445. endef
  446. define Package/wipefs/description
  447. wipefs can erase filesystem, raid or partition table signatures (magic
  448. strings) from the specified device to make the signature invisible for
  449. libblkid.
  450. endef
  451. MESON_ARGS += \
  452. -Dsystemd=disabled \
  453. -Dtinfo=disabled \
  454. -Dcryptsetup=disabled \
  455. -Dlibutil=disabled \
  456. -Dlibutempter=disabled \
  457. -Dlibpcre2-posix=disabled \
  458. -Dlibuser=disabled \
  459. -Duse-tty-group=false \
  460. -Duse-tls=false \
  461. -Dbuild-python=disabled \
  462. -Dbuild-zramctl=disabled \
  463. -Dbuild-fsck=disabled \
  464. -Dbuild-wipefs=disabled \
  465. -Dbuild-fallocate=disabled \
  466. -Dbuild-setpriv=disabled \
  467. -Dbuild-hardlink=disabled \
  468. -Dbuild-cramfs=disabled \
  469. -Dbuild-bfs=disabled \
  470. -Dbuild-minix=disabled \
  471. -Dbuild-fdformat=disabled \
  472. -Dbuild-lslogins=disabled \
  473. -Dbuild-wdctl=disabled \
  474. -Dbuild-cal=disabled \
  475. -Dbuild-switch_root=disabled \
  476. -Dbuild-pivot_root=disabled \
  477. -Dbuild-lsmem=disabled \
  478. -Dbuild-lsirq=disabled \
  479. -Dbuild-irqtop=disabled \
  480. -Dbuild-chmem=disabled \
  481. -Dbuild-ipcrm=disabled \
  482. -Dbuild-rfkill=disabled \
  483. -Dbuild-tunelp=disabled \
  484. -Dbuild-kill=disabled \
  485. -Dbuild-last=disabled \
  486. -Dbuild-utmpdump=disabled \
  487. -Dbuild-line=disabled \
  488. -Dbuild-mesg=disabled \
  489. -Dbuild-raw=disabled \
  490. -Dbuild-vipw=disabled \
  491. -Dbuild-newgrp=disabled \
  492. -Dbuild-chfn-chsh=disabled \
  493. -Dbuild-login=disabled \
  494. -Dbuild-nologin=disabled \
  495. -Dbuild-sulogin=disabled \
  496. -Dbuild-su=disabled \
  497. -Dbuild-runuser=disabled \
  498. -Dbuild-ul=disabled \
  499. -Dbuild-pg=disabled \
  500. -Dbuild-write=disabled \
  501. -Dbuild-bash-completion=disabled \
  502. -Dbuild-pylibmount=disabled \
  503. -Dreadline=disabled \
  504. -Dmagic=disabled \
  505. -Dncursesw=enabled
  506. define Build/InstallDev
  507. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  508. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
  509. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
  510. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
  511. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
  512. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
  513. $(INSTALL_DIR) $(1)/usr/include/blkid
  514. $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
  515. $(INSTALL_DIR) $(1)/usr/include/libfdisk
  516. $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
  517. $(INSTALL_DIR) $(1)/usr/include/libmount
  518. $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
  519. $(INSTALL_DIR) $(1)/usr/include/uuid
  520. $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
  521. $(INSTALL_DIR) $(1)/usr/include/libsmartcols
  522. $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
  523. $(INSTALL_DIR) $(1)/usr/lib
  524. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libblkid.so* $(1)/usr/lib
  525. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdisk.so* $(1)/usr/lib
  526. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmount.so* $(1)/usr/lib
  527. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuuid.so* $(1)/usr/lib
  528. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsmartcols.so* $(1)/usr/lib
  529. endef
  530. define Package/libfdisk/install
  531. $(INSTALL_DIR) $(1)/usr/lib
  532. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdisk.so.* $(1)/usr/lib/
  533. endef
  534. define Package/libblkid/install
  535. $(INSTALL_DIR) $(1)/usr/lib
  536. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libblkid.so.* $(1)/usr/lib/
  537. endef
  538. define Package/libmount/install
  539. $(INSTALL_DIR) $(1)/usr/lib
  540. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmount.so.* $(1)/usr/lib/
  541. endef
  542. define Package/libsmartcols/install
  543. $(INSTALL_DIR) $(1)/usr/lib
  544. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsmartcols.so.* $(1)/usr/lib/
  545. endef
  546. define Package/libuuid/install
  547. $(INSTALL_DIR) $(1)/usr/lib
  548. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuuid.so.* $(1)/usr/lib/
  549. endef
  550. define Package/agetty/install
  551. $(INSTALL_DIR) $(1)/usr/sbin
  552. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
  553. endef
  554. define Package/blkdiscard/install
  555. $(INSTALL_DIR) $(1)/usr/sbin
  556. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
  557. endef
  558. define Package/blkid/install
  559. $(INSTALL_DIR) $(1)/usr/sbin
  560. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
  561. endef
  562. define Package/blockdev/install
  563. $(INSTALL_DIR) $(1)/usr/sbin
  564. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blockdev $(1)/usr/sbin/
  565. endef
  566. define Package/cal/install
  567. $(INSTALL_DIR) $(1)/usr/bin
  568. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
  569. endef
  570. define Package/cfdisk/install
  571. $(INSTALL_DIR) $(1)/usr/sbin
  572. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
  573. endef
  574. define Package/dmesg/install
  575. $(INSTALL_DIR) $(1)/usr/bin
  576. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
  577. endef
  578. define Package/eject/install
  579. $(INSTALL_DIR) $(1)/usr/bin
  580. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eject $(1)/usr/bin/
  581. endef
  582. define Package/fdisk/install
  583. $(INSTALL_DIR) $(1)/usr/sbin
  584. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
  585. endef
  586. define Package/findfs/install
  587. $(INSTALL_DIR) $(1)/usr/sbin
  588. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
  589. endef
  590. define Package/flock/install
  591. $(INSTALL_DIR) $(1)/usr/bin
  592. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/util-linux-flock
  593. endef
  594. define Package/fstrim/install
  595. $(INSTALL_DIR) $(1)/usr/sbin
  596. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fstrim $(1)/usr/sbin/
  597. endef
  598. define Package/getopt/install
  599. $(INSTALL_DIR) $(1)/usr/bin
  600. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
  601. endef
  602. define Package/hwclock/install
  603. $(INSTALL_DIR) $(1)/usr/sbin
  604. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
  605. endef
  606. define Package/ipcs/install
  607. $(INSTALL_DIR) $(1)/usr/bin
  608. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipcs $(1)/usr/bin/
  609. endef
  610. define Package/logger/install
  611. $(INSTALL_DIR) $(1)/usr/bin
  612. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/util-linux-logger
  613. endef
  614. define Package/look/install
  615. $(INSTALL_DIR) $(1)/usr/bin
  616. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
  617. endef
  618. define Package/losetup/install
  619. $(INSTALL_DIR) $(1)/usr/sbin
  620. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
  621. endef
  622. define Package/lsblk/install
  623. $(INSTALL_DIR) $(1)/usr/bin
  624. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
  625. endef
  626. define Package/lscpu/install
  627. $(INSTALL_DIR) $(1)/usr/bin
  628. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lscpu $(1)/usr/bin/
  629. endef
  630. define Package/lslocks/install
  631. $(INSTALL_DIR) $(1)/usr/bin
  632. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lslocks $(1)/usr/bin/
  633. endef
  634. define Package/lsns/install
  635. $(INSTALL_DIR) $(1)/usr/bin
  636. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsns $(1)/usr/bin/
  637. endef
  638. define Package/more/install
  639. $(INSTALL_DIR) $(1)/usr/bin
  640. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/more $(1)/usr/bin/
  641. endef
  642. define Package/mcookie/install
  643. $(INSTALL_DIR) $(1)/usr/bin
  644. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
  645. endef
  646. define Package/mount-utils/install
  647. $(INSTALL_DIR) $(1)/usr/bin
  648. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
  649. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
  650. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
  651. endef
  652. define Package/namei/install
  653. $(INSTALL_DIR) $(1)/usr/bin
  654. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
  655. endef
  656. define Package/nsenter/install
  657. $(INSTALL_DIR) $(1)/usr/bin
  658. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsenter $(1)/usr/bin/
  659. endef
  660. define Package/prlimit/install
  661. $(INSTALL_DIR) $(1)/usr/bin
  662. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
  663. endef
  664. define Package/rename/install
  665. $(INSTALL_DIR) $(1)/usr/bin
  666. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
  667. endef
  668. define Package/partx-utils/install
  669. $(INSTALL_DIR) $(1)/usr/sbin
  670. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
  671. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
  672. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
  673. endef
  674. define Package/script-utils/install
  675. $(INSTALL_DIR) $(1)/usr/bin
  676. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
  677. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
  678. endef
  679. define Package/setterm/install
  680. $(INSTALL_DIR) $(1)/usr/bin
  681. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
  682. endef
  683. define Package/sfdisk/install
  684. $(INSTALL_DIR) $(1)/usr/sbin
  685. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
  686. endef
  687. define Package/swap-utils/install
  688. $(INSTALL_DIR) $(1)/usr/sbin
  689. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
  690. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
  691. endef
  692. define Package/taskset/install
  693. $(INSTALL_DIR) $(1)/usr/bin
  694. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/taskset $(1)/usr/bin/
  695. endef
  696. define Package/unshare/install
  697. $(INSTALL_DIR) $(1)/usr/bin
  698. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/unshare $(1)/usr/bin/
  699. endef
  700. define Package/uuidd/install
  701. $(INSTALL_DIR) $(1)/usr/sbin
  702. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin//uuidd $(1)/usr/sbin/
  703. endef
  704. define Package/uuidgen/install
  705. $(INSTALL_DIR) $(1)/usr/bin
  706. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//uuidgen $(1)/usr/bin/
  707. endef
  708. define Package/wall/install
  709. $(INSTALL_DIR) $(1)/usr/bin
  710. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
  711. endef
  712. define Package/whereis/install
  713. $(INSTALL_DIR) $(1)/usr/bin
  714. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
  715. endef
  716. define Package/wipefs/install
  717. $(INSTALL_DIR) $(1)/usr/sbin
  718. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
  719. endef
  720. # these lines need to be ordered by dependency because of ABI versioning
  721. $(eval $(call BuildPackage,libuuid))
  722. $(eval $(call BuildPackage,libblkid))
  723. $(eval $(call BuildPackage,libfdisk))
  724. $(eval $(call BuildPackage,libmount))
  725. $(eval $(call BuildPackage,libsmartcols))
  726. $(eval $(call BuildPackage,agetty))
  727. $(eval $(call BuildPackage,blkdiscard))
  728. $(eval $(call BuildPackage,blkid))
  729. $(eval $(call BuildPackage,blockdev))
  730. $(eval $(call BuildPackage,cal))
  731. $(eval $(call BuildPackage,cfdisk))
  732. $(eval $(call BuildPackage,dmesg))
  733. $(eval $(call BuildPackage,eject))
  734. $(eval $(call BuildPackage,fdisk))
  735. $(eval $(call BuildPackage,findfs))
  736. $(eval $(call BuildPackage,flock))
  737. $(eval $(call BuildPackage,fstrim))
  738. $(eval $(call BuildPackage,getopt))
  739. $(eval $(call BuildPackage,hwclock))
  740. $(eval $(call BuildPackage,ipcs))
  741. $(eval $(call BuildPackage,logger))
  742. $(eval $(call BuildPackage,look))
  743. $(eval $(call BuildPackage,losetup))
  744. $(eval $(call BuildPackage,lsblk))
  745. $(eval $(call BuildPackage,lscpu))
  746. $(eval $(call BuildPackage,lslocks))
  747. $(eval $(call BuildPackage,lsns))
  748. $(eval $(call BuildPackage,more))
  749. $(eval $(call BuildPackage,mcookie))
  750. $(eval $(call BuildPackage,mount-utils))
  751. $(eval $(call BuildPackage,namei))
  752. $(eval $(call BuildPackage,nsenter))
  753. $(eval $(call BuildPackage,prlimit))
  754. $(eval $(call BuildPackage,rename))
  755. $(eval $(call BuildPackage,partx-utils))
  756. $(eval $(call BuildPackage,script-utils))
  757. $(eval $(call BuildPackage,setterm))
  758. $(eval $(call BuildPackage,sfdisk))
  759. $(eval $(call BuildPackage,swap-utils))
  760. $(eval $(call BuildPackage,taskset))
  761. $(eval $(call BuildPackage,unshare))
  762. $(eval $(call BuildPackage,uuidd))
  763. $(eval $(call BuildPackage,uuidgen))
  764. $(eval $(call BuildPackage,wall))
  765. $(eval $(call BuildPackage,whereis))
  766. $(eval $(call BuildPackage,wipefs))