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