aboutsummaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorMichael Mason <ms13sp@gmail.com>2009-02-24 03:04:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-02-24 09:03:25 +0000
commit246c02013c1e1840e0e3e333157981c82b7d620a (patch)
tree9abfeea130c9853f2437a0c3881fb27b02fd4e47 /extra
parent4aae1ff1d78b73e8973080dbf7361cafdb7fd095 (diff)
downloadaports-246c02013c1e1840e0e3e333157981c82b7d620a.tar.bz2
aports-246c02013c1e1840e0e3e333157981c82b7d620a.tar.xz
extra/tinyproxy Initial commit of file
Diffstat (limited to 'extra')
-rw-r--r--extra/tinyproxy/APKBUILD34
-rw-r--r--extra/tinyproxy/tinyproxy.confd9
-rw-r--r--extra/tinyproxy/tinyproxy.initd39
-rw-r--r--extra/tinyproxy/tinyproxy.install30
4 files changed, 112 insertions, 0 deletions
diff --git a/extra/tinyproxy/APKBUILD b/extra/tinyproxy/APKBUILD
new file mode 100644
index 0000000000..2bca721242
--- /dev/null
+++ b/extra/tinyproxy/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: Michael Mason <ms13sp@gmail.com>
+pkgname=tinyproxy
+pkgver=1.6.3
+pkgrel=0
+pkgdesc="Lightweight HTTP proxy"
+url="https://www.banu.com/tinyproxy/"
+license="GPL"
+depends="uclibc"
+makedepends=""
+install="tinyproxy.install"
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ tinyproxy.initd
+ tinyproxy.confd
+ $install
+ "
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+ make DESTDIR="$pkgdir" install
+
+}
+
+md5sums="bd14d029b12621bcfd7ee71b2f4893da tinyproxy-1.6.3.tar.gz
+d0c708403940c51e52eb27ea1610a27d tinyproxy.initd
+431dfe7403323e247a88b97beade5d78 tinyproxy.confd
+b730b3d200f52027868378ad5ee0226b tinyproxy.install"
diff --git a/extra/tinyproxy/tinyproxy.confd b/extra/tinyproxy/tinyproxy.confd
new file mode 100644
index 0000000000..0abb80c6e8
--- /dev/null
+++ b/extra/tinyproxy/tinyproxy.confd
@@ -0,0 +1,9 @@
+# Sample conf.d file for alpine linux
+
+#
+# Specify daemon $OPTS here.
+#
+
+OPTS=""
+USER="nobody"
+GROUP="nobody"
diff --git a/extra/tinyproxy/tinyproxy.initd b/extra/tinyproxy/tinyproxy.initd
new file mode 100644
index 0000000000..980c53e72d
--- /dev/null
+++ b/extra/tinyproxy/tinyproxy.initd
@@ -0,0 +1,39 @@
+#!/sbin/runscript
+
+# Sample init.d file for alpine linux.
+
+NAME=
+DAEMON=/usr/sbin/$NAME
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ${NAME}"
+ start-stop-daemon --start --quiet --background \
+ --make-pidfile --pidfile /var/run/${NAME}.pid \
+ --chuid ${USER}:${GROUP} \
+ --exec ${DAEMON} -- ${OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${NAME}"
+ start-stop-daemon --stop --quiet \
+ --exec ${DAEMON} \
+ --pidfile /var/run/${NAME}.pid \
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading ${NAME}"
+ if ! service_started "${NAME}" ; then
+ eend 1 "${NAME} is not started"
+ return 1
+ fi
+ start-stop-daemon --stop --oknodo --signal HUP \
+ --exec ${DAEMON} --pidfile /var/run/${NAME}.pid
+ eend $?
+}
+
diff --git a/extra/tinyproxy/tinyproxy.install b/extra/tinyproxy/tinyproxy.install
new file mode 100644
index 0000000000..a05d28b400
--- /dev/null
+++ b/extra/tinyproxy/tinyproxy.install
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+case "$1" in
+ pre_install)
+ # add something which happends before install
+ # $2 contains package version
+ ;;
+ post_install)
+ # add something which happends after install
+ # $2 contains package version
+ ;;
+ pre_upgrade)
+ # add something which happends before update
+ # $2 contains new package version
+ # $3 contains old package version
+ ;;
+ post_upgrade)
+ # add something which happends after update
+ # $2 contains new package version
+ # $3 contains old package version
+ ;;
+ pre_deinstall)
+ # add something which happends before delete
+ # $2 contains package version
+ ;;
+ post_deinstall)
+ # add something which happends after delete
+ # $2 contains package version
+ ;;
+esac