summaryrefslogtreecommitdiff
path: root/sys-apps/corenetwork/corenetwork-1.6.8.ebuild
blob: 9e80f85ba04e42a445a015251666b0402e1b01e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright 2020-2021 LiGurOs Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7

DESCRIPTION="LiGurOS's networking scripts."
HOMEPAGE="https://liguros.gitlab.io"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="*"

SRC_URI="https://www.gitlab.com/liguros/${PN}/-/archive/${PV}/${P}.tar.bz2"

RDEPEND="sys-apps/openrc !<=sys-apps/openrc-0.12.4-r4"

src_install() {
	exeinto /etc/init.d || die
	doexe init.d/{netif.tmpl,net.lo} || die
	cp -a netif.d ${D}/etc || die
	chown -R root:root ${D}/etc/netif.d || die
	chmod 0755 ${D}/etc/netif.d || die
	chmod -R 0644 ${D}/etc/netif.d/* || die
}