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