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
Ukraine
Port details
getopt Replacement for getopt(1) that supports GNU-style long options
1.1.6_2 misc on this many watch lists=52 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 1.1.6_2Version 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: 2024-11-03 11:35:07
Commit Hash: 8cef01d
People watching this port, also watch:: libxml2, gmake, pcre, freetype2, expat
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:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (11 items)
Collapse this list.
  1. /usr/local/share/licenses/getopt-1.1.6_2/catalog.mk
  2. /usr/local/share/licenses/getopt-1.1.6_2/LICENSE
  3. /usr/local/share/licenses/getopt-1.1.6_2/GPLv2
  4. bin/getopt
  5. share/bash-completion/completions/getopt
  6. share/doc/util-linux/getopt-example.bash
  7. share/doc/util-linux/getopt-example.tcsh
  8. share/man/man1/getopt.1.gz
  9. @owner
  10. @group
  11. @mode
Collapse this list.
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 = 1714112744 SHA256 (util-linux-2.39.4.tar.xz) = 6c4f8723dafd41c39d93ecbf16509fc88c33cd5bd3277880ae5a1d97a014fd0e SIZE (util-linux-2.39.4.tar.xz) = 8541176

Packages (timestamps in pop-ups are UTC):
getopt
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest1.1.6_21.1.6_21.1.61.1.6_21.1.6_2-1.1.6-
FreeBSD:13:quarterly1.1.6_11.1.6_21.1.61.1.6_11.1.6_21.1.61.1.61.1.6
FreeBSD:14:latest1.1.6_21.1.6_21.1.61.1.6_21.1.6_21.1.6-1.1.6
FreeBSD:14:quarterly1.1.6_21.1.6_2-1.1.6_11.1.6_21.1.61.1.61.1.6
FreeBSD:15:latest1.1.6_21.1.6_2n/a1.1.6_2n/a1.1.6_11.1.6_11.1.6_1
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. french/aster
  2. net/pacemaker2
  3. textproc/rarian
  4. 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. devel/compiz-bcop
  2. math/eukleides
  3. net/pacemaker2
  4. sysutils/password-store
  5. sysutils/tartarus
  6. textproc/rarian
  7. textproc/xmlto
