Makefile 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975
  1. #
  2. # Copyright (C) 2007-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=util-linux
  9. PKG_VERSION:=2.41.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.41
  13. PKG_HASH:=be9ad9a276f4305ab7dd2f5225c8be1ff54352f565ff4dede9628c1aaa7dec57
  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/wdctl
  453. $(call Package/util-linux/Default)
  454. TITLE:=show hardware watchdog status
  455. DEPENDS:= +libsmartcols
  456. endef
  457. define Package/wdctl/description
  458. Show hardware watchdog status. The default device is /dev/watchdog. If more
  459. than one device is specified then the output is separated by one blank line.
  460. If the device is already used or user has no permissions to read from the
  461. device, then wdctl reads data from sysfs. In this case information about
  462. supported features (flags) might be missing. Note that the number of supported
  463. watchdog features is hardware specific.
  464. endef
  465. define Package/whereis
  466. $(call Package/util-linux/Default)
  467. TITLE:=locate the binary, source, and manual page files for a command
  468. endef
  469. define Package/whereis/description
  470. whereis locates source/binary and manuals sections for specified files
  471. endef
  472. define Package/wipefs
  473. $(call Package/util-linux/Default)
  474. TITLE:=wipe a signature from a device
  475. DEPENDS:= +libblkid +libsmartcols
  476. SUBMENU:=Disc
  477. endef
  478. define Package/wipefs/description
  479. wipefs can erase filesystem, raid or partition table signatures (magic
  480. strings) from the specified device to make the signature invisible for
  481. libblkid.
  482. endef
  483. MESON_ARGS += \
  484. -Dsystemd=disabled \
  485. -Dtinfo=disabled \
  486. -Dcryptsetup=disabled \
  487. -Dlibutil=disabled \
  488. -Dlibutempter=disabled \
  489. -Dlibpcre2-posix=disabled \
  490. -Dlibuser=disabled \
  491. -Duse-tty-group=false \
  492. -Duse-tls=false \
  493. -Dtranslate-docs=disabled \
  494. -Dbuild-python=disabled \
  495. -Dbuild-zramctl=disabled \
  496. -Dbuild-fsck=disabled \
  497. -Dbuild-wipefs=disabled \
  498. -Dbuild-fallocate=disabled \
  499. -Dbuild-setpriv=disabled \
  500. -Dbuild-hardlink=disabled \
  501. -Dbuild-cramfs=disabled \
  502. -Dbuild-bfs=disabled \
  503. -Dbuild-minix=disabled \
  504. -Dbuild-fdformat=disabled \
  505. -Dbuild-lslogins=disabled \
  506. -Dbuild-switch_root=disabled \
  507. -Dbuild-pivot_root=disabled \
  508. -Dbuild-lsmem=disabled \
  509. -Dbuild-lsirq=disabled \
  510. -Dbuild-irqtop=disabled \
  511. -Dbuild-chmem=disabled \
  512. -Dbuild-ipcrm=disabled \
  513. -Dbuild-rfkill=disabled \
  514. -Dbuild-tunelp=disabled \
  515. -Dbuild-kill=disabled \
  516. -Dbuild-last=disabled \
  517. -Dbuild-utmpdump=disabled \
  518. -Dbuild-line=disabled \
  519. -Dbuild-mesg=disabled \
  520. -Dbuild-raw=disabled \
  521. -Dbuild-vipw=disabled \
  522. -Dbuild-newgrp=disabled \
  523. -Dbuild-chfn-chsh=disabled \
  524. -Dbuild-login=disabled \
  525. -Dbuild-nologin=disabled \
  526. -Dbuild-sulogin=disabled \
  527. -Dbuild-su=disabled \
  528. -Dbuild-runuser=disabled \
  529. -Dbuild-ul=disabled \
  530. -Dbuild-pg=disabled \
  531. -Dbuild-write=disabled \
  532. -Dbuild-bash-completion=disabled \
  533. -Dbuild-pylibmount=disabled \
  534. -Dbuild-liblastlog2=disabled \
  535. -Dreadline=disabled \
  536. -Dmagic=disabled \
  537. -Dncursesw=enabled
  538. define Build/InstallDev
  539. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  540. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
  541. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
  542. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
  543. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
  544. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
  545. $(INSTALL_DIR) $(1)/usr/include/blkid
  546. $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
  547. $(INSTALL_DIR) $(1)/usr/include/libfdisk
  548. $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
  549. $(INSTALL_DIR) $(1)/usr/include/libmount
  550. $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
  551. $(INSTALL_DIR) $(1)/usr/include/uuid
  552. $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
  553. $(INSTALL_DIR) $(1)/usr/include/libsmartcols
  554. $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
  555. $(INSTALL_DIR) $(1)/usr/lib
  556. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libblkid.so* $(1)/usr/lib
  557. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdisk.so* $(1)/usr/lib
  558. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmount.so* $(1)/usr/lib
  559. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuuid.so* $(1)/usr/lib
  560. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsmartcols.so* $(1)/usr/lib
  561. endef
  562. define Package/libfdisk/install
  563. $(INSTALL_DIR) $(1)/usr/lib
  564. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdisk.so.* $(1)/usr/lib/
  565. endef
  566. define Package/libblkid/install
  567. $(INSTALL_DIR) $(1)/usr/lib
  568. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libblkid.so.* $(1)/usr/lib/
  569. endef
  570. define Package/libmount/install
  571. $(INSTALL_DIR) $(1)/usr/lib
  572. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmount.so.* $(1)/usr/lib/
  573. endef
  574. define Package/libsmartcols/install
  575. $(INSTALL_DIR) $(1)/usr/lib
  576. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsmartcols.so.* $(1)/usr/lib/
  577. endef
  578. define Package/libuuid/install
  579. $(INSTALL_DIR) $(1)/usr/lib
  580. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuuid.so.* $(1)/usr/lib/
  581. endef
  582. define Package/agetty/install
  583. $(INSTALL_DIR) $(1)/usr/sbin
  584. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
  585. endef
  586. define Package/blkdiscard/install
  587. $(INSTALL_DIR) $(1)/usr/sbin
  588. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
  589. endef
  590. define Package/blkid/install
  591. $(INSTALL_DIR) $(1)/usr/sbin
  592. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
  593. endef
  594. define Package/blockdev/install
  595. $(INSTALL_DIR) $(1)/usr/sbin
  596. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blockdev $(1)/usr/sbin/
  597. endef
  598. define Package/cal/install
  599. $(INSTALL_DIR) $(1)/usr/bin
  600. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
  601. endef
  602. define Package/cfdisk/install
  603. $(INSTALL_DIR) $(1)/usr/sbin
  604. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
  605. endef
  606. define Package/colrm/install
  607. $(INSTALL_DIR) $(1)/usr/bin
  608. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/colrm $(1)/usr/bin/
  609. endef
  610. define Package/dmesg/install
  611. $(INSTALL_DIR) $(1)/usr/bin
  612. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
  613. endef
  614. define Package/eject/install
  615. $(INSTALL_DIR) $(1)/usr/bin
  616. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eject $(1)/usr/bin/
  617. endef
  618. define Package/fdisk/install
  619. $(INSTALL_DIR) $(1)/usr/sbin
  620. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
  621. endef
  622. define Package/findfs/install
  623. $(INSTALL_DIR) $(1)/usr/sbin
  624. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
  625. endef
  626. define Package/flock/install
  627. $(INSTALL_DIR) $(1)/usr/bin
  628. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/util-linux-flock
  629. endef
  630. define Package/fstrim/install
  631. $(INSTALL_DIR) $(1)/usr/sbin
  632. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fstrim $(1)/usr/sbin/
  633. endef
  634. define Package/getopt/install
  635. $(INSTALL_DIR) $(1)/usr/bin
  636. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
  637. endef
  638. define Package/hwclock/install
  639. $(INSTALL_DIR) $(1)/usr/sbin
  640. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
  641. endef
  642. define Package/ipcs/install
  643. $(INSTALL_DIR) $(1)/usr/bin
  644. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipcs $(1)/usr/bin/
  645. endef
  646. define Package/logger/install
  647. $(INSTALL_DIR) $(1)/usr/bin
  648. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/util-linux-logger
  649. endef
  650. define Package/look/install
  651. $(INSTALL_DIR) $(1)/usr/bin
  652. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
  653. endef
  654. define Package/losetup/install
  655. $(INSTALL_DIR) $(1)/usr/sbin
  656. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
  657. endef
  658. define Package/lsblk/install
  659. $(INSTALL_DIR) $(1)/usr/bin
  660. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
  661. endef
  662. define Package/lscpu/install
  663. $(INSTALL_DIR) $(1)/usr/bin
  664. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lscpu $(1)/usr/bin/
  665. endef
  666. define Package/lslocks/install
  667. $(INSTALL_DIR) $(1)/usr/bin
  668. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lslocks $(1)/usr/bin/
  669. endef
  670. define Package/lsns/install
  671. $(INSTALL_DIR) $(1)/usr/bin
  672. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsns $(1)/usr/bin/
  673. endef
  674. define Package/more/install
  675. $(INSTALL_DIR) $(1)/usr/bin
  676. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/more $(1)/usr/bin/
  677. endef
  678. define Package/mcookie/install
  679. $(INSTALL_DIR) $(1)/usr/bin
  680. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
  681. endef
  682. define Package/mount-utils/install
  683. $(INSTALL_DIR) $(1)/usr/bin
  684. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
  685. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
  686. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
  687. endef
  688. define Package/namei/install
  689. $(INSTALL_DIR) $(1)/usr/bin
  690. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
  691. endef
  692. define Package/nsenter/install
  693. $(INSTALL_DIR) $(1)/usr/bin
  694. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsenter $(1)/usr/bin/
  695. endef
  696. define Package/prlimit/install
  697. $(INSTALL_DIR) $(1)/usr/bin
  698. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
  699. endef
  700. define Package/rename/install
  701. $(INSTALL_DIR) $(1)/usr/bin
  702. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
  703. endef
  704. define Package/rev/install
  705. $(INSTALL_DIR) $(1)/usr/bin
  706. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rev $(1)/usr/bin/
  707. endef
  708. define Package/partx-utils/install
  709. $(INSTALL_DIR) $(1)/usr/sbin
  710. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
  711. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
  712. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
  713. endef
  714. define Package/script-utils/install
  715. $(INSTALL_DIR) $(1)/usr/bin
  716. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
  717. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
  718. endef
  719. define Package/setterm/install
  720. $(INSTALL_DIR) $(1)/usr/bin
  721. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
  722. endef
  723. define Package/sfdisk/install
  724. $(INSTALL_DIR) $(1)/usr/sbin
  725. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
  726. endef
  727. define Package/swap-utils/install
  728. $(INSTALL_DIR) $(1)/usr/sbin
  729. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
  730. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
  731. endef
  732. define Package/taskset/install
  733. $(INSTALL_DIR) $(1)/usr/bin
  734. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/taskset $(1)/usr/bin/util-linux-taskset
  735. endef
  736. define Package/unshare/install
  737. $(INSTALL_DIR) $(1)/usr/bin
  738. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/unshare $(1)/usr/bin/
  739. endef
  740. define Package/uuidd/install
  741. $(INSTALL_DIR) $(1)/usr/sbin
  742. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/uuidd $(1)/usr/sbin/
  743. endef
  744. define Package/uuidgen/install
  745. $(INSTALL_DIR) $(1)/usr/bin
  746. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/uuidgen $(1)/usr/bin/
  747. endef
  748. define Package/wall/install
  749. $(INSTALL_DIR) $(1)/usr/bin
  750. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
  751. endef
  752. # Install to /bin instead of /usr/bin to not conflict wdctl from wifidog
  753. define Package/wdctl/install
  754. $(INSTALL_DIR) $(1)/bin
  755. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wdctl $(1)/bin/
  756. endef
  757. define Package/whereis/install
  758. $(INSTALL_DIR) $(1)/usr/bin
  759. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
  760. endef
  761. define Package/wipefs/install
  762. $(INSTALL_DIR) $(1)/usr/sbin
  763. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
  764. endef
  765. # these lines need to be ordered by dependency because of ABI versioning
  766. $(eval $(call BuildPackage,libuuid))
  767. $(eval $(call BuildPackage,libblkid))
  768. $(eval $(call BuildPackage,libfdisk))
  769. $(eval $(call BuildPackage,libmount))
  770. $(eval $(call BuildPackage,libsmartcols))
  771. $(eval $(call BuildPackage,agetty))
  772. $(eval $(call BuildPackage,blkdiscard))
  773. $(eval $(call BuildPackage,blkid))
  774. $(eval $(call BuildPackage,blockdev))
  775. $(eval $(call BuildPackage,cal))
  776. $(eval $(call BuildPackage,cfdisk))
  777. $(eval $(call BuildPackage,colrm))
  778. $(eval $(call BuildPackage,dmesg))
  779. $(eval $(call BuildPackage,eject))
  780. $(eval $(call BuildPackage,fdisk))
  781. $(eval $(call BuildPackage,findfs))
  782. $(eval $(call BuildPackage,flock))
  783. $(eval $(call BuildPackage,fstrim))
  784. $(eval $(call BuildPackage,getopt))
  785. $(eval $(call BuildPackage,hwclock))
  786. $(eval $(call BuildPackage,ipcs))
  787. $(eval $(call BuildPackage,logger))
  788. $(eval $(call BuildPackage,look))
  789. $(eval $(call BuildPackage,losetup))
  790. $(eval $(call BuildPackage,lsblk))
  791. $(eval $(call BuildPackage,lscpu))
  792. $(eval $(call BuildPackage,lslocks))
  793. $(eval $(call BuildPackage,lsns))
  794. $(eval $(call BuildPackage,more))
  795. $(eval $(call BuildPackage,mcookie))
  796. $(eval $(call BuildPackage,mount-utils))
  797. $(eval $(call BuildPackage,namei))
  798. $(eval $(call BuildPackage,nsenter))
  799. $(eval $(call BuildPackage,prlimit))
  800. $(eval $(call BuildPackage,rename))
  801. $(eval $(call BuildPackage,rev))
  802. $(eval $(call BuildPackage,partx-utils))
  803. $(eval $(call BuildPackage,script-utils))
  804. $(eval $(call BuildPackage,setterm))
  805. $(eval $(call BuildPackage,sfdisk))
  806. $(eval $(call BuildPackage,swap-utils))
  807. $(eval $(call BuildPackage,taskset))
  808. $(eval $(call BuildPackage,unshare))
  809. $(eval $(call BuildPackage,uuidd))
  810. $(eval $(call BuildPackage,uuidgen))
  811. $(eval $(call BuildPackage,wall))
  812. $(eval $(call BuildPackage,wdctl))
  813. $(eval $(call BuildPackage,whereis))
  814. $(eval $(call BuildPackage,wipefs))