[leaf-commits] src/bering-uclibc4/source/tinyproxy buildtool.cfg, NONE, 1.1 buildtool.mk, NONE, 1.1 filter, NONE, 1.1 tinyproxy-1.8.2.tar.bz2, NONE, 1.1 tinyproxy.conf, NONE, 1.1 tinyproxy.cron, NONE, 1.1 tinyproxy.init, NONE, 1.1 tinyproxy_nodocs.patch, NONE, 1.1

Andrew <[email protected]>
Newsgroups gmane.linux.leaf.cvs
Message-ID <[email protected]>
Update of /cvsroot/leaf/src/bering-uclibc4/source/tinyproxy
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv7004

Added Files:
	buildtool.cfg buildtool.mk filter tinyproxy-1.8.2.tar.bz2 
	tinyproxy.conf tinyproxy.cron tinyproxy.init 
	tinyproxy_nodocs.patch 
Log Message:
Updated tinyproxy; removed asciidoc requirements (no docs is built)


--- NEW FILE: tinyproxy.conf ---
##
## tinyproxy.conf -- tinyproxy daemon configuration file
##

#
# Name of the user the tinyproxy daemon should switch to after the port
# has been bound.
#
User root
Group root

#
# Port to listen on.
#
Port 8888

#
# If you have multiple interfaces this allows you to bind to only one. If
# this is commented out, tinyproxy will bind to all interfaces present.
#
#Listen 192.168.0.1

#
# The Bind directive allows you to bind the outgoing connections to a
# particular IP address.
#
#Bind 192.168.0.1

#
# Timeout: The number of seconds of inactivity a connection is allowed to
# have before it closed by tinyproxy.
#
Timeout 600

#
# Where to log the information. Either LogFile or Syslog should be set,
# but not both.
#
Logfile "/var/log/tinyproxy.log"
# Syslog On

#
# Set the logging level. Allowed settings are:
#	Critical	(least verbose)
#	Error
#	Warning
#	Notice
#	Connect		(to log connections without Info's noise)
#	Info		(most verbose)
# The LogLevel logs from the set level and above. For example, if the LogLevel
# was set to Warning, than all log messages from Warning to Critical would be
# output, but Notice and below would be suppressed.
#
LogLevel Connect

#
# PidFile: Write the PID of the main tinyproxy thread to this file so it
# can be used for signalling purposes.
#
PidFile "/var/run/tinyproxy.pid"

#
# Include the X-Tinyproxy header, which has the client's IP address when
# connecting to the sites listed.
#
#XTinyproxy mydomain.com

#
# Turns on upstream proxy support.
#
# The upstream rules allow you to selectively route upstream connections
# based on the host/domain of the site being accessed.
#
# For example:
#  # connection to test domain goes through testproxy
#  upstream testproxy:8008 ".test.domain.invalid"
#  upstream testproxy:8008 ".our_testbed.example.com"
#  upstream testproxy:8008 "192.168.128.0/255.255.254.0"
#
#  # no upstream proxy for internal websites and unqualified hosts
#  no upstream ".internal.example.com"
#  no upstream "www.example.com"
#  no upstream "10.0.0.0/8"
#  no upstream "192.168.0.0/255.255.254.0"
#  no upstream "."
#
#  # connection to these boxes go through their DMZ firewalls
#  upstream cust1_firewall:8008 "testbed_for_cust1"
#  upstream cust2_firewall:8008 "testbed_for_cust2"
#
#  # default upstream is internet firewall
#  upstream firewall.internal.example.com:80
#
# The LAST matching rule wins the route decision.  As you can see, you
# can use a host, or a domain:
#  name     matches host exactly
#  .name    matches any host in domain "name"
#  .        matches any host with no domain (in 'empty' domain)
#  IP/bits  matches network/mask
#  IP/mask  matches network/mask
#
#Upstream some.remote.proxy:port

