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