# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 VER="${PV%-r*}" DESCRIPTION="Multiple configuration system" HOMEPAGE="http://git.cynerd.cz/multiconfig/" SRC_URI="http://git.cynerd.cz/multiconfig/snapshot/multiconfig-${VER}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/multiconfig-${VER}" LICENSE="GPL-3.0+" SLOT="0" KEYWORDS="amd64 x86" IUSE="bridge firewall openvpn" DEPEND="bridge? ( net-misc/dhcp )" RDEPEND="${DEPEND}" src_install() { dodir /usr/sbin exeinto /usr/sbin doexe "${S}/multiconfig.sh" if use bridge; then doinitd "${S}/bridge/init/bridge" doinitd "${S}/bridge/init/bridge-dhcp" dodir /etc/dhcp insinto /etc/dhcp newins "${S}/bridge/dhcpd.conf" "bridge_dhcpd.conf" dodir /etc/sysctl.d insinto /etc/sysctl.d newins "${S}/bridge/sysctl.conf" "bridge.conf" fi }