gjdwebserver-overlay/app-mobilephone/usb-tethering/usb-tethering-0.5.ebuild

38 lines
756 B
Bash
Raw Normal View History

# Copyright 1999-2022 Gentoo Authors
2021-07-24 21:03:58 +02:00
# 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"
2022-04-12 16:39:18 +02:00
2021-07-24 21:03:58 +02:00
systemd_dounit "${FILESDIR}"/usb-tethering.service
2022-04-12 16:39:18 +02:00
2021-07-24 21:03:58 +02:00
insinto "/usr/lib/tmpfiles.d/"
doins "${FILESDIR}"/tmpfiles.d.danctnix-usb.conf
2022-04-12 16:39:18 +02:00
2021-07-24 21:03:58 +02:00
insinto "/etc/systemd/system/dhcpd4.service.d/"
doins "${FILESDIR}"/dhcpd4.service-customexec.conf
2022-04-12 16:39:18 +02:00
2021-07-24 21:03:58 +02:00
insinto "/etc/danctnix/"
doins "${FILESDIR}"/dhcpd.conf
}