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