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