wok-4.x rev 6982

Added tinyproxy. A light-weight HTTP proxy daemon for POSIX operating systems.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Oct 29 01:21:54 2010 +0000 (2010-10-29)
parents 1fc6a2ed9274
children 086402ab7a61
files tinyproxy/receipt tinyproxy/stuff/no-docs-and-tests.diff tinyproxy/stuff/tinyproxy
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tinyproxy/receipt	Fri Oct 29 01:21:54 2010 +0000
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="tinyproxy"
     1.7 +VERSION="1.8.2"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="A light-weight HTTP proxy daemon for POSIX operating systems."
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.12 +WEB_SITE="https://banu.com/tinyproxy/"
    1.13 +WGET="https://banu.com/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
    1.14 +
    1.15 +# Rules to configure and make the package.
    1.16 +compile_rules()
    1.17 +{
    1.18 +	# Download using real wget since the link is https and we need 
    1.19 +	# --no-check-certificate that works
    1.20 +	if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
    1.21 +		tar xjf $SOURCES_REPOSITORY/$TARBALL
    1.22 +	else
    1.23 +		[ -L /usr/bin/wget ] && tazpkg get-install wget --forced
    1.24 +		wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
    1.25 +		tar xjf $SOURCES_REPOSITORY/$TARBALL
    1.26 +	fi
    1.27 +	cd $src
    1.28 +	patch -Np1 -i ../stuff/no-docs-and-tests.diff
    1.29 +	./configure \
    1.30 +		--prefix=/usr \
    1.31 +		--infodir=/usr/share/info \
    1.32 +		--mandir=/usr/share/man \
    1.33 +		--sysconfdir=/etc/tinyproxy \
    1.34 +		--localstatedir=/var \
    1.35 +		$CONFIGURE_ARGS &&
    1.36 +	make && make DESTDIR=$PWD/_pkg install
    1.37 +	# Provide sane defaults
    1.38 +  	sed -i '/^#Listen/a\Listen 127.0.0.1' "$PWD/_pkg/etc/tinyproxy/tinyproxy.conf"
    1.39 +
    1.40 +}
    1.41 +
    1.42 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.43 +genpkg_rules()
    1.44 +{
    1.45 +	mkdir -p $fs/usr/share $fs/etc/init.d
    1.46 +	cp -a $_pkg/usr/sbin $fs/usr
    1.47 +	cp -a $_pkg/usr/share/tinyproxy $fs/usr/share
    1.48 +	cp -a $_pkg/etc/tinyproxy $fs/etc
    1.49 +	cp -a stuff/tinyproxy $fs/etc/init.d
    1.50 +}
    1.51 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/tinyproxy/stuff/no-docs-and-tests.diff	Fri Oct 29 01:21:54 2010 +0000
     2.3 @@ -0,0 +1,100 @@
     2.4 +diff --git a/Makefile.am b/Makefile.am
     2.5 +index 7de41f2..9d1f99b 100644
     2.6 +--- a/Makefile.am
     2.7 ++++ b/Makefile.am
     2.8 +@@ -2,9 +2,7 @@ SUBDIRS = \
     2.9 + 	src \
    2.10 + 	data \
    2.11 + 	etc \
    2.12 +-	docs \
    2.13 + 	m4macros \
    2.14 +-	tests
    2.15 + 
    2.16 + # tools want this on a single line
    2.17 + ACLOCAL_AMFLAGS = -I m4macros
    2.18 +diff --git a/Makefile.in b/Makefile.in
    2.19 +index d0ec918..5be49d4 100644
    2.20 +--- a/Makefile.in
    2.21 ++++ b/Makefile.in
    2.22 +@@ -221,9 +221,7 @@ SUBDIRS = \
    2.23 + 	src \
    2.24 + 	data \
    2.25 + 	etc \
    2.26 +-	docs \
    2.27 + 	m4macros \
    2.28 +-	tests
    2.29 + 
    2.30 + 
    2.31 + # tools want this on a single line
    2.32 +diff --git a/configure b/configure
    2.33 +index 01d6883..facfadd 100755
    2.34 +--- a/configure
    2.35 ++++ b/configure
    2.36 +@@ -6811,67 +6811,10 @@
    2.37 + fi
    2.38 + 
    2.39 + 
    2.40 +-
    2.41 +-
    2.42 +-
    2.43 +-
    2.44 +-
    2.45 +-# Check for asciidoc
    2.46 +-# Extract the first word of "a2x", so it can be a program name with args.
    2.47 +-set dummy a2x; ac_word=$2
    2.48 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2.49 +-$as_echo_n "checking for $ac_word... " >&6; }
    2.50 +-if test "${ac_cv_path_A2X+set}" = set; then :
    2.51 +-  $as_echo_n "(cached) " >&6
    2.52 +-else
    2.53 +-  case $A2X in
    2.54 +-  [\\/]* | ?:[\\/]*)
    2.55 +-  ac_cv_path_A2X="$A2X" # Let the user override the test with a path.
    2.56 +-  ;;
    2.57 +-  *)
    2.58 +-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2.59 +-for as_dir in $PATH
    2.60 +-do
    2.61 +-  IFS=$as_save_IFS
    2.62 +-  test -z "$as_dir" && as_dir=.
    2.63 +-    for ac_exec_ext in '' $ac_executable_extensions; do
    2.64 +-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    2.65 +-    ac_cv_path_A2X="$as_dir/$ac_word$ac_exec_ext"
    2.66 +-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2.67 +-    break 2
    2.68 +-  fi
    2.69 +-done
    2.70 +-  done
    2.71 +-IFS=$as_save_IFS
    2.72 +-
    2.73 +-  test -z "$ac_cv_path_A2X" && ac_cv_path_A2X="no"
    2.74 +-  ;;
    2.75 +-esac
    2.76 +-fi
    2.77 +-A2X=$ac_cv_path_A2X
    2.78 +-if test -n "$A2X"; then
    2.79 +-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5
    2.80 +-$as_echo "$A2X" >&6; }
    2.81 +-else
    2.82 +-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2.83 +-$as_echo "no" >&6; }
    2.84 +-fi
    2.85 +-
    2.86 +-
    2.87 +- if test "x$A2X" != "xno"; then
    2.88 +-  HAVE_A2X_TRUE=
    2.89 +-  HAVE_A2X_FALSE='#'
    2.90 +-else
    2.91 +-  HAVE_A2X_TRUE='#'
    2.92 +-  HAVE_A2X_FALSE=
    2.93 +-fi
    2.94 +-
    2.95 +-if test x"$A2X" = x"no"; then
    2.96 +-  as_fn_error "Test for asciidoc failed. See the file 'INSTALL' for help." "$LINENO" 5
    2.97 +-fi
    2.98 +-
    2.99 ++  HAVE_A2X_TRUE='#'
   2.100 ++  HAVE_A2X_FALSE=
   2.101 + ac_config_files="$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"
   2.102 + 
   2.103 + 
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/tinyproxy/stuff/tinyproxy	Fri Oct 29 01:21:54 2010 +0000
     3.3 @@ -0,0 +1,52 @@
     3.4 +#!/bin/sh
     3.5 +# /etc/init.d/tinyproxy: Start, stop and restart tinyproxy deamon on SliTaz
     3.6 +
     3.7 +. /etc/init.d/rc.functions
     3.8 +
     3.9 +NAME=Tinyproxy
    3.10 +DESC="Tiny Proxy"
    3.11 +DAEMON=/usr/sbin/tinyproxy
    3.12 +OPTION="-c"
    3.13 +PIDFILE=/var/run/tinyproxy.pid
    3.14 +
    3.15 +case "$1" in
    3.16 +  start)
    3.17 +    if active_pidfile $PIDFILE tinyproxy ; then
    3.18 +      echo "$NAME already running."
    3.19 +      exit 1
    3.20 +    fi
    3.21 +    echo -n "Starting $DESC: $NAME... "
    3.22 +    $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf
    3.23 +    status
    3.24 +    ;;
    3.25 +  stop)
    3.26 +    if ! active_pidfile $PIDFILE tinyproxy ; then
    3.27 +      echo "$NAME is not running."
    3.28 +      exit 1
    3.29 +    fi
    3.30 +    echo -n "Stopping $DESC: $NAME... "
    3.31 +    killall tinyproxy
    3.32 +    rm $PIDFILE
    3.33 +    status
    3.34 +    ;;
    3.35 +  restart)
    3.36 +    if ! active_pidfile $PIDFILE tinyproxy ; then
    3.37 +      echo "$NAME is not running."
    3.38 +      exit 1
    3.39 +    fi
    3.40 +    echo -n "Restarting $DESC: $NAME... "
    3.41 +    killall tinyproxy
    3.42 +    rm $PIDFILE
    3.43 +    sleep 2
    3.44 +    $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf
    3.45 +    status
    3.46 +    ;;
    3.47 +  *)
    3.48 +    echo ""
    3.49 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
    3.50 +    echo ""
    3.51 +    exit 1
    3.52 +    ;;
    3.53 +esac
    3.54 +
    3.55 +exit 0
    3.56 \ No newline at end of file