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 photosAll times are UTC
Remember
I remember
I started running short on disk space for the non-production FreshPorts hosts. This time, I have decided to ask for donations. See my recent blog post which points to my Patreon account.
Port details on branch 2022Q2
getopt Replacement for getopt(1) that supports GNU-style long options
2.41.2 misc on this many watch lists=49 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.41.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: 2025-10-13 06:15:56
Commit Hash: 0a314a1
People watching this port, also watch:: gmake, libxml2, libiconv, pcre, freetype2
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.41.2/catalog.mk
  2. /usr/local/share/licenses/getopt-2.41.2/LICENSE
  3. /usr/local/share/licenses/getopt-2.41.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 = 1759816562 SHA256 (util-linux-2.41.2.tar.xz) = 6062a1d89b571a61932e6fc0211f36060c4183568b81ee866cf363bce9f6583e SIZE (util-linux-2.41.2.tar.xz) = 9612488

Packages (timestamps in pop-ups are UTC):
getopt
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.41.1_12.41.21.1.62.41.12.41.2n/an/an/a
FreeBSD:13:quarterly2.41.1_12.41.1_11.1.61.1.6_22.41.1_1n/an/an/a
FreeBSD:14:latest2.41.1_12.41.21.1.61.1.6_22.41.21.1.6-1.1.6
FreeBSD:14:quarterly2.41.1_12.41.1_1-1.1.6_22.41.1_11.1.61.1.61.1.6
FreeBSD:15:latest2.41.1_12.41.2n/a1.1.6_2n/an/a1.1.6_11.1.6_1
FreeBSD:15:quarterly2.41.1_12.41.1_1n/a-n/an/a--
FreeBSD:16:latest2.41.1_12.41.2n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. gmake>=4.4.1 : devel/gmake
  2. 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. sysutils/password-store
  6. sysutils/tartarus
  7. sysutils/util-linux
Expand this list (20 items / 13 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. textproc/rarian
  3. textproc/xmlto
  4. textproc/yodl
  5. x11-fonts/fontpreview
  6. 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.41.2: EXAMPLES=on: Build and/or install examples ===> Use 'make config' to modify these settings
Options name:
misc_getopt
USES:
gmake 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.41/
  2. ftp://ftp.riken.jp/Linux/kernel.org/linux/utils/util-linux/v2.41/
  3. http://ftp.nara.wide.ad.jp/pub/kernel.org/linux/utils/util-linux/v2.41/
  4. http://ftp.yandex.ru/pub/linux/utils/util-linux/v2.41/
  5. https://cdn.kernel.org/pub/linux/utils/util-linux/v2.41/
  6. https://mirrors.mit.edu/kernel/linux/utils/util-linux/v2.41/
  7. https://www.kernel.org/pub/linux/utils/util-linux/v2.41/
Collapse this list.

There are no commits on branch 2022Q2 for this port