util-linux: Do not build raw any more.
[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 --disable-raw \
546 --without-python \
547 --without-udev \
548 --without-readline \
549 --without-libmagic \
550 --with-ncursesw
551
552 TARGET_CFLAGS += $(FPIC) -std=gnu99
553
554 define Build/InstallDev
555 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
556 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
557 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/blkid.pc
558 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/blkid.pc
559 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
560 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/fdisk.pc
561 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/fdisk.pc
562 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
563 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/mount.pc
564 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/mount.pc
565 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
566 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/smartcols.pc
567 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/smartcols.pc
568 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
569 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/uuid.pc
570 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/uuid.pc
571
572 $(INSTALL_DIR) $(1)/usr/include/blkid
573 $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
574 $(INSTALL_DIR) $(1)/usr/include/libfdisk
575 $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
576 $(INSTALL_DIR) $(1)/usr/include/libmount
577 $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
578 $(INSTALL_DIR) $(1)/usr/include/uuid
579 $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
580 $(INSTALL_DIR) $(1)/usr/include/libsmartcols
581 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
582
583 $(INSTALL_DIR) $(1)/usr/lib
584 $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so* $(1)/usr/lib
585 $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so* $(1)/usr/lib
586 $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so* $(1)/usr/lib
587 $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so* $(1)/usr/lib
588 $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so* $(1)/usr/lib
589
590 $(LN) libblkid.so.1 $(1)/usr/lib/libblkid.so
591 $(LN) libfdisk.so.1 $(1)/usr/lib/libfdisk.so
592 $(LN) libmount.so.1 $(1)/usr/lib/libmount.so
593 $(LN) libuuid.so.1 $(1)/usr/lib/libuuid.so
594 $(LN) libsmartcols.so.1 $(1)/usr/lib/libsmartcols.so
595 endef
596
597
598 define Package/libfdisk/install
599 $(INSTALL_DIR) $(1)/usr/lib
600 $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so.* $(1)/usr/lib/
601 endef
602
603 define Package/libblkid/install
604 $(INSTALL_DIR) $(1)/usr/lib
605 $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so.* $(1)/usr/lib/
606 endef
607
608 define Package/libmount/install
609 $(INSTALL_DIR) $(1)/usr/lib
610 $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so.* $(1)/usr/lib/
611 endef
612
613 define Package/libsmartcols/install
614 $(INSTALL_DIR) $(1)/usr/lib
615 $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so.* $(1)/usr/lib/
616 endef
617
618 define Package/libuuid/install
619 $(INSTALL_DIR) $(1)/usr/lib
620 $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so.* $(1)/usr/lib/
621 endef
622
623 define Package/agetty/install
624 $(INSTALL_DIR) $(1)/usr/sbin
625 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
626 endef
627
628 define Package/blkdiscard/install
629 $(INSTALL_DIR) $(1)/usr/sbin
630 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
631 endef
632
633 define Package/blkid/install
634 $(INSTALL_DIR) $(1)/usr/sbin
635 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
636 endef
637
638 define Package/blockdev/install
639 $(INSTALL_DIR) $(1)/usr/sbin
640 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blockdev $(1)/usr/sbin/
641 endef
642
643 define Package/cal/install
644 $(INSTALL_DIR) $(1)/usr/bin
645 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
646 endef
647
648 define Package/cfdisk/install
649 $(INSTALL_DIR) $(1)/usr/sbin
650 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
651 endef
652
653 define Package/dmesg/install
654 $(INSTALL_DIR) $(1)/usr/bin
655 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
656 endef
657
658 define Package/eject/install
659 $(INSTALL_DIR) $(1)/usr/bin
660 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eject $(1)/usr/bin/
661 endef
662
663 define Package/fdisk/install
664 $(INSTALL_DIR) $(1)/usr/sbin
665 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
666 endef
667
668 define Package/findfs/install
669 $(INSTALL_DIR) $(1)/usr/sbin
670 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
671 endef
672
673 define Package/flock/install
674 $(INSTALL_DIR) $(1)/usr/bin
675 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/util-linux-flock
676 endef
677
678 define Package/fstrim/install
679 $(INSTALL_DIR) $(1)/usr/sbin
680 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fstrim $(1)/usr/sbin/
681 endef
682
683 define Package/getopt/install
684 $(INSTALL_DIR) $(1)/usr/bin
685 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
686 endef
687
688 define Package/hwclock/install
689 $(INSTALL_DIR) $(1)/usr/sbin
690 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
691 endef
692
693 define Package/logger/install
694 $(INSTALL_DIR) $(1)/usr/bin
695 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/util-linux-logger
696 endef
697
698 define Package/look/install
699 $(INSTALL_DIR) $(1)/usr/bin
700 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
701 endef
702
703 define Package/losetup/install
704 $(INSTALL_DIR) $(1)/usr/sbin
705 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
706 endef
707
708 define Package/lsblk/install
709 $(INSTALL_DIR) $(1)/usr/bin
710 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
711 endef
712
713 define Package/lscpu/install
714 $(INSTALL_DIR) $(1)/usr/bin
715 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lscpu $(1)/usr/bin/
716 endef
717
718 define Package/lslocks/install
719 $(INSTALL_DIR) $(1)/usr/bin
720 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lslocks $(1)/usr/bin/
721 endef
722
723 define Package/more/install
724 $(INSTALL_DIR) $(1)/usr/bin
725 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/more $(1)/usr/bin/
726 endef
727
728 define Package/mcookie/install
729 $(INSTALL_DIR) $(1)/usr/bin
730 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
731 endef
732
733 define Package/mount-utils/install
734 $(INSTALL_DIR) $(1)/usr/bin
735 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
736 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
737 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
738 endef
739
740 define Package/namei/install
741 $(INSTALL_DIR) $(1)/usr/bin
742 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
743 endef
744
745 define Package/nsenter/install
746 $(INSTALL_DIR) $(1)/usr/bin
747 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsenter $(1)/usr/bin/
748 endef
749
750 define Package/prlimit/install
751 $(INSTALL_DIR) $(1)/usr/bin
752 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
753 endef
754
755 define Package/rename/install
756 $(INSTALL_DIR) $(1)/usr/bin
757 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
758 endef
759
760 define Package/partx-utils/install
761 $(INSTALL_DIR) $(1)/usr/sbin
762 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
763 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
764 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
765 endef
766
767 define Package/script-utils/install
768 $(INSTALL_DIR) $(1)/usr/bin
769 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
770 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
771 endef
772
773 define Package/setterm/install
774 $(INSTALL_DIR) $(1)/usr/bin
775 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
776 endef
777
778 define Package/sfdisk/install
779 $(INSTALL_DIR) $(1)/usr/sbin
780 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
781 endef
782
783 define Package/swap-utils/install
784 $(INSTALL_DIR) $(1)/usr/sbin
785 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
786 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
787 endef
788
789 define Package/taskset/install
790 $(INSTALL_DIR) $(1)/usr/bin
791 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/taskset $(1)/usr/bin/
792 endef
793
794 define Package/unshare/install
795 $(INSTALL_DIR) $(1)/usr/bin
796 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/unshare $(1)/usr/bin/
797 endef
798
799 define Package/uuidd/install
800 $(INSTALL_DIR) $(1)/usr/sbin
801 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin//uuidd $(1)/usr/sbin/
802 endef
803
804 define Package/uuidgen/install
805 $(INSTALL_DIR) $(1)/usr/bin
806 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//uuidgen $(1)/usr/bin/
807 endef
808
809 define Package/wall/install
810 $(INSTALL_DIR) $(1)/usr/bin
811 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
812 endef
813
814 define Package/whereis/install
815 $(INSTALL_DIR) $(1)/usr/bin
816 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
817 endef
818
819 define Package/wipefs/install
820 $(INSTALL_DIR) $(1)/usr/sbin
821 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
822 endef
823
824 # these lines need to be ordered by dependency because of ABI versioning
825 $(eval $(call BuildPackage,libuuid))
826 $(eval $(call BuildPackage,libblkid))
827 $(eval $(call BuildPackage,libfdisk))
828
829 $(eval $(call BuildPackage,libmount))
830 $(eval $(call BuildPackage,libsmartcols))
831 $(eval $(call BuildPackage,agetty))
832 $(eval $(call BuildPackage,blkdiscard))
833 $(eval $(call BuildPackage,blkid))
834 $(eval $(call BuildPackage,blockdev))
835 $(eval $(call BuildPackage,cal))
836 $(eval $(call BuildPackage,cfdisk))
837 $(eval $(call BuildPackage,dmesg))
838 $(eval $(call BuildPackage,eject))
839 $(eval $(call BuildPackage,fdisk))
840 $(eval $(call BuildPackage,findfs))
841 $(eval $(call BuildPackage,flock))
842 $(eval $(call BuildPackage,fstrim))
843 $(eval $(call BuildPackage,getopt))
844 $(eval $(call BuildPackage,hwclock))
845 $(eval $(call BuildPackage,logger))
846 $(eval $(call BuildPackage,look))
847 $(eval $(call BuildPackage,losetup))
848 $(eval $(call BuildPackage,lsblk))
849 $(eval $(call BuildPackage,lscpu))
850 $(eval $(call BuildPackage,lslocks))
851 $(eval $(call BuildPackage,more))
852 $(eval $(call BuildPackage,mcookie))
853 $(eval $(call BuildPackage,mount-utils))
854 $(eval $(call BuildPackage,namei))
855 $(eval $(call BuildPackage,nsenter))
856 $(eval $(call BuildPackage,prlimit))
857 $(eval $(call BuildPackage,rename))
858 $(eval $(call BuildPackage,partx-utils))
859 $(eval $(call BuildPackage,script-utils))
860 $(eval $(call BuildPackage,setterm))
861 $(eval $(call BuildPackage,sfdisk))
862 $(eval $(call BuildPackage,swap-utils))
863 $(eval $(call BuildPackage,taskset))
864 $(eval $(call BuildPackage,unshare))
865 $(eval $(call BuildPackage,uuidd))
866 $(eval $(call BuildPackage,uuidgen))
867 $(eval $(call BuildPackage,wall))
868 $(eval $(call BuildPackage,whereis))
869 $(eval $(call BuildPackage,wipefs))