tabs->4spaces. deps-sorting. pax: gcc->$CC

This commit is contained in:
Denis Knauf 2013-03-09 15:32:00 +01:00
parent eb02dc0370
commit ff1e779c20
6 changed files with 39 additions and 38 deletions

View file

@ -10,9 +10,9 @@ SLOT="0"
LICENCES="GPL-2"
PLATFORMS="~amd64 ~x86"
DEPENDENCIES="
group/tinyproxy
user/tinyproxy
app-doc/asciidoc
app-doc/asciidoc
group/tinyproxy
user/tinyproxy
"
# 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.
@ -21,33 +21,33 @@ DEFAULT_SRC_CONFIGURE_PARAMS="--localstatedir=/var"
MYOPTIONS="systemd"
src_prepare() {
c="etc/tinyproxy.conf.in"
b="${c}.bk"
if option systemd
then
sed -e 's,^#PidFile.*,&\
c="etc/tinyproxy.conf.in"
b="${c}.bk"
if option systemd
then
sed -e 's,^#PidFile.*,&\
#\
# systemd wants all pidfiles in /run.\
# Do not change the following line:\
PidFile "/run/tinyproxy/tinyproxy.pid",'
else
cat
fi < "${c}" > "${b}"
sed \
-e 's/^User nobody/User tinyproxy/' \
-e 's/^Group nobody/Group tinyproxy/' \
< "${b}" > "${c}"
else
cat
fi < "${c}" > "${b}"
sed \
-e 's/^User nobody/User tinyproxy/' \
-e 's/^Group nobody/Group tinyproxy/' \
< "${b}" > "${c}"
}
src_install() {
default
keepdir /var/log/tinyproxy
if option systemd
then
install_systemd_files
insinto /usr/${LIBDIR}/tmpfiles.d
hereins tinyproxy.conf <<EOF
default
keepdir /var/log/tinyproxy
if option systemd
then
install_systemd_files
insinto /usr/${LIBDIR}/tmpfiles.d
hereins tinyproxy.conf <<EOF
d /run/tinyproxy 0770 tinyproxy tinyproxy
EOF
fi
fi
}