# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DESCRIPTION="Service for net-misc/dhcp" HOMEPAGE="http://powerman.name/RTFM/runit.html" SRC_URI="http://powerman.name/download/Gentoo/${P}.tgz" LICENSE="public-domain" SLOT="0" KEYWORDS="~amd64 ~x86" DEPEND="runit-service/setupservices" RDEPEND=">=sys-process/runit-2.1.2-r1 net-misc/socat net-misc/dhcp" src_install() { if use amd64; then ln -s lib service/dhcpd/root/lib64 mv service/dhcpd/root/lib/ld-linux{,-x86-64}.so.2 fi cp -a * "${D}" fowners nobody:nobody /etc/sv/dhcpd/root/var/{run,lib}/dhcp/ }