diff options
author | Zero_Chaos <zerochaos@gentoo.org> | 2017-06-04 14:53:24 -0400 |
---|---|---|
committer | Zero_Chaos <zerochaos@gentoo.org> | 2017-06-04 14:53:44 -0400 |
commit | e4c107e78a3730aa1d9bee740c58c9075941abfe (patch) | |
tree | ec828828291c22376422f97f525d7bb1db92e053 /net-misc/srf-ip-conn-srv | |
parent | 59be3223c1f81d3b75bd4ebc85aa7e8586f4591f (diff) | |
download | gentoo-e4c107e78a3730aa1d9bee740c58c9075941abfe.tar.gz gentoo-e4c107e78a3730aa1d9bee740c58c9075941abfe.tar.xz |
net-misc/srf-ip-conn-srv: initial ebuild, won't bind to port for me, bug open upstream, help welcome
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'net-misc/srf-ip-conn-srv')
-rw-r--r-- | net-misc/srf-ip-conn-srv/Manifest | 2 | ||||
-rw-r--r-- | net-misc/srf-ip-conn-srv/files/srf-ip-conn-srv | 6 | ||||
-rw-r--r-- | net-misc/srf-ip-conn-srv/metadata.xml | 10 | ||||
-rw-r--r-- | net-misc/srf-ip-conn-srv/srf-ip-conn-srv-9999.ebuild | 58 | ||||
-rw-r--r-- | net-misc/srf-ip-conn-srv/srf-ip-conn-srv.pid | 1 |
5 files changed, 77 insertions, 0 deletions
diff --git a/net-misc/srf-ip-conn-srv/Manifest b/net-misc/srf-ip-conn-srv/Manifest new file mode 100644 index 00000000000..6755e9ba8fc --- /dev/null +++ b/net-misc/srf-ip-conn-srv/Manifest @@ -0,0 +1,2 @@ +DIST jsmn-35086597a72d.tar.gz 11056 SHA256 9cf211b926e5fa288cb40037823d70f9c3e61cb696cf35fc15e29e8f48307376 SHA512 0cec27867f3ffd39ae1040e5236b7710a0e1b31fd184da6b56aed3995379da64907dc00aa01692f244ed5ea59ec995d62bacfd3a130bd1dd59724405f24560bd WHIRLPOOL 7dc2d6ec236f8377cc48539b3a7df774d51322827d1ee50e8548dd7cf540933912e7747f88ab1e12ff02131205ea4efe80c8709b04284d0397a0a6f3e667193a +DIST srf-ip-conn-140c9b8a8619.tar.gz 112882 SHA256 e46f16afa0454fa4ed094666e4bed606f9b910bbc18c9c93087efb9ed95b2c5f SHA512 6f6e6fbc1b3d17fb36ef48c530756d2c4b2bee0a0e9016355ca57ac7124ca2b18c845110d40818673b200a3700b92f6b40664d157a158979705146aad579186b WHIRLPOOL 0b03c01fac2f12a8217386e534fab7de5e473a26b50cd329eaa64a8a2b5225b4b46ffc5b275f2ad2dc89b27e2026b1bfd3eebc85d242433519aa7a41dd0c9cef diff --git a/net-misc/srf-ip-conn-srv/files/srf-ip-conn-srv b/net-misc/srf-ip-conn-srv/files/srf-ip-conn-srv new file mode 100644 index 00000000000..4bc3f9d30f3 --- /dev/null +++ b/net-misc/srf-ip-conn-srv/files/srf-ip-conn-srv @@ -0,0 +1,6 @@ +#!/bin/bash +if [[ "$*" == *-c* ]]; then + /usr/bin/srf-ip-conn-srv-target "$@" +else + /usr/bin/srf-ip-conn-srv-target -c /etc/srf-ip-conn-srv/config.json "$@" +fi diff --git a/net-misc/srf-ip-conn-srv/metadata.xml b/net-misc/srf-ip-conn-srv/metadata.xml new file mode 100644 index 00000000000..01afb12df84 --- /dev/null +++ b/net-misc/srf-ip-conn-srv/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="project"> + <email>radio@gentoo.org</email> + <name>Radio</name> + </maintainer> + <use> + </use> +</pkgmetadata> diff --git a/net-misc/srf-ip-conn-srv/srf-ip-conn-srv-9999.ebuild b/net-misc/srf-ip-conn-srv/srf-ip-conn-srv-9999.ebuild new file mode 100644 index 00000000000..f92e83711ca --- /dev/null +++ b/net-misc/srf-ip-conn-srv/srf-ip-conn-srv-9999.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit vcs-snapshot git-r3 cmake-utils + +DESCRIPTION="SharkRF IP Connector Protocol server" +HOMEPAGE="https://github.com/sharkrf/srf-ip-conn-srv" +srfipcon="srf-ip-conn-140c9b8a8619" +jsmn="jsmn-35086597a72d" +SRC_URI="https://github.com/sharkrf/srf-ip-conn/archive/140c9b8a86193b8f345c9e113691113310859ff8.tar.gz -> ${srfipcon}.tar.gz + https://github.com/zserge/jsmn/archive/35086597a72d94d8393e6a90b96e553d714085bd.tar.gz -> ${jsmn}.tar.gz" +EGIT_REPO_URI="https://github.com/sharkrf/srf-ip-conn-srv.git" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P}/build" + +CMAKE_IN_SOURCE_BUILD=true + +src_unpack() { + vcs-snapshot_src_unpack ${A} + git-r3_src_unpack +} + +src_prepare() { + #set needed paths + sed -i "s#\$ENV{JSMN_PATH}#${WORKDIR}/${jsmn}#" CMakeLists.txt + sed -i "s#\$ENV{SRF_IP_CONN_PATH}#${WORKDIR}/${srfipcon}#" CMakeLists.txt + + #set cflags/ldflags + sed -i "s#-O4#${CFLAGS}#" CMakeLists.txt + sed -i "s#CMAKE_EXE_LINKER_FLAGS_RELEASE \"\"#CMAKE_EXE_LINKER_FLAGS_RELEASE \"${LDFLAGS}\"#" CMakeLists.txt + + #be in a sane directory for eapply_user + cd "${WORKDIR}/${P}" + eapply_user +} + +src_install() { + #add a default banned list to edit + sed -i 's#"banlist-file": ""#"banlist-file":"/etc/srf-ip-conn-srv/banlist.json"#' "${WORKDIR}/${P}/config-example.json" + echo "{}" > "${ED}/etc/srf-ip-conn-srv/banlist.json" + + insinto /etc/srf-ip-conn-srv + doins "${WORKDIR}/${P}/banlist-example.json" + newins "${WORKDIR}/${P}/config-example.json" config.json + newbin Release/srf-ip-conn-srv srf-ip-conn-srv-target + + dobin "${FILESDIR}/srf-ip-conn-srv" +} diff --git a/net-misc/srf-ip-conn-srv/srf-ip-conn-srv.pid b/net-misc/srf-ip-conn-srv/srf-ip-conn-srv.pid new file mode 100644 index 00000000000..e9fe9b5ac5a --- /dev/null +++ b/net-misc/srf-ip-conn-srv/srf-ip-conn-srv.pid @@ -0,0 +1 @@ +22258 |