4c0260a99886368455731e17968f6378694b55d4
[openwrt/openwrt.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.32.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.32
16 PKG_HASH:=86e6707a379c7ff5489c218cfaf1e3464b0b95acf7817db0bc5f179e356a67b2
17 PKG_CPE_ID:=cpe:/a:kernel:util-linux
18
19 PKG_LICENSE:=GPL-2.0
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_BUILD_PARALLEL:=1
29
30 PKG_FIXUP:=autoreconf
31 PKG_INSTALL:=1
32
33 DISABLE_NLS:=--disable-nls
34
35 include $(INCLUDE_DIR)/package.mk
36
37 define Package/util-linux/Default
38 SECTION:=utils
39 CATEGORY:=Utilities
40 DEPENDS:= +librt
41 URL:=http://www.kernel.org/pub/linux/utils/util-linux/
42 endef
43
44 define Package/libblkid
45 $(call Package/util-linux/Default)
46 DEPENDS:=+libuuid
47 TITLE:=block device id library
48 SECTION:=libs
49 CATEGORY:=Libraries
50 endef
51
52 define Package/libblkid/description
53 The libblkid library is used to identify block devices (disks) as to their
54 content (e.g. filesystem type, partitions) as well as extracting additional
55 information such as filesystem labels/volume names, partitions, unique
56 identifiers/serial numbers...
57 endef
58
59 define Package/libfdisk
60 $(call Package/util-linux/Default)
61 DEPENDS:=+libuuid +libblkid
62 TITLE:=partition manipulating library
63 SECTION:=libs
64 CATEGORY:=Libraries
65 endef
66
67 define Package/libfdisk/description
68 The libfdisk library is used for manipulating with partition tables.
69 endef
70
71 define Package/libmount
72 $(call Package/util-linux/Default)
73 DEPENDS:=+libblkid
74 TITLE:=mount library
75 SECTION:=libs
76 CATEGORY:=Libraries
77 endef
78
79 define Package/libmount/description
80 The libmount library is used to parse /etc/fstab, /etc/mtab and
81 /proc/self/mountinfo files, manage the mtab file, evaluate mount options...
82 endef
83
84 define Package/libuuid
85 $(call Package/util-linux/Default)
86 TITLE:=DCE compatible Universally Unique Identifier library
87 SECTION:=libs
88 CATEGORY:=Libraries
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 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 endef
125
126 define Package/blkdiscard/description
127 The blkdiscard is used to discard device sectors. This is useful for
128 solid-state drivers (SSDs) and thinly-provisioned storage. Unlike fstrim,
129 this command is used directly on the block device.
130 endef
131
132 define Package/blkid
133 $(call Package/util-linux/Default)
134 TITLE:=locate and print block device attributes
135 DEPENDS:= +libblkid +libuuid
136 SUBMENU=Disc
137 endef
138
139 define Package/blkid/description
140 The blkid program is the command-line interface to working with the libblkid
141 library.
142 endef
143
144 define Package/blockdev
145 $(call Package/util-linux/Default)
146 TITLE:=call block device ioctls from the command line
147 SUBMENU=Disc
148 endef
149
150 define Package/blockdev/description
151 The blockdev program is the command-line interface to call block device ioctls.
152 endef
153
154 define Package/cal
155 $(call Package/util-linux/Default)
156 TITLE:=display a calendar
157 DEPENDS:= +libncurses
158 endef
159
160 define Package/cal/description
161 cal displays a simple calendar
162 endef
163
164 define Package/cfdisk
165 $(call Package/util-linux/Default)
166 TITLE:=display or manipulate disk partition table
167 DEPENDS:= +libblkid +libncurses +libsmartcols +libfdisk +libmount
168 SUBMENU:=Disc
169 endef
170
171 define Package/cfdisk/description
172 cfdisk is a curses-based program for partitioning any hard disk drive
173 endef
174
175 define Package/dmesg
176 $(call Package/util-linux/Default)
177 TITLE:=print or control the kernel ring buffer
178 DEPENDS:= +libncursesw
179 endef
180
181 define Package/dmesg/description
182 dmesg is used to examine or control the kernel ring buffer
183 endef
184
185 define Package/eject
186 $(call Package/util-linux/Default)
187 TITLE:=eject removable media
188 DEPENDS:= +libblkid +libmount +libuuid
189 SUBMENU=Disc
190 endef
191
192 define Package/eject/description
193 eject allows removable media (typically a CD-ROM, floppy disk, tape, or JAZ
194 or ZIP disk) to be ejected under software control.
195 endef
196
197 define Package/fdisk
198 $(call Package/util-linux/Default)
199 TITLE:=manipulate disk partition table
200 DEPENDS:= +libblkid +libsmartcols +libfdisk +libncursesw
201 SUBMENU=Disc
202 endef
203
204 define Package/fdisk/description
205 a menu-driven program for creation and manipulation of partition tables
206 endef
207
208 define Package/findfs
209 $(call Package/util-linux/Default)
210 TITLE:=find a filesystem by label or UUID
211 DEPENDS:= +libblkid
212 SUBMENU=Disc
213 endef
214
215 define Package/findfs/description
216 findfs will search the disks in the system looking for a filesystem which has
217 a label matching label or a UUID equal to uuid
218 endef
219
220 define Package/flock
221 $(call Package/util-linux/Default)
222 TITLE:=manage locks from shell scripts
223 ALTERNATIVES:=200:/usr/bin/flock:/usr/bin/util-linux-flock
224 endef
225
226 define Package/flock/description
227 manages flock locks from within shell scripts or the command line
228 endef
229
230 define Package/fstrim
231 $(call Package/util-linux/Default)
232 TITLE:=discard unused blocks on a mounted filesystem
233 DEPENDS:= +libblkid +libuuid +libsmartcols +libmount
234 SUBMENU=Filesystem
235 endef
236
237 define Package/fstrim/description
238 fstrim is used on a mounted filesystem to discard (or "trim") blocks
239 which are not in use by the filesystem. This is useful for solid-
240 state drives (SSDs) and thinly-provisioned storage.
241 endef
242
243 define Package/getopt
244 $(call Package/util-linux/Default)
245 TITLE:=parse command options (enhanced)
246 endef
247
248 define Package/getopt/description
249 getopt is used to break up (parse) options in command lines for easy parsing
250 by shell procedures, and to check for legal options
251 endef
252
253 define Package/hwclock
254 $(call Package/util-linux/Default)
255 TITLE:=query or set the hardware clock
256 endef
257
258 define Package/hwclock/description
259 hwclock is a tool for accessing the Hardware Clock
260 endef
261
262 define Package/logger
263 $(call Package/util-linux/Default)
264 TITLE:=a shell command interface to the syslog system log module
265 endef
266
267 define Package/logger/description
268 logger makes entries in the system log, it provides a shell command interface
269 to the syslog system log module
270 endef
271
272 define Package/look
273 $(call Package/util-linux/Default)
274 TITLE:=display lines beginning with a given string
275 endef
276
277 define Package/look/description
278 look utility displays any lines in file which contain string
279 endef
280
281 define Package/losetup
282 $(call Package/util-linux/Default)
283 TITLE:=set up and control loop devices
284 DEPENDS:= +libsmartcols
285 endef
286
287 define Package/losetup/description
288 losetup is used to associate loop devices with regular files or block devices,
289 to detach loop devices and to query the status of a loop device
290 endef
291
292 define Package/lsblk
293 $(call Package/util-linux/Default)
294 TITLE:=list block devices
295 DEPENDS:= +libblkid +libmount +libsmartcols
296 SUBMENU=Disc
297 endef
298
299 define Package/lsblk/description
300 lsblk lists information about all or the specified block devices
301 endef
302
303 define Package/lscpu
304 $(call Package/util-linux/Default)
305 TITLE:=display information about the CPU architecture
306 DEPENDS:= +libsmartcols
307 endef
308
309 define Package/lscpu/description
310 lscpu displays information about the CPU architecture
311 endef
312
313 define Package/mcookie
314 $(call Package/util-linux/Default)
315 TITLE:=generate magic cookies for xauth
316 endef
317
318 define Package/mcookie/description
319 mcookie generates a 128-bit random hexadecimal number for use with the X
320 authority system
321 endef
322
323 define Package/mount-utils
324 $(call Package/util-linux/Default)
325 TITLE:=related (u)mount utilities
326 DEPENDS+= +libmount +libsmartcols
327 endef
328
329 define Package/mount-utils/description
330 contains: mount, umount, findmnt
331 endef
332
333 define Package/namei
334 $(call Package/util-linux/Default)
335 TITLE:=follow a pathname until a terminal point is found
336 endef
337
338 define Package/namei/description
339 namei uses its arguments as pathnames to any type of Unix file (symlinks,
340 files, directories, and so forth)
341 endef
342
343 define Package/nsenter
344 $(call Package/util-linux/Default)
345 TITLE:=enter a namespace
346 endef
347
348 define Package/nsenter/description
349 run program with namespaces of other processes
350 endef
351
352 define Package/prlimit
353 $(call Package/util-linux/Default)
354 TITLE:=get and set process resource limits
355 DEPENDS:= +libsmartcols
356 endef
357
358 define Package/prlimit/description
359 Given a process id and one or more resources, prlimit tries to retrieve
360 and/or modify the limits.
361 endef
362
363 define Package/rename
364 $(call Package/util-linux/Default)
365 TITLE:=rename files
366 endef
367
368 define Package/rename/description
369 rename will rename the specified files by replacing the first occurrence of
370 expression in their name by replacement
371 endef
372
373 define Package/partx-utils
374 $(call Package/util-linux/Default)
375 TITLE:=inform kernel about the presence and numbering of on-disk partitions
376 DEPENDS:= +libblkid +libsmartcols
377 SUBMENU=Disc
378 endef
379
380 define Package/partx-utils/description
381 contains partx, addpart, delpart
382 endef
383
384 define Package/script-utils
385 $(call Package/util-linux/Default)
386 TITLE:=make and replay typescript of terminal session
387 SUBMENU=Terminal
388 endef
389
390 define Package/script-utils/description
391 contains: script, scriptreplay
392 endef
393
394 define Package/setterm
395 $(call Package/util-linux/Default)
396 TITLE:=set terminal attributes
397 DEPENDS:= +libncurses
398 SUBMENU:=Terminal
399 endef
400
401 define Package/setterm/description
402 setterm writes to standard output a character string that will invoke the
403 specified terminal capabilities
404 endef
405
406 define Package/sfdisk
407 $(call Package/util-linux/Default)
408 TITLE:=partition table manipulator for Linux
409 SUBMENU=Disc
410 DEPENDS:= +libblkid +libfdisk +libsmartcols +libncursesw
411 endef
412
413 define Package/sfdisk/description
414 list the size of a partition, list the partitions on a device, check the
415 partitions on a device and repartition a device
416 endef
417
418 define Package/swap-utils
419 $(call Package/util-linux/Default)
420 TITLE:=swap space management utilities
421 DEPENDS+= +libblkid
422 SUBMENU:=Filesystem
423 endef
424
425 define Package/swap-utils/description
426 contains: mkswap, swaplabel
427 endef
428
429 define Package/unshare
430 $(call Package/util-linux/Default)
431 TITLE:=unshare userspace tool
432 endef
433
434 define Package/unshare/description
435 run programs with some namespaces unshared from parent
436 endef
437
438 define Package/uuidd
439 $(call Package/util-linux/Default)
440 TITLE:=UUID generation daemon
441 DEPENDS:= +libuuid
442 endef
443
444 define Package/uuidd/description
445 The uuidd daemon is used by the UUID library to generate universally unique
446 identifiers (UUIDs), especially time-based UUIDs, in a secure and
447 guaranteed-unique fashion, even in the face of large numbers of threads
448 running on different CPUs trying to grab UUIDs.
449 endef
450
451 define Package/uuidgen
452 $(call Package/util-linux/Default)
453 TITLE:=create a new UUID value
454 DEPENDS:= +libuuid
455 endef
456
457 define Package/uuidgen/description
458 The uuidgen program creates (and prints) a new universally unique identifier
459 (UUID) using the libuuid library. The new UUID can reasonably be considered
460 unique among all UUIDs created on the local system, and among UUIDs created on
461 other systems in the past and in the future.
462 endef
463
464 define Package/wall
465 $(call Package/util-linux/Default)
466 TITLE:=send a message to everybody's terminal
467 SUBMENU=Terminal
468 endef
469
470 define Package/wall/description
471 wall sends a message to everybody logged in with their mesg permission
472 set to yes
473 endef
474
475 define Package/whereis
476 $(call Package/util-linux/Default)
477 TITLE:=locate the binary, source, and manual page files for a command
478 endef
479
480 define Package/whereis/description
481 whereis locates source/binary and manuals sections for specified files
482 endef
483
484 define Package/wipefs
485 $(call Package/util-linux/Default)
486 TITLE:=wipe a signature from a device
487 DEPENDS:= +libblkid +libsmartcols
488 SUBMENU:=Disc
489 endef
490
491 define Package/wipefs/description
492 wipefs can erase filesystem, raid or partition table signatures (magic
493 strings) from the specified device to make the signature invisible for
494 libblkid.
495 endef
496
497 CONFIGURE_ARGS += \
498 --disable-use-tty-group \
499 --disable-rpath \
500 --disable-tls \
501 --disable-sulogin \
502 --disable-makeinstall-chown \
503 --without-python \
504 --without-udev \
505 --without-readline \
506 --disable-more \
507 --with-ncursesw
508
509 TARGET_CFLAGS += $(FPIC) -std=gnu99
510
511 define Build/InstallDev
512 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
513 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
514 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
515 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
516 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
517 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
518
519 $(INSTALL_DIR) $(1)/usr/include/blkid
520 $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
521 $(INSTALL_DIR) $(1)/usr/include/libfdisk
522 $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
523 $(INSTALL_DIR) $(1)/usr/include/libmount
524 $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
525 $(INSTALL_DIR) $(1)/usr/include/uuid
526 $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
527 $(INSTALL_DIR) $(1)/usr/include/libsmartcols
528 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
529
530 $(INSTALL_DIR) $(1)/usr/lib
531 $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so* $(1)/usr/lib
532 $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so* $(1)/usr/lib
533 $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so* $(1)/usr/lib
534 $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so* $(1)/usr/lib
535 $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so* $(1)/usr/lib
536
537 $(LN) libblkid.so.1 $(1)/usr/lib/libblkid.so
538 $(LN) libfdisk.so.1 $(1)/usr/lib/libfdisk.so
539 $(LN) libmount.so.1 $(1)/usr/lib/libmount.so
540 $(LN) libuuid.so.1 $(1)/usr/lib/libuuid.so
541 $(LN) libsmartcols.so.1 $(1)/usr/lib/libsmartcols.so
542 endef
543
544
545 define Package/libfdisk/install
546 $(INSTALL_DIR) $(1)/usr/lib
547 $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so* $(1)/usr/lib/
548 $(LN) libfdisk.so.1 $(1)/usr/lib/libfdisk.so
549 endef
550
551 define Package/libblkid/install
552 $(INSTALL_DIR) $(1)/usr/lib
553 $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so* $(1)/usr/lib/
554 $(LN) libblkid.so.1 $(1)/usr/lib/libblkid.so
555 endef
556
557 define Package/libmount/install
558 $(INSTALL_DIR) $(1)/usr/lib
559 $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so* $(1)/usr/lib/
560 $(LN) libmount.so.1 $(1)/usr/lib/libmount.so
561 endef
562
563 define Package/libsmartcols/install
564 $(INSTALL_DIR) $(1)/usr/lib
565 $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so* $(1)/usr/lib/
566 $(LN) libsmartcols.so.1 $(1)/usr/lib/libsmartcols.so
567 endef
568
569 define Package/libuuid/install
570 $(INSTALL_DIR) $(1)/usr/lib
571 $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so* $(1)/usr/lib/
572 $(LN) libuuid.so.1 $(1)/usr/lib/libuuid.so
573 endef
574
575 define Package/agetty/install
576 $(INSTALL_DIR) $(1)/usr/sbin
577 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
578 endef
579
580 define Package/blkdiscard/install
581 $(INSTALL_DIR) $(1)/usr/sbin
582 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
583 endef
584
585 define Package/blkid/install
586 $(INSTALL_DIR) $(1)/usr/sbin
587 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
588 endef
589
590 define Package/blockdev/install
591 $(INSTALL_DIR) $(1)/usr/sbin
592 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blockdev $(1)/usr/sbin/
593 endef
594
595 define Package/cal/install
596 $(INSTALL_DIR) $(1)/usr/bin
597 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
598 endef
599
600 define Package/cfdisk/install
601 $(INSTALL_DIR) $(1)/usr/sbin
602 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
603 endef
604
605 define Package/dmesg/install
606 $(INSTALL_DIR) $(1)/usr/bin
607 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
608 endef
609
610 define Package/eject/install
611 $(INSTALL_DIR) $(1)/usr/bin
612 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eject $(1)/usr/bin/
613 endef
614
615 define Package/fdisk/install
616 $(INSTALL_DIR) $(1)/usr/sbin
617 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
618 endef
619
620 define Package/findfs/install
621 $(INSTALL_DIR) $(1)/usr/sbin
622 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
623 endef
624
625 define Package/flock/install
626 $(INSTALL_DIR) $(1)/usr/bin
627 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/util-linux-flock
628 endef
629
630 define Package/fstrim/install
631 $(INSTALL_DIR) $(1)/usr/sbin
632 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fstrim $(1)/usr/sbin/
633 endef
634
635 define Package/getopt/install
636 $(INSTALL_DIR) $(1)/usr/bin
637 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
638 endef
639
640 define Package/hwclock/install
641 $(INSTALL_DIR) $(1)/usr/sbin
642 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
643 endef
644
645 define Package/logger/install
646 $(INSTALL_DIR) $(1)/usr/bin
647 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/
648 endef
649
650 define Package/look/install
651 $(INSTALL_DIR) $(1)/usr/bin
652 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
653 endef
654
655 define Package/losetup/install
656 $(INSTALL_DIR) $(1)/usr/sbin
657 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
658 endef
659
660 define Package/lsblk/install
661 $(INSTALL_DIR) $(1)/usr/bin
662 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
663 endef
664
665 define Package/lscpu/install
666 $(INSTALL_DIR) $(1)/usr/bin
667 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lscpu $(1)/usr/bin/
668 endef
669
670 define Package/mcookie/install
671 $(INSTALL_DIR) $(1)/usr/bin
672 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
673 endef
674
675 define Package/mount-utils/install
676 $(INSTALL_DIR) $(1)/usr/bin
677 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
678 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
679 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
680 endef
681
682 define Package/namei/install
683 $(INSTALL_DIR) $(1)/usr/bin
684 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
685 endef
686
687 define Package/nsenter/install
688 $(INSTALL_DIR) $(1)/usr/bin
689 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsenter $(1)/usr/bin/
690 endef
691
692 define Package/prlimit/install
693 $(INSTALL_DIR) $(1)/usr/bin
694 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
695 endef
696
697 define Package/rename/install
698 $(INSTALL_DIR) $(1)/usr/bin
699 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
700 endef
701
702 define Package/partx-utils/install
703 $(INSTALL_DIR) $(1)/usr/sbin
704 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
705 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
706 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
707 endef
708
709 define Package/script-utils/install
710 $(INSTALL_DIR) $(1)/usr/bin
711 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
712 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
713 endef
714
715 define Package/setterm/install
716 $(INSTALL_DIR) $(1)/usr/bin
717 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
718 endef
719
720 define Package/sfdisk/install
721 $(INSTALL_DIR) $(1)/usr/sbin
722 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
723 endef
724
725 define Package/swap-utils/install
726 $(INSTALL_DIR) $(1)/usr/sbin
727 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
728 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
729 endef
730
731 define Package/unshare/install
732 $(INSTALL_DIR) $(1)/usr/bin
733 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/unshare $(1)/usr/bin/
734 endef
735
736 define Package/uuidd/install
737 $(INSTALL_DIR) $(1)/usr/sbin
738 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin//uuidd $(1)/usr/sbin/
739 endef
740
741 define Package/uuidgen/install
742 $(INSTALL_DIR) $(1)/usr/bin
743 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//uuidgen $(1)/usr/bin/
744 endef
745
746 define Package/wall/install
747 $(INSTALL_DIR) $(1)/usr/bin
748 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
749 endef
750
751 define Package/whereis/install
752 $(INSTALL_DIR) $(1)/usr/bin
753 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
754 endef
755
756 define Package/wipefs/install
757 $(INSTALL_DIR) $(1)/usr/sbin
758 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
759 endef
760
761 $(eval $(call BuildPackage,libblkid))
762 $(eval $(call BuildPackage,libfdisk))
763 $(eval $(call BuildPackage,libmount))
764 $(eval $(call BuildPackage,libsmartcols))
765 $(eval $(call BuildPackage,libuuid))
766 $(eval $(call BuildPackage,agetty))
767 $(eval $(call BuildPackage,blkdiscard))
768 $(eval $(call BuildPackage,blkid))
769 $(eval $(call BuildPackage,blockdev))
770 $(eval $(call BuildPackage,cal))
771 $(eval $(call BuildPackage,cfdisk))
772 $(eval $(call BuildPackage,dmesg))
773 $(eval $(call BuildPackage,eject))
774 $(eval $(call BuildPackage,fdisk))
775 $(eval $(call BuildPackage,findfs))
776 $(eval $(call BuildPackage,flock))
777 $(eval $(call BuildPackage,fstrim))
778 $(eval $(call BuildPackage,getopt))
779 $(eval $(call BuildPackage,hwclock))
780 $(eval $(call BuildPackage,logger))
781 $(eval $(call BuildPackage,look))
782 $(eval $(call BuildPackage,losetup))
783 $(eval $(call BuildPackage,lsblk))
784 $(eval $(call BuildPackage,lscpu))
785 $(eval $(call BuildPackage,mcookie))
786 $(eval $(call BuildPackage,mount-utils))
787 $(eval $(call BuildPackage,namei))
788 $(eval $(call BuildPackage,nsenter))
789 $(eval $(call BuildPackage,prlimit))
790 $(eval $(call BuildPackage,rename))
791 $(eval $(call BuildPackage,partx-utils))
792 $(eval $(call BuildPackage,script-utils))
793 $(eval $(call BuildPackage,setterm))
794 $(eval $(call BuildPackage,sfdisk))
795 $(eval $(call BuildPackage,swap-utils))
796 $(eval $(call BuildPackage,unshare))
797 $(eval $(call BuildPackage,uuidd))
798 $(eval $(call BuildPackage,uuidgen))
799 $(eval $(call BuildPackage,wall))
800 $(eval $(call BuildPackage,whereis))
801 $(eval $(call BuildPackage,wipefs))