|
From: <abe...@us...> - 2012-07-14 05:49:41
|
Revision: 5610
http://astlinux.svn.sourceforge.net/astlinux/?rev=5610&view=rev
Author: abelbeck
Date: 2012-07-14 05:49:34 +0000 (Sat, 14 Jul 2012)
Log Message:
-----------
tinyproxy, initial checkin of new package, not hooked-up with menuconfig yet, Thanks to Michael
Added Paths:
-----------
branches/1.0/package/tinyproxy/
branches/1.0/package/tinyproxy/Config.in
branches/1.0/package/tinyproxy/tinyproxy.init
branches/1.0/package/tinyproxy/tinyproxy.mk
Added: branches/1.0/package/tinyproxy/Config.in
===================================================================
--- branches/1.0/package/tinyproxy/Config.in (rev 0)
+++ branches/1.0/package/tinyproxy/Config.in 2012-07-14 05:49:34 UTC (rev 5610)
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_TINYPROXY
+ bool "tinyproxy"
+ default n
+ help
+ Tinyproxy is a light-weight HTTP/HTTPS proxy daemon.
+
+ https://banu.com/tinyproxy/
+
Added: branches/1.0/package/tinyproxy/tinyproxy.init
===================================================================
--- branches/1.0/package/tinyproxy/tinyproxy.init (rev 0)
+++ branches/1.0/package/tinyproxy/tinyproxy.init 2012-07-14 05:49:34 UTC (rev 5610)
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+. /etc/rc.conf
+
+init () {
+
+ if [ -f /mnt/kd/tinyproxy.conf ]; then
+ ln -sf /mnt/kd/tinyproxy.conf /tmp/etc/tinyproxy.conf
+ fi
+}
+
+start () {
+
+ if [ "$TINYPROXY_START" = "yes" ] && [ -f /mnt/kd/tinyproxy.conf ]; then
+ echo "Starting tinyproxy..."
+
+ /usr/sbin/tinyproxy
+ fi
+}
+
+stop () {
+
+ if [ -f /var/run/tinyproxy.pid ]; then
+ echo "Stopping tinyproxy..."
+
+ kill $(cat /var/run/tinyproxy.pid)
+ fi
+}
+
+if [ ! -x /usr/sbin/tinyproxy ]; then
+ exit
+fi
+
+case $1 in
+
+start)
+ start
+ ;;
+
+stop)
+ stop
+ ;;
+
+init)
+ init
+ start
+ ;;
+
+restart)
+ stop
+ sleep 2
+ start
+ ;;
+
+*)
+ echo "Usage: start|stop|restart"
+ ;;
+
+esac
+
Added: branches/1.0/package/tinyproxy/tinyproxy.mk
===================================================================
--- branches/1.0/package/tinyproxy/tinyproxy.mk (rev 0)
+++ branches/1.0/package/tinyproxy/tinyproxy.mk 2012-07-14 05:49:34 UTC (rev 5610)
@@ -0,0 +1,47 @@
+#############################################################
+#
+# tinyproxy
+#
+#############################################################
+TINYPROXY_VERSION:=1.8.3
+TINYPROXY_SITE:=http://www.banu.com/pub/tinyproxy/1.8
+TINYPROXY_SOURCE:=tinyproxy-$(TINYPROXY_VERSION).tar.bz2
+
+# Workaround for missing a2x on host, disables docs
+TINYPROXY_CONF_ENV = \
+ ac_cv_path_A2X=/bin/true
+
+TINYPROXY_CONF_OPT = \
+ --enable-filter \
+ --enable-reverse \
+ --enable-transparent \
+ --disable-regexcheck
+
+define TINYPROXY_INSTALL_TARGET_CMDS
+ $(INSTALL) -D $(@D)/src/tinyproxy $(TARGET_DIR)/usr/sbin/
+ -mkdir $(TARGET_DIR)/usr/share/tinyproxy
+ cp -a $(@D)/data/templates/*.html $(TARGET_DIR)/usr/share/tinyproxy/
+ $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D)/data/templates install
+ $(INSTALL) -D -m 0644 $(@D)/etc/tinyproxy.conf $(TARGET_DIR)/stat/etc/
+ $(INSTALL) -D -m 0755 package/tinyproxy/tinyproxy.init $(TARGET_DIR)/etc/init.d/tinyproxy
+ ln -sf /tmp/etc/tinyproxy.conf $(TARGET_DIR)/etc/tinyproxy.conf
+ ln -sf ../../init.d/tinyproxy $(TARGET_DIR)/etc/runlevels/default/S33tinyproxy
+ ln -sf ../../init.d/tinyproxy $(TARGET_DIR)/etc/runlevels/default/K25tinyproxy
+endef
+
+define TINYPROXY_UNINSTALL_TARGET_CMDS
+ rm -f $(TARGET_DIR)/usr/sbin/tinyproxy
+ rm -rf $(TARGET_DIR)/usr/share/tinyproxy
+ rm -f $(TARGET_DIR)/stat/etc/tinyproxy.conf
+ rm -f $(TARGET_DIR)/etc/init.d/tinyproxy
+ rm -f $(TARGET_DIR)/etc/tinyproxy.conf
+ rm -f $(TARGET_DIR)/etc/runlevels/default/S33tinyproxy
+ rm -f $(TARGET_DIR)/etc/runlevels/default/K25tinyproxy
+endef
+
+define TINYPROXY_UNINSTALL_STAGING_CMDS
+ @echo "Skip Staging Uninstall..."
+endef
+
+
+$(eval $(call AUTOTARGETS,package,tinyproxy))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|