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