29ad1350335d37de72bf356432d8544efe9a5c61
[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.34
12 PKG_RELEASE:=2
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-su \
517 --disable-sulogin \
518 --disable-makeinstall-chown \
519 --disable-login \
520 --disable-nologin \
521 --disable-lslogins \
522 --disable-runuser \
523 --disable-chfn-chsh \
524 --without-python \
525 --without-udev \
526 --without-readline \
527 --with-ncursesw
528
529 TARGET_CFLAGS += $(FPIC) -std=gnu99
530
531 define Build/InstallDev
532 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
533 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
534 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
535 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
536 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
537 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
538
539 $(INSTALL_DIR) $(1)/usr/include/blkid
540 $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
541 $(INSTALL_DIR) $(1)/usr/include/libfdisk
542 $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
543 $(INSTALL_DIR) $(1)/usr/include/libmount
544 $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
545 $(INSTALL_DIR) $(1)/usr/include/uuid
546 $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
547 $(INSTALL_DIR) $(1)/usr/include/libsmartcols
548 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
549
550 $(INSTALL_DIR) $(1)/usr/lib
551 $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so* $(1)/usr/lib
552 $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so* $(1)/usr/lib
553 $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so* $(1)/usr/lib
554 $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so* $(1)/usr/lib
555 $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so* $(1)/usr/lib
556
557 $(LN) libblkid.so.1 $(1)/usr/lib/libblkid.so
558 $(LN) libfdisk.so.1 $(1)/usr/lib/libfdisk.so
559 $(LN) libmount.so.1 $(1)/usr/lib/libmount.so
560 $(LN) libuuid.so.1 $(1)/usr/lib/libuuid.so
561 $(LN) libsmartcols.so.1 $(1)/usr/lib/libsmartcols.so
562 endef
563
564
565 define Package/libfdisk/install
566 $(INSTALL_DIR) $(1)/usr/lib
567 $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so.* $(1)/usr/lib/
568 endef
569
570 define Package/libblkid/install
571 $(INSTALL_DIR) $(1)/usr/lib
572 $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so.* $(1)/usr/lib/
573 endef
574
575 define Package/libmount/install
576 $(INSTALL_DIR) $(1)/usr/lib
577 $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so.* $(1)/usr/lib/
578 endef
579
580 define Package/libsmartcols/install
581 $(INSTALL_DIR) $(1)/usr/lib
582 $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so.* $(1)/usr/lib/
583 endef
584
585 define Package/libuuid/install
586 $(INSTALL_DIR) $(1)/usr/lib
587 $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so.* $(1)/usr/lib/
588 endef
589
590 define Package/agetty/install
591 $(INSTALL_DIR) $(1)/usr/sbin
592 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
593 endef
594
595 define Package/blkdiscard/install
596 $(INSTALL_DIR) $(1)/usr/sbin
597 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
598 endef
599
600 define Package/blkid/install
601 $(INSTALL_DIR) $(1)/usr/sbin
602 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
603 endef
604
605 define Package/blockdev/install
606 $(INSTALL_DIR) $(1)/usr/sbin
607 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blockdev $(1)/usr/sbin/
608 endef
609
610 define Package/cal/install
611 $(INSTALL_DIR) $(1)/usr/bin
612 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
613 endef
614
615 define Package/cfdisk/install
616 $(INSTALL_DIR) $(1)/usr/sbin
617 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
618 endef
619
620 define Package/dmesg/install
621 $(INSTALL_DIR) $(1)/usr/bin
622 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
623 endef
624
625 define Package/eject/install
626 $(INSTALL_DIR) $(1)/usr/bin
627 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eject $(1)/usr/bin/
628 endef
629
630 define Package/fdisk/install
631 $(INSTALL_DIR) $(1)/usr/sbin
632 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
633 endef
634
635 define Package/findfs/install
636 $(INSTALL_DIR) $(1)/usr/sbin
637 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
638 endef
639
640 define Package/flock/install
641 $(INSTALL_DIR) $(1)/usr/bin
642 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/util-linux-flock
643 endef
644
645 define Package/fstrim/install
646 $(INSTALL_DIR) $(1)/usr/sbin
647 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fstrim $(1)/usr/sbin/
648 endef
649
650 define Package/getopt/install
651 $(INSTALL_DIR) $(1)/usr/bin
652 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
653 endef
654
655 define Package/hwclock/install
656 $(INSTALL_DIR) $(1)/usr/sbin
657 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
658 endef
659
660 define Package/logger/install
661 $(INSTALL_DIR) $(1)/usr/bin
662 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/
663 endef
664
665 define Package/look/install
666 $(INSTALL_DIR) $(1)/usr/bin
667 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
668 endef
669
670 define Package/losetup/install
671 $(INSTALL_DIR) $(1)/usr/sbin
672 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
673 endef
674
675 define Package/lsblk/install
676 $(INSTALL_DIR) $(1)/usr/bin
677 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
678 endef
679
680 define Package/lscpu/install
681 $(INSTALL_DIR) $(1)/usr/bin
682 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lscpu $(1)/usr/bin/
683 endef
684
685 define Package/more/install
686 $(INSTALL_DIR) $(1)/usr/bin
687 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/more $(1)/usr/bin/
688 endef
689
690 define Package/mcookie/install
691 $(INSTALL_DIR) $(1)/usr/bin
692 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
693 endef
694
695 define Package/mount-utils/install
696 $(INSTALL_DIR) $(1)/usr/bin
697 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
698 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
699 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
700 endef
701
702 define Package/namei/install
703 $(INSTALL_DIR) $(1)/usr/bin
704 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
705 endef
706
707 define Package/nsenter/install
708 $(INSTALL_DIR) $(1)/usr/bin
709 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsenter $(1)/usr/bin/
710 endef
711
712 define Package/prlimit/install
713 $(INSTALL_DIR) $(1)/usr/bin
714 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
715 endef
716
717 define Package/rename/install
718 $(INSTALL_DIR) $(1)/usr/bin
719 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
720 endef
721
722 define Package/partx-utils/install
723 $(INSTALL_DIR) $(1)/usr/sbin
724 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
725 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
726 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
727 endef
728
729 define Package/script-utils/install
730 $(INSTALL_DIR) $(1)/usr/bin
731 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
732 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
733 endef
734
735 define Package/setterm/install
736 $(INSTALL_DIR) $(1)/usr/bin
737 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
738 endef
739
740 define Package/sfdisk/install
741 $(INSTALL_DIR) $(1)/usr/sbin
742 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
743 endef
744
745 define Package/swap-utils/install
746 $(INSTALL_DIR) $(1)/usr/sbin
747 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
748 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
749 endef
750
751 define Package/unshare/install
752 $(INSTALL_DIR) $(1)/usr/bin
753 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/unshare $(1)/usr/bin/
754 endef
755
756 define Package/uuidd/install
757 $(INSTALL_DIR) $(1)/usr/sbin
758 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin//uuidd $(1)/usr/sbin/
759 endef
760
761 define Package/uuidgen/install
762 $(INSTALL_DIR) $(1)/usr/bin
763 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//uuidgen $(1)/usr/bin/
764 endef
765
766 define Package/wall/install
767 $(INSTALL_DIR) $(1)/usr/bin
768 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
769 endef
770
771 define Package/whereis/install
772 $(INSTALL_DIR) $(1)/usr/bin
773 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
774 endef
775
776 define Package/wipefs/install
777 $(INSTALL_DIR) $(1)/usr/sbin
778 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
779 endef
780
781 $(eval $(call BuildPackage,libblkid))
782 $(eval $(call BuildPackage,libfdisk))
783 $(eval $(call BuildPackage,libmount))
784 $(eval $(call BuildPackage,libsmartcols))
785 $(eval $(call BuildPackage,libuuid))
786 $(eval $(call BuildPackage,agetty))
787 $(eval $(call BuildPackage,blkdiscard))
788 $(eval $(call BuildPackage,blkid))
789 $(eval $(call BuildPackage,blockdev))
790 $(eval $(call BuildPackage,cal))
791 $(eval $(call BuildPackage,cfdisk))
792 $(eval $(call BuildPackage,dmesg))
793 $(eval $(call BuildPackage,eject))
794 $(eval $(call BuildPackage,fdisk))
795 $(eval $(call BuildPackage,findfs))
796 $(eval $(call BuildPackage,flock))
797 $(eval $(call BuildPackage,fstrim))
798 $(eval $(call BuildPackage,getopt))
799 $(eval $(call BuildPackage,hwclock))
800 $(eval $(call BuildPackage,logger))
801 $(eval $(call BuildPackage,look))
802 $(eval $(call BuildPackage,losetup))
803 $(eval $(call BuildPackage,lsblk))
804 $(eval $(call BuildPackage,lscpu))
805 $(eval $(call BuildPackage,more))
806 $(eval $(call BuildPackage,mcookie))
807 $(eval $(call BuildPackage,mount-utils))
808 $(eval $(call BuildPackage,namei))
809 $(eval $(call BuildPackage,nsenter))
810 $(eval $(call BuildPackage,prlimit))
811 $(eval $(call BuildPackage,rename))
812 $(eval $(call BuildPackage,partx-utils))
813 $(eval $(call BuildPackage,script-utils))
814 $(eval $(call BuildPackage,setterm))
815 $(eval $(call BuildPackage,sfdisk))
816 $(eval $(call BuildPackage,swap-utils))
817 $(eval $(call BuildPackage,unshare))
818 $(eval $(call BuildPackage,uuidd))
819 $(eval $(call BuildPackage,uuidgen))
820 $(eval $(call BuildPackage,wall))
821 $(eval $(call BuildPackage,whereis))
822 $(eval $(call BuildPackage,wipefs))