#
# This is the absolute highest number of threads which will be created. In
# other words, only MaxClients number of clients can be connected at the
# same time.
#
MaxClients 100

#
# These settings set the upper and lower limit for the number of
# spare servers which should be available. If the number of spare servers
# falls below MinSpareServers then new ones will be created. If the number
# of servers exceeds MaxSpareServers then the extras will be killed off.
#
MinSpareServers 5
MaxSpareServers 20

#
# Number of servers to start initially.
#
StartServers 10

#
# MaxRequestsPerChild is the number of connections a thread will handle
# before it is killed. In practise this should be set to 0, which disables
# thread reaping. If you do notice problems with memory leakage, then set
# this to something like 10000
#
MaxRequestsPerChild 0

#
# The following is the authorization controls. If there are any access
# control keywords then the default action is to DENY. Otherwise, the
# default action is ALLOW.
#
# Also the order of the controls are important. The incoming connections
# are tested against the controls based on order.
#
Allow 127.0.0.1
Allow 192.168.1.0/24

#
# The "Via" header is required by the HTTP RFC, but using the real host name
# is a security concern.  If the following directive is enabled, the string
# supplied will be used as the host name in the Via header; otherwise, the
# server's host name will be used.
#
ViaProxyName "tinyproxy"

#
# The location of the filter file.
#
Filter "/etc/tinyproxy/filter"

#
# Filter based on URLs rather than domains.
#
#FilterURLs On

#
# Use POSIX Extended regular expressions rather than basic.
#
#FilterExtended On

#
# Use case sensitive regular expressions.
#                                                                         
#FilterCaseSensitive On     

#
# Change the default policy of the filtering system.  If this directive is
# commented out, or is set to "No" then the default policy is to allow
# everything which is not specifically denied by the filter file.
#
# However, by setting this directive to "Yes" the default policy becomes to
# deny everything which is _not_ specifically allowed by the filter file.
#
#FilterDefaultDeny Yes

#
# If an Anonymous keyword is present, then anonymous proxying is enabled.
# The headers listed are allowed through, while all others are denied. If
# no Anonymous keyword is present, then all header are allowed through.
# You must include quotes around the headers.
#
#Anonymous "Host"
#Anonymous "Authorization"

#
# This is a list of ports allowed by tinyproxy when the CONNECT method
# is used.  To disable the CONNECT method altogether, set the value to 0.
# If no ConnectPort line is found, all ports are allowed (which is not
# very secure.)
#
# The following two ports are used by SSL.
#
ConnectPort 443
ConnectPort 563

--- NEW FILE: tinyproxy.cron ---
#!/bin/sh
# Save daily LOGDEPTH versions of syslogfile 
LOGDEPTH=4
# syslogfile name
LOGFILE=/var/log/tinyproxy.log

if [ -f $LOGFILE ]; then
	savelog -g wheel -m 640 -u root -c $LOGDEPTH $LOGFILE >/dev/null
	/etc/init.d/tinyproxy restart
fi

--- NEW FILE: filter ---
# Define the sites that needs to get blocked
#
#ad.doubleclick.net
#ads.fortunecity.com

--- NEW FILE: tinyproxy-1.8.2.tar.bz2 ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: tinyproxy.init ---
#! /bin/sh
#
# Tinyproxy init.d script
# Ed Boraas 1999
# 

RCDLINKS="2,S20 3,S20 4,S20 5,S20 0,K20 1,K20 6,K20"

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/tinyproxy
NAME=tinyproxy
DESC=tinyproxy
FLAGS=

test -f $DAEMON || exit 0

set -e

