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