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