Skip to content

Commit

Permalink
config-lib: change defaults of SYSCONFDIR/LOCALSTATEDIR when PREFIX !…
Browse files Browse the repository at this point in the history
…= /usr{,/local}
  • Loading branch information
mariux committed Jul 15, 2011
1 parent 81df4d2 commit d80fdf0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/beelib.config.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ function config_verify_builtin_prefixes() {
: ${BINDIR:='${EPREFIX}/bin'}
: ${SBINDIR:='${EPREFIX}/sbin'}
: ${LIBEXECDIR:='${EPREFIX}/lib/${PKGNAME}'}

if [ "${PREFIX}" != "/usr" -a "${PREFIX}" != "/usr/local" ] ; then
: ${SYSCONFDIR:='${PREFIX}'/etc}
: ${LOCALSTATEDIR:='${PREFIX}'/var}
fi

: ${SYSCONFDIR:=/etc}
: ${LOCALSTATEDIR:=/var}
: ${SHAREDSTATEDIR:='${LOCALSTATEDIR}'}
Expand Down

0 comments on commit d80fdf0

Please sign in to comment.