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