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