case "$1" in
  start)
	echo -n "Starting $DESC: "
	start-stop-daemon --start --quiet -o --exec $DAEMON -- $FLAGS
	echo "$NAME."
	;;
  stop)
	echo -n "Stopping $DESC: "
	start-stop-daemon --stop --quiet -o --exec $DAEMON
	echo "$NAME."
	;;
  reload|force-reload)
	 echo "Reloading $DESC configuration files."
	 start-stop-daemon --stop --signal 1 --quiet -o --exec $DAEMON
	;;
  restart)
	echo -n "Restarting $DESC: "
	start-stop-daemon --stop --quiet -o --exec $DAEMON
	sleep 1
	start-stop-daemon --start --quiet -o --exec $DAEMON -- $FLAGS
	echo "$NAME."
	;;
  *)
	N=/etc/init.d/$NAME
	echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
	exit 1
	;;
esac

exit 0

--- NEW FILE: tinyproxy_nodocs.patch ---
diff -aur tinyproxy-1.8.2.orig/configure.ac tinyproxy-1.8.2/configure.ac
--- tinyproxy-1.8.2.orig/configure.ac	2010-06-02 08:10:08.000000000 +0300
+++ tinyproxy-1.8.2/configure.ac	2010-10-22 00:34:55.430222588 +0300
@@ -282,24 +282,12 @@
 AC_SUBST(LIBS)
 AC_SUBST(ADDITIONAL_OBJECTS)
 
