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