openwrt/package/utils/e2fsprogs/patches/000-relocatable.patch

41 lines
710 B
Diff

--- a/lib/et/compile_et.sh.in
+++ b/lib/et/compile_et.sh.in
@@ -2,8 +2,14 @@
#
#
-AWK=@AWK@
-DIR=@datadir@/et
+if test "x$STAGING_DIR" = x ; then
+ AWK=@AWK@
+ DIR=@datadir@/et
+else
+ AWK=awk
+ DIR="$STAGING_DIR/../hostpkg/share/et"
+fi
+
if test "$1" = "--build-tree" ; then
shift;
--- a/lib/ss/mk_cmds.sh.in
+++ b/lib/ss/mk_cmds.sh.in
@@ -2,10 +2,16 @@
#
#
-DIR=@datadir@/ss
-AWK=@AWK@
SED=sed
+if test "x$STAGING_DIR" = x ; then
+ DIR=@datadir@/ss
+ AWK=@AWK@
+else
+ DIR="$STAGING_DIR/../hostpkg/share/ss"
+ AWK=awk
+fi
+
for as_var in \
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \