From f17e94ec10393735d6e37d2c94ff7d0537857aa2 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 5 Jul 2016 08:13:12 +0200 Subject: [PATCH 1/2] New package: tinyproxy-1.8.4 --- srcpkgs/tinyproxy/files/tinyproxy/run | 5 +++++ srcpkgs/tinyproxy/template | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 srcpkgs/tinyproxy/files/tinyproxy/run create mode 100644 srcpkgs/tinyproxy/template diff --git a/srcpkgs/tinyproxy/files/tinyproxy/run b/srcpkgs/tinyproxy/files/tinyproxy/run new file mode 100755 index 00000000000..a1fbd1c8004 --- /dev/null +++ b/srcpkgs/tinyproxy/files/tinyproxy/run @@ -0,0 +1,5 @@ +#!/bin/sh +[ -r conf ] && . ./conf +install -d -m 0755 -o _tinyproxy -g _tinyproxy \ + /var/log/tinyproxy /var/run/tinyproxy +exec chpst -1 tinyproxy ${OPTS:=-d -c /etc/tinyproxy.conf} diff --git a/srcpkgs/tinyproxy/template b/srcpkgs/tinyproxy/template new file mode 100644 index 00000000000..0a9127c0f48 --- /dev/null +++ b/srcpkgs/tinyproxy/template @@ -0,0 +1,21 @@ +# Template file for 'tinyproxy' +pkgname=tinyproxy +version=1.8.4 +revision=1 +build_style=gnu-configure +hostmakedepends="asciidoc" +short_desc="Small, efficient HTTP/SSL proxy daemon" +maintainer="Enno Boland " +license="GPL-2" +homepage="https://tinyproxy.github.io/" +distfiles="https://github.com/tinyproxy/$pkgname/releases/download/$version/$pkgname-$version.tar.xz" +checksum=a41f4ddf0243fc517469cf444c8400e1d2edc909794acda7839f1d644e8a5000 +configure_args="--enable-transparent --localstatedir=/var" +system_accounts="_tinyproxy" + +post_install() { + sed -i $DESTDIR/etc/tinyproxy.conf \ + -e 's/^User .*/User _tinyproxy/' \ + -e 's/^Group .*/Group _tinyproxy/' + vsv tinyproxy +} From 31711ae2c103b898bae6221614cf61efea01ccf3 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 5 Jul 2016 10:01:14 +0200 Subject: [PATCH 2/2] tinyproxy: fix cross compilation --- srcpkgs/tinyproxy/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/tinyproxy/template b/srcpkgs/tinyproxy/template index 0a9127c0f48..cda50fe920f 100644 --- a/srcpkgs/tinyproxy/template +++ b/srcpkgs/tinyproxy/template @@ -10,7 +10,7 @@ license="GPL-2" homepage="https://tinyproxy.github.io/" distfiles="https://github.com/tinyproxy/$pkgname/releases/download/$version/$pkgname-$version.tar.xz" checksum=a41f4ddf0243fc517469cf444c8400e1d2edc909794acda7839f1d644e8a5000 -configure_args="--enable-transparent --localstatedir=/var" +configure_args="--enable-transparent --localstatedir=/var tinyproxy_cv_regex_broken=no" system_accounts="_tinyproxy" post_install() {