--- ./gzip.cpp.orig 2008-04-06 15:43:16.000000000 +0300 +++ ./gzip.cpp 2008-04-06 15:43:48.000000000 +0300 @@ -0,0 +1,63 @@ +/* Copyright (C) 2007 John Whitney + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Author: John Whitney + */ + +#include +#include +using namespace std; +#include "file.h" +#include "system.h" +#include "tmpstore.h" +#include "gzip.h" +#include + +int gzip_found = 0; +char *gzip_name = NULL; + +void find_gzip_compressor() { + string tempfile = getTmpFilename(); + string command = "find `echo $PATH | tr ':' ' '` -iname 'gzip' -exec sh -c 'echo {};{} -V 2>&1|grep ^gzip' \\; 2> /dev/null > " + + tempfile; + + system(command.c_str()); + + FILE * fp; + char line[2*CHAR_MAX]; + string fname; + fp = fopen(tempfile.c_str(), "r"); + if (fp == NULL) + exit(EXIT_FAILURE); + while (fgets(line, 2*CHAR_MAX, fp)!=NULL) { + char *v = strstr(line, "gzip"); + if (v) { + int index=-1; + if (strncmp(v+5, "1.", 2) == 0) index=0; + if (index!=-1) + { + gzip_name = new char[fname.length()]; + strncpy(gzip_name, fname.c_str(), fname.length()-1); + gzip_name[fname.length()-1] = 0; + break; + } + } + fname = line; + } + if (verbose) { + if (gzip_name!=NULL) + { + printf("found GNU gzip compressor/decompressor:\n"); + printf(" %s\n", gzip_name); + } + else printf("GNU gzip compressor/decompressor NOT found!\n"); + } +} cgi/freebsd-ports-graphics/about/'>aboutsummaryrefslogtreecommitdiffstats
path: root/devel
ModeNameSize
d---------ElectricFence217logstatsplain
-rw-r--r--Makefile4606logstatsplainblame
d---------ORBacus217logstatsplain
d---------ORBit217logstatsplain
d---------ORBit2217logstatsplain
d---------SWIG-devel185logstatsplain
d---------SWIG185logstatsplain
d---------SpecTcl217logstatsplain
d---------a2dev217logstatsplain
d---------amulet217logstatsplain
d---------asl217logstatsplain
d---------astyle217logstatsplain
d---------autoconf217logstatsplain
d---------autoconf213217logstatsplain
d---------autoconf253217logstatsplain
d---------autoconf254217logstatsplain
d---------autoconf257217logstatsplain
d---------autoconf259217logstatsplain
d---------autoconf26217logstatsplain
d---------autoconf261217logstatsplain
d---------autoconf262217logstatsplain
d---------autoconf267217logstatsplain
d---------autoconf268217logstatsplain
d---------automake217logstatsplain
d---------automake110217logstatsplain
d---------automake14217logstatsplain
d---------automake15217logstatsplain
d---------automake16217logstatsplain
d---------automake17217logstatsplain
d---------automake18217logstatsplain
d---------automake19217logstatsplain
d---------avltree217logstatsplain
d---------bcc251logstatsplain
d---------binutils-m68k185logstatsplain
d---------bison-devel217logstatsplain
d---------bison217logstatsplain
d---------bison175217logstatsplain
d---------bison1875217logstatsplain
d---------bison2217logstatsplain
d---------bison20217logstatsplain
d---------boehm-gc217logstatsplain
d---------bonobo217logstatsplain
d---------cccc217logstatsplain
d---------cdecl217logstatsplain
d---------cdk217logstatsplain
d---------cflow217logstatsplain
d---------clig185logstatsplain
d---------codecrusader217logstatsplain
d---------cons224logstatsplain
d---------crossgo32-djgpp2-pdcurses185logstatsplain
d---------crossgo32-djgpp2217logstatsplain
d---------crossgo32217logstatsplain
d---------crossm68k149logstatsplain
d---------cs217logstatsplain
d---------cscope185logstatsplain
d---------cssc217logstatsplain
d---------ctags185logstatsplain
d---------cutils217logstatsplain
d---------cvsmapfs217logstatsplain
d---------cvsweb185logstatsplain
d---------cvsweb3185logstatsplain
d---------cweb256logstatsplain
d---------cxref217logstatsplain
d---------ddd217logstatsplain
d---------dmake217logstatsplain
d---------doc++185logstatsplain
d---------doxygen185logstatsplain
d---------elftoaout217logstatsplain
d---------f77flow185logstatsplain
d---------fastcrc185logstatsplain
d---------fhist217logstatsplain
d---------flick185logstatsplain
d---------flux185logstatsplain
d---------fortran-utils185logstatsplain
d---------fpp217logstatsplain
d---------freelibiberty217logstatsplain
d---------ftnchek185logstatsplain
d---------gaa224logstatsplain
d---------gcc-6811217logstatsplain
d---------gcc-m68k217logstatsplain
d---------gdb-m68k185logstatsplain
d---------gettext-devel217logstatsplain
d---------gettext-old217logstatsplain
d---------gettext217logstatsplain
d---------gide217logstatsplain
d---------gindent217logstatsplain
d---------glade185logstatsplain
d---------glade2185logstatsplain
d---------glib12217logstatsplain
d---------glib13217logstatsplain
d---------glib20217logstatsplain
d---------gmake217logstatsplain
d---------gmake381217logstatsplain
d---------gnu-autoconf217logstatsplain
d---------gnu-automake217logstatsplain
d---------gnu-libtool217logstatsplain
d---------gnustep-make185logstatsplain
d---------gnustep185logstatsplain
d---------gob2185logstatsplain
d---------gperf217logstatsplain
d---------gtksheet217logstatsplain
d---------id-utils185logstatsplain
d---------idutils185logstatsplain
d---------ilu217logstatsplain
d---------jam217logstatsplain
d---------kdbg185logstatsplain
d---------ktranslator217logstatsplain
d---------lclint256logstatsplain
d---------libPropList185logstatsplain
d---------libU77217logstatsplain
d---------libcii217logstatsplain
d---------libdlmalloc256logstatsplain
d---------libffi-devel217logstatsplain
d---------libffi217logstatsplain
d---------libgetline217logstatsplain
d---------libgii185logstatsplain
d---------libglade217logstatsplain
d---------libglade2217logstatsplain
d---------libgnugetopt185logstatsplain
d---------libgtop217logstatsplain
d---------libgtop2217logstatsplain
d---------libmalloc217logstatsplain
d---------libshhmsg217logstatsplain
d---------libshhopt217logstatsplain
d---------libsigc++217logstatsplain
d---------libsigc++12217logstatsplain
d---------libsigc++20217logstatsplain
d---------libslang217logstatsplain
d---------libtool217logstatsplain
d---------libtool13217logstatsplain
d---------libtool14217logstatsplain
d---------libtool15217logstatsplain
d---------libxalloc217logstatsplain
d---------lincvs217logstatsplain
d---------linux_devtools-6265logstatsplain
d---------linux_devtools-7265logstatsplain
d---------linux_devtools265logstatsplain
d---------linux_kdump217logstatsplain
d---------linuxthreads256logstatsplain
d---------m4217logstatsplain
d---------m6811-gcc217logstatsplain
d---------makedepend185logstatsplain
d---------mico217logstatsplain
d---------mkcmd217logstatsplain
d---------mkmf217logstatsplain
d---------mm185logstatsplain
d---------mprof217logstatsplain
d---------msrc0217logstatsplain
d---------nana185logstatsplain
d---------nasm185logstatsplain
d---------ncurses-devel185logstatsplain
d---------ncurses185logstatsplain
d---------newlib-m68k185logstatsplain
d---------noweb217logstatsplain
d---------omniORB217logstatsplain
d---------p5-AppConfig185logstatsplain
d---------p5-BSD-Resource185logstatsplain
d---------p5-C-Scan185logstatsplain
d---------p5-Config-IniFiles185logstatsplain
d---------p5-ConfigReader185logstatsplain
d---------p5-Curses217logstatsplain
d---------p5-Data-Flow185logstatsplain
d---------p5-Data-ShowTable185logstatsplain
d---------p5-Date-Manip185logstatsplain
d---------p5-Devel-DProf185logstatsplain
d---------p5-Devel-Peek185logstatsplain
d---------p5-Devel-Symdump185logstatsplain
d---------p5-Errno185logstatsplain
d---------p5-File-BasicFlock185logstatsplain
d---------p5-File-Lock185logstatsplain
d---------p5-File-Slurp185logstatsplain
d---------p5-File-Sync185logstatsplain
d---------p5-File-Tools185logstatsplain
d---------p5-Filter185logstatsplain
d---------p5-FreezeThaw185logstatsplain
d---------p5-IO-stringy185logstatsplain
d---------p5-Include217logstatsplain
d---------p5-IniConf217logstatsplain
d---------p5-Locale-PGetText217logstatsplain
d---------p5-PV185logstatsplain
d---------p5-Parse-RecDescent185logstatsplain
d---------p5-Penguin-Easy185logstatsplain
d---------p5-Penguin185logstatsplain
d---------p5-Proc-Simple185logstatsplain
d---------p5-ReadLine-Gnu217logstatsplain
d---------p5-ReadLine-Perl185logstatsplain
d---------p5-Religion185logstatsplain
d---------p5-Resources185logstatsplain
d---------p5-Sort-Versions185logstatsplain
d---------p5-Storable185logstatsplain
d---------p5-Term-ANSIColor185logstatsplain
d---------p5-Term-Query185logstatsplain
d---------p5-Term-ReadKey185logstatsplain
d---------p5-Time-HiRes185logstatsplain
d---------p5-Time185logstatsplain
d---------p5-TimeDate185logstatsplain
d---------p5-TraceFuncs217logstatsplain
d---------patch185logstatsplain
d---------pccts217logstatsplain
d---------pcre185logstatsplain
d---------pharmacy185logstatsplain
d---------picprog217logstatsplain
d---------pkg35logstatsplain
d---------pmake262logstatsplain
d---------popt185logstatsplain
d---------portcheckout185logstatsplain
d---------portlint179logstatsplain
d---------prcs185logstatsplain
d---------pth-devel185logstatsplain
d---------pth185logstatsplain
d---------py-kjbuckets217logstatsplain
d---------py-mxDateTime217logstatsplain
d---------py-mxStack217logstatsplain
d---------py-mxTools217logstatsplain
d---------qtarch217logstatsplain
d---------qtez185logstatsplain
d---------qtk185logstatsplain
d---------re2c217logstatsplain
d---------rinfo185logstatsplain
d---------robodoc185logstatsplain
d---------sdcc217logstatsplain
d---------sdl-devel217logstatsplain
d---------sdl217logstatsplain
d---------sdl10217logstatsplain
d---------sdl12217logstatsplain
d---------sfio217logstatsplain
d---------shtool185logstatsplain
d---------spin217logstatsplain
d---------splint256logstatsplain
d---------stlport217logstatsplain
d---------str185logstatsplain