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