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