$OpenBSD: patch-inst_files_pl,v 1.2 2007/09/21 21:17:56 sturm Exp $ --- inst/files.pl.orig Thu Dec 14 23:34:20 2006 +++ inst/files.pl Fri Sep 21 08:08:26 2007 @@ -58,6 +58,13 @@ $UPGRADE = 1 if $ARGV[0] and $ARGV[0] eq 'UPGRADE'; our $HOT_COPY; $HOT_COPY = 1 if $ARGV[1] and $ARGV[1] eq 'HOT_COPY'; +# fix pathes +our $DESTDIR = $ENV{DESTDIR} || ''; +$CONFIG->{BRICOLAGE_ROOT} = "$DESTDIR" . "$CONFIG->{BRICOLAGE_ROOT}"; +$CONFIG->{MASON_COMP_ROOT} = "$DESTDIR" . "$CONFIG->{MASON_COMP_ROOT}"; +$CONFIG->{MASON_DATA_ROOT} = "$DESTDIR" . "$CONFIG->{MASON_DATA_ROOT}"; +$CONFIG->{LOG_DIR} = "$DESTDIR" . "$CONFIG->{LOG_DIR}"; + create_paths(); # Remove old object files if this is an upgrade.