1 |
commit: e4c107e78a3730aa1d9bee740c58c9075941abfe |
2 |
Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 4 18:53:24 2017 +0000 |
4 |
Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 4 18:53:44 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4c107e7 |
7 |
|
8 |
net-misc/srf-ip-conn-srv: initial ebuild, won't bind to port for me, bug open upstream, help welcome |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
net-misc/srf-ip-conn-srv/Manifest | 2 + |
13 |
net-misc/srf-ip-conn-srv/files/srf-ip-conn-srv | 6 +++ |
14 |
net-misc/srf-ip-conn-srv/metadata.xml | 10 ++++ |
15 |
.../srf-ip-conn-srv/srf-ip-conn-srv-9999.ebuild | 58 ++++++++++++++++++++++ |
16 |
net-misc/srf-ip-conn-srv/srf-ip-conn-srv.pid | 1 + |
17 |
5 files changed, 77 insertions(+) |
18 |
|
19 |
diff --git a/net-misc/srf-ip-conn-srv/Manifest b/net-misc/srf-ip-conn-srv/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..6755e9ba8fc |
22 |
--- /dev/null |
23 |
+++ b/net-misc/srf-ip-conn-srv/Manifest |
24 |
@@ -0,0 +1,2 @@ |
25 |
+DIST jsmn-35086597a72d.tar.gz 11056 SHA256 9cf211b926e5fa288cb40037823d70f9c3e61cb696cf35fc15e29e8f48307376 SHA512 0cec27867f3ffd39ae1040e5236b7710a0e1b31fd184da6b56aed3995379da64907dc00aa01692f244ed5ea59ec995d62bacfd3a130bd1dd59724405f24560bd WHIRLPOOL 7dc2d6ec236f8377cc48539b3a7df774d51322827d1ee50e8548dd7cf540933912e7747f88ab1e12ff02131205ea4efe80c8709b04284d0397a0a6f3e667193a |
26 |
+DIST srf-ip-conn-140c9b8a8619.tar.gz 112882 SHA256 e46f16afa0454fa4ed094666e4bed606f9b910bbc18c9c93087efb9ed95b2c5f SHA512 6f6e6fbc1b3d17fb36ef48c530756d2c4b2bee0a0e9016355ca57ac7124ca2b18c845110d40818673b200a3700b92f6b40664d157a158979705146aad579186b WHIRLPOOL 0b03c01fac2f12a8217386e534fab7de5e473a26b50cd329eaa64a8a2b5225b4b46ffc5b275f2ad2dc89b27e2026b1bfd3eebc85d242433519aa7a41dd0c9cef |
27 |
|
28 |
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 |
29 |
new file mode 100644 |
30 |
index 00000000000..4bc3f9d30f3 |
31 |
--- /dev/null |
32 |
+++ b/net-misc/srf-ip-conn-srv/files/srf-ip-conn-srv |
33 |
@@ -0,0 +1,6 @@ |
34 |
+#!/bin/bash |
35 |
+if [[ "$*" == *-c* ]]; then |
36 |
+ /usr/bin/srf-ip-conn-srv-target "$@" |
37 |
+else |
38 |
+ /usr/bin/srf-ip-conn-srv-target -c /etc/srf-ip-conn-srv/config.json "$@" |
39 |
+fi |
40 |
|
41 |
diff --git a/net-misc/srf-ip-conn-srv/metadata.xml b/net-misc/srf-ip-conn-srv/metadata.xml |
42 |
new file mode 100644 |
43 |
index 00000000000..01afb12df84 |
44 |
--- /dev/null |
45 |
+++ b/net-misc/srf-ip-conn-srv/metadata.xml |
46 |
@@ -0,0 +1,10 @@ |
47 |
+<?xml version="1.0" encoding="UTF-8"?> |
48 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
49 |
+<pkgmetadata> |
50 |
+ <maintainer type="project"> |
51 |
+ <email>radio@g.o</email> |
52 |
+ <name>Radio</name> |
53 |
+ </maintainer> |
54 |
+ <use> |
55 |
+ </use> |
56 |
+</pkgmetadata> |
57 |
|
58 |
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 |
59 |
new file mode 100644 |
60 |
index 00000000000..f92e83711ca |
61 |
--- /dev/null |
62 |
+++ b/net-misc/srf-ip-conn-srv/srf-ip-conn-srv-9999.ebuild |
63 |
@@ -0,0 +1,58 @@ |
64 |
+# Copyright 1999-2017 Gentoo Foundation |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+ |
67 |
+EAPI=6 |
68 |
+ |
69 |
+inherit vcs-snapshot git-r3 cmake-utils |
70 |
+ |
71 |
+DESCRIPTION="SharkRF IP Connector Protocol server" |
72 |
+HOMEPAGE="https://github.com/sharkrf/srf-ip-conn-srv" |
73 |
+srfipcon="srf-ip-conn-140c9b8a8619" |
74 |
+jsmn="jsmn-35086597a72d" |
75 |
+SRC_URI="https://github.com/sharkrf/srf-ip-conn/archive/140c9b8a86193b8f345c9e113691113310859ff8.tar.gz -> ${srfipcon}.tar.gz |
76 |
+ https://github.com/zserge/jsmn/archive/35086597a72d94d8393e6a90b96e553d714085bd.tar.gz -> ${jsmn}.tar.gz" |
77 |
+EGIT_REPO_URI="https://github.com/sharkrf/srf-ip-conn-srv.git" |
78 |
+ |
79 |
+LICENSE="MIT" |
80 |
+SLOT="0" |
81 |
+KEYWORDS="" |
82 |
+IUSE="" |
83 |
+ |
84 |
+DEPEND="" |
85 |
+RDEPEND="${DEPEND}" |
86 |
+ |
87 |
+S="${WORKDIR}/${P}/build" |
88 |
+ |
89 |
+CMAKE_IN_SOURCE_BUILD=true |
90 |
+ |
91 |
+src_unpack() { |
92 |
+ vcs-snapshot_src_unpack ${A} |
93 |
+ git-r3_src_unpack |
94 |
+} |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ #set needed paths |
98 |
+ sed -i "s#\$ENV{JSMN_PATH}#${WORKDIR}/${jsmn}#" CMakeLists.txt |
99 |
+ sed -i "s#\$ENV{SRF_IP_CONN_PATH}#${WORKDIR}/${srfipcon}#" CMakeLists.txt |
100 |
+ |
101 |
+ #set cflags/ldflags |
102 |
+ sed -i "s#-O4#${CFLAGS}#" CMakeLists.txt |
103 |
+ sed -i "s#CMAKE_EXE_LINKER_FLAGS_RELEASE \"\"#CMAKE_EXE_LINKER_FLAGS_RELEASE \"${LDFLAGS}\"#" CMakeLists.txt |
104 |
+ |
105 |
+ #be in a sane directory for eapply_user |
106 |
+ cd "${WORKDIR}/${P}" |
107 |
+ eapply_user |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ #add a default banned list to edit |
112 |
+ sed -i 's#"banlist-file": ""#"banlist-file":"/etc/srf-ip-conn-srv/banlist.json"#' "${WORKDIR}/${P}/config-example.json" |
113 |
+ echo "{}" > "${ED}/etc/srf-ip-conn-srv/banlist.json" |
114 |
+ |
115 |
+ insinto /etc/srf-ip-conn-srv |
116 |
+ doins "${WORKDIR}/${P}/banlist-example.json" |
117 |
+ newins "${WORKDIR}/${P}/config-example.json" config.json |
118 |
+ newbin Release/srf-ip-conn-srv srf-ip-conn-srv-target |
119 |
+ |
120 |
+ dobin "${FILESDIR}/srf-ip-conn-srv" |
121 |
+} |
122 |
|
123 |
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 |
124 |
new file mode 100644 |
125 |
index 00000000000..e9fe9b5ac5a |
126 |
--- /dev/null |
127 |
+++ b/net-misc/srf-ip-conn-srv/srf-ip-conn-srv.pid |
128 |
@@ -0,0 +1 @@ |
129 |
+22258 |