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