Expand this list (17 items / 10 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. textproc/yodl
  3. x11-fonts/fontpreview
  4. Collapse this list.

Deleted ports which required this port:

Expand this list of 8 deleted ports
  1. devel/gitflow*
  2. net/ceph*
  3. net/ceph-devel*
  4. net/ceph12*
  5. net/ceph13*
  6. net/ceph14*
  7. net/pacemaker*
  8. net/pacemaker1*
  9. 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-1.1.6_2: DOCS=on: Build and/or install documentation ===> 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.39/
  2. ftp://ftp.riken.jp/Linux/kernel.org/linux/utils/util-linux/v2.39/
  3. http://ftp.nara.wide.ad.jp/pub/kernel.org/linux/utils/util-linux/v2.39/
  4. http://ftp.yandex.ru/pub/linux/utils/util-linux/v2.39/
  5. https://cdn.kernel.org/pub/linux/utils/util-linux/v2.39/
  6. https://mirrors.mit.edu/kernel/linux/utils/util-linux/v2.39/
  7. https://www.kernel.org/pub/linux/utils/util-linux/v2.39/
Collapse this list.

Number of commits found: 56

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
1.1.6_2
03 Nov 2024 11:35:07
commit hash: 8cef01d3b3f0fb26a1f769c34a632c309ed1bfa4commit hash: 8cef01d3b3f0fb26a1f769c34a632c309ed1bfa4commit hash: 8cef01d3b3f0fb26a1f769c34a632c309ed1bfa4commit hash: 8cef01d3b3f0fb26a1f769c34a632c309ed1bfa4 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
misc/getopt: Use util-linux repo as upstream

- Unmark DEPRECATED and remove EXPIRATION_DATE
- Bump PORTREVISION for package change

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
1.1.6_1
03 Nov 2024 11:34:23
commit hash: 4ddfd281f8eb07657fd1e268fed59478a4a2ce38commit hash: 4ddfd281f8eb07657fd1e268fed59478a4a2ce38commit hash: 4ddfd281f8eb07657fd1e268fed59478a4a2ce38commit hash: 4ddfd281f8eb07657fd1e268fed59478a4a2ce38 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
misc/getopt: Re-add getopt 1.1.6

PR:		281625
1.1.6_1
02 Nov 2024 23:56:19
commit hash: b1eeb76e9790f2fc985636fa5d846fbab8b7c86fcommit hash: b1eeb76e9790f2fc985636fa5d846fbab8b7c86fcommit hash: b1eeb76e9790f2fc985636fa5d846fbab8b7c86fcommit hash: b1eeb76e9790f2fc985636fa5d846fbab8b7c86f files touched by this commit
Rene Ladan (rene) search for other commits by this committer
misc/getopt: Remove expired port

2024-10-31 misc/getopt: Use getopt from devel/util-linux instead
1.1.6_1
07 Oct 2024 14:18:37
commit hash: 9c41d8407966bc8d14d3204a928508ec44444bcfcommit hash: 9c41d8407966bc8d14d3204a928508ec44444bcfcommit hash: 9c41d8407966bc8d14d3204a928508ec44444bcfcommit hash: 9c41d8407966bc8d14d3204a928508ec44444bcf files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
misc/getopt: Mark DEPRECATED and set EXPIRATION_DATE to 2024-10-31

PR:		281625
Reported by:	diizzy
1.1.6_1
21 May 2024 19:56:02
commit hash: aa9d236237bf9c9afa3f09ab67717fd60f88988ccommit hash: aa9d236237bf9c9afa3f09ab67717fd60f88988ccommit hash: aa9d236237bf9c9afa3f09ab67717fd60f88988ccommit hash: aa9d236237bf9c9afa3f09ab67717fd60f88988c files touched by this commit
Daniel Engberg (diizzy) search for other commits by this committer
misc/getopt: Remove post-patch section

Tries to remove non-existing files

PR:		278733
Approved by:	portmgr (maintainer timeout, 2+ weeks)
1.1.6_1
21 Feb 2024 15:06:34
commit hash: 89b4d5b2072cd36d9d53035365bc2e7683988d68commit hash: 89b4d5b2072cd36d9d53035365bc2e7683988d68commit hash: 89b4d5b2072cd36d9d53035365bc2e7683988d68commit hash: 89b4d5b2072cd36d9d53035365bc2e7683988d68 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
misc/getopt: Sort PLIST after fd7dc420e3c82dfe5066ed48fa0b08a218c41f5e
1.1.6_1
27 Jan 2024 16:27:04
commit hash: fd7dc420e3c82dfe5066ed48fa0b08a218c41f5ecommit hash: fd7dc420e3c82dfe5066ed48fa0b08a218c41f5ecommit hash: fd7dc420e3c82dfe5066ed48fa0b08a218c41f5ecommit hash: fd7dc420e3c82dfe5066ed48fa0b08a218c41f5e files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
misc/getopt: Moved man to share/man

Approved by:    portmgr (blanket)
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
1.1.6
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
1.1.6
20 Jul 2022 14:22:28
commit hash: b832da1849e4bcfff05da62c69ee4a556e83d2d1commit hash: b832da1849e4bcfff05da62c69ee4a556e83d2d1commit hash: b832da1849e4bcfff05da62c69ee4a556e83d2d1commit hash: b832da1849e4bcfff05da62c69ee4a556e83d2d1 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
misc: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Adam Weinberger <adam@vectors.cx>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
  *  Alan E <alane@FreeBSD.org>
  *  Alex Semenyaka <alex@rinet.ru>
  *  Alex Stangl <alex@stangl.us>
  *  Alexander Logvinov <avl@FreeBSD.org>
  *  Alexander Logvinov <ports@logvinov.com>
  *  Alexander Nusov <alexander.nusov@nfvexpress.com>
  *  Alexander Timoshenko <gonzo@univ.kiev.ua>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
1.1.6
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
1.1.6
30 Sep 2016 19:24:30
Revision:423014Original commit files touched by this commit
tijl search for other commits by this committer
Let USES=localbase add -L${LOCALBASE}/lib to LIBS instead of LDFLAGS.
USES=localbase:ldflags can be used to set LDFLAGS.  Normally LDFLAGS
appears too early on the command line causing some ports to link with
their own libraries in LOCALBASE (if installed) instead of WRKSRC.

Also make use of _USES_POST so -L${LOCALBASE}/lib is added as late as
possible after anything a port Makefile might set.  Use _USES_POST
instead of .include in libedit.mk and libarchive.mk so things like
'USES=libedit localbase:ldflags' work correctly.

Fix some issues with LIBS in some ports.

Switch ports that don't support LIBS to localbase:ldflags.

PR:		212987
Exp-run by:	antoine
Approved by:	portmgr (antoine)
1.1.6
15 Oct 2015 20:16:36
Revision:399369Original commit files touched by this commit
sunpoet search for other commits by this committer
- Use USES=localbase
- Convert to new options target helper
1.1.6
04 Dec 2014 15:08:30
Revision:373929Original commit files touched by this commit
sunpoet search for other commits by this committer
- Update to 1.1.6

Changes:	http://frodo.looijaard.name/project/getopt/release/1-1-6
1.1.5
24 Nov 2014 18:24:43
Revision:373235Original commit files touched by this commit
sunpoet search for other commits by this committer
- Update LICENSE
1.1.5
21 Nov 2014 21:49:38
Revision:373015Original commit files touched by this commit
sunpoet search for other commits by this committer
- Fix MASTER_SITES

PR:		ports/195247
Submitted by:	Thomas Schweikle <tps@vr-web.de>
MFH:		2014Q4
1.1.5
02 Oct 2014 10:58:17
Revision:369809Original commit files touched by this commit
sunpoet search for other commits by this committer
- Fix typo
1.1.5
01 Oct 2014 20:16:16
Revision:369764Original commit files touched by this commit
sunpoet search for other commits by this committer
- Cleanup *.o from tarball

PR:		ports/194074
Submitted by:	Vikash Badal <vikashb@where-ever.za.net>
1.1.5
30 Sep 2014 16:19:42
Revision:369643Original commit files touched by this commit
sunpoet search for other commits by this committer
- Fix PLIST when NLS option is off
1.1.5
30 Sep 2014 15:23:32
Revision:369620Original commit files touched by this commit
sunpoet search for other commits by this committer
- Fix MAINTAINER
- Add LICENSE
- Add NLS option
1.1.5
19 Aug 2014 19:51:01
Revision:365423Original commit files touched by this commit
sunpoet search for other commits by this committer
- Add my LOCAL to MASTER_SITES
- Use PORTDOCS
- Sort PLIST
- Take maintainership
1.1.5
17 Aug 2014 08:25:51
Revision:365160Original commit files touched by this commit
eadler search for other commits by this committer
Return some ports I maintain to the pool.
1.1.5
16 Jul 2014 03:00:46
Revision:362023Original commit files touched by this commit
adamw search for other commits by this committer
Add DOCS option for ports with PORTDOCS in plist.
1.1.5
07 Dec 2013 05:35:04
Revision:335813Original commit files touched by this commit
eadler search for other commits by this committer
Remove PORT_OPTIONS:MDOCS checks from ports which don't need it
Add NO_ARCH if useful
1.1.5
23 Oct 2013 18:58:57
Revision:331410Original commit files touched by this commit
eadler search for other commits by this committer
Unquiet my ports to make debugging easier.
1.1.5
28 Sep 2013 07:05:15
Revision:328555Original commit files touched by this commit
eadler search for other commits by this committer
Convert to staging
20 Sep 2013 20:50:59
Revision:327745Original commit files touched by this commit Sanity Test Failure Refresh
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
misc)
1.1.5
16 Jul 2013 21:59:48
Revision:323129Original commit files touched by this commit
eadler search for other commits by this committer
Remove now excess verbiage.

