2012-09-28 17:53:03 +02:00
|
|
|
# Copyright (c) 2010 Jan Meier
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
require systemd-service
|
|
|
|
|
|
|
|
SUMMARY="Tinyproxy is a light-weight HTTP proxy daemon for POSIX operating systems."
|
|
|
|
HOMEPAGE="https://www.banu.com/tinyproxy/"
|
|
|
|
DOWNLOADS="https://www.banu.com/pub/${PN}/$(ever range 1-2)/${PNV}.tar.bz2"
|
|
|
|
SLOT="0"
|
|
|
|
LICENCES="GPL-2"
|
2013-02-20 19:22:33 +01:00
|
|
|
PLATFORMS="~amd64 ~x86"
|
2012-09-28 17:53:03 +02:00
|
|
|
DEPENDENCIES="
|
2013-03-09 15:32:00 +01:00
|
|
|
app-doc/asciidoc
|
|
|
|
group/tinyproxy
|
|
|
|
user/tinyproxy
|
2012-09-28 17:53:03 +02:00
|
|
|
"
|
|
|
|
# PID-file will be created in /var/run, but /var/run is a link to /run.
|
|
|
|
# in future, tinyproxy needs an other config, that it uses /run.
|
|
|
|
# localstatedir can't be changed to / because /var/log.
|
|
|
|
DEFAULT_SRC_CONFIGURE_PARAMS="--localstatedir=/var"
|
|
|
|
MYOPTIONS="systemd"
|
|
|
|
|
|
|
|
src_prepare() {
|
2013-03-09 15:48:26 +01:00
|
|
|
option systemd && expatch "${FILES}/systemd.patch"
|
2013-03-09 15:54:48 +01:00
|
|
|
expatch "${FILES}/user.patch"
|
2012-09-28 17:53:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2013-03-09 15:32:00 +01:00
|
|
|
default
|
|
|
|
keepdir /var/log/tinyproxy
|
|
|
|
if option systemd
|
|
|
|
then
|
|
|
|
install_systemd_files
|
2015-10-01 23:20:21 +02:00
|
|
|
insinto /usr/$(exhost --target)/lib/tmpfiles.d
|
2013-03-09 15:32:00 +01:00
|
|
|
hereins tinyproxy.conf <<EOF
|
2012-09-28 17:53:03 +02:00
|
|
|
d /run/tinyproxy 0770 tinyproxy tinyproxy
|
|
|
|
EOF
|
2013-03-09 15:32:00 +01:00
|
|
|
fi
|
2012-09-28 17:53:03 +02:00
|
|
|
}
|
2013-03-09 15:51:54 +01:00
|
|
|
|