Update for new BUILD_DIR and SRC_DIR variables
[hvlinux.git] / stage2 / pkg / dhcp
index a25fe74..0c78176 100644 (file)
@@ -2,8 +2,8 @@
 
 hvconfig_pre()
 {
-    cd ${LFS_TMP}/${PACKAGE}
-    sed -i 's%\(^sbindir =\).*%\1 @prefix@@sbindir@%' server/Makefile.in
+    sed -i 's%\(^sbindir =\).*%\1 @prefix@@sbindir@%' \
+        ${SRC_DIR}/server/Makefile.in
 
     CONFIGURE_OPTS+=" \
         --localstatedir=/var \
@@ -16,7 +16,8 @@ hvconfig_pre()
 
 hvconfig_post()
 {
-    sed -i 's/-Werror//' {client,common,dst,omapip,relay,server,tests}/Makefile
+    sed -i 's/-Werror//' \
+        ${BUILD_DIR}/{client,common,dst,omapip,relay,server,tests}/Makefile
 }
 
 hvbuild_post()