Makefile 25 KB

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