-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
cd bind/bind-*/ || die
local el
eval econf \
- $(for el in $(awk '/^bindconfig/,/^$/ {print}' ../Makefile.in) ; do if [[ ${el} =~ ^-- ]] ; then printf ' %s' ${el}; fi; done | sed 's,@\([[:alpha:]]\+\)dir@,${binddir}/\1,g') \
+ $(for el in $(awk '/^bindconfig/,/^$/ {print}' ../Makefile.in) ; do if [[ ${el} =~ ^-- ]] ; then printf ' %s' ${el} ; fi ; done | sed 's,@\([[:alpha:]]\+\)dir@,${binddir}/\1,g') \
--disable-symtable \
--without-make-clean
}
if [[ -e client/dhclient ]] ; then
# move the client to /
dodir /sbin
- mv "${D}"/usr/sbin/dhclient "${D}"/sbin/ || die
+ mv "${ED%/}"/usr/sbin/dhclient "${ED%/}"/sbin/ || die
exeinto /sbin
if use kernel_linux ; then
systemd_install_serviced "${FILESDIR}"/dhcrelay4.service.conf
systemd_install_serviced "${FILESDIR}"/dhcrelay6.service.conf
- sed -i "s:#@slapd@:$(usex ldap slapd ''):" "${ED}"/etc/init.d/* || die #442560
+ sed -i "s:#@slapd@:$(usex ldap slapd ''):" "${ED%/}"/etc/init.d/* || die #442560
fi
# the default config files aren't terribly useful #384087
local f
- for f in "${ED}"/etc/dhcp/*.conf.example ; do
+ for f in "${ED%/}"/etc/dhcp/*.conf.example ; do
mv "${f}" "${f%.example}" || die
done
- sed -i '/^[^#]/s:^:#:' "${ED}"/etc/dhcp/*.conf || die
+ sed -i '/^[^#]/s:^:#:' "${ED%/}"/etc/dhcp/*.conf || die
}
pkg_preinst() {
for f in dhclient:da7c8496a96452190aecf9afceef4510 dhcpd:10979e7b71134bd7f04d2a60bd58f070 ; do
h=${f#*:}
f="/etc/dhcp/${f%:*}.conf"
- if [ -e "${EROOT}"${f} ] ; then
+ if [ -e "${EROOT%/}"${f} ] ; then
case $(md5sum "${EROOT}"${f}) in
${h}*) ;;
- *) cp -p "${EROOT}"${f} "${ED}"${f};;
+ *) cp -p "${EROOT%/}"${f} "${ED%/}"${f};;
esac
fi
done