50881ae714
outside of WKRINST be created and it gets left behind. Regen PLIST while here.
26 lines
975 B
Plaintext
26 lines
975 B
Plaintext
$OpenBSD: patch-inst_files_pl,v 1.3 2010/09/05 08:31:33 ajacoutot Exp $
|
|
--- inst/files.pl.orig Thu Dec 14 23:34:20 2006
|
|
+++ inst/files.pl Sun Sep 5 10:19:58 2010
|
|
@@ -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.
|
|
@@ -89,7 +96,6 @@ sub create_paths {
|
|
mkpath([catdir($CONFIG->{MASON_COMP_ROOT}, "data"),
|
|
$CONFIG->{MASON_DATA_ROOT},
|
|
catdir($CONFIG->{BRICOLAGE_ROOT}, "conf"),
|
|
- catdir($CONFIG->{TEMP_DIR}, "bricolage"),
|
|
$CONFIG->{LOG_DIR}],
|
|
1,
|
|
0755);
|