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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.42.4 | 2.42.4 | 1.1.6 | 1.1.6_2 | 2.42.4 |
| FreeBSD:14:quarterly | 2.42.4 | 2.42.4 | n/a | 1.1.6_2 | 2.42.4 |
| FreeBSD:15:latest | 2.42.4 | 2.42.4 | n/a | 1.1.6_2 | 1.1.6_2 |
| FreeBSD:15:quarterly | 2.42.4 | 2.42.4 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.42.4 | 2.42.4 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
Required by 60
- benchmarks/hipercontracer
- comms/gnuradio
- comms/morse
- databases/influxdb
- deskutils/gnotime
- devel/compiz-bcop
- devel/gcc-arm-embedded
- devel/git
- devel/ocl-icd
- devel/rsvndump
- devel/xdg-utils
- editors/sciteco
- french/aster
- games/bs
- games/ponscripter-07th-mod
- games/ski
- graphics/zbar
- irc/bitlbee
- mail/dbmail
- math/eukleides
- misc/patchutils
- net-mgmt/adcli
- net-mgmt/realmd
- net/czmq
- net/czmq4
- net/freeipa-server
- net/freerdp
- net/libnss-pgsql
- net/pacemaker2
- net/td-system-tools
- news/newsstar
- print/system-config-printer
- security/libreswan
- security/py-pass-audit
- sysutils/dnf
- sysutils/docker-credential-pass
- sysutils/libdnf
- sysutils/lttng-ust
- sysutils/pass-coffin
- sysutils/pass-otp
- sysutils/pass-update
- sysutils/password-store
- sysutils/pax-utils
- sysutils/plasma-pass
- sysutils/qtpass
- sysutils/tartarus
- sysutils/util-linux
- textproc/rarian
- textproc/xmlto
- textproc/yodl
- www/elinks
- x11-fonts/fontpreview
- x11-wm/compiz-plugins-extra
- x11-wm/compiz-plugins-main
- x11-wm/compiz-plugins-unsupported
- x11/budgie-session
- x11/evtest
- x11/gnome-session
- x11/rofi-pass
- x11/xfce4-screensaver
Configuration
Options name: misc_getopt
| Option | Default | Description |
|---|---|---|
| EXAMPLES | off | Build 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
| File | Size | SHA256 |
|---|---|---|
| util-linux-2.42.4.tar.xz | 1.0729748e+07 | fbd62a100ab7bb8746ba0661255c3c48185b1e9021507c624da01fbc696330ec |
Master sites 1
- KERNEL_ORG/linux/utils/util-linux/v${PORTVERSION:R}/