aboutsummaryrefslogtreecommitdiff
blob: 88de9b202e716e755d2385db38de67e01621852b (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit systemd

DESCRIPTION="USB tethering on Pine64/ConfigFS systems"
HOMEPAGE="https://github.com/dreemurrs-embedded/Pine64-Arch"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~arm64"

DEPEND="
	net-misc/dhcp
	sys-apps/systemd
"
RDEPEND="${DEPEND}"

S="${WORKDIR}"

src_install() {
	exeinto "/usr/lib/danctnix"
	doexe "${FILESDIR}/usb-tethering"
	systemd_dounit "${FILESDIR}"/usb-tethering.service
	insinto "/usr/lib/tmpfiles.d/"
	doins "${FILESDIR}"/tmpfiles.d.danctnix-usb.conf
	insinto "/etc/systemd/system/dhcpd4.service.d/"
	doins "${FILESDIR}"/dhcpd4.service-customexec.conf
	insinto "/etc/danctnix/"
	doins "${FILESDIR}"/dhcpd.conf
}