bf8a67f074100c309575f175283e205b493ef941
[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.37
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.37
16 PKG_HASH:=bd07b7e98839e0359842110525a3032fdb8eaf3a90bedde3dd1652d32d15cce5
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/logger
269 $(call Package/util-linux/Default)
270 TITLE:=a shell command interface to the syslog system log module
271 ALTERNATIVES:=200:/usr/bin/logger:/usr/bin/util-linux-logger
272 endef
273
274 define Package/logger/description
275 logger makes entries in the system log, it provides a shell command interface
276 to the syslog system log module
277 endef
278
279 define Package/look
280 $(call Package/util-linux/Default)
281 TITLE:=display lines beginning with a given string
282 endef
283
284 define Package/look/description
285 look utility displays any lines in file which contain string
286 endef
287
288 define Package/losetup
289 $(call Package/util-linux/Default)
290 TITLE:=set up and control loop devices
291 DEPENDS:= +libsmartcols
292 endef
293
294 define Package/losetup/description
295 losetup is used to associate loop devices with regular files or block devices,
296 to detach loop devices and to query the status of a loop device
297 endef
298
299 define Package/lsblk
300 $(call Package/util-linux/Default)
301 TITLE:=list block devices
302 DEPENDS:= +libblkid +libmount +libsmartcols
303 SUBMENU=Disc
304 endef
305
306 define Package/lsblk/description
307 lsblk lists information about all or the specified block devices
308 endef
309
310 define Package/lscpu
311 $(call Package/util-linux/Default)
312 TITLE:=display information about the CPU architecture
313 DEPENDS:= +libsmartcols
314 endef
315
316 define Package/lscpu/description
317 lscpu displays information about the CPU architecture
318 endef
319
320 define Package/lslocks
321 $(call Package/util-linux/Default)
322 TITLE:=list local system locks
323 DEPENDS:= +libmount +libsmartcols
324 endef
325
326 define Package/lslocks/description
327 lslocks lists information about all the currently held file locks in a Linux system
328 endef
329
330 define Package/more
331 $(call Package/util-linux/Default)
332 TITLE:=filter for paging through text one screenful at a time
333 DEPENDS:= +libncurses
334 endef
335
336 define Package/more/description
337 more is a filter for paging through text one screenful at a time
338 endef
339
340 define Package/mcookie
341 $(call Package/util-linux/Default)
342 TITLE:=generate magic cookies for xauth
343 endef
344
345 define Package/mcookie/description
346 mcookie generates a 128-bit random hexadecimal number for use with the X
347 authority system
348 endef
349
350 define Package/mount-utils
351 $(call Package/util-linux/Default)
352 TITLE:=related (u)mount utilities
353 DEPENDS+= +libmount +libsmartcols
354 endef
355
356 define Package/mount-utils/description
357 contains: mount, umount, findmnt
358 endef
359
360 define Package/namei
361 $(call Package/util-linux/Default)
362 TITLE:=follow a pathname until a terminal point is found
363 endef
364
365 define Package/namei/description
366 namei uses its arguments as pathnames to any type of Unix file (symlinks,
367 files, directories, and so forth)
368 endef
369
370 define Package/nsenter
371 $(call Package/util-linux/Default)
372 TITLE:=enter a namespace
373 endef
374
375 define Package/nsenter/description
376 run program with namespaces of other processes
377 endef
378
379 define Package/prlimit
380 $(call Package/util-linux/Default)
381 TITLE:=get and set process resource limits
382 DEPENDS:= +libsmartcols
383 endef
384
385 define Package/prlimit/description
386 Given a process id and one or more resources, prlimit tries to retrieve
387 and/or modify the limits.
388 endef
389
390 define Package/rename
391 $(call Package/util-linux/Default)
392 TITLE:=rename files
393 endef
394
395 define Package/rename/description
396 rename will rename the specified files by replacing the first occurrence of
397 expression in their name by replacement
398 endef
399
400 define Package/partx-utils
401 $(call Package/util-linux/Default)
402 TITLE:=inform kernel about the presence and numbering of on-disk partitions
403 DEPENDS:= +libblkid +libsmartcols
404 SUBMENU=Disc
405 endef
406
407 define Package/partx-utils/description
408 contains partx, addpart, delpart
409 endef
410
411 define Package/script-utils
412 $(call Package/util-linux/Default)
413 TITLE:=make and replay typescript of terminal session
414 SUBMENU=Terminal
415 endef
416
417 define Package/script-utils/description
418 contains: script, scriptreplay
419 endef
420
421 define Package/setterm
422 $(call Package/util-linux/Default)
423 TITLE:=set terminal attributes
424 DEPENDS:= +libncurses
425 SUBMENU:=Terminal
426 endef
427
428 define Package/setterm/description
429 setterm writes to standard output a character string that will invoke the
430 specified terminal capabilities
431 endef
432
433 define Package/sfdisk
434 $(call Package/util-linux/Default)
435 TITLE:=partition table manipulator for Linux
436 SUBMENU=Disc
437 DEPENDS:= +libblkid +libfdisk +libsmartcols +libncursesw
438 endef
439
440 define Package/sfdisk/description
441 list the size of a partition, list the partitions on a device, check the
442 partitions on a device and repartition a device
443 endef
444
445 define Package/swap-utils
446 $(call Package/util-linux/Default)
447 TITLE:=swap space management utilities
448 DEPENDS+= +libblkid
449 SUBMENU:=Filesystem
450 endef
451
452 define Package/swap-utils/description
453 contains: mkswap, swaplabel
454 endef
455
456 define Package/taskset
457 $(call Package/util-linux/Default)
458 TITLE:=set or retrieve a process's CPU affinity
459 endef
460
461 define Package/taskset/description
462 contains: taskset
463 endef
464
465 define Package/unshare
466 $(call Package/util-linux/Default)
467 TITLE:=unshare userspace tool
468 endef
469
470 define Package/unshare/description
471 run programs with some namespaces unshared from parent
472 endef
473
474 define Package/uuidd
475 $(call Package/util-linux/Default)
476 TITLE:=UUID generation daemon
477 DEPENDS:= +libuuid
478 endef
479
480 define Package/uuidd/description
481 The uuidd daemon is used by the UUID library to generate universally unique
482 identifiers (UUIDs), especially time-based UUIDs, in a secure and
483 guaranteed-unique fashion, even in the face of large numbers of threads
484 running on different CPUs trying to grab UUIDs.
485 endef
486
487 define Package/uuidgen
488 $(call Package/util-linux/Default)
489 TITLE:=create a new UUID value
490 DEPENDS:= +libuuid
491 endef
492
493 define Package/uuidgen/description
494 The uuidgen program creates (and prints) a new universally unique identifier
495 (UUID) using the libuuid library. The new UUID can reasonably be considered
496 unique among all UUIDs created on the local system, and among UUIDs created on
497 other systems in the past and in the future.
498 endef
499
500 define Package/wall
501 $(call Package/util-linux/Default)
502 TITLE:=send a message to everybody's terminal
503 SUBMENU=Terminal
504 endef
505
506 define Package/wall/description
507 wall sends a message to everybody logged in with their mesg permission
508 set to yes
509 endef
510
511 define Package/whereis
512 $(call Package/util-linux/Default)
513 TITLE:=locate the binary, source, and manual page files for a command
514 endef
515
516 define Package/whereis/description
517 whereis locates source/binary and manuals sections for specified files
518 endef
519
520 define Package/wipefs
521 $(call Package/util-linux/Default)
522 TITLE:=wipe a signature from a device
523 DEPENDS:= +libblkid +libsmartcols
524 SUBMENU:=Disc
525 endef
526
527 define Package/wipefs/description
528 wipefs can erase filesystem, raid or partition table signatures (magic
529 strings) from the specified device to make the signature invisible for
530 libblkid.
531 endef
532
533 CONFIGURE_ARGS += \
534 --disable-use-tty-group \
535 --disable-rpath \
536 --disable-tls \
537 --disable-su \
538 --disable-sulogin \
539 --disable-makeinstall-chown \
540 --disable-login \
541 --disable-nologin \
542 --disable-lslogins \
543 --disable-runuser \
544 --disable-chfn-chsh \
545 --without-python \
546 --without-udev \
547 --without-readline \
548 --without-libmagic \
549 --with-ncursesw
550
551 TARGET_CFLAGS += $(FPIC) -std=gnu99
552
553 define Build/InstallDev
554 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
555 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
556 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/blkid.pc
557 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/blkid.pc
558 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
559 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/fdisk.pc
560 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/fdisk.pc
561 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
562 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/mount.pc
563 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/mount.pc
564 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
565 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/smartcols.pc
566 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/smartcols.pc
567 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
568 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/uuid.pc
569 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/uuid.pc
570
571 $(INSTALL_DIR) $(1)/usr/include/blkid
572 $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
573 $(INSTALL_DIR) $(1)/usr/include/libfdisk
574 $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
575 $(INSTALL_DIR) $(1)/usr/include/libmount
576 $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
577 $(INSTALL_DIR) $(1)/usr/include/uuid
578 $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
579 $(INSTALL_DIR) $(1)/usr/include/libsmartcols
580 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
581
582 $(INSTALL_DIR) $(1)/usr/lib
583 $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so* $(1)/usr/lib
584 $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so* $(1)/usr/lib
585 $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so* $(1)/usr/lib
586 $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so* $(1)/usr/lib
587 $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so* $(1)/usr/lib
588
589 $(LN) libblkid.so.1 $(1)/usr/lib/libblkid.so
590 $(LN) libfdisk.so.1 $(1)/usr/lib/libfdisk.so
591 $(LN) libmount.so.1 $(1)/usr/lib/libmount.so
592 $(LN) libuuid.so.1 $(1)/usr/lib/libuuid.so
593 $(LN) libsmartcols.so.1 $(1)/usr/lib/libsmartcols.so
594 endef
595
596
597 define Package/libfdisk/install
598 $(INSTALL_DIR) $(1)/usr/lib
599 $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so.* $(1)/usr/lib/
600 endef
601
602 define Package/libblkid/install
603 $(INSTALL_DIR) $(1)/usr/lib
604 $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so.* $(1)/usr/lib/
605 endef
606
607 define Package/libmount/install
608 $(INSTALL_DIR) $(1)/usr/lib
609 $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so.* $(1)/usr/lib/
610 endef
611
612 define Package/libsmartcols/install
613 $(INSTALL_DIR) $(1)/usr/lib
614 $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so.* $(1)/usr/lib/
615 endef
616
617 define Package/libuuid/install
618 $(INSTALL_DIR) $(1)/usr/lib
619 $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so.* $(1)/usr/lib/
620 endef
621
622 define Package/agetty/install
623 $(INSTALL_DIR) $(1)/usr/sbin
624 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
625 endef
626
627 define Package/blkdiscard/install
628 $(INSTALL_DIR) $(1)/usr/sbin
629 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
630 endef
631
632 define Package/blkid/install
633 $(INSTALL_DIR) $(1)/usr/sbin
634 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
635 endef
636
637 define Package/blockdev/install
638 $(INSTALL_DIR) $(1)/usr/sbin
639 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blockdev $(1)/usr/sbin/
640 endef
641
642 define Package/cal/install
643 $(INSTALL_DIR) $(1)/usr/bin
644 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
645 endef
646
647 define Package/cfdisk/install
648 $(INSTALL_DIR) $(1)/usr/sbin
649 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
650 endef
651
652 define Package/dmesg/install
653 $(INSTALL_DIR) $(1)/usr/bin
654 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
655 endef
656
657 define Package/eject/install
658 $(INSTALL_DIR) $(1)/usr/bin
659 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eject $(1)/usr/bin/
660 endef
661
662 define Package/fdisk/install
663 $(INSTALL_DIR) $(1)/usr/sbin
664 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
665 endef
666
667 define Package/findfs/install
668 $(INSTALL_DIR) $(1)/usr/sbin
669 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
670 endef
671
672 define Package/flock/install
673 $(INSTALL_DIR) $(1)/usr/bin
674 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/util-linux-flock
675 endef
676
677 define Package/fstrim/install
678 $(INSTALL_DIR) $(1)/usr/sbin
679 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fstrim $(1)/usr/sbin/
680 endef
681
682 define Package/getopt/install
683 $(INSTALL_DIR) $(1)/usr/bin
684 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
685 endef
686
687 define Package/hwclock/install
688 $(INSTALL_DIR) $(1)/usr/sbin
689 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
690 endef
691
692 define Package/logger/install
693 $(INSTALL_DIR) $(1)/usr/bin
694 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/util-linux-logger
695 endef
696
697 define Package/look/install
698 $(INSTALL_DIR) $(1)/usr/bin
699 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
700 endef
701
702 define Package/losetup/install
703 $(INSTALL_DIR) $(1)/usr/sbin
704 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
705 endef
706
707 define Package/lsblk/install
708 $(INSTALL_DIR) $(1)/usr/bin
709 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
710 endef
711
712 define Package/lscpu/install
713 $(INSTALL_DIR) $(1)/usr/bin
714 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lscpu $(1)/usr/bin/
715 endef
716
717 define Package/lslocks/install
718 $(INSTALL_DIR) $(1)/usr/bin
719 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lslocks $(1)/usr/bin/
720 endef
721
722 define Package/more/install
723 $(INSTALL_DIR) $(1)/usr/bin
724 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/more $(1)/usr/bin/
725 endef
726
727 define Package/mcookie/install
728 $(INSTALL_DIR) $(1)/usr/bin
729 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
730 endef
731
732 define Package/mount-utils/install
733 $(INSTALL_DIR) $(1)/usr/bin
734 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
735 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
736 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
737 endef
738
739 define Package/namei/install
740 $(INSTALL_DIR) $(1)/usr/bin
741 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
742 endef
743
744 define Package/nsenter/install
745 $(INSTALL_DIR) $(1)/usr/bin
746 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsenter $(1)/usr/bin/
747 endef
748
749 define Package/prlimit/install
750 $(INSTALL_DIR) $(1)/usr/bin
751 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
752 endef
753
754 define Package/rename/install
755 $(INSTALL_DIR) $(1)/usr/bin
756 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
757 endef
758
759 define Package/partx-utils/install
760 $(INSTALL_DIR) $(1)/usr/sbin
761 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
762 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
763 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
764 endef
765
766 define Package/script-utils/install
767 $(INSTALL_DIR) $(1)/usr/bin
768 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
769 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
770 endef
771
772 define Package/setterm/install
773 $(INSTALL_DIR) $(1)/usr/bin
774 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
775 endef
776
777 define Package/sfdisk/install
778 $(INSTALL_DIR) $(1)/usr/sbin
779 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
780 endef
781
782 define Package/swap-utils/install
783 $(INSTALL_DIR) $(1)/usr/sbin
784 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
785 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
786 endef
787
788 define Package/taskset/install
789 $(INSTALL_DIR) $(1)/usr/bin
790 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/taskset $(1)/usr/bin/
791 endef
792
793 define Package/unshare/install
794 $(INSTALL_DIR) $(1)/usr/bin
795 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/unshare $(1)/usr/bin/
796 endef
797
798 define Package/uuidd/install
799 $(INSTALL_DIR) $(1)/usr/sbin
800 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin//uuidd $(1)/usr/sbin/
801 endef
802
803 define Package/uuidgen/install
804 $(INSTALL_DIR) $(1)/usr/bin
805 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//uuidgen $(1)/usr/bin/
806 endef
807
808 define Package/wall/install
809 $(INSTALL_DIR) $(1)/usr/bin
810 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
811 endef
812
813 define Package/whereis/install
814 $(INSTALL_DIR) $(1)/usr/bin
815 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
816 endef
817
818 define Package/wipefs/install
819 $(INSTALL_DIR) $(1)/usr/sbin
820 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
821 endef
822
823 # these lines need to be ordered by dependency because of ABI versioning
824 $(eval $(call BuildPackage,libuuid))
825 $(eval $(call BuildPackage,libblkid))
826 $(eval $(call BuildPackage,libfdisk))
827
828 $(eval $(call BuildPackage,libmount))
829 $(eval $(call BuildPackage,libsmartcols))
830 $(eval $(call BuildPackage,agetty))
831 $(eval $(call BuildPackage,blkdiscard))
832 $(eval $(call BuildPackage,blkid))
833 $(eval $(call BuildPackage,blockdev))
834 $(eval $(call BuildPackage,cal))
835 $(eval $(call BuildPackage,cfdisk))
836 $(eval $(call BuildPackage,dmesg))
837 $(eval $(call BuildPackage,eject))
838 $(eval $(call BuildPackage,fdisk))
839 $(eval $(call BuildPackage,findfs))
840 $(eval $(call BuildPackage,flock))
841 $(eval $(call BuildPackage,fstrim))
842 $(eval $(call BuildPackage,getopt))
843 $(eval $(call BuildPackage,hwclock))
844 $(eval $(call BuildPackage,logger))
845 $(eval $(call BuildPackage,look))
846 $(eval $(call BuildPackage,losetup))
847 $(eval $(call BuildPackage,lsblk))
848 $(eval $(call BuildPackage,lscpu))
849 $(eval $(call BuildPackage,lslocks))
850 $(eval $(call BuildPackage,more))
851 $(eval $(call BuildPackage,mcookie))
852 $(eval $(call BuildPackage,mount-utils))
853 $(eval $(call BuildPackage,namei))
854 $(eval $(call BuildPackage,nsenter))
855 $(eval $(call BuildPackage,prlimit))
856 $(eval $(call BuildPackage,rename))
857 $(eval $(call BuildPackage,partx-utils))
858 $(eval $(call BuildPackage,script-utils))
859 $(eval $(call BuildPackage,setterm))
860 $(eval $(call BuildPackage,sfdisk))
861 $(eval $(call BuildPackage,swap-utils))
862 $(eval $(call BuildPackage,taskset))
863 $(eval $(call BuildPackage,unshare))
864 $(eval $(call BuildPackage,uuidd))
865 $(eval $(call BuildPackage,uuidgen))
866 $(eval $(call BuildPackage,wall))
867 $(eval $(call BuildPackage,whereis))
868 $(eval $(call BuildPackage,wipefs))