Reviewed by:	bapt
1.1.5
06 Jul 2013 17:27:41
Revision:322403Original commit files touched by this commit
eadler search for other commits by this committer
Convert some of my ports from USE_GMAKE to USES=gmake.
The remainder have other pending patches which I must finish before conversion.
1.1.5
24 Apr 2013 17:50:58
Revision:316460Original commit files touched by this commit
eadler search for other commits by this committer
Convert to USES=gettext

Reviewed by:	kwm
1.1.5
28 Mar 2013 01:28:01
Revision:315426Original commit files touched by this commit
eadler search for other commits by this committer
A portlint run over my ports revealed some false positives and these two minor
formatting issues.  Fix them.
1.1.5
08 Mar 2013 20:23:39
Revision:313672Original commit files touched by this commit
eadler search for other commits by this committer
Clean up my ports (and a couple of ports@ owned ones):

- Fix COMMENT
- Add MAKE_JOBS_SAFE where appropriate
- Change ordering of LICENSE lines
- Fix new header format
- Etc.

Reviewed by:	drogoh (on irc)
1.1.5
03 Mar 2013 01:12:05
Revision:313312Original commit files touched by this commit
eadler search for other commits by this committer
I forgot to "svn add" the patch file

Pointyhat to:	me
1.1.5
03 Mar 2013 00:13:20
Revision:313310Original commit files touched by this commit
eadler search for other commits by this committer
Update to 1.1.5

