From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx <wbx@hydrogenium.(none)> Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/tinyproxy/Config.in | 30 +++++++++++++++++++++ package/tinyproxy/Makefile | 44 +++++++++++++++++++++++++++++++ package/tinyproxy/files/tinyproxy.init | 26 ++++++++++++++++++ package/tinyproxy/ipkg/tinyproxy.control | 5 ++++ package/tinyproxy/ipkg/tinyproxy.postinst | 3 +++ 5 files changed, 108 insertions(+) create mode 100644 package/tinyproxy/Config.in create mode 100644 package/tinyproxy/Makefile create mode 100644 package/tinyproxy/files/tinyproxy.init create mode 100644 package/tinyproxy/ipkg/tinyproxy.control create mode 100644 package/tinyproxy/ipkg/tinyproxy.postinst (limited to 'package/tinyproxy') diff --git a/package/tinyproxy/Config.in b/package/tinyproxy/Config.in new file mode 100644 index 000000000..c7182965b --- /dev/null +++ b/package/tinyproxy/Config.in @@ -0,0 +1,30 @@ +#menu "tinyproxy......................... Tinyproxy is a lightweight HTTP and HTTPS proxy." + +config ADK_PACKAGE_TINYPROXY + prompt "tinyproxy......................... Tinyproxy is a lightweight HTTP and HTTPS proxy" + tristate + default n + help + Tinyproxy is a lightweight HTTP and HTTPS proxy. + + http://tinyproxy.sourceforge.net + +config ADK_COMPILE_TINYPROXY_WITH_TRANSPARENT_PROXY + prompt " Enable transparent proxying" + bool + default y + depends ADK_PACKAGE_TINYPROXY + +config ADK_COMPILE_TINYPROXY_WITH_FILTER + prompt " Enable filtering support" + bool + default y + depends ADK_PACKAGE_TINYPROXY + +config ADK_COMPILE_TINYPROXY_WITH_UPSTREAM + prompt " Enable upstream support" + bool + default y + depends ADK_PACKAGE_TINYPROXY + +#endmenu diff --git a/package/tinyproxy/Makefile b/package/tinyproxy/Makefile new file mode 100644 index 000000000..cab1655a5 --- /dev/null +++ b/package/tinyproxy/Makefile @@ -0,0 +1,44 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= tinyproxy +PKG_VERSION:= 1.6.4 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 3157b9159a8d005f4248cf4d4d6c65e2 +MASTER_SITES:= https://www.banu.com/pub/tinyproxy/1.6/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,TINYPROXY,tinyproxy,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= gnu +BUILD_STYLE:= auto +INSTALL_STYLE:= auto +CONFIGURE_ENV+= ac_cv_header_libintl_h=no + +ifeq (${ADK_COMPILE_TINYPROXY_WITH_TRANSPARENT_PROXY},y) +CONFIGURE_ARGS+= --enable-transparent-proxy +endif +ifneq (${ADK_COMPILE_TINYPROXY_WITH_UPSTREAM},y) +CONFIGURE_ARGS+= --disable-upstream +endif +ifneq (${ADK_COMPILE_TINYPROXY_WITH_FILTER},y) +CONFIGURE_ARGS+= --disable-filter +endif + +post-install: + ${INSTALL_DIR} ${IDIR_TINYPROXY}/usr/sbin \ + ${IDIR_TINYPROXY}/etc/tinyproxy \ + ${IDIR_TINYPROXY}/etc/init.d \ + ${IDIR_TINYPROXY}/usr/share/tinyproxy + ${INSTALL_BIN} ${WRKINST}/usr/sbin/tinyproxy ${IDIR_TINYPROXY}/usr/sbin/ + ${INSTALL_DATA} ${WRKINST}/usr/share/tinyproxy/{debug,default,stats}.html ${IDIR_TINYPROXY}/usr/share/tinyproxy/ + ${INSTALL_DATA} ${WRKINST}/usr/share/tinyproxy/HTML_VARIABLES ${IDIR_TINYPROXY}/usr/share/tinyproxy/ + ${INSTALL_DATA} ${WRKINST}/etc/tinyproxy/tinyproxy.conf ${IDIR_TINYPROXY}/etc/tinyproxy/ + ${INSTALL_BIN} files/${PKG_NAME}.init ${IDIR_TINYPROXY}/etc/init.d/${PKG_NAME} + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/tinyproxy/files/tinyproxy.init b/package/tinyproxy/files/tinyproxy.init new file mode 100644 index 000000000..e1b7f6f7c --- /dev/null +++ b/package/tinyproxy/files/tinyproxy.init @@ -0,0 +1,26 @@ +#!/bin/sh +#FWINIT 70 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${tinyproxy:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + tinyproxy + ;; +stop) + killall tinyproxy + ;; +restart) + sh $0 stop + sh $0 start + ;; + +*) + echo "usage: $0 {start | stop | restart}" + exit 1 +esac +exit $? diff --git a/package/tinyproxy/ipkg/tinyproxy.control b/package/tinyproxy/ipkg/tinyproxy.control new file mode 100644 index 000000000..821b927e4 --- /dev/null +++ b/package/tinyproxy/ipkg/tinyproxy.control @@ -0,0 +1,5 @@ +Package: tinyproxy +Version: 1.6.3 +Section: net +Description: Tinyproxy is a lightweight HTTP and HTTPS proxy. +Priority: optional diff --git a/package/tinyproxy/ipkg/tinyproxy.postinst b/package/tinyproxy/ipkg/tinyproxy.postinst new file mode 100644 index 000000000..4965f625d --- /dev/null +++ b/package/tinyproxy/ipkg/tinyproxy.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf tinyproxy tinyproxy NO -- cgit v1.2.3