summaryrefslogtreecommitdiff
path: root/net-misc/srf-ip-conn-srv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/srf-ip-conn-srv
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/srf-ip-conn-srv')
-rw-r--r--net-misc/srf-ip-conn-srv/Manifest6
-rw-r--r--net-misc/srf-ip-conn-srv/files/srf-ip-conn-srv6
-rw-r--r--net-misc/srf-ip-conn-srv/metadata.xml8
-rw-r--r--net-misc/srf-ip-conn-srv/srf-ip-conn-srv-9999.ebuild58
-rw-r--r--net-misc/srf-ip-conn-srv/srf-ip-conn-srv.pid1
5 files changed, 79 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 000000000000..381022191ca7
--- /dev/null
+++ b/net-misc/srf-ip-conn-srv/Manifest
@@ -0,0 +1,6 @@
+AUX srf-ip-conn-srv 162 SHA256 15a8006f3fd8a81b519b59ce1531ab63d76c1f107356024e8f3cc3650d636d5c SHA512 7a5d2fe94f89c06ae54e01a532bc57735d39a0a620d11a536a5f27ae0912a017661b4e5928ceb3f4a63e49d155592cb763043a6a53f270810b15bc0f22074e41 WHIRLPOOL fb4e66d1b06256f147ce3348367b07492d963dd36a949a8f5b745ea355d2da920e4aa2eb3977f0152a728ce62a290d17e1e3ee852b5714593c7b30db80c4622b
+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
+EBUILD srf-ip-conn-srv-9999.ebuild 1703 SHA256 b081de7e06a40fe0b91f05c28392c49289564a8111b3bece6bd86b85c4720212 SHA512 557704ae6a2831103de64197fc63d1e45cb532501b84e95261129855f09cf3fe6bad57b85fa7a4b33ce3f1456c6737a9123c2697929632a1600dc4850519ca87 WHIRLPOOL d370bd3fed2d03ce58781b695523e3bfb9ac319496af1be1f0f646a44065d80d5e1ce95faaaa0363a7cdd73b7b729d0f3e6af50f1ee35274e8a821aeef8b6909
+MISC metadata.xml 238 SHA256 fb3f3758a51e2214d17a7ee3860535abef87230f8ebee7ddd0c1c8b64a9bec1b SHA512 b8e525ce325eb8201273f8d0ea320d6ba41a183d7f80b0f44dcca44c48049baec1c3489ebd32a17d3be9d6a31a9427ce40cd1686f12e42ca99b0d7037af9532f WHIRLPOOL 1645c553345ed030e8d8fdb0c826c7e1e24178e472b1c1f3001a601719e09d4768ad6fd9e35f0b0c56a53f257cdc5593726114acd8e5c89d3c13436c6b2185a2
+MISC srf-ip-conn-srv.pid 6 SHA256 25a476f277b84fd0a6a0f1bb32edd87717d37a4dd500584bc444ec2f13df04e2 SHA512 b34f721fe50aec75d17d74f002a9a09ef643dfdbc06d9a889cfc93ddf0ca95b7e23ecc90f2947a7ec7ba31bd0709473c3f706f8aac4dfc04ca76ce6ab27fcf31 WHIRLPOOL 4a6fff4734acee627bf6012437e7d5379f986d700e878ffffee346467f40f5ccb0a363e8fe9ea9a29029a8efe24ab99497ce5dbd8d00b63f5f1f5ec4e7e9bf04
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 000000000000..4bc3f9d30f33
--- /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 000000000000..1570f891c6a3
--- /dev/null
+++ b/net-misc/srf-ip-conn-srv/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</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 000000000000..f92e83711ca8
--- /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 000000000000..e9fe9b5ac5a0
--- /dev/null
+++ b/net-misc/srf-ip-conn-srv/srf-ip-conn-srv.pid
@@ -0,0 +1 @@
+22258