PR:		ports/172911
Submitted by:	Douglas Carmichael <dcarmich@dcarmichael.net>
1.1.4_2
20 Oct 2012 16:35:47
Revision:306204Original commit files touched by this commit
eadler search for other commits by this committer
I accidently committed too much

version number goes backwards, but this was committed recently

Feature safe:	yes
1.1.5_2
20 Oct 2012 14:59:44
Revision:306182Original commit files touched by this commit
eadler search for other commits by this committer
Convert to OptionsNG

Feature safe:	yes
1.1.4_2
06 Oct 2012 14:35:46
Revision:305369Original commit files touched by this commit
eadler search for other commits by this committer
Trim the headers in the ports I maintain.
1.1.4_2
23 Sep 2011 22:26:39
Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:             157936
Submitted by:   myself
Exp-runs by:    pav
Approved by:    pav
1.1.4_2
21 Aug 2011 20:51:40
Original commit files touched by this commit
eadler search for other commits by this committer
- change the email address I use to maintain ports

Approved by:    bapt (mentor)
1.1.4_2
21 Aug 2011 16:12:46
Original commit files touched by this commit
eadler search for other commits by this committer
- change the email address I use to maintain ports

Approved by:    bapt (mentor)
1.1.4_2
19 Mar 2011 12:38:54
Original commit files touched by this commit
miwi search for other commits by this committer
- Get Rid MD5 support
1.1.4_2
13 Jan 2011 21:49:33
Original commit files touched by this commit
pav search for other commits by this committer
- Over to a willing maintainer

Feature safe:   yes
1.1.4_2
31 May 2010 02:01:56
Original commit files touched by this commit
ade search for other commits by this committer
Bounce PORTREVISION for gettext-related ports.  Have fun, ya'll.
1.1.4_1
11 Feb 2010 19:44:47
Original commit files touched by this commit
pgollucci search for other commits by this committer
- Respect CC

PR:             ports/143743
Submitted by:   Rob Farmer <rfarmer@predatorlabs.net>
1.1.4_1
21 Dec 2009 02:19:12
Original commit files touched by this commit
dougb search for other commits by this committer
For ports maintained by ports@FreeBSD.org, remove names and/or
e-mail addresses from the pkg-descr file that could reasonably
be mistaken for maintainer contact information in order to avoid
confusion on the part of users looking for support. As a pleasant
side effect this also avoids confusion and/or frustration for people
who are no longer maintaining those ports.
1.1.4_1
27 Jul 2008 04:30:53
Original commit files touched by this commit
linimon search for other commits by this committer
Reset sergei@ due to maintainer-timeouts and no response to email.

Hat:            portmgr
1.1.4_1
25 Jul 2008 12:24:09
Original commit files touched by this commit
pav search for other commits by this committer
- Remove duplicates from MAKE_ENV after inclusion of CC and CXX in default
MAKE_ENV
1.1.4_1
06 Jun 2008 13:45:40
Original commit files touched by this commit
edwin search for other commits by this committer
Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
1.1.4
20 Mar 2008 09:51:43
Original commit files touched by this commit
pav search for other commits by this committer
- Remove USE_GETOPT_LONG which is a no-op since March 2007
1.1.4
21 Nov 2005 13:15:49
Original commit files touched by this commit
sergei search for other commits by this committer
- Update to 1.1.4
- Chase MASTER_SITE URL change [1]
- Add SHA256 checksum

Prompted by:    fenner's portsurvey [1]
1.1.3_1
19 Feb 2005 11:00:12
Original commit files touched by this commit
sergei search for other commits by this committer
- Update MASTER_SITES and WWW

Prompted by:    pointyhat via kris
1.1.3_1
04 Feb 2004 04:36:30
Original commit files touched by this commit
marcus search for other commits by this committer
Add USE_GETTEXT and bump PORTREVISION.

Submitted by:   trevor
Tested by:      bento
1.1.3
30 Jan 2004 16:03:29
Original commit files touched by this commit
sergei search for other commits by this committer
SIZE *DOES* MATTER.
1.1.3
23 Jan 2004 18:12:26
Original commit files touched by this commit
trevor search for other commits by this committer
Now gettext 0.12.1 is gettext-old.
1.1.3
23 Oct 2003 05:42:49
Original commit files touched by this commit
sergei search for other commits by this committer
Change to my @FreeBSD.org address.

Approved by:    krion
1.1.3
13 Jun 2003 23:56:42
Original commit files touched by this commit
osa search for other commits by this committer
A getopt(1) replacement that supports GNU-style long options

Submitted by:   Sergei Kolobov <sergei@kolobov.com>
PR:             53174
Approved by:    fjoe (implicit)

Number of commits found: 56