notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
After the ports freeze to fix some stuff, the freeze is over. I have some work to do before FreshPorts can start processing commits again before it can start processing again. I've created an issue for that.
Port details on branch 2020Q3
getopt Replacement for getopt(1) that supports GNU-style long options
2.42.2 misc on this many watch lists=47 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.42.1Version of this port present on the latest quarterly branch.
Maintainer: sunpoet@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2003-06-13 23:57:14
Last Update: 2026-07-08 13:30:37
Commit Hash: b2659fb
People watching this port, also watch:: gmake, libxml2, libiconv, expat, fontconfig
License: GPLv2
WWW:
https://github.com/util-linux/util-linux
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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (11 items)
Collapse this list.
  1. /usr/local/share/licenses/getopt-2.42.2/catalog.mk
  2. /usr/local/share/licenses/getopt-2.42.2/LICENSE
  3. /usr/local/share/licenses/getopt-2.42.2/GPLv2
  4. bin/getopt
  5. share/bash-completion/completions/getopt
  6. share/examples/util-linux/getopt-example.bash
  7. share/examples/util-linux/getopt-example.tcsh
  8. share/man/man1/getopt.1.gz
  9. @owner
  10. @group
  11. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • getopt>0:misc/getopt
To install the port:
cd /usr/ports/misc/getopt/ && make install clean
To add the package, run one of these commands:
  • pkg install misc/getopt
  • pkg install getopt
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: getopt
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1782966114 SHA256 (util-linux-2.42.2.tar.xz) = 03a05d3adf9602ef128f2da05b84b3205ce60c351e5737c0370f74000679ce8a SIZE (util-linux-2.42.2.tar.xz) = 10658220

Packages (timestamps in pop-ups are UTC):
getopt
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.41.32.41.31.1.62.41.12.41.3n/an/an/a
FreeBSD:13:quarterly2.41.32.41.31.1.61.1.6_22.41.3n/an/an/a
FreeBSD:14:latest2.42.22.42.21.1.61.1.6_22.42.21.1.6-1.1.6
FreeBSD:14:quarterly2.42.22.42.2-1.1.6_22.42.21.1.61.1.61.1.6
FreeBSD:15:latest2.42.22.42.2n/a1.1.6_2n/an/a1.1.6_11.1.6_1
FreeBSD:15:quarterly2.42.22.42.2n/a-n/an/a--
FreeBSD:16:latest2.42.22.42.2n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. pkgconf>=1.3.0_1 : devel/pkgconf
This port is required by:
for Build
  1. devel/gcc-arm-embedded
  2. french/aster
  3. net/pacemaker2
  4. textproc/rarian
  5. textproc/xmlto

Deleted ports which required this port:

Expand this list of 2 deleted ports
  1. net/pacemaker*
  2. net/pacemaker1*
  3. Collapse this list of deleted ports.
for Run
  1. benchmarks/hipercontracer
  2. devel/compiz-bcop
  3. math/eukleides
  4. net/pacemaker2
  5. net/td-system-tools
  6. sysutils/password-store
  7. sysutils/tartarus
Expand this list (21 items / 14 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. sysutils/util-linux
  3. textproc/rarian
  4. textproc/xmlto
  5. textproc/yodl
  6. x11-fonts/fontpreview
  7. Collapse this list.

Deleted ports which required this port:

Expand this list of 9 deleted ports
  1. devel/gitflow*
  2. devel/util-linux*
  3. net/ceph*
  4. net/ceph-devel*
  5. net/ceph12*
  6. net/ceph13*
  7. net/ceph14*
  8. net/pacemaker*
  9. net/pacemaker1*
  10. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options:
===> The following configuration options are available for getopt-2.42.2: EXAMPLES=on: Build and/or install examples ===> Use 'make config' to modify these settings
Options name:
misc_getopt
USES:
pkgconfig shebangfix tar:xz
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (7 items)
Collapse this list.
  1. ftp://ftp.ntu.edu.tw/linux/utils/util-linux/v2.42/
  2. ftp://ftp.riken.jp/Linux/kernel.org/linux/utils/util-linux/v2.42/
  3. http://ftp.nara.wide.ad.jp/pub/kernel.org/linux/utils/util-linux/v2.42/
  4. http://ftp.yandex.ru/pub/linux/utils/util-linux/v2.42/
  5. https://cdn.kernel.org/pub/linux/utils/util-linux/v2.42/
  6. https://mirrors.mit.edu/kernel/linux/utils/util-linux/v2.42/
  7. https://www.kernel.org/pub/linux/utils/util-linux/v2.42/
Collapse this list.

There are no commits on branch 2020Q3 for this port