diff options
author | Zero_Chaos <zerochaos@gentoo.org> | 2018-11-16 13:41:50 -0500 |
---|---|---|
committer | Zero_Chaos <zerochaos@gentoo.org> | 2018-11-16 13:42:15 -0500 |
commit | e34020154b6eb199ac418091d4ff96a46aff5d05 (patch) | |
tree | 1d26a42e35acecbf698063f684700965f125b30a /net-misc | |
parent | net-misc/dmr_utils: import from pentoo (diff) | |
download | gentoo-e34020154b6eb199ac418091d4ff96a46aff5d05.tar.gz gentoo-e34020154b6eb199ac418091d4ff96a46aff5d05.tar.bz2 gentoo-e34020154b6eb199ac418091d4ff96a46aff5d05.zip |
net-misc/hblink: initial commit
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/hblink/hblink-9999.ebuild | 54 | ||||
-rw-r--r-- | net-misc/hblink/metadata.xml | 10 |
2 files changed, 64 insertions, 0 deletions
diff --git a/net-misc/hblink/hblink-9999.ebuild b/net-misc/hblink/hblink-9999.ebuild new file mode 100644 index 000000000000..c616379777ee --- /dev/null +++ b/net-misc/hblink/hblink-9999.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 ) +inherit git-r3 python-single-r1 systemd + +DESCRIPTION="HomeBrew Repeater protocol as used by DMR+, MMDVM and Brandmeister" +HOMEPAGE="https://github.com/n0mjs710/HBlink" +EGIT_REPO_URI="https://github.com/n0mjs710/HBlink.git" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="systemd" + +PDEPEND="dev-python/bitstring["${PYTHON_USEDEP}"] + dev-python/bitarray["${PYTHON_USEDEP}"] + dev-python/twisted["${PYTHON_USEDEP}"] + net-misc/dmr_utils["${PYTHON_USEDEP}"]" + +src_prepare() { + rm -r retired || die + sed -i "s#/opt/HBlink#/usr/share/${PN}#" systemd/*.service + default +} + +src_install() { + if use systemd; then + insinto "$(systemd_get_systemunitdir)" + doins systemd/*.service + fi + rm -r systemd || die + + insinto /etc/hblink + newins hblink-SAMPLE.cfg hblink.cfg + + insinto /usr/share/"${PN}" + doins -r * + python_fix_shebang "${ED}/usr/share/${PN}" + ln -s /etc/hblink/hblink.cfg "${ED}"/usr/share/"${PN}"/hblink.cfg + + dodir /usr/bin + for i in hb_bridge_all hb_confbridge + do + cat <<-EOF > "${ED}"/usr/bin/${i} + #! /bin/sh + cd /usr/share/${PN} + python2 ./${i}.py "\$@" + EOF + fperms +x /usr/bin/${i} + done +} diff --git a/net-misc/hblink/metadata.xml b/net-misc/hblink/metadata.xml new file mode 100644 index 000000000000..b4ca965f410a --- /dev/null +++ b/net-misc/hblink/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Rick Farina</name> + <email>zerochaos@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + </longdescription> +</pkgmetadata> |