openbsd-ports/x11/windowmaker/patches/patch-util_wmaker_inst_in
2009-02-15 20:12:17 +00:00

30 lines
879 B
Plaintext

$OpenBSD: patch-util_wmaker_inst_in,v 1.5 2009/02/15 20:12:17 wilfried Exp $
--- util/wmaker.inst.in.orig Fri Apr 8 13:24:14 2005
+++ util/wmaker.inst.in Sun Feb 15 20:31:10 2009
@@ -22,6 +22,7 @@ fi
# directory where system wide configuration is stored
GLOBALDIR="#pkgdatadir#"
GLOBALDEFDIR="#sysconfdir#"
+WPREFSDIR="#bindir#"
USERDIR=$HOME
@@ -81,14 +82,17 @@ copy() {
source=$GLOBALDIR/plmenu
fi
sed -e "s:#wmdatadir#:$GLOBALDIR:g" \
+ -e "s:#wprefsdir#:$WPREFSDIR:g" \
$source > $GSDIR/Defaults/WMRootMenu
else
if test "x$GNUSTEP_USER_ROOT" = "x"; then
sed -e "s:#wmdatadir#:$GLOBALDIR:g" \
+ -e "s:#wprefsdir#:$WPREFSDIR:g" \
$source > $target
else
sed -e "s|\$HOME/GNUstep|$GSDIR|g" \
-e "s:#wmdatadir#:$GLOBALDIR:g" \
+ -e "s:#wprefsdir#:$WPREFSDIR:g" \
$source > $target
fi
fi