From 84d5737d9878e676d015c47dcf02aff8f468b56b Mon Sep 17 00:00:00 2001
From: Hugo Villeneuve <hugo@hugovil.com>
Date: Sun, 28 Dec 2014 19:31:53 -0500
Subject: [PATCH] Update samba for new ipkg() -d option

---
 stage5/hv-install-1 | 6 +++++-
 stage5/pkg/samba    | 8 --------
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/stage5/hv-install-1 b/stage5/hv-install-1
index 2f006e4..e236cf1 100755
--- a/stage5/hv-install-1
+++ b/stage5/hv-install-1
@@ -289,7 +289,11 @@ ipkg -m noac ${MERCURIAL}
 ipkg ${INDENT}
 
 if [ "x${USE_SAMBA}" = "xyes" ]; then
-    ipkg ${SAMBA}
+    ipkg -d source ${SAMBA} "\
+        --localstatedir=/var \
+        --with-piddir=/var/run \
+        --with-fhs \
+        --with-smbmount"
 fi
 
 if [ "x${INST_TYPE}" = "xltsp-server" ]; then
diff --git a/stage5/pkg/samba b/stage5/pkg/samba
index 7c6be69..3926f0d 100644
--- a/stage5/pkg/samba
+++ b/stage5/pkg/samba
@@ -3,14 +3,6 @@
 hvconfig_pre()
 {
     install -d /var/cache/samba
-
-    cd ${LFS_TMP}/${PACKAGE}/source
-    ./configure \
-        ${CONFIGURE_OPTS} \
-        --localstatedir=/var \
-        --with-piddir=/var/run \
-        --with-fhs \
-        --with-smbmount
 }
 
 hvbuild_post()
-- 
2.20.1