+hvconfig_pre()
+{
+ cd ${LFS_TMP}/${PACKAGE}
+ sed -i 's%\(^sbindir =\).*%\1 @prefix@@sbindir@%' server/Makefile.in
+
+ CONFIGURE_OPTS="\
+ ${CONFIGURE_OPTS} \
+ --localstatedir=/var \
+ --sbindir=/sbin \
+ --with-srv-lease-file=/var/state/dhcp/dhcpd.leases \
+ --with-srv6-lease-file=/var/state/dhcp/dhcpd6.leases \
+ --with-cli-lease-file=/var/state/dhclient.leases \
+ --with-cli6-lease-file=/var/state/dhclient6.leases"
+}
+
+hvconfig_post()
+{
+ sed -i 's/-Werror//' {client,common,dst,omapip,relay,server,tests}/Makefile
+}
+