+CONTENTS000644 000000 000000 00000000702 11127632502 012265 0ustar00rootroot000000 000000 @cwd /usr/pkg @src /usr/pkg @name fortune-strfile-0 @blddep groff-1.19.2nb5 @comment $NetBSD: PLIST,v 1.1.1.1 2002/10/01 10:31:51 drochner Exp $ bin/strfile @comment MD5:4e7c817fecec0ed7123d5f5b9f11b011 man/cat8/strfile.0 @comment MD5:37dd44d74c2b1cfdc2d1b090f724fa32 man/man8/strfile.8 @comment MD5:7adb071ea550feab53c1ec5f46fcdc22 @cwd . @ignore +COMMENT @ignore +DESC @ignore +BUILD_VERSION @ignore +BUILD_INFO @ignore +SIZE_PKG @ignore +SIZE_ALL +COMMENT000444 000000 000000 00000000043 11127632502 012126 0ustar00rootroot000000 000000 Tool to prepare a fortune database +DESC000444 000000 000000 00000000146 11127632502 011546 0ustar00rootroot000000 000000 This is a pkg version of NetBSD's strfile utility. (tool to prepare a cookie database for fortune(6)) +BUILD_VERSION000644 000000 000001 00000001106 11127632476 013244 0ustar00rootother000000 000000 games/fortune-strfile/files/Makefile: $NetBSD: Makefile,v 1.2 2006/11/09 08:31:31 rillig Exp $ games/fortune-strfile/files/strfile.8: $NetBSD: strfile.8,v 1.1.1.1 2002/10/01 10:31:51 drochner Exp $ games/fortune-strfile/files/strfile.c: $NetBSD: strfile.c,v 1.1.1.1 2002/10/01 10:31:51 drochner Exp $ games/fortune-strfile/files/strfile.h: $NetBSD: strfile.h,v 1.1.1.1 2002/10/01 10:31:51 drochner Exp $ games/fortune-strfile/Makefile: $NetBSD: Makefile,v 1.14 2008/06/12 02:14:30 joerg Exp $ games/fortune-strfile/PLIST: $NetBSD: PLIST,v 1.1.1.1 2002/10/01 10:31:51 drochner Exp $ +BUILD_INFO000644 000000 000001 00000003637 11127632502 012653 0ustar00rootother000000 000000 ABI= BUILD_DATE=2009-01-03 03:52:01 %z BUILD_HOST=SunOS marcie 5.9 Generic_118558-34 sun4u sparc SUNW,Ultra-5_10 CATEGORIES=games CC_VERSION=gcc-4.2.0 CFLAGS=-O -O3 CMAKE_ARGS= CONFIGURE_ARGS= CONFIGURE_ENV=INSTALL_INFO= MAKEINFO=/usr/pkgsrc/games/fortune-strfile/work.sparc/.tools/bin/makeinfo PKG_CONFIG= PKG_CONFIG_LIBDIR=/usr/pkgsrc/games/fortune-strfile/work.sparc/.buildlink/lib/pkgconfig:/usr/pkgsrc/games/fortune-strfile/work.sparc/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/usr/pkgsrc/games/fortune-strfile/work.sparc/.pkg-config.log PKG_CONFIG_PATH= MAKE=make WRAPPER_DEBUG=no WRAPPER_UPDATE_CACHE=yes CC=gcc CFLAGS=-O\ -O3 CPPFLAGS= CXX=g++ CXXFLAGS=-O\ -O3 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=-Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R PATH=/usr/pkgsrc/games/fortune-strfile/work.sparc/.wrapper/bin:/usr/pkgsrc/games/fortune-strfile/work.sparc/.buildlink/bin:/usr/pkgsrc/games/fortune-strfile/work.sparc/.gcc/bin:/usr/pkgsrc/games/fortune-strfile/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:/opt/gcc/bin:/usr/sfw/sbin:/usr/sfw/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/openwin/bin PREFIX=/usr/pkg PKG_SYSCONFDIR=/usr/pkg/etc CXXCPP=gcc\ -E HOME=/usr/pkgsrc/games/fortune-strfile/work.sparc/.home CPPFLAGS= FFLAGS=-O LDFLAGS= -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.9 PKGINFODIR=info PKGMANDIR=man PKGPATH=games/fortune-strfile PKG_SYSCONFBASEDIR=/usr/pkg/etc PKG_SYSCONFDIR=/usr/pkg/etc PKGTOOLS_VERSION=20081002 _PLIST_IGNORE_FILES= REQUIRES=/usr/lib/libc.so.1 REQUIRES=/usr/lib/libdl.so.1 RESTRICTED= _USE_DESTDIR=no +SIZE_PKG000644 000000 000001 00000000006 11127632502 012437 0ustar00rootother000000 000000 22021 +SIZE_ALL000644 000000 000001 00000000002 11127632477 012435 0ustar00rootother000000 000000 0 bin/strfile000555 000000 000000 00000032750 11127632474 013216 0ustar00rootroot000000 000000 ELF 424 (44'B'B'D'D l((/usr/lib/ld.so.1OM !#$%&()*,./02356789:<?ACFHIK  "'+-14;=>@BDEGJL.( (  ($()(h1'8'?2FD N.T2[(,a-h'D ~ ''(P (D% ''2('T/0d  % .'2%  (t)2#/H@!(.. B( F t M2T0 \2e, "/H@U0 !k v(d }(. '2-(('B ]2!"("|P . )(< (8.$(+(3(\:K'(IflagftellfopenrandomizefflushputsreallocgetpidfwriteSort_1getargsRflagSort_2qsort_edata_GLOBAL_OFFSET_TABLE_cmp_str_exitsrandomdieperrordo_orderfprintf_initatexit_endmemcpy_PROCEDURE_LINKAGE_TABLE_Tblmain_lib_versionOflagFirstch_finigetoptOutfileoptarg__iobXflag_Jv_RegisterClassesdie_startoptind__ctype_environusageadd_offsetstrlenfgetsSflagfseekSeekptsDelimch_DYNAMICstrcat_etext__register_frame_info__filbuf__deregister_frame_infofwrite_be_offtNum_pts__dso_handleh2nlfcloseInfilestrcpytolowermalloc__fsr_init_valuetimelibc.so.1SUNW_0.9/usr/pkg/libP =(Z'H)'P@'L>2.0-/H02&2,''''@'>' 'K'''!'7(H(?( (,(8E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` *`. &a`` ⤋+*@?"V`@Bߐ` @@Bߐ& @H1-"@@>/ ; /?;  /?;  /?; ; /?/?/?/?@B|7 @@B(% ` a@ + @B(%`@) #@788  ` $`d f" #``OL;%@Bg+I`@Dc7 @@B@ @BA@BB ?`@$ ;s`b+@B8[`l# @@ :  '#@ dp %@ - $: '.H X@".`$&h6Os`y)@B" #9Cb'@B ?⬔ #@B$?@U1"`@=*``*`#& : >`;`"@ = #10?2? @,@)`%@`` k!h  &? ?&?n ?&??O&?&  @  & k! n! 6O +`hn!@ &  &  2O+@Ab@A" `$ / @  $ @-@A`@@A @A `ؕd@ @A Д؀`d@@A  @Ao? 0/0/0/@A/` 5/5/5//@A$?ؐ $? 5/؅5/٥5/@As/ АԔ 5`/з5`/ѱ5`/$ @Ae/ Ȕ 3/ȳ3/ɇ3//$ @AW̐?  @A$ !" @"`?@!"`/`;/; /; /?/;//na@`@@/?2O`@A3 ` @,1y )I@A"pr )I1" " 35Ia !I! #Ia 5I  9'I!8 @@Ґ@@  㿠@@;b(b@@ &  n>O㿠㿠㿠rstrfile: : strfile: %s out of spacestrfile [-iorsx] [-c char] sourcefile [datafile] bad delimiting character: '\%o 'c:iorsxNo input file name.datopen `%s'w"%s" created There was 1 stringThere were %d strings sLongest string: %lu byte%s Shortest string: %lu byte%s fwrite %s(00<0H0T0`0l0x00000000000000 0,080D0P0\0h0t000P % %cc0 p` o/o oh   oo'T%-as: Sun Ceres Compiler Common 12.1 SunOS_sparc gccfss_lang 2008/07/01 as: Sun Ceres Compiler Common 12.1 SunOS_sparc gccfss_lang 2008/07/01 @(#)SunOS 5.9 Generic May 2002cg: Sun Ceres Compiler Common 12.1 SunOS_sparc gccfss_lang 2008/07/01GCC: (GNU) 4.2.0 (gccfss)iropt: Sun Ceres Compiler Common 12.1 SunOS_sparc gccfss_lang 2008/07/01cg: Sun Ceres Compiler Common 12.1 SunOS_sparc gccfss_lang 2008/07/01GCC: (GNU) 4.2.0 (gccfss)iropt: Sun Ceres Compiler Common 12.1 SunOS_sparc gccfss_lang 2008/07/01cg: Sun Ceres Compiler Common 12.1 SunOS_sparc gccfss_lang 2008/07/01GCC: (GNU) 4.2.0 (gccfss)iropt: Sun Ceres Compiler Common 12.1 SunOS_sparc gccfss_lang 2008/07/01as: Sun Ceres Compiler Common 12.1 SunOS_sparc gccfss_lang 2008/07/01 ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.393.interp.hash.dynsym.dynstr.SUNW_version.rela.got.rela.bss.rela.plt.text.init.fini.rodata.dynamic.data.ctors.dtors.eh_frame.jcr.data.rel.local.symtab.strtab.comment.stab.index.shstrtab.stab.indexstr x ``"00po -B $  7B < AB h K Q%%W%%]%%2'D'DF'T'T e((n))t--{--------<---: 1man/cat8/strfile.0000444 000000 000000 00000006556 11127632475 014221 0ustar00rootroot000000 000000 STRFILE(8) SunOS System Manager's Manual STRFILE(8) NNAAMMEE ssttrrffiillee, uunnssttrr -- create a random access file for storing strings SSYYNNOOPPSSIISS ssttrrffiillee [--iioorrssxx] [--cc _c_h_a_r] _s_o_u_r_c_e___f_i_l_e [_o_u_t_p_u_t___f_i_l_e] uunnssttrr _s_o_u_r_c_e___f_i_l_e DDEESSCCRRIIPPTTIIOONN ssttrrffiillee reads a file containing groups of lines separated by a line con- taining a single percent `%' sign and creates a data file which contains a header structure and a table of file offsets for each group of lines. This allows random access of the strings. The output file, if not specified on the command line, is named _s_o_u_r_c_e___f_i_l_e..oouutt. The options are as follows: --cc _c_h_a_r Change the delimiting character from the percent sign to _c_h_a_r. --ii Ignore case when ordering the strings. --oo Order the strings in alphabetical order. The offset table will be sorted in the alphabetical order of the groups of lines ref- erenced. Any initial non-alphanumeric characters are ignored. This option causes the STR_ORDERED bit in the header _s_t_r___f_l_a_g_s field to be set. --rr Randomize access to the strings. Entries in the offset table will be randomly ordered. This option causes the STR_RANDOM bit in the header _s_t_r___f_l_a_g_s field to be set. --ss Run silently; don't give a summary message when finished. --xx Note that each alphabetic character in the groups of lines is rotated 13 positions in a simple caesar cipher. This option causes the STR_ROTATED bit in the header _s_t_r___f_l_a_g_s field to be set. The format of the header is: #define VERSION 1 unsigned long str_version; /* version number */ unsigned long str_numstr; /* # of strings in the file */ unsigned long str_longlen; /* length of longest string */ unsigned long str_shortlen; /* length of shortest string */ #define STR_RANDOM 0x1 /* randomized pointers */ #define STR_ORDERED 0x2 /* ordered pointers */ #define STR_ROTATED 0x4 /* rot-13'd text */ unsigned long str_flags; /* bit field for flags */ char str_delim; /* delimiting character */ All fields are written in big-endian byte order. The purpose of uunnssttrr is to undo the work of ssttrrffiillee. It prints out the strings contained in the file _s_o_u_r_c_e___f_i_l_e in the order that they are listed in the header file _s_o_u_r_c_e___f_i_l_e..ddaatt to standard output. It is pos- sible to create sorted versions of input files by using --oo when ssttrrffiillee is run and then using uunnssttrr to dump them out in the table order. SSEEEE AALLSSOO byteorder(3), fortune(6) FFIILLEESS strfile.out default output file. HHIISSTTOORRYY The ssttrrffiillee utility first appeared in 4.4BSD. BSD June 9, 1993 BSD man/man8/strfile.8000444 000000 000000 00000011257 11127632475 014227 0ustar00rootroot000000 000000 .\" $NetBSD: strfile.8,v 1.1.1.1 2002/10/01 10:31:51 drochner Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Ken Arnold. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#)strfile.8 8.1 (Berkeley) 6/9/93 .\" .Dd June 9, 1993 .Dt STRFILE 8 .Os .Sh NAME .Nm strfile , .Nm unstr .Nd "create a random access file for storing strings" .Sh SYNOPSIS .Nm strfile .Op Fl iorsx .Op Fl c Ar char .Ar source_file .Op Ar output_file .Nm unstr .Ar source_file .Sh DESCRIPTION .Nm reads a file containing groups of lines separated by a line containing a single percent .Ql \&% sign and creates a data file which contains a header structure and a table of file offsets for each group of lines. This allows random access of the strings. .Pp The output file, if not specified on the command line, is named .Ar source_file Ns Sy .out . .Pp The options are as follows: .Bl -tag -width "-c char" .It Fl c Ar char Change the delimiting character from the percent sign to .Ar char . .It Fl i Ignore case when ordering the strings. .It Fl o Order the strings in alphabetical order. The offset table will be sorted in the alphabetical order of the groups of lines referenced. Any initial non-alphanumeric characters are ignored. This option causes the .Dv STR_ORDERED bit in the header .Ar str_flags field to be set. .It Fl r Randomize access to the strings. Entries in the offset table will be randomly ordered. This option causes the .Dv STR_RANDOM bit in the header .Ar str_flags field to be set. .It Fl s Run silently; don't give a summary message when finished. .It Fl x Note that each alphabetic character in the groups of lines is rotated 13 positions in a simple caesar cipher. This option causes the .Dv STR_ROTATED bit in the header .Ar str_flags field to be set. .El .Pp The format of the header is: .Bd -literal #define VERSION 1 unsigned long str_version; /* version number */ unsigned long str_numstr; /* # of strings in the file */ unsigned long str_longlen; /* length of longest string */ unsigned long str_shortlen; /* length of shortest string */ #define STR_RANDOM 0x1 /* randomized pointers */ #define STR_ORDERED 0x2 /* ordered pointers */ #define STR_ROTATED 0x4 /* rot-13'd text */ unsigned long str_flags; /* bit field for flags */ char str_delim; /* delimiting character */ .Ed .Pp All fields are written in big-endian byte order. .Pp The purpose of .Nm unstr is to undo the work of .Nm strfile . It prints out the strings contained in the file .Ar source_file in the order that they are listed in the header file .Ar source_file Ns Sy .dat to standard output. It is possible to create sorted versions of input files by using .Fl o when .Nm strfile is run and then using .Nm unstr to dump them out in the table order. .Sh SEE ALSO .Xr byteorder 3 , .Xr fortune 6 .Sh FILES .Bl -tag -width strfile.out -compact .It Pa strfile.out default output file. .El .Sh HISTORY The .Nm strfile utility first appeared in .Bx 4.4 .