+CONTENTS000644 000000 000000 00000001004 11057776156 012301 0ustar00rootroot000000 000000 @cwd /usr/pkg @src /usr/pkg @name getopt-1.1.4 @blddep gettext-lib-0.14.6 @pkgdep gettext-lib>=0.14.5 @blddep digest-20070803 @blddep tnftp-20070806 @blddep gmake-3.81 @blddep patch-2.5.4nb2 @blddep gcc34-3.4.6nb1 @comment $NetBSD: PLIST,v 1.1.1.1 2004/12/26 15:55:39 wiz Exp $ bin/getopt @comment MD5:64ebb8f168dc686427b6bf23cef0811e man/man1/getopt.1 @comment MD5:3d0f44cb5ade2634eeec24cf8e0e5dfc @cwd . @ignore +COMMENT @ignore +DESC @ignore +BUILD_VERSION @ignore +BUILD_INFO @ignore +SIZE_PKG @ignore +SIZE_ALL +COMMENT000444 000000 000000 00000000074 11057776156 012152 0ustar00rootroot000000 000000 Program to help shell scripts parse command-line parameters +DESC000444 000000 000000 00000002411 11057776156 011563 0ustar00rootroot000000 000000 Getopt(1) is a program to help shell scripts parse command-line parameters. It is for example included in the util-linux distribution (versions up to 2.7.1) for Linux. But, there were some problems with that getopt(1) implementation, as listed in the 'BUGS' section of its man-page: * Whatever getopt(3) has. * Arguments containing white space or imbedded shell metacharacters generally will not survive intact; this looks easy to fix but isn't. * The error message for an invalid option is identified as coming from getopt rather than from the shell procedure containing the invocation of getopt; this again is hard to fix. * The precise best way to use the set command to set the arguments without disrupting the value(s) of shell options varies from one shell version to another. Additionally, the example in the manual-page does not run correctly (at least not with any bash shell I have tried). This implementation of getopt(1) solves some of these problems, while still staying (for all practical purposes) completely compatible with other getopt(1) implementations. It has replaced the old util-linux version, but it should be useful for other Unixes too. Homepage: http://software.frodo.looijaard.name/getopt/ +BUILD_VERSION000644 000000 000000 00000000623 11057776151 013111 0ustar00rootroot000000 000000 misc/getopt/distinfo: $NetBSD: distinfo,v 1.3 2008/01/15 23:59:09 wiz Exp $ misc/getopt/Makefile: $NetBSD: Makefile,v 1.10 2008/01/15 23:59:09 wiz Exp $ misc/getopt/patches/patch-aa: $NetBSD: patch-aa,v 1.1.1.1 2004/12/26 15:55:39 wiz Exp $ misc/getopt/patches/patch-ab: $NetBSD: patch-ab,v 1.1.1.1 2004/12/26 15:55:39 wiz Exp $ misc/getopt/PLIST: $NetBSD: PLIST,v 1.1.1.1 2004/12/26 15:55:39 wiz Exp $ +BUILD_INFO000644 000000 000000 00000006246 11057776155 012532 0ustar00rootroot000000 000000 ABI= BUILD_DATE=2008-09-04 10:19:09 -0500 BUILD_HOST=SunOS marcie.christtrek.org 5.10 Generic_127127-11 sun4u sparc SUNW,Ultra-5_10 CATEGORIES=misc CC_VERSION=gcc-3.4.6 CFLAGS=-O -O2 -I/usr/pkg/gcc34/include -I/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6/include -I/usr/include -I/usr/pkg/include CMAKE_ARGS= CONFIGURE_ARGS= CONFIGURE_ENV=INSTALL_INFO= MAKEINFO=/usr/pkgsrc/misc/getopt/work.sparc/.tools/bin/makeinfo PKG_CONFIG= PKG_CONFIG_LIBDIR=/usr/pkgsrc/misc/getopt/work.sparc/.buildlink/lib/pkgconfig:/usr/pkgsrc/misc/getopt/work.sparc/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/usr/pkgsrc/misc/getopt/work.sparc/.pkg-config.log PKG_CONFIG_PATH= MAKE=make PTHREAD_CFLAGS=\ -D_REENTRANT PTHREAD_LDFLAGS= PTHREAD_LIBS=-lpthread\ -lrt PTHREADBASE=/usr WRAPPER_DEBUG=no WRAPPER_UPDATE_CACHE=yes CC=gcc CFLAGS=-O\ -O2\ -I/usr/pkg/gcc34/include\ -I/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6/include\ -I/usr/include\ -I/usr/pkg/include CPPFLAGS=-I/usr/pkg/gcc34/include\ -I/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6/include\ -I/usr/include\ -I/usr/pkg/include CXX=g++ CXXFLAGS=-O\ -O2\ -I/usr/pkg/gcc34/include\ -I/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6/include\ -I/usr/include\ -I/usr/pkg/include\ -O2 COMPILER_RPATH_FLAG=-Wl,-R F77=f77 FC=f77 FFLAGS=-O LANG=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6\ -Wl,-R/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6\ -L/usr/pkg/gcc34/lib\ -Wl,-R/usr/pkg/gcc34/lib\ -L/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6/\ -L/usr/lib\ -Wl,-R/usr/lib\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R PATH=/usr/pkgsrc/misc/getopt/work.sparc/.wrapper/bin:/usr/pkgsrc/misc/getopt/work.sparc/.buildlink/bin:/usr/pkgsrc/misc/getopt/work.sparc/.gcc/bin:/usr/pkgsrc/misc/getopt/work.sparc/.tools/bin:/usr/pkg/bin:/usr/sbin:/usr/bin:/usr/ucb:/usr/ccs/bin:/usr/xpg4/bin:/usr/dt/bin:/usr/X11/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/openwin/bin:/usr/sfw/sbin:/usr/sfw/bin:/usr/local/bin:/usr/pkg/bin:/usr/openwin/bin PREFIX=/usr/pkg PKG_SYSCONFDIR=/usr/pkg/etc CXXCPP=gcc\ -E HOME=/usr/pkgsrc/misc/getopt/work.sparc/.home CPPFLAGS= -I/usr/pkg/gcc34/include -I/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6/include -I/usr/include -I/usr/pkg/include FFLAGS=-O GMAKE=GNU Make 3.81 HOMEPAGE=http://software.frodo.looijaard.name/getopt/ LDFLAGS= -L/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6 -Wl,-R/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6 -L/usr/pkg/gcc34/lib -Wl,-R/usr/pkg/gcc34/lib -L/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6/ -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib LICENSE= LOCALBASE=/usr/pkg MACHINE_ARCH=sparc MACHINE_GNU_ARCH=sparc MAINTAINER=pkgsrc-users@NetBSD.org NO_BIN_ON_CDROM= NO_BIN_ON_FTP= NO_SRC_ON_CDROM= NO_SRC_ON_FTP= OBJECT_FMT=ELF OPSYS=SunOS OS_VERSION=5.10 PKGINFODIR=info PKGMANDIR=man PKGPATH=misc/getopt PKG_SYSCONFBASEDIR=/usr/pkg/etc PKG_SYSCONFDIR=/usr/pkg/etc PKGTOOLS_VERSION=20080423 _PLIST_IGNORE_FILES= REQUIRES=/lib/libc.so.1 REQUIRES=/lib/libm.so.2 REQUIRES=/usr/pkg/gcc34/lib/libgcc_s.so.1 REQUIRES=/usr/pkg/lib/libiconv.so.2 REQUIRES=/usr/pkg/lib/libintl.so.3 RESTRICTED= _USE_DESTDIR=no +SIZE_PKG000644 000000 000000 00000000006 11057776155 012317 0ustar00rootroot000000 000000 28600 +SIZE_ALL000644 000000 000000 00000000007 11057776151 012303 0ustar00rootroot000000 000000 121931 bin/getopt000555 000000 000000 00000035024 11057776147 013055 0ustar00rootroot000000 000000 ELF 46,4 (44////`1l1l/usr/lib/ld.so.1CD  !"$%&'(*,-.0245:?@BC #)+/136789;<=>A  +1,>1DE0HK0Rh  c0j 03@, 1 384 1\3X t 3'p 1  3T3\!3(/ >( D ` P6Y3`_L j1PH0o1lx0180@ 0 L 6!3ti03x4 !1/ 000'  D F0<2D0"($ ((8 60x52@B03@!J' V0U f@ r3 9H __register_frame_info_Jv_RegisterClasseslibintl_textdomainstrspn_exitstrchr_getopt_internalstrcpy__deregister_frame_infofprintf__iobadd_long_optionslibintl_bindtextdomain_edata__ctypestrncmpquiet_output_startopterrgetoptstrcmpgenerate_outputalternativequiet_errorsoptind_GLOBAL_OFFSET_TABLE__initour_realloc_endset_shellnormalizefputs_DYNAMIC_PROCEDURE_LINKAGE_TABLE_getenvstrtokprint_helpstrlenour_malloc_environ__getopt_initializedoptargsetlocale_etextatexitgetopt_long_onlyadd_longoptquotefree_fini_lib_version__dso_handleputchargetopt_longlibintl_gettextparse_erroroptoptlibc.so.1SYSVABI_1.3libintl.so.3/usr/pkg/gcc34/lib:/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6:/usr/pkg/liby7̳// /693 40000<40H0T 0`0l0x:0?010!0'0060 00<0+0%11.1 1,18$1D1P 1\ @D# @IJ $@I @, @ "@l@H@I㿐#/Ht`  @  `@@`" `@$@```$``@H`  +㿐㿐/Hͮ⼂` ` @H ```  `@H㿐㿐@H  J@H ВJ#@H@H 㿐@H`?@ @ J@H ВJ#@H@H 㿐!#p ]bD` @HȐ $#p@H\#p@H*  $#p '*+`` `є \ ' n;``'1```!``+ * + `  '*1* '``N` `* *8`@`"** * * ** * * *@H<* * * *#p㿈c\`  c c'#+-JcT`@͘쀢? ?`? :`? XcT` @쀢?X`IJ02`2cT  J@G!@G cTJ `:cTcx "A%J@GސcTcx(`J@GԐ!(```cTcx@Gɐ !#@(`%J`$# @G#@(`@G 㿐 1Ja@G#J@G!(@G#@G 㿐! %*#h l+`+ d@  "" @ "ch ""@G}" @G{chd+ @  "ld$d#h@Gpd$#h"l$d $ch㿐#J@GqaX +%J N @GfaX  N` @GGJ?`:2J?`: *? N``@G-ސ*?㿐Ja@GAJ a@G:J a  c`@G/J a c`@G% J!@F\㿐J!@F!@G #J@F"@G#J@F"@@G#J@F"@F#J@F"@F#J@Fې"@F#J@F֐#(@F#J@Fѐ#h@F#J@F̐#@F#J@Fǐ#@F#K@F @@Fے#K@F x@F֒#K@F @Fђ#K@F @F̒#K@F!0@Fǒ#@F 㿐J`@FȐ !JKap@FƐ @Fǐ    K@FĐ!      g `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fch 㿐/B`@?㿐㿠A㿠 optionslongoptionsquietquiet-outputshelltestunquotedhelpalternativenameversion+ao:l:n:qQs:TuhV%s: Out of memory! getopt -- -%c %s --%sgetopt: %s Try `getopt --help' for more information. , empty long option after -l or --long argumentbashtcshshcshunknown shell after -s or --shell argumentUsage: getopt optstring parameters getopt [options] [--] optstring parameters getopt [options] -o|--options optstring [options] [--] parameters -a, --alternative Allow long options starting with single - -h, --help This small usage guide -l, --longoptions=longopts Long options to be recognized -n, --name=progname The name under which errors are reported -o, --options=optstring Short options to be recognized -q, --quiet Disable error reporting by getopt(3) -Q, --quiet-output No normal output -s, --shell=shell Set shell quoting conventions -T, --test Test for getopt(1) version -u, --unqote Do not quote the output -V, --version Output version information /usr/pkg/share/localeGETOPT_COMPATIBLEinternal error, contact the author.getopt (enhanced) 1.1.4 missing optstring argument-+--POSIXLY_CORRECT%s: unrecognized option `%c%s' %s: illegal option -- %c %s: unrecognized option `--%s' %s: option `%c%s' doesn't allow an argument %s: option `%s' requires an argument %s: option `%s' is ambiguous %s: invalid option -- %c %s: option requires an argument -- %c %s: option `-W %s' is ambiguous %s: option `--%s' doesn't allow an argument %s: option `-W %s' doesn't allow an argument 1l3,3<3834303 00<0H0T0`0l0x00000000000000 0,080D0P0\0y ( ($L  oo .SH "SEE ALSO" .BR getopt (3), .BR bash (1), .BR tcsh (1).