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