more privoxy 3.0.12 files
This commit is contained in:
parent
3313e38ac9
commit
fad61a85fd
|
@ -0,0 +1,108 @@
|
|||
# $Id: Makefile,v 1.11 2006/07/18 14:48:45 david__schmidt Exp $
|
||||
#
|
||||
# Written by and Copyright (C) 2001 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Based on the Internet Junkbuster originally written
|
||||
# by and Copyright (C) 1997 Anonymous Coders and
|
||||
# Junkbusters Corporation. http://www.junkbusters.com
|
||||
#
|
||||
# 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; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# $Log: Makefile,v $
|
||||
# Revision 1.11 2006/07/18 14:48:45 david__schmidt
|
||||
# Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
|
||||
# with what was really the latest development (the v_3_0_branch branch)
|
||||
#
|
||||
# Revision 1.5.2.2 2002/10/25 02:44:23 hal9
|
||||
# Port of make install, etc from main trunk. Needs testing! Add Slackware
|
||||
# support, and other related changes. Update related docs.
|
||||
#
|
||||
# Revision 1.5.2.1 2002/08/05 17:46:13 oes
|
||||
# Change make to gmake to fix auto-build on Solaris
|
||||
#
|
||||
# Revision 1.5 2002/04/11 12:51:34 oes
|
||||
# Bugfix
|
||||
#
|
||||
# Revision 1.4 2002/04/09 16:38:10 oes
|
||||
# Added option to run the whole build process
|
||||
#
|
||||
# Revision 1.3 2002/03/26 22:29:54 swa
|
||||
# we have a new homepage!
|
||||
#
|
||||
# Revision 1.2 2002/03/24 13:25:42 swa
|
||||
# name change related issues
|
||||
#
|
||||
# Revision 1.1 2001/12/01 11:24:29 jongfoster
|
||||
# Will display a warning if non-GNU make is used
|
||||
#
|
||||
#
|
||||
|
||||
#############################################################################
|
||||
|
||||
GNU_MAKE_CMD = gmake
|
||||
MAKE_CMD = make
|
||||
|
||||
error:
|
||||
@if [ -f GNUmakefile ]; then \
|
||||
echo "***"; \
|
||||
echo "*** You are not using the GNU version of Make - maybe it's called gmake"; \
|
||||
echo "*** or it's in a different PATH? Please read INSTALL." ; \
|
||||
echo "***"; \
|
||||
exit 1; \
|
||||
elif test -n "$(HOST_ARCH)" && test -z "$(MAKE_VERSION)" ; then \
|
||||
echo "***"; \
|
||||
echo "*** You are not using GNU Make on Solaris, please make sure you do" ; \
|
||||
echo "*** and re-run 'make' "; \
|
||||
echo "***"; \
|
||||
exit 1 ; \
|
||||
elif test -n "$(MACHINE_ARCH)" && test -z "$(MAKE_VERSION)" ; then \
|
||||
echo "***"; \
|
||||
echo "*** You are not using GNU Make on FreeBSD, please make sure you do" ; \
|
||||
echo "*** and re-run 'make' "; \
|
||||
echo "***"; \
|
||||
exit 1 ; \
|
||||
else \
|
||||
echo "***"; \
|
||||
echo "*** To build this program, you must run"; \
|
||||
echo "*** autoheader && autoconf && ./configure and then run GNU make."; \
|
||||
echo "***"; \
|
||||
echo -n "*** Shall I do this for you now? (y/n) "; \
|
||||
read answer; \
|
||||
if [ "$$answer" = "y" ]; then \
|
||||
autoheader && autoconf && ./configure || exit 1; \
|
||||
if $(GNU_MAKE_CMD) -v |grep GNU >/dev/null 2>/dev/null; then \
|
||||
$(GNU_MAKE_CMD) ;\
|
||||
elif $(MAKE_CMD) -v |grep GNU >/dev/null 2>/dev/null; then \
|
||||
$(MAKE_CMD) ;\
|
||||
else \
|
||||
echo "Neither 'make' nor 'gmake' are GNU compatible!" ; \
|
||||
echo "Please read INSTALL." ; \
|
||||
exit 1 ; \
|
||||
fi ;\
|
||||
fi; \
|
||||
fi
|
||||
|
||||
.PHONY: error
|
||||
|
||||
#############################################################################
|
||||
|
||||
## Local Variables:
|
||||
## tab-width: 3
|
||||
## end:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,150 @@
|
|||
<HTML
|
||||
><HEAD
|
||||
><TITLE
|
||||
>Quickstart to Privoxy Development</TITLE
|
||||
><META
|
||||
NAME="GENERATOR"
|
||||
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
|
||||
"><LINK
|
||||
REL="HOME"
|
||||
TITLE="Privoxy Developer Manual"
|
||||
HREF="index.html"><LINK
|
||||
REL="PREVIOUS"
|
||||
TITLE="Introduction"
|
||||
HREF="introduction.html"><LINK
|
||||
REL="NEXT"
|
||||
TITLE="The CVS Repository"
|
||||
HREF="cvs.html"><LINK
|
||||
REL="STYLESHEET"
|
||||
TYPE="text/css"
|
||||
HREF="../p_doc.css"></HEAD
|
||||
><BODY
|
||||
CLASS="SECT1"
|
||||
BGCOLOR="#EEEEEE"
|
||||
TEXT="#000000"
|
||||
LINK="#0000FF"
|
||||
VLINK="#840084"
|
||||
ALINK="#0000FF"
|
||||
><DIV
|
||||
CLASS="NAVHEADER"
|
||||
><TABLE
|
||||
WIDTH="100%"
|
||||
BORDER="0"
|
||||
CELLPADDING="0"
|
||||
CELLSPACING="0"
|
||||
><TR
|
||||
><TH
|
||||
COLSPAN="3"
|
||||
ALIGN="center"
|
||||
>Privoxy Developer Manual</TH
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="10%"
|
||||
ALIGN="left"
|
||||
VALIGN="bottom"
|
||||
><A
|
||||
HREF="introduction.html"
|
||||
>Prev</A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="80%"
|
||||
ALIGN="center"
|
||||
VALIGN="bottom"
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="10%"
|
||||
ALIGN="right"
|
||||
VALIGN="bottom"
|
||||
><A
|
||||
HREF="cvs.html"
|
||||
>Next</A
|
||||
></TD
|
||||
></TR
|
||||
></TABLE
|
||||
><HR
|
||||
ALIGN="LEFT"
|
||||
WIDTH="100%"></DIV
|
||||
><DIV
|
||||
CLASS="SECT1"
|
||||
><H1
|
||||
CLASS="SECT1"
|
||||
><A
|
||||
NAME="QUICKSTART"
|
||||
>3. Quickstart to Privoxy Development</A
|
||||
></H1
|
||||
><P
|
||||
> You'll need an account on <A
|
||||
HREF="http://sourceforge.net/"
|
||||
TARGET="_top"
|
||||
>Sourceforge</A
|
||||
> to support our
|
||||
development. Mail your ID to <A
|
||||
HREF="mailto:developers@privoxy.org"
|
||||
TARGET="_top"
|
||||
>the list</A
|
||||
> and wait until a
|
||||
project manager has added you.
|
||||
</P
|
||||
><P
|
||||
> For the time being (read, this section is under construction), please
|
||||
refer to the extensive comments in the source code.
|
||||
</P
|
||||
></DIV
|
||||
><DIV
|
||||
CLASS="NAVFOOTER"
|
||||
><HR
|
||||
ALIGN="LEFT"
|
||||
WIDTH="100%"><TABLE
|
||||
WIDTH="100%"
|
||||
BORDER="0"
|
||||
CELLPADDING="0"
|
||||
CELLSPACING="0"
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="left"
|
||||
VALIGN="top"
|
||||
><A
|
||||
HREF="introduction.html"
|
||||
>Prev</A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="34%"
|
||||
ALIGN="center"
|
||||
VALIGN="top"
|
||||
><A
|
||||
HREF="index.html"
|
||||
>Home</A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
><A
|
||||
HREF="cvs.html"
|
||||
>Next</A
|
||||
></TD
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="left"
|
||||
VALIGN="top"
|
||||
>Introduction</TD
|
||||
><TD
|
||||
WIDTH="34%"
|
||||
ALIGN="center"
|
||||
VALIGN="top"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>The CVS Repository</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
|
@ -0,0 +1,296 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML
|
||||
><HEAD
|
||||
><TITLE
|
||||
>Note to Upgraders</TITLE
|
||||
><META
|
||||
NAME="GENERATOR"
|
||||
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
||||
REL="HOME"
|
||||
TITLE="Privoxy 3.0.3 User Manual"
|
||||
HREF="index.html"><LINK
|
||||
REL="PREVIOUS"
|
||||
TITLE="Installation"
|
||||
HREF="installation.html"><LINK
|
||||
REL="NEXT"
|
||||
TITLE="Quickstart to Using Privoxy"
|
||||
HREF="quickstart.html"><LINK
|
||||
REL="STYLESHEET"
|
||||
TYPE="text/css"
|
||||
HREF="../p_doc.css"></HEAD
|
||||
><BODY
|
||||
CLASS="SECT1"
|
||||
BGCOLOR="#EEEEEE"
|
||||
TEXT="#000000"
|
||||
LINK="#0000FF"
|
||||
VLINK="#840084"
|
||||
ALINK="#0000FF"
|
||||
><DIV
|
||||
CLASS="NAVHEADER"
|
||||
><TABLE
|
||||
SUMMARY="Header navigation table"
|
||||
WIDTH="100%"
|
||||
BORDER="0"
|
||||
CELLPADDING="0"
|
||||
CELLSPACING="0"
|
||||
><TR
|
||||
><TH
|
||||
COLSPAN="3"
|
||||
ALIGN="center"
|
||||
>Privoxy 3.0.3 User Manual</TH
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="10%"
|
||||
ALIGN="left"
|
||||
VALIGN="bottom"
|
||||
><A
|
||||
HREF="installation.html"
|
||||
ACCESSKEY="P"
|
||||
>Prev</A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="80%"
|
||||
ALIGN="center"
|
||||
VALIGN="bottom"
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="10%"
|
||||
ALIGN="right"
|
||||
VALIGN="bottom"
|
||||
><A
|
||||
HREF="quickstart.html"
|
||||
ACCESSKEY="N"
|
||||
>Next</A
|
||||
></TD
|
||||
></TR
|
||||
></TABLE
|
||||
><HR
|
||||
ALIGN="LEFT"
|
||||
WIDTH="100%"></DIV
|
||||
><DIV
|
||||
CLASS="SECT1"
|
||||
><H1
|
||||
CLASS="SECT1"
|
||||
><A
|
||||
NAME="UPGRADERSNOTE"
|
||||
>3. Note to Upgraders</A
|
||||
></H1
|
||||
><P
|
||||
> There are very significant changes from earlier
|
||||
<SPAN
|
||||
CLASS="APPLICATION"
|
||||
>Junkbuster</SPAN
|
||||
> versions to the current
|
||||
<SPAN
|
||||
CLASS="APPLICATION"
|
||||
>Privoxy</SPAN
|
||||
>. The number, names, syntax, and
|
||||
purposes of configuration files have substantially changed.
|
||||
<SPAN
|
||||
CLASS="APPLICATION"
|
||||
>Junkbuster 2.0.x</SPAN
|
||||
> configuration
|
||||
files will not migrate, <SPAN
|
||||
CLASS="APPLICATION"
|
||||
>Junkbuster 2.9.x</SPAN
|
||||
>
|
||||
and <SPAN
|
||||
CLASS="APPLICATION"
|
||||
>Privoxy</SPAN
|
||||
> configurations will need to be
|
||||
ported. The functionalities of the old <TT
|
||||
CLASS="FILENAME"
|
||||
>blockfile</TT
|
||||
>,
|
||||
<TT
|
||||
CLASS="FILENAME"
|
||||
>cookiefile</TT
|
||||
> and <TT
|
||||
CLASS="FILENAME"
|
||||
>imagelist</TT
|
||||
>
|
||||
are now combined into the <A
|
||||
HREF="actions-file.html"
|
||||
><SPAN
|
||||
CLASS="QUOTE"
|
||||
>"actions
|
||||
files"</SPAN
|
||||
></A
|
||||
>.
|
||||
<TT
|
||||
CLASS="FILENAME"
|
||||
>default.action</TT
|
||||
>, is the main actions file. Local
|
||||
exceptions should best be put into <TT
|
||||
CLASS="FILENAME"
|
||||
>user.action</TT
|
||||
>.</P
|
||||
><P
|
||||
> A <A
|
||||
HREF="filter-file.html"
|
||||
><SPAN
|
||||
CLASS="QUOTE"
|
||||
>"filter file"</SPAN
|
||||
></A
|
||||
> (typically
|
||||
<TT
|
||||
CLASS="FILENAME"
|
||||
>default.filter</TT
|
||||
>) is new as of <SPAN
|
||||
CLASS="APPLICATION"
|
||||
>Privoxy
|
||||
2.9.x</SPAN
|
||||
>, and provides some of the new sophistication (explained
|
||||
below). <TT
|
||||
CLASS="FILENAME"
|
||||
>config</TT
|
||||
> is much the same as before.</P
|
||||
><P
|
||||
> If upgrading from a 2.0.x version, you will have to use the new config
|
||||
files, and possibly adapt any personal rules from your older files.
|
||||
When porting personal rules over from the old <TT
|
||||
CLASS="FILENAME"
|
||||
>blockfile</TT
|
||||
>
|
||||
to the new actions files, please note that even the pattern syntax has
|
||||
changed. If upgrading from 2.9.x development versions, it is still
|
||||
recommended to use the new configuration files.</P
|
||||
><P
|
||||
> A quick list of things to be aware of before upgrading: </P
|
||||
><P
|
||||
> <P
|
||||
></P
|
||||
><UL
|
||||
><LI
|
||||
><P
|
||||
> The default listening port is now 8118 due to a conflict with another
|
||||
service (NAS).
|
||||
</P
|
||||
></LI
|
||||
><LI
|
||||
><P
|
||||
>
|
||||
Some installers may remove earlier versions completely. Save any
|
||||
important configuration files!
|
||||
</P
|
||||
></LI
|
||||
><LI
|
||||
><P
|
||||
> <SPAN
|
||||
CLASS="APPLICATION"
|
||||
>Privoxy</SPAN
|
||||
> is controllable with a web browser
|
||||
at the special URL: <A
|
||||
HREF="http://config.privoxy.org/"
|
||||
TARGET="_top"
|
||||
>http://config.privoxy.org/</A
|
||||
>
|
||||
(Shortcut: <A
|
||||
HREF="http://p.p/"
|
||||
TARGET="_top"
|
||||
>http://p.p/</A
|
||||
>). Many
|
||||
aspects of configuration can be done here, including temporarily disabling
|
||||
<SPAN
|
||||
CLASS="APPLICATION"
|
||||
>Privoxy</SPAN
|
||||
>.
|
||||
</P
|
||||
></LI
|
||||
><LI
|
||||
><P
|
||||
> The primary configuration files for cookie management, ad and banner
|
||||
blocking, and many other aspects of <SPAN
|
||||
CLASS="APPLICATION"
|
||||
>Privoxy</SPAN
|
||||
>
|
||||
configuration are the <A
|
||||
HREF="actions-file.html"
|
||||
>actions
|
||||
files</A
|
||||
>. It is strongly recommended to become familiar with the new
|
||||
actions concept below, before modifying these files. Locally defined rules
|
||||
should go into <TT
|
||||
CLASS="FILENAME"
|
||||
>user.action</TT
|
||||
>.
|
||||
</P
|
||||
></LI
|
||||
><LI
|
||||
><P
|
||||
>
|
||||
Some installers may not automatically start
|
||||
<SPAN
|
||||
CLASS="APPLICATION"
|
||||
>Privoxy</SPAN
|
||||
> after installation.
|
||||
</P
|
||||
></LI
|
||||
></UL
|
||||
></P
|
||||
></DIV
|
||||
><DIV
|
||||
CLASS="NAVFOOTER"
|
||||
><HR
|
||||
ALIGN="LEFT"
|
||||
WIDTH="100%"><TABLE
|
||||
SUMMARY="Footer navigation table"
|
||||
WIDTH="100%"
|
||||
BORDER="0"
|
||||
CELLPADDING="0"
|
||||
CELLSPACING="0"
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="left"
|
||||
VALIGN="top"
|
||||
><A
|
||||
HREF="installation.html"
|
||||
ACCESSKEY="P"
|
||||
>Prev</A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="34%"
|
||||
ALIGN="center"
|
||||
VALIGN="top"
|
||||
><A
|
||||
HREF="index.html"
|
||||
ACCESSKEY="H"
|
||||
>Home</A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
><A
|
||||
HREF="quickstart.html"
|
||||
ACCESSKEY="N"
|
||||
>Next</A
|
||||
></TD
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="left"
|
||||
VALIGN="top"
|
||||
>Installation</TD
|
||||
><TD
|
||||
WIDTH="34%"
|
||||
ALIGN="center"
|
||||
VALIGN="top"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>Quickstart to Using <SPAN
|
||||
CLASS="APPLICATION"
|
||||
>Privoxy</SPAN
|
||||
></TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
|
@ -0,0 +1,20 @@
|
|||
***************
|
||||
*** 3110,3118 ****
|
||||
}
|
||||
continue;
|
||||
}
|
||||
- log_error(LOG_LEVEL_INFO,
|
||||
- "Shouldn't get here but did.");
|
||||
- return;
|
||||
}
|
||||
|
||||
if (csp->content_length == 0)
|
||||
--- 3120,3127 ----
|
||||
}
|
||||
continue;
|
||||
}
|
||||
+ mark_server_socket_tainted(csp);
|
||||
+ return; /* huh? we should never get here */
|
||||
}
|
||||
|
||||
if (csp->content_length == 0)
|
|
@ -0,0 +1,16 @@
|
|||
***************
|
||||
*** 986,991 ****
|
||||
const add_header_func_ptr add_client_headers[] = {
|
||||
client_host_adder,
|
||||
client_cookie_adder,
|
||||
client_xtra_adder,
|
||||
/* Temporarily disabled: client_accept_encoding_adder, */
|
||||
connection_close_adder,
|
||||
--- 983,989 ----
|
||||
const add_header_func_ptr add_client_headers[] = {
|
||||
client_host_adder,
|
||||
client_cookie_adder,
|
||||
+ client_x_forwarded_adder,
|
||||
client_xtra_adder,
|
||||
/* Temporarily disabled: client_accept_encoding_adder, */
|
||||
connection_close_adder,
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,556 @@
|
|||
# $Id: privoxy-suse.spec,v 1.33 2009/03/21 10:46:15 fabiankeil Exp $
|
||||
#
|
||||
# Written by and Copyright (C) 2001-2006 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Based on the Internet Junkbuster originally written
|
||||
# by and Copyright (C) 1997 Anonymous Coders and
|
||||
# Junkbusters Corporation. http://www.junkbusters.com
|
||||
#
|
||||
# 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; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
|
||||
# do not set to %{name}
|
||||
%define privoxyconf %{_sysconfdir}/privoxy
|
||||
%define privoxy_uid 73
|
||||
%define privoxy_gid 73
|
||||
|
||||
|
||||
Summary: Privoxy - privacy enhancing proxy
|
||||
Vendor: Privoxy.Org
|
||||
Name: privoxy-suse
|
||||
Distribution: defineme
|
||||
Version: 3.0.12
|
||||
Release: 1
|
||||
# Needs makefile change: Source: http://prdownloads.sourceforge.net/ijbswa/privoxy-%{version}-%{status}-src.tar.gz
|
||||
Source: http://prdownloads.sourceforge.net/ijbswa/privoxy-%{version}.tar.gz
|
||||
# not sure if this works
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
Packager: http://www.privoxy.org/
|
||||
License: GPL
|
||||
Group: Networking/Utilities
|
||||
URL: http://www.privoxy.org/
|
||||
Autoreqprov: on
|
||||
BuildRequires: perl gzip libtool autoconf
|
||||
Conflicts: junkbuster-raw junkbuster-blank junkbuster-suse junkbuster privoxy
|
||||
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
%description
|
||||
Privoxy is a web proxy with advanced filtering capabilities for
|
||||
protecting privacy, modifying web page data, managing cookies,
|
||||
controlling access, and removing ads, banners, pop-ups and other
|
||||
obnoxious Internet junk. Privoxy has a very flexible configuration and
|
||||
can be customized to suit individual needs and tastes. Privoxy has
|
||||
application for both stand-alone systems and multi-user networks.
|
||||
|
||||
Privoxy is based on the Internet Junkbuster.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
http://www.privoxy.org/
|
||||
|
||||
SuSE series: n
|
||||
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
%prep
|
||||
%setup -c
|
||||
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
%build
|
||||
autoheader
|
||||
autoconf
|
||||
./configure --disable-dynamic-pcre
|
||||
make
|
||||
|
||||
|
||||
## Explicitily stripping is not recomended.
|
||||
## This is handled altomaticaly by RPM, and can couse troubles if
|
||||
## anyone wants to build an unstriped version - morcego
|
||||
#strip privoxy
|
||||
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
%install
|
||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} \
|
||||
${RPM_BUILD_ROOT}%{_mandir}/man8 \
|
||||
${RPM_BUILD_ROOT}/var/log/privoxy \
|
||||
${RPM_BUILD_ROOT}%{privoxyconf}/templates \
|
||||
${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d \
|
||||
${RPM_BUILD_ROOT}%{_sysconfdir}/init.d
|
||||
gzip README AUTHORS ChangeLog privoxy.1 LICENSE || /bin/true
|
||||
install -s -m 744 privoxy $RPM_BUILD_ROOT%{_sbindir}/privoxy
|
||||
cp -f privoxy.1.gz $RPM_BUILD_ROOT%{_mandir}/man8/privoxy.8.gz
|
||||
cp -f *.action $RPM_BUILD_ROOT%{privoxyconf}/
|
||||
cp -f default.filter $RPM_BUILD_ROOT%{privoxyconf}/default.filter
|
||||
cp -f trust $RPM_BUILD_ROOT%{privoxyconf}/trust
|
||||
cp -f templates/* $RPM_BUILD_ROOT%{privoxyconf}/templates/
|
||||
cp -f privoxy.logrotate $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/privoxy
|
||||
install -m 755 privoxy.init.suse $RPM_BUILD_ROOT%{_sysconfdir}/init.d/privoxy
|
||||
install -m 711 -d $RPM_BUILD_ROOT/var/log/privoxy
|
||||
ln -sf /etc/init.d/privoxy $RPM_BUILD_ROOT/usr/sbin/rcprivoxy
|
||||
|
||||
# verify all file locations, etc. in the config file
|
||||
# don't start with ^ or commented lines are not replaced
|
||||
cat config | \
|
||||
sed 's/^confdir.*/confdir \/etc\/privoxy/g' | \
|
||||
# sed 's/^permissionsfile.*/permissionsfile \/etc\/privoxy\/permissionsfile/g' | \
|
||||
# sed 's/^filterfile.*/default.filter \/etc\/privoxy\/default.filter/g' | \
|
||||
# sed 's/^logfile.*/logfile \/var\/log\/privoxy\/logfile/g' | \
|
||||
# sed 's/^forward.*/forward \/etc\/privoxy\/forward/g' | \
|
||||
# sed 's/^aclfile.*/aclfile \/etc\/privoxy\/aclfile/g' > \
|
||||
sed 's/^logdir.*/logdir \/var\/log\/privoxy/g' > \
|
||||
$RPM_BUILD_ROOT%{privoxyconf}/config
|
||||
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
%pre
|
||||
# We check to see if the user privoxy exists.
|
||||
# If it does, we do nothing
|
||||
# If we don't, we check to see if the user junkbust exist and, in case it
|
||||
# does, we change it do privoxy. If it also does not exist, we create the
|
||||
# privoxy user -- morcego
|
||||
id privoxy > /dev/null 2>&1
|
||||
if [ $? -eq 1 ]; then
|
||||
id junkbust > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
/usr/sbin/usermod -u %{privoxy_uid} -g %{privoxy_gid} -l privoxy -d %{_sysconfdir}/privoxy -s "" junkbust > /dev/null 2>&1
|
||||
else
|
||||
# -r does not work on suse.
|
||||
/usr/sbin/groupadd -g %{privoxy_gid} privoxy
|
||||
/usr/sbin/useradd -u %{privoxy_uid} -d %{_sysconfdir}/privoxy -g privoxy -s "" privoxy > /dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
%post
|
||||
[ -f /var/log/privoxy/privoxy ] &&\
|
||||
mv -f /var/log/privoxy/privoxy /var/log/privoxy/logfile || /bin/true
|
||||
chown -R privoxy:privoxy /var/log/privoxy 2>/dev/null
|
||||
chown -R privoxy:privoxy /etc/privoxy 2>/dev/null
|
||||
# not available on suse
|
||||
#if [ "$1" = "1" ]; then
|
||||
# /sbin/chkconfig --add privoxy
|
||||
# /sbin/service privoxy condrestart > /dev/null 2>&1
|
||||
#fi
|
||||
# 01/09/02 HB, getting rid of any user=junkbust
|
||||
# Changed by morcego to use the id command.
|
||||
id junkbust > /dev/null 2>&1 && /usr/sbin/userdel junkbust || /bin/true
|
||||
sbin/insserv etc/init.d/privoxy
|
||||
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
%preun
|
||||
# need to stop the service on suse. swa.
|
||||
#if [ "$1" = "0" ]; then
|
||||
# /sbin/service privoxy stop > /dev/null 2>&1 ||:
|
||||
#fi
|
||||
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
%postun
|
||||
sbin/insserv etc/init.d/
|
||||
# dont forget to remove user and group privoxy
|
||||
id privoxy > /dev/null 2>&1 && /usr/sbin/userdel privoxy || /bin/true
|
||||
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
%clean
|
||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README.gz AUTHORS.gz ChangeLog.gz LICENSE.gz
|
||||
%doc doc/webserver/developer-manual
|
||||
%doc doc/webserver/user-manual
|
||||
%doc doc/webserver/faq
|
||||
%doc doc/webserver/p_doc.css
|
||||
%doc doc/webserver/privoxy-index.html
|
||||
%doc doc/webserver/images
|
||||
%doc doc/webserver/man-page
|
||||
|
||||
%dir %{privoxyconf}
|
||||
%config %{privoxyconf}/*
|
||||
%attr(0740,privoxy,privoxy) %dir /var/log/privoxy
|
||||
%config %{_sysconfdir}/logrotate.d/privoxy
|
||||
%attr(0755,root,root)/usr/sbin/privoxy
|
||||
%{_mandir}/man8/*
|
||||
%config %{_sysconfdir}/init.d/privoxy
|
||||
/usr/sbin/rcprivoxy
|
||||
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
%changelog
|
||||
* Wed Sep 20 2006 Hal Burgiss <hal@foobox.net>
|
||||
- Bump version for 3.0.5.
|
||||
|
||||
* Fri Sep 08 2006 Hal Burgiss <hal@foobox.net>
|
||||
- Bump version for 3.0.4.
|
||||
|
||||
* Wed Mar 26 2003 Andreas Oesterhelt <andreas@oesterhelt.org>
|
||||
- Bump version for 3.0.2.
|
||||
|
||||
* Wed Mar 19 2003 Hal Burgiss <hal@foobox.net>
|
||||
- Bump version for 3.0.1.
|
||||
|
||||
* Tue Aug 25 2002 Hal Burgiss <hal@foobox.net>
|
||||
- Bump version for 3.0.0 :)
|
||||
|
||||
* Tue Aug 06 2002 Hal Burgiss <hal@foobox.net>
|
||||
- Reset version for 2.9.18.
|
||||
|
||||
* Wed Jul 30 2002 Hal Burgiss <hal@foobox.net>
|
||||
- Reset version for 2.9.17.
|
||||
|
||||
* Sat Jul 27 2002 Hal Burgiss <hal@foobox.net>
|
||||
- Reset version and release for 2.9.16.
|
||||
|
||||
* Mon May 27 2002 Hal Burgiss <hal@foobox.net>
|
||||
+ privoxy-2.9.15-1
|
||||
- Index.html is now privoxy-index.html for doc usage.
|
||||
|
||||
* Mon May 27 2002 Hal Burgiss <hal@foobox.net>
|
||||
+ privoxy-2.9.15-1
|
||||
- Index.html is now privoxy-index.html for doc usage.
|
||||
|
||||
* Sat May 25 2002 Hal Burgiss <hal@foobox.net>
|
||||
+ privoxy-2.9.15-1
|
||||
- Add html man page so index.html does not 404.
|
||||
|
||||
* Fri May 24 2002 Hal Burgiss <hal@foobox.net>
|
||||
+ privoxy-2.9.15-1
|
||||
- Add doc/images directory.
|
||||
|
||||
* Fri May 03 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
|
||||
+ privoxy-suse-2.9.15-1
|
||||
- Version bump
|
||||
|
||||
* Fri Apr 26 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
|
||||
+ privoxy-suse-2.9.14-3
|
||||
- Changing Vendor to Privoxy.Org
|
||||
|
||||
* Mon Apr 22 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
|
||||
+ privoxy-suse-2.9.14-2
|
||||
- Bumping release to reflect the new value on configure.in
|
||||
- Taking the oportunity to change the header Copyright to License. The
|
||||
Copyright headers is deprecated, and after all, GPL is a license, not a
|
||||
Copyright
|
||||
|
||||
* Mon Apr 08 2002 Hal Burgiss <hal@foobox.net>
|
||||
+ privoxy-2.9.13-4
|
||||
- Add LICENSE.gz, p_web.css, and index.html. Add autoconf
|
||||
- to Buildrequires.
|
||||
|
||||
* Wed Mar 27 2002 Hal Burgiss <hal@foobox.net>
|
||||
+ privoxy-2.9.13-3
|
||||
- Doc css has changed names.
|
||||
|
||||
* Tue Mar 25 2002 Hal Burgiss <hal@foobox.net>
|
||||
+ privoxy-2.9.13-3
|
||||
- Minor fix to description.
|
||||
|
||||
* Sun Mar 24 2002 Hal Burgiss <hal@foobox.net>
|
||||
- added faq to docs.
|
||||
|
||||
* Thu Mar 21 2002 Hal Burgiss <hal@foobox.net>
|
||||
- added ijb_docs.css to docs.
|
||||
|
||||
* Mon Mar 11 2002 Hal Burgiss <hal@foobox.net>
|
||||
- Remove --enable-no-gifs from configure.
|
||||
|
||||
* Sun Mar 03 2002 Hal Burgiss <hal@foobox.net>
|
||||
- /bin/false for shell causes init script to fail. Reverting.
|
||||
|
||||
* Wed Jan 09 2002 Hal Burgiss <hal@foobox.net>
|
||||
- Removed UID 73. Included user-manual and developer-manual in docs.
|
||||
Include other actions files. Default shell is now /bin/false.
|
||||
Userdel user=junkbust. ChangeLog was not zipped. Removed
|
||||
RPM_OPT_FLAGS kludge.
|
||||
|
||||
* Fri Dec 28 2001 Thomas Steudten <thomas@steudten.ch>
|
||||
- add paranoia check for 'rm -rf $RPM_BUILD_ROOT'
|
||||
- add gzip to 'BuildRequires'
|
||||
|
||||
* Sat Dec 1 2001 Hal Burgiss <hal@foobox.net>
|
||||
- actionsfile is now ijb.action.
|
||||
|
||||
* Tue Nov 6 2001 Thomas Steudten <thomas@steudten.ch>
|
||||
- Compress manpage
|
||||
- Add more documents for installation
|
||||
- Add version string to name and source
|
||||
|
||||
* Wed Oct 24 2001 Hal Burigss <hal@foobox.net>
|
||||
- Back to user 'junkbuster' and fix configure macro.
|
||||
|
||||
* Wed Oct 10 2001 Hal Burigss <hal@foobox.net>
|
||||
- More changes for user 'junkbust'. Init script had 'junkbuster'.
|
||||
|
||||
* Sun Sep 23 2001 Hal Burgiss <hal@foobox.net>
|
||||
- Change of $RPM_OPT_FLAGS handling. Added new HTML doc files.
|
||||
- Changed owner of /etc/junkbuster to shut up PAM/xauth log noise.
|
||||
|
||||
* Thu Sep 13 2001 Hal Burgiss <hal@foobox.net>
|
||||
- Added $RPM_OPT_FLAGS support, renaming of old logfile, and
|
||||
- made sure no default shell exists for user junkbust.
|
||||
|
||||
* Sun Jun 3 2001 Stefan Waldherr <stefan@waldherr.org>
|
||||
- rework of RPM
|
||||
* Wed Feb 14 2001 - uli@suse.de
|
||||
- fixed init script
|
||||
* Wed Dec 06 2000 - bjacke@suse.de
|
||||
- renamed package to junkbuster
|
||||
- fixed copyright tag
|
||||
* Thu Nov 30 2000 - uli@suse.de
|
||||
- moved init script to /etc/init.d
|
||||
* Wed Feb 16 2000 - kukuk@suse.de
|
||||
- Move /usr/man -> /usr/share/man
|
||||
- Mark /etc/ijb as "config(noreplace)"
|
||||
* Mon Sep 20 1999 - uli@suse.de
|
||||
- fixed init script
|
||||
* Mon Sep 13 1999 - bs@suse.de
|
||||
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
||||
* Thu Apr 01 1999 - daniel@suse.de
|
||||
- do not start ijb as root (security)
|
||||
* Tue Mar 30 1999 - daniel@suse.de
|
||||
- don´t use saclfile.ini
|
||||
* Tue Mar 30 1999 - daniel@suse.de
|
||||
- small fix to whitelist-configuration,
|
||||
version is and was 2.0.2 WITHOUT Stefan Waldherr's patches
|
||||
(http://www.waldherr.org/junkbuster/)
|
||||
* Mon Mar 01 1999 - daniel@suse.de
|
||||
- new package: version 2.0
|
||||
|
||||
# $Log: privoxy-suse.spec,v $
|
||||
# Revision 1.33 2009/03/21 10:46:15 fabiankeil
|
||||
# Bump version to 3.0.12.
|
||||
#
|
||||
# Revision 1.32 2009/02/15 17:18:14 fabiankeil
|
||||
# - Bump version to 3.0.11.
|
||||
#
|
||||
# Revision 1.31 2008/08/30 12:46:49 fabiankeil
|
||||
# The jarfile directive is gone. Update accordingly.
|
||||
#
|
||||
# Revision 1.30 2008/08/13 16:57:46 fabiankeil
|
||||
# Change version to 3.0.10.
|
||||
#
|
||||
# Revision 1.29 2008/03/02 17:36:43 fabiankeil
|
||||
# Set version to 3.0.9.
|
||||
#
|
||||
# Revision 1.28 2008/01/20 14:30:59 fabiankeil
|
||||
# Set version to 3.0.8.
|
||||
#
|
||||
# Revision 1.27 2006/11/18 14:37:12 fabiankeil
|
||||
# Bump version to 3.0.6.
|
||||
#
|
||||
# Revision 1.26 2006/09/20 23:51:26 hal9
|
||||
# Bump versions to 3.0.5
|
||||
#
|
||||
# Revision 1.25 2006/09/09 00:35:10 hal9
|
||||
# Bumped versions to 3.0.4. Both files should be checked further.
|
||||
#
|
||||
# Revision 1.24 2006/07/18 14:48:47 david__schmidt
|
||||
# Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
|
||||
# with what was really the latest development (the v_3_0_branch branch)
|
||||
#
|
||||
# Revision 1.20.2.10 2004/01/30 17:09:29 oes
|
||||
# Bumped version for 3.0.3
|
||||
#
|
||||
# Revision 1.20.2.9 2003/03/26 00:24:58 oes
|
||||
# Bump version for 3.0.2
|
||||
#
|
||||
# Revision 1.20.2.8 2003/03/20 03:27:11 hal9
|
||||
# Bump version for 3.0.1 pending release.
|
||||
#
|
||||
# Revision 1.20.2.7 2002/08/25 23:36:03 hal9
|
||||
# Bump version for 3.0.0.
|
||||
#
|
||||
# Revision 1.20.2.6 2002/08/10 11:28:50 oes
|
||||
# Bumped version
|
||||
#
|
||||
# Revision 1.20.2.5 2002/08/07 01:08:49 hal9
|
||||
# Bumped version to 2.9.18.
|
||||
#
|
||||
# Revision 1.20.2.4 2002/07/30 21:51:19 hal9
|
||||
# Bump version to 2.9.17.
|
||||
#
|
||||
# Revision 1.20.2.3 2002/07/27 15:47:10 hal9
|
||||
# Reset version and release for 2.9.16.
|
||||
#
|
||||
# Revision 1.20.2.2 2002/05/28 02:39:38 hal9
|
||||
# Replace index.html with privoxy-index.html for docs.
|
||||
#
|
||||
# Revision 1.20.2.1 2002/05/26 17:20:23 hal9
|
||||
# Add images to doc dirs.
|
||||
#
|
||||
# Revision 1.20 2002/05/25 02:08:23 hal9
|
||||
# Add doc/images directory.
|
||||
# Redhat: alphabetized list of templates (and I think added one in the process)
|
||||
#
|
||||
# Revision 1.19 2002/05/03 17:14:36 morcego
|
||||
# *.spec: Version bump to 2.9.15
|
||||
# -rh.spec: noreplace for %%{privoxyconf}/config
|
||||
# Will interrupt the build if versions from configure.in and
|
||||
# specfile do not match
|
||||
#
|
||||
# Revision 1.18 2002/04/27 20:26:59 swa
|
||||
# uid, gui 73 incorporated
|
||||
#
|
||||
# Revision 1.17 2002/04/26 15:51:05 morcego
|
||||
# Changing Vendor value to Privoxy.Org
|
||||
#
|
||||
# Revision 1.16 2002/04/22 16:32:31 morcego
|
||||
# configure.in, *.spec: Bumping release to 2 (2.9.14-2)
|
||||
# -rh.spec: uid and gid are now macros
|
||||
# -suse.spec: Changing the header Copyright to License (Copyright is
|
||||
# deprecable)
|
||||
#
|
||||
# Revision 1.15 2002/04/16 18:49:07 oes
|
||||
# Build with static built-in pcre
|
||||
#
|
||||
# Revision 1.14 2002/04/11 17:57:40 oes
|
||||
# Fixed(?) Conflicts: Provides: Obsoletes:
|
||||
#
|
||||
# Revision 1.13 2002/04/11 10:09:20 oes
|
||||
# Version 2.9.14
|
||||
#
|
||||
# Revision 1.12 2002/04/09 13:29:43 swa
|
||||
# build suse and gen-dist with html docs. do not generate docs while building rpm
|
||||
#
|
||||
# Revision 1.11 2002/04/09 03:12:37 hal9
|
||||
# Add LICENSE, p_web.css and index.html. Add autoconf to buildrequires.
|
||||
#
|
||||
# Revision 1.10 2002/04/08 20:24:13 swa
|
||||
# fixed JB spelling
|
||||
#
|
||||
# Revision 1.9 2002/03/30 09:01:52 swa
|
||||
# new release
|
||||
#
|
||||
# Revision 1.8 2002/03/27 23:46:41 hal9
|
||||
# ijb_docs.css to p_doc.css
|
||||
#
|
||||
# Revision 1.7 2002/03/27 00:49:39 hal9
|
||||
# Minor fix to description.
|
||||
#
|
||||
# Revision 1.6 2002/03/26 22:29:55 swa
|
||||
# we have a new homepage!
|
||||
#
|
||||
# Revision 1.5 2002/03/25 03:10:50 hal9
|
||||
# Added faq to docs.
|
||||
#
|
||||
# Revision 1.4 2002/03/24 12:56:21 swa
|
||||
# name change related issues.
|
||||
#
|
||||
# Revision 1.3 2002/03/24 12:44:31 swa
|
||||
# new version string
|
||||
#
|
||||
# Revision 1.2 2002/03/24 11:40:14 swa
|
||||
# name change
|
||||
#
|
||||
# Revision 1.1 2002/03/24 11:23:44 swa
|
||||
# name change
|
||||
#
|
||||
# Revision 1.21 2002/03/21 16:04:33 hal9
|
||||
# added ijb_docs.css to %%doc
|
||||
#
|
||||
# Revision 1.20 2002/03/12 13:42:14 sarantis
|
||||
# remove hardcoded "ijbswa" from build phase
|
||||
#
|
||||
# Revision 1.19 2002/03/11 22:59:05 hal9
|
||||
# Remove --enable-no-gifs
|
||||
#
|
||||
# Revision 1.18 2002/03/11 12:30:31 swa
|
||||
# be consistent with rh spec file
|
||||
#
|
||||
# Revision 1.17 2002/03/08 19:30:23 swa
|
||||
# remove user junkbuster after de-installation.
|
||||
# synced suse with rh-specfile. installation
|
||||
# and de-installation seem to work.
|
||||
#
|
||||
# Revision 1.16 2002/03/08 18:40:44 swa
|
||||
# build requires tools. useradd and del works
|
||||
# now.
|
||||
#
|
||||
# Revision 1.15 2002/03/07 19:23:50 swa
|
||||
# i hate to scroll. suse: wrong configdir.
|
||||
#
|
||||
# Revision 1.14 2002/03/07 19:10:21 swa
|
||||
# builds cleanly. thanks to kukuk@suse.de
|
||||
# not yet tested.
|
||||
#
|
||||
# Revision 1.13 2002/03/07 18:25:56 swa
|
||||
# synced redhat and suse build process
|
||||
#
|
||||
# Revision 1.12 2002/03/02 15:50:04 swa
|
||||
# 2.9.11 version. more input for docs.
|
||||
#
|
||||
# Revision 1.11 2001/12/02 10:29:26 swa
|
||||
# New version made these changes necessary.
|
||||
#
|
||||
# Revision 1.10 2001/10/31 19:27:27 swa
|
||||
# consistent description. new name for suse since
|
||||
# we had troubles with rpms of identical names
|
||||
# on the webserver.
|
||||
#
|
||||
# Revision 1.9 2001/10/26 18:17:23 swa
|
||||
# new version string
|
||||
#
|
||||
# Revision 1.8 2001/09/13 16:22:42 swa
|
||||
# man page is legacy. suse rpm now contains html
|
||||
# documentation.
|
||||
#
|
||||
# Revision 1.7 2001/09/10 17:44:22 swa
|
||||
# integrate three pieces of documentation.
|
||||
#
|
||||
# Revision 1.6 2001/09/10 16:29:23 swa
|
||||
# binary contained debug info.
|
||||
# buildroot definition fucks up the build process under suse.
|
||||
# program needs to write in varlogjunkbuster
|
||||
# install all templates
|
||||
# create varlogjunkbuster
|
||||
#
|
||||
# Revision 1.5 2001/06/09 09:13:29 swa
|
||||
# description shorter
|
||||
#
|
||||
# Revision 1.4 2001/06/08 20:53:36 swa
|
||||
# use buildroot, export init to separate file (better manageability)
|
||||
#
|
||||
# Revision 1.3 2001/06/07 17:28:10 swa
|
||||
# cosmetics
|
||||
#
|
||||
# Revision 1.2 2001/06/07 17:18:44 swa
|
||||
# header fixed
|
||||
#
|
||||
#
|
|
@ -0,0 +1,276 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# This is file /etc/rc.d/init.d/privoxy and was put here
|
||||
# by the privoxy rpm
|
||||
#
|
||||
# chkconfig: 2345 84 09
|
||||
#
|
||||
# description: Web proxy with advanced filtering capabilities \
|
||||
# such as filtering web page content, managing \
|
||||
# cookies and removing ads
|
||||
#
|
||||
|
||||
# ********************************************************************
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/privoxy.init,v $
|
||||
#
|
||||
# Purpose : This shell script takes care of starting and stopping
|
||||
# privoxy.
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Based on the Internet Junkbuster originally written
|
||||
# by and Copyright (C) 1997 Anonymous Coders and
|
||||
# Junkbusters Corporation. http://www.junkbusters.com
|
||||
#
|
||||
# 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; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Revisions :
|
||||
# $Log: privoxy.init,v $
|
||||
# Revision 1.11 2006/07/18 14:48:47 david__schmidt
|
||||
# Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
|
||||
# with what was really the latest development (the v_3_0_branch branch)
|
||||
#
|
||||
# Revision 1.8.2.3 2002/12/10 20:52:16 kick_
|
||||
# better service description. This text will be shown when the user configures the services
|
||||
#
|
||||
# Revision 1.8.2.2 2002/08/05 08:42:13 kick_
|
||||
# same permissions, same runlevels as all the other initscripts
|
||||
#
|
||||
# Revision 1.8.2.1 2002/07/12 09:14:26 kick_
|
||||
# don't use ghost files for rcX.d/*, chkconfig is available to do this job. Enable translation of error messge
|
||||
#
|
||||
# Revision 1.8 2002/04/09 02:51:31 hal9
|
||||
# Changed $JB to $PRIVOXY.
|
||||
#
|
||||
# Revision 1.7 2002/04/08 14:54:51 morcego
|
||||
# Moved the chkconfig comments to the begining of the file, couse Linuxconf
|
||||
# was getting confused with it where it was.
|
||||
#
|
||||
# Revision 1.6 2002/03/26 22:29:55 swa
|
||||
# we have a new homepage!
|
||||
#
|
||||
# Revision 1.5 2002/03/25 06:14:18 morcego
|
||||
# Removing the OPRG definition (no longer needed)
|
||||
#
|
||||
# Revision 1.4 2002/03/25 04:16:48 hal9
|
||||
# Fix proper config file location.
|
||||
#
|
||||
# Revision 1.3 2002/03/24 19:12:15 hal9
|
||||
# Fixed some naming conflicts.
|
||||
#
|
||||
# Revision 1.2 2002/03/24 11:40:14 swa
|
||||
# name change
|
||||
#
|
||||
# Revision 1.1 2002/03/24 11:23:44 swa
|
||||
# name change
|
||||
#
|
||||
# Revision 1.1 2002/03/22 20:53:03 morcego
|
||||
# - Ongoing process to change name to JunkbusterNG
|
||||
# - configure/configure.in: no change needed
|
||||
# - GNUmakefile.in:
|
||||
# - TAR_ARCH = /tmp/JunkbusterNG-$(RPM_VERSION).tar.gz
|
||||
# - PROGRAM = jbng@EXEEXT@
|
||||
# - rh-spec now references as junkbusterng-rh.spec
|
||||
# - redhat-upload: references changed to junkbusterng-* (package names)
|
||||
# - tarball-dist: references changed to JunkbusterNG-distribution-*
|
||||
# - tarball-src: now JunkbusterNG-*
|
||||
# - install: initscript now junkbusterng.init and junkbusterng (when
|
||||
# installed)
|
||||
# - junkbuster-rh.spec: renamed to junkbusterng-rh.spec
|
||||
# - junkbusterng.spec:
|
||||
# - References to the expression ijb where changed where possible
|
||||
# - New package name: junkbusterng (all in lower case, acording to
|
||||
# the LSB recomendation)
|
||||
# - Version changed to: 2.9.13
|
||||
# - Release: 1
|
||||
# - Added: junkbuster to obsoletes and conflicts (Not sure this is
|
||||
# right. If it obsoletes, why conflict ? Have to check it later)
|
||||
# - Summary changed: Stefan, please check and aprove it
|
||||
# - Changes description to use the new name
|
||||
# - Sed string was NOT changed. Have to wait to the manpage to
|
||||
# change first
|
||||
# - Keeping the user junkbuster for now. It will require some aditional
|
||||
# changes on the script (scheduled for the next specfile release)
|
||||
# - Added post entry to move the old logfile to the new log directory
|
||||
# - Removing "chkconfig --add" entry (not good to have it automaticaly
|
||||
# added to the startup list).
|
||||
# - Added preun section to stop the service with the old name, as well
|
||||
# as remove it from the startup list
|
||||
# - Removed the chkconfig --del entry from the conditional block on
|
||||
# the preun scriptlet (now handled on the %files section)
|
||||
# - junkbuster.init: renamed to junkbusterng.init
|
||||
# - junkbusterng.init:
|
||||
# - Changed JB_BIN to jbng
|
||||
# - Created JB_OBIN with the old value of JB_BIN (junkbuster), to
|
||||
# be used where necessary (config dir)
|
||||
#
|
||||
# Aditional notes:
|
||||
# - The config directory is /etc/junkbuster yet. Have to change it on the
|
||||
# specfile, after it is changes on the code
|
||||
# - The only files that got renamed on the cvs tree were the rh specfile and
|
||||
# the init file. Some file references got changes on the makefile and on the
|
||||
# rh-spec (as listed above)
|
||||
#
|
||||
# Revision 1.15 2002/03/09 15:05:58 swa
|
||||
# wrong user.group
|
||||
#
|
||||
# Revision 1.14 2002/03/06 06:13:40 hal9
|
||||
# Adapted for Andreas' changes for --user and --pidfile.
|
||||
#
|
||||
# Revision 1.13 2002/03/05 05:10:10 oes
|
||||
# Changed pidfile path to conform with FHS
|
||||
#
|
||||
# Revision 1.12 2002/03/04 20:44:36 oes
|
||||
# Changed to new cmdline syntax
|
||||
#
|
||||
# Revision 1.11 2001/12/30 14:07:32 steudten
|
||||
# - Add signal handling (unix)
|
||||
# - Add SIGHUP handler (unix)
|
||||
# - Add creation of pidfile (unix)
|
||||
# - Add action 'top' in rc file (RH)
|
||||
# - Add entry 'SIGNALS' to manpage
|
||||
# - Add exit message to logfile (unix)
|
||||
#
|
||||
# Revision 1.10 2001/11/05 21:30:23 steudten
|
||||
# Make JB startup without & due to be a 'real' daemon right now.
|
||||
# Make the script easy to change.
|
||||
#
|
||||
# Revision 1.9 2001/09/15 01:53:12 steudten
|
||||
#
|
||||
# Remove test for subsys flag in start. Some minor changes.
|
||||
#
|
||||
# Revision 1.8 2001/06/28 13:50:36 sarantis
|
||||
# swap ?$ with $?; remove bogus ";;"
|
||||
#
|
||||
# Revision 1.7 2001/06/28 13:40:26 sarantis
|
||||
# remove single quotes from $JB; it was not expanded.
|
||||
#
|
||||
# Revision 1.6 2001/06/28 13:38:42 sarantis
|
||||
# formatting changes; individual return values are returned from the init script.
|
||||
#
|
||||
# Revision 1.5 2001/06/11 11:37:40 sarantis
|
||||
# Minor editing changes.
|
||||
#
|
||||
# Revision 1.4 2001/06/09 09:14:11 swa
|
||||
# shamelessly adapted RPM stuff from the newest rpm that
|
||||
# RedHat provided for the JB.
|
||||
#
|
||||
# Revision 1.3 2001/05/25 10:12:44 oes
|
||||
# Fixed default case in switch statement (# -> *)
|
||||
#
|
||||
# Revision 1.2 2001/05/24 07:52:24 swa
|
||||
# added header. removed ^M.
|
||||
#
|
||||
#
|
||||
# ********************************************************************/
|
||||
|
||||
|
||||
# Source function library.
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
. /etc/sysconfig/network
|
||||
|
||||
# Check that networking is up.
|
||||
[ ${NETWORKING} = "no" ] && exit 0
|
||||
|
||||
PRIVOXY_PRG="privoxy"
|
||||
PRIVOXY_BIN="/usr/sbin/$PRIVOXY_PRG"
|
||||
PRIVOXY_CONF="/etc/$PRIVOXY_PRG/config"
|
||||
PRIVOXY_USER="privoxy"
|
||||
PRIVOXY_PID=/var/run/$PRIVOXY_PRG.pid
|
||||
PRIVOXY_LOCK=/var/lock/subsys/$PRIVOXY_PRG
|
||||
PRIVOXY="$PRIVOXY_BIN --user $PRIVOXY_USER.$PRIVOXY_USER --pidfile $PRIVOXY_PID $PRIVOXY_CONF"
|
||||
|
||||
# some checks for us
|
||||
! [ -x $PRIVOXY_BIN ] && echo $"Can't find $PRIVOXY_BIN, exit." && exit 0
|
||||
! [ -f $PRIVOXY_CONF ] && echo $"Can't find $PRIVOXY_CONF, exit." && exit 0
|
||||
|
||||
# See how we were called.
|
||||
|
||||
start () {
|
||||
# start daemon
|
||||
echo -n $"Starting $PRIVOXY_PRG: "
|
||||
if [ -f $PRIVOXY_PID ]; then
|
||||
killproc $PRIVOXY_PRG && rm -f $PRIVOXY_LOCK $PRIVOXY_PID
|
||||
RETVAL=$?
|
||||
[ $RETVAL != 0 ] && return $RETVAL
|
||||
fi
|
||||
daemon $PRIVOXY
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ $RETVAL = 0 ] && touch $PRIVOXY_LOCK
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
stop () {
|
||||
# stop daemon
|
||||
echo -n $"Stopping $PRIVOXY_PRG: "
|
||||
killproc $PRIVOXY_PRG && rm -f $PRIVOXY_LOCK $PRIVOXY_PID
|
||||
RETVAL=$?
|
||||
echo
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
reload)
|
||||
if [ -f $PRIVOXY_PID ] ; then
|
||||
kill -HUP `cat $PRIVOXY_PID`
|
||||
RETVAL=$?
|
||||
fi
|
||||
;;
|
||||
restart)
|
||||
stop
|
||||
start
|
||||
RETVAL=$?
|
||||
;;
|
||||
condrestart)
|
||||
# restart only if already running
|
||||
if [ -f $PRIVOXY_PID ] ; then
|
||||
stop
|
||||
start
|
||||
RETVAL=$?
|
||||
fi
|
||||
;;
|
||||
status)
|
||||
status $PRIVOXY_PRG
|
||||
RETVAL=$?
|
||||
;;
|
||||
top)
|
||||
if [ -f $PRIVOXY_PID ]; then
|
||||
a=""
|
||||
for i in `pidof $PRIVOXY_PRG` ; do
|
||||
a="$a -p $i"
|
||||
done
|
||||
top $a
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $PRIVOXY_PRG {start|stop|reload|restart|condrestart|status|top}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $RETVAL
|
|
@ -0,0 +1,127 @@
|
|||
#! /bin/sh
|
||||
# ********************************************************************
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/privoxy.init.suse,v $
|
||||
#
|
||||
# Purpose : This shell script takes care of starting and stopping
|
||||
# privoxy.
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Based on the Internet Junkbuster originally written
|
||||
# by and Copyright (C) 1997 Anonymous Coders and
|
||||
# Junkbusters Corporation. http://www.junkbusters.com
|
||||
#
|
||||
# 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; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Revisions :
|
||||
# $Log: privoxy.init.suse,v $
|
||||
# Revision 1.4 2006/07/18 14:48:47 david__schmidt
|
||||
# Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
|
||||
# with what was really the latest development (the v_3_0_branch branch)
|
||||
#
|
||||
# Revision 1.3.2.1 2003/03/17 14:04:16 oes
|
||||
# No longer use obsolete rc.config
|
||||
#
|
||||
# Revision 1.3 2002/03/26 22:29:55 swa
|
||||
# we have a new homepage!
|
||||
#
|
||||
# Revision 1.2 2002/03/24 11:40:14 swa
|
||||
# name change
|
||||
#
|
||||
# Revision 1.1 2002/03/24 11:23:44 swa
|
||||
# name change
|
||||
#
|
||||
# Revision 1.7 2002/03/11 11:44:46 oes
|
||||
# Working in suggestions by Thorsten Kukuk <kukuk@suse.de>
|
||||
#
|
||||
# Revision 1.6 2002/03/09 14:56:34 swa
|
||||
# wrong user.group
|
||||
#
|
||||
# Revision 1.5 2002/03/08 21:39:59 oes
|
||||
# setgid to nogroup
|
||||
#
|
||||
# Revision 1.4 2002/03/05 19:54:37 oes
|
||||
# Preliminary version of SuSE 8.0-certified init script ,-)
|
||||
#
|
||||
# Revision 1.3 2002/03/05 05:28:05 oes
|
||||
# Added pidfile creation
|
||||
#
|
||||
# Revision 1.2 2001/09/10 16:25:46 swa
|
||||
# jb did not start. none of the arguments worked. fixed.
|
||||
#
|
||||
# Revision 1.1 2001/06/08 20:53:36 swa
|
||||
# use buildroot, export init to separate file (better manageability)
|
||||
#
|
||||
#
|
||||
#
|
||||
# ********************************************************************/
|
||||
### BEGIN INIT INFO
|
||||
# Provides: privoxy
|
||||
# Required-Start: $network $syslog $remote_fs
|
||||
# Required-Stop:
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Description: Starts Privoxy
|
||||
### END INIT INFO
|
||||
|
||||
. /etc/rc.status
|
||||
rc_reset
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting Privoxy"
|
||||
if [ ! -f /var/run/privoxy.pid ] || ! kill -0 `cat /var/run/privoxy.pid` 2> /dev/null; then
|
||||
/usr/sbin/privoxy --user privoxy.privoxy --pidfile /var/run/privoxy.pid /etc/privoxy/config 2> /dev/null
|
||||
else
|
||||
false
|
||||
fi
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down Privoxy"
|
||||
killproc -TERM /usr/sbin/privoxy && rm -f /var/run/privoxy.pid
|
||||
rc_status -v
|
||||
;;
|
||||
reload)
|
||||
echo -n "Reloading Privoxy"
|
||||
kill -HUP `cat /var/run/privoxy.pid`
|
||||
rc_status -v
|
||||
;;
|
||||
try-restart)
|
||||
$0 stop && $0 start
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
rc_status
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for Privoxy"
|
||||
checkproc /usr/sbin/privoxy
|
||||
rc_status -v
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|restart|reload|status|stop}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
rc_exit
|
|
@ -0,0 +1,107 @@
|
|||
#
|
||||
# Logrotate file for Privoxy RPM
|
||||
#
|
||||
# ********************************************************************
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/privoxy.logrotate,v $
|
||||
#
|
||||
# Purpose : Rotates all potential Privoxy logfiles
|
||||
#
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Based on the Internet Junkbuster originally written
|
||||
# by and Copyright (C) 1997 Anonymous Coders and
|
||||
# Junkbusters Corporation. http://www.junkbusters.com
|
||||
#
|
||||
# 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; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Revisions :
|
||||
# $Log: privoxy.logrotate,v $
|
||||
# Revision 1.6 2006/07/18 14:48:47 david__schmidt
|
||||
# Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
|
||||
# with what was really the latest development (the v_3_0_branch branch)
|
||||
#
|
||||
# Revision 1.4.2.1 2002/06/25 17:33:07 kick_
|
||||
# Avoid error messages if privoxy hasn't run at all and there is no logfile yet by adding missingok to the logrotate script
|
||||
#
|
||||
# Revision 1.4 2002/03/26 22:29:55 swa
|
||||
# we have a new homepage!
|
||||
#
|
||||
# Revision 1.3 2002/03/24 15:19:57 swa
|
||||
# name change related issue.
|
||||
#
|
||||
# Revision 1.2 2002/03/24 11:40:14 swa
|
||||
# name change
|
||||
#
|
||||
# Revision 1.1 2002/03/24 11:23:44 swa
|
||||
# name change
|
||||
#
|
||||
# Revision 1.7 2001/12/30 14:07:32 steudten
|
||||
# - Add signal handling (unix)
|
||||
# - Add SIGHUP handler (unix)
|
||||
# - Add creation of pidfile (unix)
|
||||
# - Add action 'top' in rc file (RH)
|
||||
# - Add entry 'SIGNALS' to manpage
|
||||
# - Add exit message to logfile (unix)
|
||||
#
|
||||
# Revision 1.6 2001/12/13 23:19:43 steudten
|
||||
# Add 'restart' of junkbuster service after rotate logfiles.
|
||||
# Better we could use the well known 'kill -HUP', but the handler
|
||||
# isn't there at this time.
|
||||
#
|
||||
# Revision 1.5 2001/11/05 21:31:51 steudten
|
||||
# Change switch mode from weekly to size 1M
|
||||
#
|
||||
# Revision 1.4 2001/06/28 13:30:22 sarantis
|
||||
# add missingok for the jarfile entry
|
||||
#
|
||||
# Revision 1.3 2001/06/04 18:31:58 swa
|
||||
# files are now prefixed with either `confdir' or `logdir'.
|
||||
# `make redhat-dist' replaces both entries confdir and logdir
|
||||
# with redhat values
|
||||
#
|
||||
# Revision 1.2 2001/05/24 07:52:24 swa
|
||||
# added header. removed ^M.
|
||||
#
|
||||
# Revision 1.3 2001/05/24 07:41:33 swa
|
||||
# added header
|
||||
#
|
||||
#
|
||||
#
|
||||
# ********************************************************************/
|
||||
|
||||
/var/log/privoxy/logfile {
|
||||
missingok
|
||||
compress
|
||||
size 1M
|
||||
postrotate
|
||||
/sbin/service privoxy reload 2> /dev/null || true
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/privoxy/jarfile {
|
||||
missingok
|
||||
compress
|
||||
size 1M
|
||||
postrotate
|
||||
/sbin/service privoxy reload 2> /dev/null || true
|
||||
endscript
|
||||
}
|
|
@ -0,0 +1,484 @@
|
|||
#ifndef CONFIG_H_INCLUDED
|
||||
#define CONFIG_H_INCLUDED
|
||||
/*********************************************************************
|
||||
*
|
||||
* File : $Source: /cvsroot/ijbswa/current/vc_config_pthreads.h,v $
|
||||
*
|
||||
* Purpose : This file should be the first thing included in every
|
||||
* .c file. (Before even system headers). It contains
|
||||
* #define statements for various features. It was
|
||||
* introduced because the compile command line started
|
||||
* getting ludicrously long with feature defines.
|
||||
*
|
||||
* Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
* Privoxy team. http://www.privoxy.org/
|
||||
*
|
||||
* Based on the Internet Junkbuster originally written
|
||||
* by and Copyright (C) 1997 Anonymous Coders and
|
||||
* Junkbusters Corporation. http://www.junkbusters.com
|
||||
*
|
||||
* 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; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* The GNU General Public License should be included with
|
||||
* this file. If not, you can view it at
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
* or write to the Free Software Foundation, Inc., 59
|
||||
* Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Revisions :
|
||||
* $Log: vc_config_pthreads.h,v $
|
||||
* Revision 1.6 2008/03/27 18:27:38 fabiankeil
|
||||
* Remove kill-popups action.
|
||||
*
|
||||
* Revision 1.5 2006/07/18 14:48:47 david__schmidt
|
||||
* Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
|
||||
* with what was really the latest development (the v_3_0_branch branch)
|
||||
*
|
||||
* Revision 1.3 2002/05/03 22:54:24 jongfoster
|
||||
* Version number bump to 2.9.15
|
||||
*
|
||||
* Revision 1.2 2002/04/26 18:26:09 jongfoster
|
||||
* Bumping version numbers
|
||||
*
|
||||
* Revision 1.1 2002/04/06 20:38:01 jongfoster
|
||||
* Renaming VC++ versions of config.h
|
||||
*
|
||||
* Revision 1.20 2002/04/03 22:28:03 gliptak
|
||||
* Removed references to gnu_regex
|
||||
*
|
||||
* Revision 1.19 2002/03/26 22:29:54 swa
|
||||
* we have a new homepage!
|
||||
*
|
||||
* Revision 1.18 2002/03/24 17:08:12 jongfoster
|
||||
* Version number bump
|
||||
*
|
||||
* Revision 1.17 2002/03/24 13:33:26 swa
|
||||
* name change related issues
|
||||
*
|
||||
* Revision 1.16 2002/03/16 14:27:22 jongfoster
|
||||
* Ignoring a very common warning.
|
||||
*
|
||||
* Revision 1.15 2002/03/13 00:28:32 jongfoster
|
||||
* Hiding all the warnings generated by #include<windows.h>
|
||||
*
|
||||
* Revision 1.14 2001/11/30 21:35:54 jongfoster
|
||||
* Bumping version number to 2.9.10
|
||||
*
|
||||
* Revision 1.13 2001/10/23 21:24:09 jongfoster
|
||||
* Support for FEATURE_CGI_EDIT_ACTIONS
|
||||
*
|
||||
* Revision 1.12 2001/10/07 15:33:14 oes
|
||||
* Removed FEATURE_DENY_GZIP
|
||||
* Bumped up version number
|
||||
*
|
||||
* Revision 1.11 2001/09/16 16:59:34 jongfoster
|
||||
* Bugfix - couldn't build resources with previous version.
|
||||
*
|
||||
* Revision 1.10 2001/09/16 16:19:02 jongfoster
|
||||
* New version based on latest configure.in and acconfig.h
|
||||
*
|
||||
* Revision 1.9 2001/07/30 22:16:07 jongfoster
|
||||
* Tidying up #defines:
|
||||
* - All feature #defines are now of the form FEATURE_xxx
|
||||
* - Permanently turned off WIN_GUI_EDIT
|
||||
* - Permanently turned on WEBDAV and SPLIT_PROXY_ARGS
|
||||
*
|
||||
* Revision 1.8 2001/07/25 19:16:27 oes
|
||||
* Bumping version number to 2.9.8
|
||||
*
|
||||
* Revision 1.7 2001/07/21 18:00:07 jongfoster
|
||||
* Bumping version number to 2.9.7
|
||||
*
|
||||
* Revision 1.6 2001/07/15 20:08:40 jongfoster
|
||||
* New build files for VC++ which provide the option of POSIX
|
||||
* or Win32 threads.
|
||||
*
|
||||
* Revision 1.5 2001/07/15 18:00:46 jongfoster
|
||||
* Renaming STATIC to STATIC_PCRE.
|
||||
* Replacing this file with one built by "configure" from
|
||||
* "config.h.in", for consistency.
|
||||
*
|
||||
* Revision 1.6 2001/07/15 17:54:29 jongfoster
|
||||
* Renaming #define STATIC to STATIC_PCRE
|
||||
* Adding new #define FEATURE_PTHREAD that will be used to enable
|
||||
* POSIX threads support.
|
||||
*
|
||||
* Revision 1.5 2001/07/13 13:48:37 oes
|
||||
* - (Fix:) Copied CODE_STATUS #define from config.h.in
|
||||
* - split REGEX #define into REGEX_GNU and REGEX_PCRE
|
||||
* and removed PCRE.
|
||||
* (REGEX = REGEX_GNU || REGEX_PCRE per project.h)
|
||||
* - Moved STATIC (for pcre) here from Makefile.in
|
||||
* - Introduced STATIC_PCRS #define to allow for dynaimc linking with
|
||||
* libpcrs
|
||||
* - Removed PCRS #define, since pcrs is now needed for CGI anyway
|
||||
*
|
||||
* Revision 1.4 2001/05/29 09:50:24 jongfoster
|
||||
* Unified blocklist/imagelist/permissionslist.
|
||||
* File format is still under discussion, but the internal changes
|
||||
* are (mostly) done.
|
||||
*
|
||||
* Also modified interceptor behaviour:
|
||||
* - We now intercept all URLs beginning with one of the following
|
||||
* prefixes (and *only* these prefixes):
|
||||
* * http://i.j.b/
|
||||
* * http://ijbswa.sf.net/config/
|
||||
* * http://ijbswa.sourceforge.net/config/
|
||||
* - New interceptors "home page" - go to http://i.j.b/ to see it.
|
||||
* - Internal changes so that intercepted and fast redirect pages
|
||||
* are not replaced with an image.
|
||||
* - Interceptors now have the option to send a binary page direct
|
||||
* to the client. (i.e. ijb-send-banner uses this)
|
||||
* - Implemented show-url-info interceptor. (Which is why I needed
|
||||
* the above interceptors changes - a typical URL is
|
||||
* "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
|
||||
* The previous mechanism would not have intercepted that, and
|
||||
* if it had been intercepted then it then it would have replaced
|
||||
* it with an image.)
|
||||
*
|
||||
* Revision 1.3 2001/05/26 01:26:34 jongfoster
|
||||
* New #define, WIN_GUI_EDIT, enables the (embryonic) Win32 GUI editor.
|
||||
* This #define cannot be set from ./configure - there's no point, it
|
||||
* doesn't work yet. See feature request # 425722
|
||||
*
|
||||
* Revision 1.2 2001/05/22 17:43:35 oes
|
||||
*
|
||||
* - Enabled filtering banners by size rather than URL
|
||||
* by adding patterns that replace all standard banner
|
||||
* sizes with the "Junkbuster" gif to the re_filterfile
|
||||
*
|
||||
* - Enabled filtering WebBugs by providing a pattern
|
||||
* which kills all 1x1 images
|
||||
*
|
||||
* - Added support for PCRE_UNGREEDY behaviour to pcrs,
|
||||
* which is selected by the (nonstandard and therefore
|
||||
* capital) letter 'U' in the option string.
|
||||
* It causes the quantifiers to be ungreedy by default.
|
||||
* Appending a ? turns back to greedy (!).
|
||||
*
|
||||
* - Added a new interceptor ijb-send-banner, which
|
||||
* sends back the "Junkbuster" gif. Without imagelist or
|
||||
* MSIE detection support, or if tinygif = 1, or the
|
||||
* URL isn't recognized as an imageurl, a lame HTML
|
||||
* explanation is sent instead.
|
||||
*
|
||||
* - Added new feature, which permits blocking remote
|
||||
* script redirects and firing back a local redirect
|
||||
* to the browser.
|
||||
* The feature is conditionally compiled, i.e. it
|
||||
* can be disabled with --disable-fast-redirects,
|
||||
* plus it must be activated by a "fast-redirects"
|
||||
* line in the config file, has its own log level
|
||||
* and of course wants to be displayed by show-proxy-args
|
||||
* Note: Boy, all the #ifdefs in 1001 locations and
|
||||
* all the fumbling with configure.in and acconfig.h
|
||||
* were *way* more work than the feature itself :-(
|
||||
*
|
||||
* - Because a generic redirect template was needed for
|
||||
* this, tinygif = 3 now uses the same.
|
||||
*
|
||||
* - Moved GIFs, and other static HTTP response templates
|
||||
* to project.h
|
||||
*
|
||||
* - Many minor fixes
|
||||
*
|
||||
* - Removed some >400 CRs again (Jon, you really worked
|
||||
* a lot! ;-)
|
||||
*
|
||||
* Revision 1.1.1.1 2001/05/15 13:58:45 oes
|
||||
* Initial import of version 2.9.3 source tree
|
||||
*
|
||||
*
|
||||
*********************************************************************/
|
||||
|
||||
|
||||
/*
|
||||
* Version number - Major (X._._)
|
||||
*/
|
||||
#define VERSION_MAJOR 2
|
||||
|
||||
/*
|
||||
* Version number - Minor (_.X._)
|
||||
*/
|
||||
#define VERSION_MINOR 9
|
||||
|
||||
/*
|
||||
* Version number - Point (_._.X)
|
||||
*/
|
||||
#define VERSION_POINT 15
|
||||
|
||||
/*
|
||||
* Version number, as a string
|
||||
*/
|
||||
#define VERSION "2.9.15"
|
||||
|
||||
/*
|
||||
* Status of the code: alpha, beta or stable
|
||||
*/
|
||||
#define CODE_STATUS "beta"
|
||||
|
||||
/*
|
||||
* Regular expression matching for URLs. (Highly recommended).
|
||||
* If neither of these are defined then you can ony use prefix matching.
|
||||
* Don't bother to change this here! Use configure instead.
|
||||
*/
|
||||
#define REGEX_PCRE 1
|
||||
|
||||
/*
|
||||
* Should pcre be statically built in instead of linkling with libpcre?
|
||||
* (This is determined by configure depending on the availiability of
|
||||
* libpcre and user preferences). The name is ugly, but pcre needs it.
|
||||
* Don't bother to change this here! Use configure instead.
|
||||
*/
|
||||
#define STATIC_PCRE 1
|
||||
|
||||
/*
|
||||
* Should pcrs be statically built in instead of linkling with libpcrs?
|
||||
* (This is determined by configure depending on the availiability of
|
||||
* libpcrs and user preferences).
|
||||
* Don't bother to change this here! Use configure instead.
|
||||
*/
|
||||
#define STATIC_PCRS 1
|
||||
|
||||
/*
|
||||
* Allows the use of an ACL to control access to the proxy by IP address.
|
||||
*/
|
||||
#define FEATURE_ACL 1
|
||||
|
||||
/*
|
||||
* Enables the web-based configuration (actionsfile) editor. If you
|
||||
* have a shared proxy, you might want to turn this off.
|
||||
*/
|
||||
#define FEATURE_CGI_EDIT_ACTIONS 1
|
||||
|
||||
/*
|
||||
* Allows the use of jar files to capture cookies.
|
||||
*/
|
||||
#define FEATURE_COOKIE_JAR 1
|
||||
|
||||
/*
|
||||
* Locally redirect remote script-redirect URLs
|
||||
*/
|
||||
#define FEATURE_FAST_REDIRECTS 1
|
||||
|
||||
/*
|
||||
* Bypass filtering for 1 page only
|
||||
*/
|
||||
#define FEATURE_FORCE_LOAD 1
|
||||
|
||||
/*
|
||||
* Allow blocking using images as well as HTML.
|
||||
* If you do not define this then everything is blocked as HTML.
|
||||
*
|
||||
* Note that this is required if you want to use FEATURE_IMAGE_DETECT_MSIE.
|
||||
*/
|
||||
#define FEATURE_IMAGE_BLOCKING 1
|
||||
|
||||
/*
|
||||
* Detect image requests automatically for MSIE. Will fall back to
|
||||
* other image-detection methods (i.e. "+image" permission) for other
|
||||
* browsers.
|
||||
*
|
||||
* You must also define FEATURE_IMAGE_BLOCKING to use this feature.
|
||||
*
|
||||
* It detects the following header pair as an image request:
|
||||
*
|
||||
* User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
|
||||
* Accept: * / *
|
||||
*
|
||||
* And the following as a HTML request:
|
||||
*
|
||||
* User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
|
||||
* Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, * / *
|
||||
*
|
||||
* And no, I haven't got that backwards - IE is being wierd.
|
||||
*
|
||||
* Known limitations:
|
||||
* 1) If you press shift-reload on a blocked HTML page, you get
|
||||
* the image "blocked" page, not the HTML "blocked" page.
|
||||
* 2) Once an image "blocked" page has been sent, viewing it
|
||||
* in it's own browser window *should* bring up the HTML
|
||||
* "blocked" page, but it doesn't. You need to clear the
|
||||
* browser cache to get the HTML version again.
|
||||
*
|
||||
* These limitations are due to IE making inconsistent choices
|
||||
* about which "Accept:" header to send.
|
||||
*/
|
||||
#define FEATURE_IMAGE_DETECT_MSIE 1
|
||||
|
||||
/*
|
||||
* Use POSIX threads instead of native threads.
|
||||
*/
|
||||
#define FEATURE_PTHREAD 1
|
||||
|
||||
/*
|
||||
* Enables statistics function.
|
||||
*/
|
||||
#define FEATURE_STATISTICS 1
|
||||
|
||||
/*
|
||||
* Allow JunkBuster to be "disabled" so it is just a normal non-blocking
|
||||
* non-anonymizing proxy. This is useful if you're trying to access a
|
||||
* blocked or broken site - just change the setting in the config file,
|
||||
* or use the handy "Disable" menu option in the Windows GUI.
|
||||
*/
|
||||
#define FEATURE_TOGGLE 1
|
||||
|
||||
/*
|
||||
* Allows the use of trust files.
|
||||
*/
|
||||
#define FEATURE_TRUST 1
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* The following values are correct for MS VC++97.
|
||||
* You should normally not change them.
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
/*
|
||||
* Defined on Solaris only. Makes the system libraries thread safe.
|
||||
*/
|
||||
/* #define _REENTRANT 1 */
|
||||
|
||||
/*
|
||||
* Defined on Solaris only. Without this, many important functions are not
|
||||
* defined in the system headers.
|
||||
*/
|
||||
/* #define __EXTENSIONS__ 1 */
|
||||
|
||||
/*
|
||||
* Defined always.
|
||||
* FIXME: Don't know what it does or why we need it.
|
||||
* (presumably something to do with MultiThreading?)
|
||||
*/
|
||||
#define __MT__ 1
|
||||
|
||||
|
||||
/* Define if you have the `bcopy' function. */
|
||||
/* #define HAVE_BCOPY 1 */
|
||||
|
||||
/* Define if you have the <inttypes.h> header file. */
|
||||
/* #define HAVE_INTTYPES_H 1 */
|
||||
|
||||
/* Define if you have the `memmove' function. */
|
||||
#define HAVE_MEMMOVE 1
|
||||
|
||||
/* Define if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define if you have the <stdint.h> header file. */
|
||||
/* #define HAVE_STDINT_H 1 */
|
||||
|
||||
/* Define if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define if you have the `strerror' function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define if you have the <strings.h> header file. */
|
||||
/* #define HAVE_STRINGS_H 1 */
|
||||
|
||||
/* Define if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define if you have the <unistd.h> header file. */
|
||||
/* #define HAVE_UNISTD_H 1 */
|
||||
|
||||
/* The size of a `char *', as computed by sizeof. */
|
||||
#define SIZEOF_CHAR_P 4
|
||||
|
||||
/* The size of a `int', as computed by sizeof. */
|
||||
#define SIZEOF_INT 4
|
||||
|
||||
/* The size of a `long', as computed by sizeof. */
|
||||
#define SIZEOF_LONG 4
|
||||
|
||||
/* The size of a `long long', as computed by sizeof. */
|
||||
/* #define SIZEOF_LONG_LONG ---not supported--- */
|
||||
|
||||
/* The size of a `size_t', as computed by sizeof. */
|
||||
#define SIZEOF_SIZE_T 4
|
||||
|
||||
/* Define if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
/* #define const */
|
||||
|
||||
/* Define to `unsigned' if <sys/types.h> does not define. */
|
||||
/* #define size_t unsigned */
|
||||
|
||||
/*
|
||||
* Defined always.
|
||||
* FIXME: Don't know what it does or why we need it.
|
||||
* (presumably something to do with ANSI Standard C?)
|
||||
*/
|
||||
/* Don't define for MS VC++ or you don't get strdup() declared.
|
||||
#ifndef __STDC__
|
||||
#define __STDC__ 1
|
||||
#endif
|
||||
*/
|
||||
|
||||
/*
|
||||
* Need to set up this define only for the Pthreads library for
|
||||
* Win32, available from http://sources.redhat.com/pthreads-win32/
|
||||
*/
|
||||
#if defined(FEATURE_PTHREAD) && defined(_WIN32)
|
||||
#define __CLEANUP_C
|
||||
#endif /* defined(FEATURE_PTHREAD) && defined(_WIN32) */
|
||||
|
||||
/*
|
||||
* BEOS does not currently support POSIX threads.
|
||||
* This *should* be detected by ./configure, but let's be sure.
|
||||
*/
|
||||
#if defined(FEATURE_PTHREAD) && defined(__BEOS__)
|
||||
#error BEOS does not support pthread - please run ./configure again with "--disable-pthread"
|
||||
|
||||
#endif /* defined(FEATURE_PTHREAD) && defined(__BEOS__) */
|
||||
|
||||
|
||||
#if (!defined(_MSC_VER)) && (!defined(RC_INVOKED))
|
||||
#error This file is only intended for MS VC++ on Win32. For other compilers, please run configure.
|
||||
#endif /* (!defined(_MSC_VER)) && (!defined(RC_INVOKED)) */
|
||||
|
||||
#pragma warning ( disable: 4100 4115 4201 4214 4244 4514 )
|
||||
|
||||
/*
|
||||
* C4100 : unreferenced formal parameter
|
||||
* Very common, not a bug
|
||||
*
|
||||
* C4115 : named type definition in parentheses
|
||||
* #include <windows.h> causes a warning about one of these.
|
||||
*
|
||||
* C4201 : nonstandard extension used : nameless struct/union
|
||||
* Endemic in <windows.h>
|
||||
*
|
||||
* C4214 nonstandard extension used : bit field types other than int
|
||||
* Endemic in <windows.h>
|
||||
*
|
||||
* C4244 conversion from 'int' to 'char', possible loss of data
|
||||
* Should really fix this one. Throughout the JB code.
|
||||
*
|
||||
* C4514 unreferenced inline/local function has been removed
|
||||
* Caused by #include <windows.h>
|
||||
*/
|
||||
|
||||
#endif /* CONFIG_H_INCLUDED */
|
||||
|
|
@ -0,0 +1,675 @@
|
|||
#ifndef CONFIG_H_INCLUDED
|
||||
#define CONFIG_H_INCLUDED
|
||||
/*********************************************************************
|
||||
*
|
||||
* File : $Source: /cvsroot/ijbswa/current/vc_config_winthreads.h,v $
|
||||
*
|
||||
* Purpose : This file should be the first thing included in every
|
||||
* .c file. (Before even system headers). It contains
|
||||
* #define statements for various features. It was
|
||||
* introduced because the compile command line started
|
||||
* getting ludicrously long with feature defines.
|
||||
*
|
||||
* Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
* Privoxy team. http://www.privoxy.org/
|
||||
*
|
||||
* Based on the Internet Junkbuster originally written
|
||||
* by and Copyright (C) 1997 Anonymous Coders and
|
||||
* Junkbusters Corporation. http://www.junkbusters.com
|
||||
*
|
||||
* 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; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* The GNU General Public License should be included with
|
||||
* this file. If not, you can view it at
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
* or write to the Free Software Foundation, Inc., 59
|
||||
* Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Revisions :
|
||||
* $Log: vc_config_winthreads.h,v $
|
||||
* Revision 1.6 2008/03/27 18:27:39 fabiankeil
|
||||
* Remove kill-popups action.
|
||||
*
|
||||
* Revision 1.5 2006/07/18 14:48:47 david__schmidt
|
||||
* Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
|
||||
* with what was really the latest development (the v_3_0_branch branch)
|
||||
*
|
||||
* Revision 1.3.2.1 2006/04/08 21:57:26 david__schmidt
|
||||
* Synchronize with a more modern copy of config.h.
|
||||
*
|
||||
* Revision 1.3 2002/05/03 22:54:24 jongfoster
|
||||
* Version number bump to 2.9.15
|
||||
*
|
||||
* Revision 1.2 2002/04/26 18:26:09 jongfoster
|
||||
* Bumping version numbers
|
||||
*
|
||||
* Revision 1.1 2002/04/06 20:38:01 jongfoster
|
||||
* Renaming VC++ versions of config.h
|
||||
*
|
||||
* Revision 1.14 2002/03/26 22:29:54 swa
|
||||
* we have a new homepage!
|
||||
*
|
||||
* Revision 1.13 2002/03/24 17:08:12 jongfoster
|
||||
* Version number bump
|
||||
*
|
||||
* Revision 1.12 2002/03/24 13:25:43 swa
|
||||
* name change related issues
|
||||
*
|
||||
* Revision 1.11 2002/03/16 14:27:22 jongfoster
|
||||
* Ignoring a very common warning.
|
||||
*
|
||||
* Revision 1.10 2002/03/13 00:28:32 jongfoster
|
||||
* Hiding all the warnings generated by #include<windows.h>
|
||||
*
|
||||
* Revision 1.9 2001/11/30 21:35:54 jongfoster
|
||||
* Bumping version number to 2.9.10
|
||||
*
|
||||
* Revision 1.8 2001/10/23 21:24:09 jongfoster
|
||||
* Support for FEATURE_CGI_EDIT_ACTIONS
|
||||
*
|
||||
* Revision 1.7 2001/10/07 15:33:14 oes
|
||||
* Removed FEATURE_DENY_GZIP
|
||||
* Bumped up version number
|
||||
*
|
||||
* Revision 1.6 2001/09/16 16:59:34 jongfoster
|
||||
* Bugfix - couldn't build resources with previous version.
|
||||
*
|
||||
* Revision 1.5 2001/09/16 16:19:02 jongfoster
|
||||
* New version based on latest configure.in and acconfig.h
|
||||
*
|
||||
* Revision 1.9 2001/07/30 22:16:07 jongfoster
|
||||
* Tidying up #defines:
|
||||
* - All feature #defines are now of the form FEATURE_xxx
|
||||
* - Permanently turned off WIN_GUI_EDIT
|
||||
* - Permanently turned on WEBDAV and SPLIT_PROXY_ARGS
|
||||
*
|
||||
* Revision 1.8 2001/07/25 19:16:27 oes
|
||||
* Bumping version number to 2.9.8
|
||||
*
|
||||
* Revision 1.7 2001/07/21 18:00:07 jongfoster
|
||||
* Bumping version number to 2.9.7
|
||||
*
|
||||
* Revision 1.6 2001/07/15 20:08:40 jongfoster
|
||||
* New build files for VC++ which provide the option of POSIX
|
||||
* or Win32 threads.
|
||||
*
|
||||
* Revision 1.5 2001/07/15 18:00:46 jongfoster
|
||||
* Renaming STATIC to STATIC_PCRE.
|
||||
* Replacing this file with one built by "configure" from
|
||||
* "config.h.in", for consistency.
|
||||
*
|
||||
* Revision 1.6 2001/07/15 17:54:29 jongfoster
|
||||
* Renaming #define STATIC to STATIC_PCRE
|
||||
* Adding new #define FEATURE_PTHREAD that will be used to enable
|
||||
* POSIX threads support.
|
||||
*
|
||||
* Revision 1.5 2001/07/13 13:48:37 oes
|
||||
* - (Fix:) Copied CODE_STATUS #define from config.h.in
|
||||
* - split REGEX #define into REGEX_GNU and REGEX_PCRE
|
||||
* and removed PCRE.
|
||||
* (REGEX = REGEX_GNU || REGEX_PCRE per project.h)
|
||||
* - Moved STATIC (for pcre) here from Makefile.in
|
||||
* - Introduced STATIC_PCRS #define to allow for dynaimc linking with
|
||||
* libpcrs
|
||||
* - Removed PCRS #define, since pcrs is now needed for CGI anyway
|
||||
*
|
||||
* Revision 1.4 2001/05/29 09:50:24 jongfoster
|
||||
* Unified blocklist/imagelist/permissionslist.
|
||||
* File format is still under discussion, but the internal changes
|
||||
* are (mostly) done.
|
||||
*
|
||||
* Also modified interceptor behaviour:
|
||||
* - We now intercept all URLs beginning with one of the following
|
||||
* prefixes (and *only* these prefixes):
|
||||
* * http://i.j.b/
|
||||
* * http://ijbswa.sf.net/config/
|
||||
* * http://ijbswa.sourceforge.net/config/
|
||||
* - New interceptors "home page" - go to http://i.j.b/ to see it.
|
||||
* - Internal changes so that intercepted and fast redirect pages
|
||||
* are not replaced with an image.
|
||||
* - Interceptors now have the option to send a binary page direct
|
||||
* to the client. (i.e. ijb-send-banner uses this)
|
||||
* - Implemented show-url-info interceptor. (Which is why I needed
|
||||
* the above interceptors changes - a typical URL is
|
||||
* "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
|
||||
* The previous mechanism would not have intercepted that, and
|
||||
* if it had been intercepted then it then it would have replaced
|
||||
* it with an image.)
|
||||
*
|
||||
* Revision 1.3 2001/05/26 01:26:34 jongfoster
|
||||
* New #define, WIN_GUI_EDIT, enables the (embryonic) Win32 GUI editor.
|
||||
* This #define cannot be set from ./configure - there's no point, it
|
||||
* doesn't work yet. See feature request # 425722
|
||||
*
|
||||
* Revision 1.2 2001/05/22 17:43:35 oes
|
||||
*
|
||||
* - Enabled filtering banners by size rather than URL
|
||||
* by adding patterns that replace all standard banner
|
||||
* sizes with the "Junkbuster" gif to the re_filterfile
|
||||
*
|
||||
* - Enabled filtering WebBugs by providing a pattern
|
||||
* which kills all 1x1 images
|
||||
*
|
||||
* - Added support for PCRE_UNGREEDY behaviour to pcrs,
|
||||
* which is selected by the (nonstandard and therefore
|
||||
* capital) letter 'U' in the option string.
|
||||
* It causes the quantifiers to be ungreedy by default.
|
||||
* Appending a ? turns back to greedy (!).
|
||||
*
|
||||
* - Added a new interceptor ijb-send-banner, which
|
||||
* sends back the "Junkbuster" gif. Without imagelist or
|
||||
* MSIE detection support, or if tinygif = 1, or the
|
||||
* URL isn't recognized as an imageurl, a lame HTML
|
||||
* explanation is sent instead.
|
||||
*
|
||||
* - Added new feature, which permits blocking remote
|
||||
* script redirects and firing back a local redirect
|
||||
* to the browser.
|
||||
* The feature is conditionally compiled, i.e. it
|
||||
* can be disabled with --disable-fast-redirects,
|
||||
* plus it must be activated by a "fast-redirects"
|
||||
* line in the config file, has its own log level
|
||||
* and of course wants to be displayed by show-proxy-args
|
||||
* Note: Boy, all the #ifdefs in 1001 locations and
|
||||
* all the fumbling with configure.in and acconfig.h
|
||||
* were *way* more work than the feature itself :-(
|
||||
*
|
||||
* - Because a generic redirect template was needed for
|
||||
* this, tinygif = 3 now uses the same.
|
||||
*
|
||||
* - Moved GIFs, and other static HTTP response templates
|
||||
* to project.h
|
||||
*
|
||||
* - Many minor fixes
|
||||
*
|
||||
* - Removed some >400 CRs again (Jon, you really worked
|
||||
* a lot! ;-)
|
||||
*
|
||||
* Revision 1.1.1.1 2001/05/15 13:58:45 oes
|
||||
* Initial import of version 2.9.3 source tree
|
||||
*
|
||||
*
|
||||
*********************************************************************/
|
||||
|
||||
|
||||
/*
|
||||
* Version number - Major (X._._)
|
||||
*/
|
||||
#define VERSION_MAJOR 0
|
||||
|
||||
/*
|
||||
* Version number - Minor (_.X._)
|
||||
*/
|
||||
#define VERSION_MINOR 0
|
||||
|
||||
/*
|
||||
* Version number - Point (_._.X)
|
||||
*/
|
||||
#define VERSION_POINT 0
|
||||
|
||||
/*
|
||||
* Version number, as a string
|
||||
*/
|
||||
#define VERSION "0.0.0"
|
||||
|
||||
/*
|
||||
* Status of the code: alpha, beta or stable
|
||||
*/
|
||||
#define CODE_STATUS "UNRELEASED"
|
||||
|
||||
/*
|
||||
* Regular expression matching for URLs. (Highly recommended).
|
||||
* If neither of these are defined then you can ony use prefix matching.
|
||||
* Don't bother to change this here! Use configure instead.
|
||||
*/
|
||||
/* #define REGEX_GNU 1 */
|
||||
#define REGEX_PCRE 1
|
||||
|
||||
/*
|
||||
* Should pcre be statically built in instead of linkling with libpcre?
|
||||
* (This is determined by configure depending on the availiability of
|
||||
* libpcre and user preferences). The name is ugly, but pcre needs it.
|
||||
* Don't bother to change this here! Use configure instead.
|
||||
*/
|
||||
#define STATIC_PCRE 1
|
||||
|
||||
/*
|
||||
* Should pcrs be statically built in instead of linkling with libpcrs?
|
||||
* (This is determined by configure depending on the availiability of
|
||||
* libpcrs and user preferences).
|
||||
* Don't bother to change this here! Use configure instead.
|
||||
*/
|
||||
#define STATIC_PCRS 1
|
||||
|
||||
/*
|
||||
* Allows the use of an ACL to control access to the proxy by IP address.
|
||||
*/
|
||||
#define FEATURE_ACL 1
|
||||
|
||||
/*
|
||||
* Enables the web-based configuration (actionsfile) editor. If you
|
||||
* have a shared proxy, you might want to turn this off.
|
||||
*/
|
||||
#define FEATURE_CGI_EDIT_ACTIONS 1
|
||||
|
||||
/*
|
||||
* Allows the use of jar files to capture cookies.
|
||||
*/
|
||||
#define FEATURE_COOKIE_JAR 1
|
||||
|
||||
/*
|
||||
* Locally redirect remote script-redirect URLs
|
||||
*/
|
||||
#define FEATURE_FAST_REDIRECTS 1
|
||||
|
||||
/*
|
||||
* Bypass filtering for 1 page only
|
||||
*/
|
||||
#define FEATURE_FORCE_LOAD 1
|
||||
|
||||
/*
|
||||
* Allow blocking using images as well as HTML.
|
||||
* If you do not define this then everything is blocked as HTML.
|
||||
*
|
||||
* Note that this is required if you want to use FEATURE_IMAGE_DETECT_MSIE.
|
||||
*/
|
||||
#define FEATURE_IMAGE_BLOCKING 1
|
||||
|
||||
/*
|
||||
* Detect image requests automatically for MSIE. Will fall back to
|
||||
* other image-detection methods (i.e. "+image" permission) for other
|
||||
* browsers.
|
||||
*
|
||||
* You must also define FEATURE_IMAGE_BLOCKING to use this feature.
|
||||
*
|
||||
* It detects the following header pair as an image request:
|
||||
*
|
||||
* User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
|
||||
* Accept: * / *
|
||||
*
|
||||
* And the following as a HTML request:
|
||||
*
|
||||
* User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
|
||||
* Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, * / *
|
||||
*
|
||||
* And no, I haven't got that backwards - IE is being wierd.
|
||||
*
|
||||
* Known limitations:
|
||||
* 1) If you press shift-reload on a blocked HTML page, you get
|
||||
* the image "blocked" page, not the HTML "blocked" page.
|
||||
* 2) Once an image "blocked" page has been sent, viewing it
|
||||
* in it's own browser window *should* bring up the HTML
|
||||
* "blocked" page, but it doesn't. You need to clear the
|
||||
* browser cache to get the HTML version again.
|
||||
*
|
||||
* These limitations are due to IE making inconsistent choices
|
||||
* about which "Accept:" header to send.
|
||||
*/
|
||||
#define FEATURE_IMAGE_DETECT_MSIE 1
|
||||
|
||||
/*
|
||||
* Use PNG instead of GIF for built-in images
|
||||
*/
|
||||
/* #undef FEATURE_NO_GIFS */
|
||||
|
||||
/*
|
||||
* Use POSIX threads instead of native threads.
|
||||
*/
|
||||
/* #define FEATURE_PTHREAD 1 */
|
||||
|
||||
/*
|
||||
* Enables statistics function.
|
||||
*/
|
||||
#define FEATURE_STATISTICS 1
|
||||
|
||||
/*
|
||||
* Allow JunkBuster to be "disabled" so it is just a normal non-blocking
|
||||
* non-anonymizing proxy. This is useful if you're trying to access a
|
||||
* blocked or broken site - just change the setting in the config file,
|
||||
* or use the handy "Disable" menu option in the Windows GUI.
|
||||
*/
|
||||
#define FEATURE_TOGGLE 1
|
||||
|
||||
/*
|
||||
* Allows the use of trust files.
|
||||
*/
|
||||
#define FEATURE_TRUST 1
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* The following values are correct for MS VC++97.
|
||||
* You should normally not change them.
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
/*
|
||||
* Defined on Solaris only. Makes the system libraries thread safe.
|
||||
*/
|
||||
/* #define _REENTRANT 1 */
|
||||
|
||||
/*
|
||||
* Defined on Solaris only. Without this, many important functions are not
|
||||
* defined in the system headers.
|
||||
*/
|
||||
/* #define __EXTENSIONS__ 1 */
|
||||
|
||||
/*
|
||||
* Defined always.
|
||||
* FIXME: Don't know what it does or why we need it.
|
||||
* (presumably something to do with MultiThreading?)
|
||||
*/
|
||||
#define __MT__ 1
|
||||
|
||||
/* If the (nonstandard and thread-safe) function gethostbyname_r
|
||||
* is available, select which signature to use
|
||||
*/
|
||||
/* #undef HAVE_GETHOSTBYNAME_R_6_ARGS */
|
||||
/* #undef HAVE_GETHOSTBYNAME_R_5_ARGS */
|
||||
/* #undef HAVE_GETHOSTBYNAME_R_3_ARGS */
|
||||
|
||||
/* If the (nonstandard and thread-safe) function gethostbyaddr_r
|
||||
* is available, select which signature to use
|
||||
*/
|
||||
/* #undef HAVE_GETHOSTBYADDR_R_8_ARGS */
|
||||
/* #undef HAVE_GETHOSTBYADDR_R_7_ARGS */
|
||||
/* #undef HAVE_GETHOSTBYADDR_R_5_ARGS */
|
||||
|
||||
/* Defined if you have gmtime_r and localtime_r with a signature
|
||||
* of (struct time *, struct tm *)
|
||||
*/
|
||||
#undef HAVE_GMTIME_R
|
||||
|
||||
/* #define HAVE_LOCALTIME_R 1 */
|
||||
|
||||
/* Define to 'int' if <sys/socket.h> doesn't have it.
|
||||
*/
|
||||
#define socklen_t int
|
||||
|
||||
/* Define if pcre.h must be included as <pcre/pcre.h>
|
||||
*/
|
||||
/* #undef PCRE_H_IN_SUBDIR */
|
||||
|
||||
/* Define if pcreposix.h must be included as <pcre/pcreposix.h>
|
||||
*/
|
||||
/* #undef PCREPOSIX_H_IN_SUBDIR */
|
||||
|
||||
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
||||
#define HAVE_ARPA_INET_H 1
|
||||
|
||||
/* Define to 1 if you have the `atexit' function. */
|
||||
#define HAVE_ATEXIT 1
|
||||
|
||||
/* Define if you have the `bcopy' function. */
|
||||
/* #define HAVE_BCOPY 1 */
|
||||
|
||||
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
#define HAVE_DIRENT_H 1
|
||||
|
||||
/* Define to 1 if you have the <errno.h> header file. */
|
||||
#define HAVE_ERRNO_H 1
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#define HAVE_FCNTL_H 1
|
||||
|
||||
/* Define to 1 if you have the `getcwd' function. */
|
||||
#define HAVE_GETCWD 1
|
||||
|
||||
/* Define to 1 if you have the `gethostbyaddr' function. */
|
||||
#define HAVE_GETHOSTBYADDR 1
|
||||
|
||||
/* Define to 1 if you have the `gethostbyname' function. */
|
||||
#define HAVE_GETHOSTBYNAME 1
|
||||
|
||||
/* Define to 1 if you have the `inet_ntoa' function. */
|
||||
#define HAVE_INET_NTOA 1
|
||||
|
||||
/* Define if you have the <inttypes.h> header file. */
|
||||
/* #define HAVE_INTTYPES_H 1 */
|
||||
|
||||
/* Define to 1 if you have the `nsl' library (-lnsl). */
|
||||
/* #undef HAVE_LIBNSL */
|
||||
|
||||
/* Define to 1 if you have the <limits.h> header file. */
|
||||
#define HAVE_LIMITS_H 1
|
||||
|
||||
/* Define to 1 if you have the <locale.h> header file. */
|
||||
#define HAVE_LOCALE_H 1
|
||||
|
||||
/* Define to 1 if you have the `localtime_r' function. */
|
||||
#undef HAVE_LOCALTIME_R
|
||||
|
||||
/* Define to 1 if you have the `memchr' function. */
|
||||
#define HAVE_MEMCHR 1
|
||||
|
||||
/* Define if you have the `memmove' function. */
|
||||
#define HAVE_MEMMOVE 1
|
||||
|
||||
/* Define if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the `memset' function. */
|
||||
#define HAVE_MEMSET 1
|
||||
|
||||
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
||||
/* #undef HAVE_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the <netdb.h> header file. */
|
||||
#define HAVE_NETDB_H 1
|
||||
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||
#define HAVE_NETINET_IN_H 1
|
||||
|
||||
/* Define to 1 if you have the <OS.h> header file. */
|
||||
/* #undef HAVE_OS_H */
|
||||
|
||||
/* Define to 1 if you have the `regcomp' function. */
|
||||
#define HAVE_REGCOMP 1
|
||||
|
||||
/* Define to 1 if you have the `select' function. */
|
||||
#define HAVE_SELECT 1
|
||||
|
||||
/* Define to 1 if you have the `setlocale' function. */
|
||||
#define HAVE_SETLOCALE 1
|
||||
|
||||
/* Define to 1 if you have the `socket' function. */
|
||||
#define HAVE_SOCKET 1
|
||||
|
||||
/* Define to 1 if you have the <stddef.h> header file. */
|
||||
#define HAVE_STDDEF_H 1
|
||||
|
||||
/* Define if you have the <stdint.h> header file. */
|
||||
/* #define HAVE_STDINT_H 1 */
|
||||
|
||||
/* Define if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the `strchr' function. */
|
||||
#define HAVE_STRCHR 1
|
||||
|
||||
/* Define to 1 if you have the `strdup' function. */
|
||||
#define HAVE_STRDUP 1
|
||||
|
||||
/* Define if you have the `strerror' function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the `strftime' function. */
|
||||
#define HAVE_STRFTIME 1
|
||||
|
||||
/* Define if you have the <strings.h> header file. */
|
||||
/* #define HAVE_STRINGS_H 1 */
|
||||
|
||||
/* Define if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the `strstr' function. */
|
||||
#define HAVE_STRSTR 1
|
||||
|
||||
/* Define to 1 if you have the `strtoul' function. */
|
||||
#define HAVE_STRTOUL 1
|
||||
|
||||
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_DIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
||||
#define HAVE_SYS_IOCTL_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||
#define HAVE_SYS_SOCKET_H 1
|
||||
|
||||
/* Define if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/timeb.h> header file. */
|
||||
#define HAVE_SYS_TIMEB_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
#define HAVE_SYS_TIME_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/wait.h> header file. */
|
||||
#define HAVE_SYS_WAIT_H 1
|
||||
|
||||
/* Define if you have the <unistd.h> header file. */
|
||||
/* #define HAVE_UNISTD_H 1 */
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT ""
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME ""
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING ""
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION ""
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
||||
/* Define to 1 if the `setpgrp' function takes no argument. */
|
||||
#define SETPGRP_VOID 1
|
||||
|
||||
/* The size of a `char *', as computed by sizeof. */
|
||||
#define SIZEOF_CHAR_P 4
|
||||
|
||||
/* The size of a `int', as computed by sizeof. */
|
||||
#define SIZEOF_INT 4
|
||||
|
||||
/* The size of a `long', as computed by sizeof. */
|
||||
#define SIZEOF_LONG 4
|
||||
|
||||
/* The size of a `long long', as computed by sizeof. */
|
||||
/* #define SIZEOF_LONG_LONG ---not supported--- */
|
||||
|
||||
/* The size of a `size_t', as computed by sizeof. */
|
||||
#define SIZEOF_SIZE_T 4
|
||||
|
||||
/* Define if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#define TIME_WITH_SYS_TIME 1
|
||||
|
||||
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
|
||||
/* #undef TM_IN_SYS_TIME */
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
/* #define const */
|
||||
|
||||
/* Define to `int' if <sys/types.h> does not define. */
|
||||
/* #undef pid_t */
|
||||
|
||||
/* Define to `unsigned' if <sys/types.h> does not define. */
|
||||
/* #define size_t unsigned */
|
||||
|
||||
/* Define to 'int' if <sys/socket.h> doesn't have it. */
|
||||
#define socklen_t int
|
||||
|
||||
/*
|
||||
* Defined always.
|
||||
* FIXME: Don't know what it does or why we need it.
|
||||
* (presumably something to do with ANSI Standard C?)
|
||||
*/
|
||||
/* Don't define for MS VC++ or you don't get strdup() declared.
|
||||
#ifndef __STDC__
|
||||
#define __STDC__ 1
|
||||
#endif
|
||||
*/
|
||||
|
||||
/*
|
||||
* Need to set up this define only for the Pthreads library for
|
||||
* Win32, available from http://sources.redhat.com/pthreads-win32/
|
||||
*/
|
||||
#if defined(FEATURE_PTHREAD) && defined(_WIN32)
|
||||
#define __CLEANUP_C
|
||||
#endif /* defined(FEATURE_PTHREAD) && defined(_WIN32) */
|
||||
|
||||
/*
|
||||
* Need to keep errlog.c from trying to inline the non-existent
|
||||
* locking stubs. Could be removed once a real platform-specific
|
||||
* solution is generated.
|
||||
*/
|
||||
#define inline ""
|
||||
|
||||
/*
|
||||
* BEOS does not currently support POSIX threads.
|
||||
* This *should* be detected by ./configure, but let's be sure.
|
||||
*/
|
||||
#if defined(FEATURE_PTHREAD) && defined(__BEOS__)
|
||||
#error BEOS does not support pthread - please run ./configure again with "--disable-pthread"
|
||||
|
||||
#endif /* defined(FEATURE_PTHREAD) && defined(__BEOS__) */
|
||||
|
||||
|
||||
#if (!defined(_MSC_VER)) && (!defined(RC_INVOKED))
|
||||
#error This file is only intended for MS VC++ on Win32. For other compilers, please run configure.
|
||||
#endif /* (!defined(_MSC_VER)) && (!defined(RC_INVOKED)) */
|
||||
|
||||
#pragma warning ( disable: 4100 4115 4201 4214 4244 4514 )
|
||||
|
||||
/*
|
||||
* C4100 : unreferenced formal parameter
|
||||
* Very common, not a bug
|
||||
*
|
||||
* C4115 : named type definition in parentheses
|
||||
* #include <windows.h> causes a warning about one of these.
|
||||
*
|
||||
* C4201 : nonstandard extension used : nameless struct/union
|
||||
* Endemic in <windows.h>
|
||||
*
|
||||
* C4214 nonstandard extension used : bit field types other than int
|
||||
* Endemic in <windows.h>
|
||||
*
|
||||
* C4244 conversion from 'int' to 'char', possible loss of data
|
||||
* Should really fix this one. Throughout the JB code.
|
||||
*
|
||||
* C4514 unreferenced inline/local function has been removed
|
||||
* Caused by #include <windows.h>
|
||||
*/
|
||||
|
||||
|
||||
#endif /* CONFIG_H_INCLUDED */
|
||||
|
|
@ -0,0 +1,405 @@
|
|||
# Microsoft Developer Studio Project File - Name="vc_console" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 5.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=vc_console - Win32 Debug with Win32 threads
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "vc_console.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "vc_console.mak"\
|
||||
CFG="vc_console - Win32 Debug with Win32 threads"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "vc_console - Win32 Release" (based on\
|
||||
"Win32 (x86) Console Application")
|
||||
!MESSAGE "vc_console - Win32 Debug" (based on\
|
||||
"Win32 (x86) Console Application")
|
||||
!MESSAGE "vc_console - Win32 Debug with Win32 threads" (based on\
|
||||
"Win32 (x86) Console Application")
|
||||
!MESSAGE "vc_console - Win32 Release with Win32 threads" (based on\
|
||||
"Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "vc_console - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "console_release"
|
||||
# PROP Intermediate_Dir "console_release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /MT /W3 /GX /O2 /I "pcre" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D "_WIN_CONSOLE" /D "STATIC" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib pthreadVC.lib /nologo /subsystem:console /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_console - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "console_debug"
|
||||
# PROP Intermediate_Dir "console_debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /I "pcre" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "_WIN_CONSOLE" /D "STATIC" /FR /YX /FD /c
|
||||
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib pthreadVC.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_console - Win32 Debug with Win32 threads"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "console_"
|
||||
# PROP BASE Intermediate_Dir "console_"
|
||||
# PROP BASE Ignore_Export_Lib 0
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "console_debug_winthr"
|
||||
# PROP Intermediate_Dir "console_debug_winthr"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /I "pcre" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "_WIN_CONSOLE" /D "STATIC" /FR /YX /FD /c
|
||||
# ADD CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /I "pcre" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "_WIN_CONSOLE" /D "STATIC" /FR /YX /FD /c
|
||||
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib pthreadVC.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_console - Win32 Release with Win32 threads"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "console0"
|
||||
# PROP BASE Intermediate_Dir "console0"
|
||||
# PROP BASE Ignore_Export_Lib 0
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "console_release_winthr"
|
||||
# PROP Intermediate_Dir "console_release_winthr"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /I "pcre" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D "_WIN_CONSOLE" /D "STATIC" /YX /FD /c
|
||||
# ADD CPP /nologo /MT /W3 /GX /O2 /I "pcre" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D "_WIN_CONSOLE" /D "STATIC" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib pthreadVC.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib /nologo /subsystem:console /machine:I386
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "vc_console - Win32 Release"
|
||||
# Name "vc_console - Win32 Debug"
|
||||
# Name "vc_console - Win32 Debug with Win32 threads"
|
||||
# Name "vc_console - Win32 Release with Win32 threads"
|
||||
# Begin Group "JunkBuster"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\actionlist.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\actions.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\actions.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgi.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgi.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgiedit.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgiedit.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgisimple.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgisimple.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\config.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\deanimate.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\deanimate.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\errlog.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\errlog.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\filters.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\filters.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\jcc.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\jcc.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\loadcfg.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\loadcfg.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\loaders.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\loaders.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\parsers.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\parsers.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\project.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\urlmatch.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\urlmatch.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Win32"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cygwin.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\win32.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\win32.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "PCRE"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\chartables.c
|
||||
|
||||
!IF "$(CFG)" == "vc_console - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_console - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_console - Win32 Debug with Win32 threads"
|
||||
|
||||
# PROP BASE Exclude_From_Build 1
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_console - Win32 Release with Win32 threads"
|
||||
|
||||
# PROP BASE Exclude_From_Build 1
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\config.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\get.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\internal.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\maketables.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\pcre.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\pcre.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\pcreposix.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\pcreposix.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\study.c
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "PCRS"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcrs.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcrs.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Sockets"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\gateway.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\gateway.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\jbsockets.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\jbsockets.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Utilities"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\encode.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\encode.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\list.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\list.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\miscutil.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\miscutil.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ssplit.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ssplit.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
|
@ -0,0 +1,488 @@
|
|||
# Microsoft Developer Studio Project File - Name="vc_privoxy" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 5.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||
|
||||
CFG=vc_privoxy - Win32 Debug with Win32 threads
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "vc_privoxy.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "vc_privoxy.mak"\
|
||||
CFG="vc_privoxy - Win32 Debug with Win32 threads"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "vc_privoxy - Win32 Release" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "vc_privoxy - Win32 Debug" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "vc_privoxy - Win32 Release with Win32 threads" (based on\
|
||||
"Win32 (x86) Application")
|
||||
!MESSAGE "vc_privoxy - Win32 Debug with Win32 threads" (based on\
|
||||
"Win32 (x86) Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "vc_privoxy - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "vc_release"
|
||||
# PROP BASE Intermediate_Dir "vc_release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "vc_release"
|
||||
# PROP Intermediate_Dir "vc_release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
||||
# ADD CPP /nologo /MT /W3 /GX /O2 /Ob2 /I "pcre" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "STATIC" /FR /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib pthreadVC.lib /nologo /subsystem:windows /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_privoxy - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "vc_debug"
|
||||
# PROP BASE Intermediate_Dir "vc_debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "vc_debug"
|
||||
# PROP Intermediate_Dir "vc_debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
||||
# ADD CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /I "pcre" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "STATIC" /FR /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib pthreadVC.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_privoxy - Win32 Release with Win32 threads"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "vc_junkb"
|
||||
# PROP BASE Intermediate_Dir "vc_junkb"
|
||||
# PROP BASE Ignore_Export_Lib 0
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "vc_release_winthr"
|
||||
# PROP Intermediate_Dir "vc_release_winthr"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /Ob2 /I "pcre" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "STATIC" /FR /YX /FD /c
|
||||
# ADD CPP /nologo /MT /W3 /GX /O2 /Ob2 /I "pcre" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "STATIC" /FR /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib pthreadVC.lib /nologo /subsystem:windows /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib /nologo /subsystem:windows /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_privoxy - Win32 Debug with Win32 threads"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "vc_junk0"
|
||||
# PROP BASE Intermediate_Dir "vc_junk0"
|
||||
# PROP BASE Ignore_Export_Lib 0
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "vc_debug_winthr"
|
||||
# PROP Intermediate_Dir "vc_debug_winthr"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /O2 /I "pcre" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "STATIC" /YX /FD /c
|
||||
# ADD CPP /nologo /MTd /W4 /Gm /GX /Zi /Od /I "pcre" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "STATIC" /FR /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib pthreadVC.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib comctl32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "vc_privoxy - Win32 Release"
|
||||
# Name "vc_privoxy - Win32 Debug"
|
||||
# Name "vc_privoxy - Win32 Release with Win32 threads"
|
||||
# Name "vc_privoxy - Win32 Debug with Win32 threads"
|
||||
# Begin Group "JunkBuster"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\actionlist.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\actions.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\actions.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgi.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgi.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgiedit.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgiedit.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgisimple.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cgisimple.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\config.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\deanimate.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\deanimate.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\errlog.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\errlog.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\filters.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\filters.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\jcc.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\jcc.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\loadcfg.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\loadcfg.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\loaders.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\loaders.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\parsers.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\parsers.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\project.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\urlmatch.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\urlmatch.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Win32"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cygwin.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\w32log.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\w32log.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\w32res.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\w32taskbar.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\w32taskbar.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\win32.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\win32.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\w32svrapi.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\w32svrapi.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Resources"
|
||||
|
||||
# PROP Default_Filter "rc,ico,bmp"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\icons\ico00001.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\icons\ico00002.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\icons\ico00003.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\icons\ico00004.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\icons\ico00005.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\icons\ico00006.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\icons\ico00007.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\icons\ico00008.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\icons\idle.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\icons\privoxy.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\w32.rc
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "PCRE"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\chartables.c
|
||||
|
||||
!IF "$(CFG)" == "vc_privoxy - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_privoxy - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_privoxy - Win32 Release with Win32 threads"
|
||||
|
||||
# PROP BASE Exclude_From_Build 1
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "vc_privoxy - Win32 Debug with Win32 threads"
|
||||
|
||||
# PROP BASE Exclude_From_Build 1
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\config.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\get.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\internal.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\maketables.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\pcre.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\pcre.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\pcreposix.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\pcreposix.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcre\study.c
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "PCRS"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcrs.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\pcrs.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Sockets"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\gateway.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\gateway.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\jbsockets.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\jbsockets.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Utilities"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\encode.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\encode.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\list.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\list.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\miscutil.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\miscutil.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ssplit.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ssplit.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
|
@ -0,0 +1,59 @@
|
|||
Microsoft Developer Studio Workspace File, Format Version 5.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "vc_console"=".\vc_console.dsp" - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name vc_dftables
|
||||
End Project Dependency
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "vc_dftables"=".\pcre\vc_dftables.dsp" - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "vc_privoxy"=".\vc_privoxy.dsp" - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name vc_dftables
|
||||
End Project Dependency
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
Reference in New Issue