util-linux: added unshare and nsenter executables
[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/nsenter
322 $(call Package/util-linux/Default)
323 TITLE:=enter a namespace
324 endef
325
326 define Package/nsenter/description
327 run program with namespaces of other processes
328 endef
329
330 define Package/prlimit
331 $(call Package/util-linux/Default)
332 TITLE:=get and set process resource limits
333 DEPENDS:= +libsmartcols
334 endef
335
336 define Package/prlimit/description
337 Given a process id and one or more resources, prlimit tries to retrieve
338 and/or modify the limits.
339 endef
340
341 define Package/rename
342 $(call Package/util-linux/Default)
343 TITLE:=rename files
344 endef
345
346 define Package/rename/description
347 rename will rename the specified files by replacing the first occurrence of
348 expression in their name by replacement
349 endef
350
351 define Package/partx-utils
352 $(call Package/util-linux/Default)
353 TITLE:=inform kernel about the presence and numbering of on-disk partitions
354 DEPENDS:= +libblkid +libsmartcols
355 SUBMENU=Disc
356 endef
357
358 define Package/partx-utils/description
359 contains partx, addpart, delpart
360 endef
361
362 define Package/script-utils
363 $(call Package/util-linux/Default)
364 TITLE:=make and replay typescript of terminal session
365 SUBMENU=Terminal
366 endef
367
368 define Package/script-utils/description
369 contains: script, scriptreplay
370 endef
371
372 define Package/setterm
373 $(call Package/util-linux/Default)
374 TITLE:=set terminal attributes
375 DEPENDS:= +libncurses
376 SUBMENU:=Terminal
377 endef
378
379 define Package/setterm/description
380 setterm writes to standard output a character string that will invoke the
381 specified terminal capabilities
382 endef
383
384 define Package/sfdisk
385 $(call Package/util-linux/Default)
386 TITLE:=partition table manipulator for Linux
387 SUBMENU=Disc
388 DEPENDS:= +libblkid +libfdisk +libsmartcols +libncursesw
389 endef
390
391 define Package/sfdisk/description
392 list the size of a partition, list the partitions on a device, check the
393 partitions on a device and repartition a device
394 endef
395
396 define Package/swap-utils
397 $(call Package/util-linux/Default)
398 TITLE:=swap space management utilities
399 DEPENDS+= +libblkid
400 SUBMENU:=Filesystem
401 endef
402
403 define Package/swap-utils/description
404 contains: mkswap, swaplabel
405 endef
406
407 define Package/unshare
408 $(call Package/util-linux/Default)
409 TITLE:=unshare userspace tool
410 endef
411
412 define Package/unshare/description
413 run programs with some namespaces unshared from parent
414 endef
415
416 define Package/uuidd
417 $(call Package/util-linux/Default)
418 TITLE:=UUID generation daemon
419 DEPENDS:= +libuuid
420 endef
421
422 define Package/uuidd/description
423 The uuidd daemon is used by the UUID library to generate universally unique
424 identifiers (UUIDs), especially time-based UUIDs, in a secure and
425 guaranteed-unique fashion, even in the face of large numbers of threads
426 running on different CPUs trying to grab UUIDs.
427 endef
428
429 define Package/uuidgen
430 $(call Package/util-linux/Default)
431 TITLE:=create a new UUID value
432 DEPENDS:= +libuuid
433 endef
434
435 define Package/uuidgen/description
436 The uuidgen program creates (and prints) a new universally unique identifier
437 (UUID) using the libuuid library. The new UUID can reasonably be considered
438 unique among all UUIDs created on the local system, and among UUIDs created on
439 other systems in the past and in the future.
440 endef
441
442 define Package/wall
443 $(call Package/util-linux/Default)
444 TITLE:=send a message to everybody's terminal
445 SUBMENU=Terminal
446 endef
447
448 define Package/wall/description
449 wall sends a message to everybody logged in with their mesg permission
450 set to yes
451 endef
452
453 define Package/whereis
454 $(call Package/util-linux/Default)
455 TITLE:=locate the binary, source, and manual page files for a command
456 endef
457
458 define Package/whereis/description
459 whereis locates source/binary and manuals sections for specified files
460 endef
461
462 define Package/wipefs
463 $(call Package/util-linux/Default)
464 TITLE:=wipe a signature from a device
465 DEPENDS:= +libblkid
466 SUBMENU:=Disc
467 endef
468
469 define Package/wipefs/description
470 wipefs can erase filesystem, raid or partition table signatures (magic
471 strings) from the specified device to make the signature invisible for
472 libblkid.
473 endef
474
475 CONFIGURE_ARGS += \
476 --disable-use-tty-group \
477 --disable-rpath \
478 --disable-tls \
479 --disable-sulogin \
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))