Use appropriate installation path variables
This commit is contained in:
parent
dd49e975a0
commit
942d0c6b03
@ -173,6 +173,9 @@ fi
|
|||||||
dnl
|
dnl
|
||||||
dnl Substitute the variables into the various Makefiles
|
dnl Substitute the variables into the various Makefiles
|
||||||
dnl
|
dnl
|
||||||
|
# runstatedir isn't available for Autoconf < 2.70
|
||||||
|
AS_IF([test -z "${runstatedir}"], [runstatedir='${localstatedir}/run'])
|
||||||
|
AC_SUBST([runstatedir])
|
||||||
AC_SUBST(CFLAGS)
|
AC_SUBST(CFLAGS)
|
||||||
AC_SUBST(LDFLAGS)
|
AC_SUBST(LDFLAGS)
|
||||||
AC_SUBST(CPPFLAGS)
|
AC_SUBST(CPPFLAGS)
|
||||||
@ -220,7 +223,6 @@ docs/Makefile
|
|||||||
docs/man5/Makefile
|
docs/man5/Makefile
|
||||||
docs/man5/tinyproxy.conf.txt
|
docs/man5/tinyproxy.conf.txt
|
||||||
docs/man8/Makefile
|
docs/man8/Makefile
|
||||||
docs/man8/tinyproxy.txt
|
|
||||||
m4macros/Makefile
|
m4macros/Makefile
|
||||||
tests/Makefile
|
tests/Makefile
|
||||||
tests/scripts/Makefile
|
tests/scripts/Makefile
|
||||||
|
@ -9,6 +9,17 @@ M_NAME=TINYPROXY
|
|||||||
man_MANS = \
|
man_MANS = \
|
||||||
$(MAN8_FILES:.txt=.8)
|
$(MAN8_FILES:.txt=.8)
|
||||||
|
|
||||||
|
edit = sed \
|
||||||
|
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
||||||
|
-e 's|@runstatedir[@]|$(runstatedir)|g' \
|
||||||
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
||||||
|
-e 's|@TINYPROXY_STATHOST[@]|$(TINYPROXY_STATHOST)|g'
|
||||||
|
|
||||||
|
tinyproxy.txt: $(top_srcdir)/docs/man8/tinyproxy.txt.in Makefile
|
||||||
|
@rm -f $@ $@.tmp
|
||||||
|
$(AM_V_GEN) $(edit) $(top_srcdir)/docs/man8/$@.in > $@.tmp
|
||||||
|
@mv $@.tmp $@
|
||||||
|
|
||||||
.txt.8:
|
.txt.8:
|
||||||
if HAVE_POD2MAN
|
if HAVE_POD2MAN
|
||||||
$(AM_V_GEN) $(POD2MAN) --center="Tinyproxy manual" \
|
$(AM_V_GEN) $(POD2MAN) --center="Tinyproxy manual" \
|
||||||
|
@ -156,7 +156,11 @@ configuration variable `StatFile`.
|
|||||||
|
|
||||||
=head1 FILES
|
=head1 FILES
|
||||||
|
|
||||||
`/etc/tinyproxy/tinyproxy.conf`, `/var/run/tinyproxy/tinyproxy.pid`, `/var/log/tinyproxy/tinyproxy.log`
|
F<@sysconfdir@/tinyproxy/tinyproxy.conf>
|
||||||
|
|
||||||
|
F<@runstatedir@/tinyproxy/tinyproxy.pid>
|
||||||
|
|
||||||
|
F<@localstatedir@/log/tinyproxy/tinyproxy.log>
|
||||||
|
|
||||||
=head1 BUGS
|
=head1 BUGS
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ edit = sed \
|
|||||||
-e 's|@datarootdir[@]|$(datarootdir)|g' \
|
-e 's|@datarootdir[@]|$(datarootdir)|g' \
|
||||||
-e 's|@pkgsysconfdir[@]|$(pkgsysconfdir)|g' \
|
-e 's|@pkgsysconfdir[@]|$(pkgsysconfdir)|g' \
|
||||||
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
||||||
|
-e 's|@runstatedir[@]|$(runstatedir)|g' \
|
||||||
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
|
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
|
||||||
-e 's|@prefix[@]|$(prefix)|g' \
|
-e 's|@prefix[@]|$(prefix)|g' \
|
||||||
-e 's|@TINYPROXY_STATHOST[@]|$(TINYPROXY_STATHOST)|g'
|
-e 's|@TINYPROXY_STATHOST[@]|$(TINYPROXY_STATHOST)|g'
|
||||||
|
@ -124,7 +124,7 @@ LogLevel Info
|
|||||||
# can be used for signalling purposes.
|
# can be used for signalling purposes.
|
||||||
# If not specified, no pidfile will be written.
|
# If not specified, no pidfile will be written.
|
||||||
#
|
#
|
||||||
#PidFile "@localstatedir@/run/tinyproxy/tinyproxy.pid"
|
#PidFile "@runstatedir@/tinyproxy/tinyproxy.pid"
|
||||||
|
|
||||||
#
|
#
|
||||||
# XTinyproxy: Tell Tinyproxy to include the X-Tinyproxy header, which
|
# XTinyproxy: Tell Tinyproxy to include the X-Tinyproxy header, which
|
||||||
@ -320,6 +320,3 @@ ViaProxyName "tinyproxy"
|
|||||||
# If not set then no rewriting occurs.
|
# If not set then no rewriting occurs.
|
||||||
#
|
#
|
||||||
#ReverseBaseURL "http://localhost:8888/"
|
#ReverseBaseURL "http://localhost:8888/"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user