59 lines
1.2 KiB
Bash
59 lines
1.2 KiB
Bash
# @P@/scripts/paths
|
|
# vim: syntax=sh:sw=4:ts=4:expandtab
|
|
#
|
|
# Default path setup. Not meant for editing; use environment variables
|
|
# to override values if needed.
|
|
#
|
|
|
|
case "${PREFIX}" in
|
|
/)
|
|
BINDIR="/bin"
|
|
SBINDIR="/sbin"
|
|
LIBDIR="/lib"
|
|
INCLUDEDIR="/usr/include"
|
|
CONFIGDIR="/etc"
|
|
VARDIR="/var"
|
|
SHAREDIR="/usr/share/@P@"
|
|
DOCSDIR="/usr/share/doc/@P@"
|
|
WEBDIR="/srv/http"
|
|
;;
|
|
|
|
/usr)
|
|
BINDIR="/usr/bin"
|
|
SBINDIR="/usr/sbin"
|
|
LIBDIR="/usr/lib"
|
|
INCLUDEDIR="/usr/include"
|
|
CONFIGDIR="/etc"
|
|
VARDIR="/var"
|
|
SHAREDIR="/usr/share/@P@"
|
|
DOCSDIR="/usr/share/doc/@P@"
|
|
WEBDIR="/srv/http"
|
|
;;
|
|
|
|
/usr/local)
|
|
BINDIR="/usr/local/bin"
|
|
SBINDIR="/usr/local/sbin"
|
|
LIBDIR="/usr/local/lib"
|
|
INCLUDEDIR="/usr/local/include"
|
|
CONFIGDIR="/usr/local/etc"
|
|
VARDIR="/var"
|
|
SHAREDIR="/usr/local/share/@P@"
|
|
DOCSDIR="/usr/local/share/doc/@P@"
|
|
WEBDIR="/srv/http"
|
|
;;
|
|
|
|
/opt/*)
|
|
BINDIR="${PREFIX}/bin"
|
|
SBINDIR="${PREFIX}/sbin"
|
|
LIBDIR="${PREFIX}/lib"
|
|
INCLUDEDIR="${PREFIX}/include"
|
|
CONFIGDIR="/etc${PREFIX}"
|
|
VARDIR="/var${PREFIX}"
|
|
SHAREDIR="/var${PREFIX}"
|
|
DOCSDIR="${PREFIX}/doc"
|
|
WEBDIR="${PREFIX}/http"
|
|
;;
|
|
esac
|
|
|
|
CGIDIR="${WEBDIR}/cgi-bin"
|