summaryrefslogtreecommitdiff
path: root/sys-apps/multiconfig/multiconfig-0.2-r1.ebuild
blob: 374d14e7d790901f3e5b3bd62365156e75c0d96a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
EAPI=6

DESCRIPTION="Multiple configuration system"
HOMEPAGE="https://git.cynerd.cz/multiconfig/"
SRC_URI="https://git.cynerd.cz/multiconfig/snapshot/${P}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3.0+"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="firewall hosts openvpn"

DEPEND="
	firewall? ( net-firewall/iptables )
	openvpn? ( net-vpn/openvpn )"
RDEPEND="${DEPEND}"

src_install() {
	dodir /usr/sbin
	exeinto /usr/sbin
	doexe "${S}/tools/multiconfig"

	dodir /usr/lib/multiconfig
	exeinto /usr/lib/multiconfig
	insinto /usr/lib/multiconfig
	doexe "${S}/multiconfig"
	doins "${S}/common"

	for MOD in $IUSE; do
		if use $MOD; then
			doexe "${S}/$MOD"
		fi
	done
}