# HG changeset patch # User Christopher Rogers # Date 1288315314 0 # Node ID 156441c8051a72f73736763a2fab4a37a543cc7f # Parent 1fc6a2ed9274620bedba930c18b253c21ec0c0c5 Added tinyproxy. A light-weight HTTP proxy daemon for POSIX operating systems. diff -r 1fc6a2ed9274 -r 156441c8051a tinyproxy/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tinyproxy/receipt Fri Oct 29 01:21:54 2010 +0000 @@ -0,0 +1,48 @@ +# SliTaz package receipt. + +PACKAGE="tinyproxy" +VERSION="1.8.2" +CATEGORY="network" +SHORT_DESC="A light-weight HTTP proxy daemon for POSIX operating systems." +MAINTAINER="slaxemulator@gmail.com" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="https://banu.com/tinyproxy/" +WGET="https://banu.com/pub/$PACKAGE/${VERSION%.*}/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + # Download using real wget since the link is https and we need + # --no-check-certificate that works + if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then + tar xjf $SOURCES_REPOSITORY/$TARBALL + else + [ -L /usr/bin/wget ] && tazpkg get-install wget --forced + wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET" + tar xjf $SOURCES_REPOSITORY/$TARBALL + fi + cd $src + patch -Np1 -i ../stuff/no-docs-and-tests.diff + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --sysconfdir=/etc/tinyproxy \ + --localstatedir=/var \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install + # Provide sane defaults + sed -i '/^#Listen/a\Listen 127.0.0.1' "$PWD/_pkg/etc/tinyproxy/tinyproxy.conf" + +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share $fs/etc/init.d + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/share/tinyproxy $fs/usr/share + cp -a $_pkg/etc/tinyproxy $fs/etc + cp -a stuff/tinyproxy $fs/etc/init.d +} + diff -r 1fc6a2ed9274 -r 156441c8051a tinyproxy/stuff/no-docs-and-tests.diff --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tinyproxy/stuff/no-docs-and-tests.diff Fri Oct 29 01:21:54 2010 +0000 @@ -0,0 +1,100 @@ +diff --git a/Makefile.am b/Makefile.am +index 7de41f2..9d1f99b 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -2,9 +2,7 @@ SUBDIRS = \ + src \ + data \ + etc \ +- docs \ + m4macros \ +- tests + + # tools want this on a single line + ACLOCAL_AMFLAGS = -I m4macros +diff --git a/Makefile.in b/Makefile.in +index d0ec918..5be49d4 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -221,9 +221,7 @@ SUBDIRS = \ + src \ + data \ + etc \ +- docs \ + m4macros \ +- tests + + + # tools want this on a single line +diff --git a/configure b/configure +index 01d6883..facfadd 100755 +--- a/configure ++++ b/configure +@@ -6811,67 +6811,10 @@ + fi + + +- +- +- +- +- +-# Check for asciidoc +-# Extract the first word of "a2x", so it can be a program name with args. +-set dummy a2x; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if test "${ac_cv_path_A2X+set}" = set; then : +- $as_echo_n "(cached) " >&6 +-else +- case $A2X in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_A2X="$A2X" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then +- ac_cv_path_A2X="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_A2X" && ac_cv_path_A2X="no" +- ;; +-esac +-fi +-A2X=$ac_cv_path_A2X +-if test -n "$A2X"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5 +-$as_echo "$A2X" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- if test "x$A2X" != "xno"; then +- HAVE_A2X_TRUE= +- HAVE_A2X_FALSE='#' +-else +- HAVE_A2X_TRUE='#' +- HAVE_A2X_FALSE= +-fi +- +-if test x"$A2X" = x"no"; then +- as_fn_error "Test for asciidoc failed. See the file 'INSTALL' for help." "$LINENO" 5 +-fi +- ++ HAVE_A2X_TRUE='#' ++ HAVE_A2X_FALSE= + 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" + + diff -r 1fc6a2ed9274 -r 156441c8051a tinyproxy/stuff/tinyproxy --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tinyproxy/stuff/tinyproxy Fri Oct 29 01:21:54 2010 +0000 @@ -0,0 +1,52 @@ +#!/bin/sh +# /etc/init.d/tinyproxy: Start, stop and restart tinyproxy deamon on SliTaz + +. /etc/init.d/rc.functions + +NAME=Tinyproxy +DESC="Tiny Proxy" +DAEMON=/usr/sbin/tinyproxy +OPTION="-c" +PIDFILE=/var/run/tinyproxy.pid + +case "$1" in + start) + if active_pidfile $PIDFILE tinyproxy ; then + echo "$NAME already running." + exit 1 + fi + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf + status + ;; + stop) + if ! active_pidfile $PIDFILE tinyproxy ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + killall tinyproxy + rm $PIDFILE + status + ;; + restart) + if ! active_pidfile $PIDFILE tinyproxy ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + killall tinyproxy + rm $PIDFILE + sleep 2 + $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf + status + ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" + echo "" + exit 1 + ;; +esac + +exit 0 \ No newline at end of file