FreeBSD Ports

misc/getopt 2.42.4

Replacement for getopt(1) that supports GNU-style long options

Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
252182f9a2
License
GPLv2
Categories
misc
Package size
29.2 KiB, 59.8 KiB installed

Description

Rewrite of getopt(1) with the following features:

* It can do anything that the GNU getopt(3) routines can do. * It can cope with spaces and shell metacharacters within arguments. * It can parse long parameters. * It can shuffle parameters, so you can mix options and other parameters on the command-line. * It can be easily identified as an enhanced getopt(1) from within shell scripts. * It can report parse errors as coming from the shell script. * It compiles cleanly with both libc-5 and glibc-2.

Install

As a binary package — by origin, or by package name:

pkg install misc/getopt
pkg install getopt

From the ports tree:

cd /usr/ports/misc/getopt/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	getopt>0:misc/getopt

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.42.42.42.41.1.61.1.6_22.42.4
FreeBSD:14:quarterly2.42.42.42.4n/a1.1.6_22.42.4
FreeBSD:15:latest2.42.42.42.4n/a1.1.6_21.1.6_2
FreeBSD:15:quarterly2.42.42.42.4n/an/an/a
FreeBSD:16:latest2.42.42.42.4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

All build dependencies 1

Configuration

Options name: misc_getopt

OptionDefaultDescription
EXAMPLESoffBuild and/or install examples
USES
pkgconfig shebangfix tar:xz
Service scripts
none

Files

Manual pages 1
  • getopt(1)
pkg-plist 5
  • bin/getopt
  • share/bash-completion/completions/getopt
  • share/examples/util-linux/getopt-example.bash
  • share/examples/util-linux/getopt-example.tcsh
  • share/man/man1/getopt.1.gz
distinfo 1
FileSizeSHA256
util-linux-2.42.4.tar.xz1.0729748e+07fbd62a100ab7bb8746ba0661255c3c48185b1e9021507c624da01fbc696330ec
Master sites 1
  • KERNEL_ORG/linux/utils/util-linux/v${PORTVERSION:R}/

Commit history 3

DateCommitCreditsLog message
252182f9a2 Po-Chuan Hsieh misc/getopt: Update to 2.42.4
Changes: https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt.c https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt.1.adoc https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt-example.bash https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt-example.tcsh
f654830234 Po-Chuan Hsieh misc/getopt: Update to 2.42.3
Changes: https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt.c https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt.1.adoc https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt-example.bash https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt-example.tcsh
b2659fb156 Po-Chuan Hsieh misc/getopt: Update to 2.42.2
Changes: https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt.c https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt.1.adoc https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt-example.bash https://github.com/util-linux/util-linux/commits/master/misc-utils/getopt-example.tcsh