-# Check for asciidoc
-AC_PATH_PROG(A2X, a2x, no)
-AM_CONDITIONAL(HAVE_A2X, test "x$A2X" != "xno")
-if test x"$A2X" = x"no"; then
-  AC_MSG_ERROR([Test for asciidoc failed. See the file 'INSTALL' for help.])
-fi
-
 AC_CONFIG_FILES([
 Makefile
 src/Makefile
 data/Makefile
 data/templates/Makefile
 etc/Makefile
-docs/Makefile
-docs/man5/Makefile
-docs/man5/tinyproxy.conf.txt
-docs/man8/Makefile
-docs/man8/tinyproxy.txt
 m4macros/Makefile
 tests/Makefile
 tests/scripts/Makefile

--- NEW FILE: buildtool.mk ---
# makefile for tinyproxy
include $(MASTERMAKEFILE)

TINYPROXY_DIR:=tinyproxy-1.8.2
TINYPROXY_TARGET_DIR:=$(BT_BUILD_DIR)/tinyproxy
PERLVER=$(shell ls $(BT_STAGING_DIR)/usr/lib/perl5 2>/dev/null)

$(TINYPROXY_DIR)/.source:
	bzcat $(TINYPROXY_SOURCE) | tar -xvf -
	cat $(TINYPROXY_PATCH) | patch -p1 -d $(TINYPROXY_DIR)
	touch $(TINYPROXY_DIR)/.source

source: $(TINYPROXY_DIR)/.source
                        
$(TINYPROXY_DIR)/.configured: $(TINYPROXY_DIR)/.source
	([ -$(PERLVER) = - ] || export PERLLIB=$(BT_STAGING_DIR)/usr/lib/perl5/$(PERLVER); \
	cd $(TINYPROXY_DIR) ; CC=$(TARGET_CC) LD=$(TARGET_LD) ./autogen.sh --prefix=/usr \
	--sysconfdir=/etc/tinyproxy --enable-xtinyproxy \
	--bindir=/usr/sbin --enable-transparent-proxy )
	touch $(TINYPROXY_DIR)/.configured
                                                                 
$(TINYPROXY_DIR)/.build: $(TINYPROXY_DIR)/.configured
	mkdir -p $(TINYPROXY_TARGET_DIR)
	mkdir -p $(TINYPROXY_TARGET_DIR)/etc/tinyproxy
	mkdir -p $(TINYPROXY_TARGET_DIR)/etc/init.d
	mkdir -p $(TINYPROXY_TARGET_DIR)/etc/cron.daily		
	mkdir -p $(TINYPROXY_TARGET_DIR)/usr/sbin	
	make -C $(TINYPROXY_DIR)/src all
	-$(BT_STRIP) -s --remove-section=.note --remove-section=.comment $(TINYPROXY_DIR)/src/tinyproxy	
	cp -a tinyproxy.init $(TINYPROXY_TARGET_DIR)/etc/init.d/tinyproxy
	cp -a tinyproxy.conf $(TINYPROXY_TARGET_DIR)/etc/tinyproxy/tinyproxy.conf
	cp -a filter $(TINYPROXY_TARGET_DIR)/etc/tinyproxy/filter	
	cp -a tinyproxy.cron $(TINYPROXY_TARGET_DIR)/etc/cron.daily/tinyproxy
	cp -a $(TINYPROXY_DIR)/src/tinyproxy $(TINYPROXY_TARGET_DIR)/usr/sbin
	cp -a $(TINYPROXY_TARGET_DIR)/* $(BT_STAGING_DIR)
	touch $(TINYPROXY_DIR)/.build

build: $(TINYPROXY_DIR)/.build
                                                                                         
clean:
	make -C $(TINYPROXY_DIR) clean
	rm -rf $(TINYPROXY_TARGET_DIR)
	rm -rf $(TINYPROXY_DIR)/.build
	rm -rf $(TINYPROXY_DIR)/.configured
                                                                                                                 
srcclean: clean
	rm -rf $(TINYPROXY_DIR) 
	rm -rf $(TINYPROXY_DIR)/.source

--- NEW FILE: buildtool.cfg ---
<File buildtool.mk>
  Server = cvs4-sourceforge
  Revision = HEAD
  Directory = tinyproxy
</File>

<File tinyproxy-1.8.2.tar.bz2>
  Server = cvs4-sourceforge
  Revision = HEAD
  envname = TINYPROXY_SOURCE
  Directory = tinyproxy
</File>

<File tinyproxy_nodocs.patch>
  Server = cvs4-sourceforge
  Revision = HEAD
  envname = TINYPROXY_PATCH
  Directory = tinyproxy
</File>

<File tinyproxy.conf>
 Server = cvs-sourceforge
 Revision = HEAD
 Directory = tinyproxy
</File>

<File tinyproxy.init>
 Server = cvs-sourceforge
 Revision = HEAD
 Directory = tinyproxy
</File>

<File tinyproxy.cron>
 Server = cvs-sourceforge
 Revision = HEAD
 Directory = tinyproxy
</File>

<File filter>
 Server = cvs-sourceforge
 Revision = HEAD
 Directory = tinyproxy
</File>
      
<Package>
	<tproxy>
		Version = 1.8.2
		Revision = 1

		Help <<EOF
		Tinyproxy is a lightweight HTTP proxy
		Homepage: http://tinyproxy.sourceforge.net
		LEAF package by __PACKAGER__, __BUILDDATE__		
		EOF
		
		<Permissions>
			Files = 644
			Directories = 755
		</Permissions>

		<Owner>
			Files = root:root
			Directories = root:root
		</Owner>
		
		<Contents>
			<File>          
				Filename        = etc/tinyproxy/tinyproxy.conf
				Source    	= etc/tinyproxy/tinyproxy.conf
				Description	= tinyproxy configuration file
				Type		= conf
				Type		= local
				Type		= binary
				Permissions = 644
			</File>                 

			<File>          
				Filename        = etc/tinyproxy/filter
				Source    	= etc/tinyproxy/filter
				Description	= tinyproxy black-list file
				Type		= conf
				Type		= local
				Type		= binary
				Permissions = 644
			</File>                 

			<File>
				Filename    = etc/init.d/tinyproxy
				Source      = etc/init.d/tinyproxy
				Description = tinyproxy daemon init file 
				Type        = binary
				Permissions = 755
			</File>

			<File>
				Filename    = etc/cron.daily/tinyproxy
				Source      = etc/cron.daily/tinyproxy
				Type        = binary
				Permissions = 755
			</File>

			<File>          
				Source          = usr/sbin/tinyproxy
				Filename        = usr/sbin/tinyproxy
				Type            = binary
				Permissions = 755
			</File>		
		</Contents>			
	</tproxy>
</Package>


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.