BSD Ports

misc/getopt 1.1.6_1 MidnightBSD

getopt(1) replacement that supports GNU-style long options

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
gpl2, gpl3
Categories
misc

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.

In the other systems

SystemPortVersion
MidnightBSDmisc/getopt1.1.6_1
FreeBSDmisc/getopt2.42.4
NetBSDmisc/getopt1.1.6nb1
DragonFlymisc/getopt1.1.6_2
HardenedBSDmisc/getopt2.42.4
GhostBSDmisc/getopt2.42.3
OPNsensemisc/getopt2.42.1

Install

Binary package:

mport install getopt

From mports:

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

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

RUN_DEPENDS=	getopt>0:misc/getopt

Dependencies

Configuration

Options name: misc_getopt

OptionDefaultDescription
DOCSoff
NLSoff
USES
gmake
Service scripts
none

Files

Manual pages 1
  • getopt(1)
pkg-plist 28
  • bin/getopt
  • share/locale/ca/LC_MESSAGES/getopt.mo
  • share/locale/cs/LC_MESSAGES/getopt.mo
  • share/locale/da/LC_MESSAGES/getopt.mo
  • share/locale/de/LC_MESSAGES/getopt.mo
  • share/locale/es/LC_MESSAGES/getopt.mo
  • share/locale/et/LC_MESSAGES/getopt.mo
  • share/locale/eu/LC_MESSAGES/getopt.mo
  • share/locale/fi/LC_MESSAGES/getopt.mo
  • share/locale/fr/LC_MESSAGES/getopt.mo
  • share/locale/gl/LC_MESSAGES/getopt.mo
  • share/locale/hr/LC_MESSAGES/getopt.mo
  • share/locale/hu/LC_MESSAGES/getopt.mo
  • share/locale/id/LC_MESSAGES/getopt.mo
  • share/locale/it/LC_MESSAGES/getopt.mo
  • share/locale/ja/LC_MESSAGES/getopt.mo
  • share/locale/nl/LC_MESSAGES/getopt.mo
  • share/locale/pl/LC_MESSAGES/getopt.mo
  • share/locale/pt_BR/LC_MESSAGES/getopt.mo
  • share/locale/ru/LC_MESSAGES/getopt.mo
  • share/locale/sl/LC_MESSAGES/getopt.mo
  • share/locale/sv/LC_MESSAGES/getopt.mo
  • share/locale/tr/LC_MESSAGES/getopt.mo
  • share/locale/uk/LC_MESSAGES/getopt.mo
  • share/locale/vi/LC_MESSAGES/getopt.mo
  • share/locale/zh_CN/LC_MESSAGES/getopt.mo
  • share/locale/zh_TW/LC_MESSAGES/getopt.mo
  • share/man/man1/getopt.1.gz
distinfo 1
FileSizeSHA256
getopt-1.1.6.tar.gz58926d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe
Master sites 2
  • http://frodo.looijaard.name/system/files/software/getopt/
  • FREEBSD_LOCAL/sunpoet