tools/patchelf: update to 0.18.0
[openwrt/staging/dedeckeh.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.38.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.38
16 PKG_HASH:=60492a19b44e6cf9a3ddff68325b333b8b52b6c59ce3ebd6a0ecaa4c5117e84f
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 endef
489
490 define Package/taskset/description
491 contains: taskset
492 endef
493
494 define Package/unshare
495 $(call Package/util-linux/Default)
496 TITLE:=unshare userspace tool
497 endef
498
499 define Package/unshare/description
500 run programs with some namespaces unshared from parent
501 endef
502
503 define Package/uuidd
504 $(call Package/util-linux/Default)
505 TITLE:=UUID generation daemon
506 DEPENDS:= +libuuid
507 endef
508
509 define Package/uuidd/description
510 The uuidd daemon is used by the UUID library to generate universally unique
511 identifiers (UUIDs), especially time-based UUIDs, in a secure and
512 guaranteed-unique fashion, even in the face of large numbers of threads
513 running on different CPUs trying to grab UUIDs.
514 endef
515
516 define Package/uuidgen
517 $(call Package/util-linux/Default)
518 TITLE:=create a new UUID value
519 DEPENDS:= +libuuid
520 endef
521
522 define Package/uuidgen/description
523 The uuidgen program creates (and prints) a new universally unique identifier
524 (UUID) using the libuuid library. The new UUID can reasonably be considered
525 unique among all UUIDs created on the local system, and among UUIDs created on
526 other systems in the past and in the future.
527 endef
528
529 define Package/wall
530 $(call Package/util-linux/Default)
531 TITLE:=send a message to everybody's terminal
532 SUBMENU=Terminal
533 endef
534
535 define Package/wall/description
536 wall sends a message to everybody logged in with their mesg permission
537 set to yes
538 endef
539
540 define Package/whereis
541 $(call Package/util-linux/Default)
542 TITLE:=locate the binary, source, and manual page files for a command
543 endef
544
545 define Package/whereis/description
546 whereis locates source/binary and manuals sections for specified files
547 endef
548
549 define Package/wipefs
550 $(call Package/util-linux/Default)
551 TITLE:=wipe a signature from a device
552 DEPENDS:= +libblkid +libsmartcols
553 SUBMENU:=Disc
554 endef
555
556 define Package/wipefs/description
557 wipefs can erase filesystem, raid or partition table signatures (magic
558 strings) from the specified device to make the signature invisible for
559 libblkid.
560 endef
561
562 MESON_ARGS += \
563 -Dsystemd=disabled \
564 -Dtinfo=disabled \
565 -Dcryptsetup=disabled \
566 -Dlibutil=disabled \
567 -Dlibutempter=disabled \
568 -Dlibpcre2-posix=disabled \
569 -Dlibuser=disabled \
570 -Duse-tty-group=false \
571 -Duse-tls=false \
572 -Dbuild-python=disabled \
573 -Dbuild-zramctl=disabled \
574 -Dbuild-fsck=disabled \
575 -Dbuild-wipefs=disabled \
576 -Dbuild-fallocate=disabled \
577 -Dbuild-setpriv=disabled \
578 -Dbuild-hardlink=disabled \
579 -Dbuild-cramfs=disabled \
580 -Dbuild-bfs=disabled \
581 -Dbuild-minix=disabled \
582 -Dbuild-fdformat=disabled \
583 -Dbuild-lslogins=disabled \
584 -Dbuild-wdctl=disabled \
585 -Dbuild-cal=disabled \
586 -Dbuild-switch_root=disabled \
587 -Dbuild-pivot_root=disabled \
588 -Dbuild-lsmem=disabled \
589 -Dbuild-lsirq=disabled \
590 -Dbuild-irqtop=disabled \
591 -Dbuild-chmem=disabled \
592 -Dbuild-ipcrm=disabled \
593 -Dbuild-rfkill=disabled \
594 -Dbuild-tunelp=disabled \
595 -Dbuild-kill=disabled \
596 -Dbuild-last=disabled \
597 -Dbuild-utmpdump=disabled \
598 -Dbuild-line=disabled \
599 -Dbuild-mesg=disabled \
600 -Dbuild-raw=disabled \
601 -Dbuild-vipw=disabled \
602 -Dbuild-newgrp=disabled \
603 -Dbuild-chfn-chsh=disabled \
604 -Dbuild-login=disabled \
605 -Dbuild-nologin=disabled \
606 -Dbuild-sulogin=disabled \
607 -Dbuild-su=disabled \
608 -Dbuild-runuser=disabled \
609 -Dbuild-ul=disabled \
610 -Dbuild-pg=disabled \
611 -Dbuild-write=disabled \
612 -Dbuild-bash-completion=disabled \
613 -Dbuild-pylibmount=disabled \
614 -Dreadline=disabled \
615 -Dmagic=disabled \
616 -Dncursesw=enabled
617
618 define Build/InstallDev
619 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
620 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
621 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
622 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
623 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
624 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
625
626 $(INSTALL_DIR) $(1)/usr/include/blkid
627 $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
628 $(INSTALL_DIR) $(1)/usr/include/libfdisk
629 $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
630 $(INSTALL_DIR) $(1)/usr/include/libmount
631 $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
632 $(INSTALL_DIR) $(1)/usr/include/uuid
633 $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
634 $(INSTALL_DIR) $(1)/usr/include/libsmartcols
635 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
636
637 $(INSTALL_DIR) $(1)/usr/lib
638 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libblkid.so* $(1)/usr/lib
639 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdisk.so* $(1)/usr/lib
640 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmount.so* $(1)/usr/lib
641 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuuid.so* $(1)/usr/lib
642 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsmartcols.so* $(1)/usr/lib
643 endef
644
645
646 define Package/libfdisk/install
647 $(INSTALL_DIR) $(1)/usr/lib
648 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdisk.so.* $(1)/usr/lib/
649 endef
650
651 define Package/libblkid/install
652 $(INSTALL_DIR) $(1)/usr/lib
653 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libblkid.so.* $(1)/usr/lib/
654 endef
655
656 define Package/libmount/install
657 $(INSTALL_DIR) $(1)/usr/lib
658 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmount.so.* $(1)/usr/lib/
659 endef
660
661 define Package/libsmartcols/install
662 $(INSTALL_DIR) $(1)/usr/lib
663 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsmartcols.so.* $(1)/usr/lib/
664 endef
665
666 define Package/libuuid/install
667 $(INSTALL_DIR) $(1)/usr/lib
668 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuuid.so.* $(1)/usr/lib/
669 endef
670
671 define Package/agetty/install
672 $(INSTALL_DIR) $(1)/usr/sbin
673 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
674 endef
675
676 define Package/blkdiscard/install
677 $(INSTALL_DIR) $(1)/usr/sbin
678 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
679 endef
680
681 define Package/blkid/install
682 $(INSTALL_DIR) $(1)/usr/sbin
683 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
684 endef
685
686 define Package/blockdev/install
687 $(INSTALL_DIR) $(1)/usr/sbin
688 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blockdev $(1)/usr/sbin/
689 endef
690
691 define Package/cal/install
692 $(INSTALL_DIR) $(1)/usr/bin
693 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
694 endef
695
696 define Package/cfdisk/install
697 $(INSTALL_DIR) $(1)/usr/sbin
698 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
699 endef
700
701 define Package/dmesg/install
702 $(INSTALL_DIR) $(1)/usr/bin
703 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
704 endef
705
706 define Package/eject/install
707 $(INSTALL_DIR) $(1)/usr/bin
708 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eject $(1)/usr/bin/
709 endef
710
711 define Package/fdisk/install
712 $(INSTALL_DIR) $(1)/usr/sbin
713 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
714 endef
715
716 define Package/findfs/install
717 $(INSTALL_DIR) $(1)/usr/sbin
718 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
719 endef
720
721 define Package/flock/install
722 $(INSTALL_DIR) $(1)/usr/bin
723 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/util-linux-flock
724 endef
725
726 define Package/fstrim/install
727 $(INSTALL_DIR) $(1)/usr/sbin
728 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fstrim $(1)/usr/sbin/
729 endef
730
731 define Package/getopt/install
732 $(INSTALL_DIR) $(1)/usr/bin
733 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
734 endef
735
736 define Package/hwclock/install
737 $(INSTALL_DIR) $(1)/usr/sbin
738 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
739 endef
740
741 define Package/ipcs/install
742 $(INSTALL_DIR) $(1)/usr/bin
743 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipcs $(1)/usr/bin/
744 endef
745
746 define Package/logger/install
747 $(INSTALL_DIR) $(1)/usr/bin
748 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/util-linux-logger
749 endef
750
751 define Package/look/install
752 $(INSTALL_DIR) $(1)/usr/bin
753 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
754 endef
755
756 define Package/losetup/install
757 $(INSTALL_DIR) $(1)/usr/sbin
758 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
759 endef
760
761 define Package/lsblk/install
762 $(INSTALL_DIR) $(1)/usr/bin
763 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
764 endef
765
766 define Package/lscpu/install
767 $(INSTALL_DIR) $(1)/usr/bin
768 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lscpu $(1)/usr/bin/
769 endef
770
771 define Package/lslocks/install
772 $(INSTALL_DIR) $(1)/usr/bin
773 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lslocks $(1)/usr/bin/
774 endef
775
776 define Package/lsns/install
777 $(INSTALL_DIR) $(1)/usr/bin
778 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsns $(1)/usr/bin/
779 endef
780
781 define Package/more/install
782 $(INSTALL_DIR) $(1)/usr/bin
783 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/more $(1)/usr/bin/
784 endef
785
786 define Package/mcookie/install
787 $(INSTALL_DIR) $(1)/usr/bin
788 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
789 endef
790
791 define Package/mount-utils/install
792 $(INSTALL_DIR) $(1)/usr/bin
793 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
794 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
795 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
796 endef
797
798 define Package/namei/install
799 $(INSTALL_DIR) $(1)/usr/bin
800 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
801 endef
802
803 define Package/nsenter/install
804 $(INSTALL_DIR) $(1)/usr/bin
805 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsenter $(1)/usr/bin/
806 endef
807
808 define Package/prlimit/install
809 $(INSTALL_DIR) $(1)/usr/bin
810 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
811 endef
812
813 define Package/rename/install
814 $(INSTALL_DIR) $(1)/usr/bin
815 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
816 endef
817
818 define Package/rev/install
819 $(INSTALL_DIR) $(1)/usr/bin
820 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rev $(1)/usr/bin/
821 endef
822
823 define Package/partx-utils/install
824 $(INSTALL_DIR) $(1)/usr/sbin
825 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
826 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
827 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
828 endef
829
830 define Package/script-utils/install
831 $(INSTALL_DIR) $(1)/usr/bin
832 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
833 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
834 endef
835
836 define Package/setterm/install
837 $(INSTALL_DIR) $(1)/usr/bin
838 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
839 endef
840
841 define Package/sfdisk/install
842 $(INSTALL_DIR) $(1)/usr/sbin
843 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
844 endef
845
846 define Package/swap-utils/install
847 $(INSTALL_DIR) $(1)/usr/sbin
848 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
849 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
850 endef
851
852 define Package/taskset/install
853 $(INSTALL_DIR) $(1)/usr/bin
854 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/taskset $(1)/usr/bin/
855 endef
856
857 define Package/unshare/install
858 $(INSTALL_DIR) $(1)/usr/bin
859 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/unshare $(1)/usr/bin/
860 endef
861
862 define Package/uuidd/install
863 $(INSTALL_DIR) $(1)/usr/sbin
864 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin//uuidd $(1)/usr/sbin/
865 endef
866
867 define Package/uuidgen/install
868 $(INSTALL_DIR) $(1)/usr/bin
869 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//uuidgen $(1)/usr/bin/
870 endef
871
872 define Package/wall/install
873 $(INSTALL_DIR) $(1)/usr/bin
874 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
875 endef
876
877 define Package/whereis/install
878 $(INSTALL_DIR) $(1)/usr/bin
879 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
880 endef
881
882 define Package/wipefs/install
883 $(INSTALL_DIR) $(1)/usr/sbin
884 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
885 endef
886
887 # these lines need to be ordered by dependency because of ABI versioning
888 $(eval $(call BuildPackage,libuuid))
889 $(eval $(call BuildPackage,libblkid))
890 $(eval $(call BuildPackage,libfdisk))
891
892 $(eval $(call BuildPackage,libmount))
893 $(eval $(call BuildPackage,libsmartcols))
894 $(eval $(call BuildPackage,agetty))
895 $(eval $(call BuildPackage,blkdiscard))
896 $(eval $(call BuildPackage,blkid))
897 $(eval $(call BuildPackage,blockdev))
898 $(eval $(call BuildPackage,cal))
899 $(eval $(call BuildPackage,cfdisk))
900 $(eval $(call BuildPackage,dmesg))
901 $(eval $(call BuildPackage,eject))
902 $(eval $(call BuildPackage,fdisk))
903 $(eval $(call BuildPackage,findfs))
904 $(eval $(call BuildPackage,flock))
905 $(eval $(call BuildPackage,fstrim))
906 $(eval $(call BuildPackage,getopt))
907 $(eval $(call BuildPackage,hwclock))
908 $(eval $(call BuildPackage,ipcs))
909 $(eval $(call BuildPackage,logger))
910 $(eval $(call BuildPackage,look))
911 $(eval $(call BuildPackage,losetup))
912 $(eval $(call BuildPackage,lsblk))
913 $(eval $(call BuildPackage,lscpu))
914 $(eval $(call BuildPackage,lslocks))
915 $(eval $(call BuildPackage,lsns))
916 $(eval $(call BuildPackage,more))
917 $(eval $(call BuildPackage,mcookie))
918 $(eval $(call BuildPackage,mount-utils))
919 $(eval $(call BuildPackage,namei))
920 $(eval $(call BuildPackage,nsenter))
921 $(eval $(call BuildPackage,prlimit))
922 $(eval $(call BuildPackage,rename))
923 $(eval $(call BuildPackage,rev))
924 $(eval $(call BuildPackage,partx-utils))
925 $(eval $(call BuildPackage,script-utils))
926 $(eval $(call BuildPackage,setterm))
927 $(eval $(call BuildPackage,sfdisk))
928 $(eval $(call BuildPackage,swap-utils))
929 $(eval $(call BuildPackage,taskset))
930 $(eval $(call BuildPackage,unshare))
931 $(eval $(call BuildPackage,uuidd))
932 $(eval $(call BuildPackage,uuidgen))
933 $(eval $(call BuildPackage,wall))
934 $(eval $(call BuildPackage,whereis))
935 $(eval $(call BuildPackage,wipefs))