diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-03-12 14:28:01 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-03-12 14:28:01 +0000 |
commit | f750a4528fc7ee38d8f0075f4363f3540f0a928a (patch) | |
tree | 5056662cd1bf7a00151dcbe4dd3131716b6a7c12 | |
parent | 40d6a47dc660237fc8569ab892e442ad48fde4d5 (diff) | |
download | aports-f750a4528fc7ee38d8f0075f4363f3540f0a928a.tar.bz2 aports-f750a4528fc7ee38d8f0075f4363f3540f0a928a.tar.xz |
testing/sniproxy: include leftout files from previous commit
-rw-r--r-- | testing/sniproxy/APKBUILD | 2 | ||||
-rw-r--r-- | testing/sniproxy/sniproxy.initd | 19 | ||||
-rw-r--r-- | testing/sniproxy/sniproxy.pre-install | 4 |
3 files changed, 24 insertions, 1 deletions
diff --git a/testing/sniproxy/APKBUILD b/testing/sniproxy/APKBUILD index b73a044f22..11db51f722 100644 --- a/testing/sniproxy/APKBUILD +++ b/testing/sniproxy/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: pkgname=sniproxy pkgver=0.3.6 -pkgrel=1 +pkgrel=2 pkgdesc="Proxies incoming HTTP and TLS connections based on the hostname contained in the initial request of the TCP session." url="https://github.com/dlundquist/sniproxy" diff --git a/testing/sniproxy/sniproxy.initd b/testing/sniproxy/sniproxy.initd new file mode 100644 index 0000000000..daa326b821 --- /dev/null +++ b/testing/sniproxy/sniproxy.initd @@ -0,0 +1,19 @@ +#!/sbin/runscript + +pidfile="/var/run/${SVCNAME}.pid" +command="/usr/sbin/${SVCNAME}" +: ${conf_file:="/etc/sniproxy/sniproxy.conf"} + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting $SVCNAME" + start-stop-daemon --start \ + --quiet --pidfile $pidfile --exec $command \ + -- -c "$conf_file" "$@" + eend +} + diff --git a/testing/sniproxy/sniproxy.pre-install b/testing/sniproxy/sniproxy.pre-install new file mode 100644 index 0000000000..596dad6fb9 --- /dev/null +++ b/testing/sniproxy/sniproxy.pre-install @@ -0,0 +1,4 @@ +#!/bin/sh +addgroup -S sniproxy 2>/dev/null +adduser -h /var/log/sniproxy -s /bin/false -S -D sniproxy 2>/dev/null +exit 0 |