summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-07-22 02:20:05 -0700
committerZac Medico <zmedico@gentoo.org>2021-07-22 02:34:46 -0700
commit0a68f0c26c432a41ad8977ec278648ff3c915dda (patch)
treea2c706d01e356b6e48969fc22b3d985068273933
parentmedia-libs/libsidplay: bump to 2.2.1 (diff)
downloadgentoo-0a68f0c26c432a41ad8977ec278648ff3c915dda.tar.gz
gentoo-0a68f0c26c432a41ad8977ec278648ff3c915dda.tar.bz2
gentoo-0a68f0c26c432a41ad8977ec278648ff3c915dda.zip
net-misc/websocketd: Initial import
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--net-misc/websocketd/Manifest3
-rw-r--r--net-misc/websocketd/metadata.xml10
-rw-r--r--net-misc/websocketd/websocketd-0.4.1.ebuild37
3 files changed, 50 insertions, 0 deletions
diff --git a/net-misc/websocketd/Manifest b/net-misc/websocketd/Manifest
new file mode 100644
index 000000000000..c1cddbe5df0f
--- /dev/null
+++ b/net-misc/websocketd/Manifest
@@ -0,0 +1,3 @@
+DIST github.com%2Fgorilla%2Fwebsocket%2F@v%2Fv1.4.0.mod 36 BLAKE2B 94a5b4cb6c6de32397f001dfc95c49960de212f67fbb6b4a1a4806f78cac88a2698c3c2e19b7e1cb64d07a3ad6caab25a1006bb4f51b65e1c62c5a12c77d8b9c SHA512 21ce8fb666af3c32e843c816626a7c4c0c63ed1f170c7a49eea4a2f40e28e4ba0105dad2e17aa527da7dc3eca198a20dbb6566e60ef48d7d7cf72413bc81d24a
+DIST github.com%2Fgorilla%2Fwebsocket%2F@v%2Fv1.4.0.zip 73861 BLAKE2B ab1760636aad8ffa0aceb1720b6221debe9ddc6ef0c50d180cf5eb30d19a746acbe07ba3bb83047d7595a7e3060370c63ae6288fd2c57fa66a49e36492fc93da SHA512 6261d3ef4f67e239ad3a2d5b3a6b7b05254f6596ee7e9410c1e80de1b42047642286b2c0239b62ee769fbd2319c5aaeae595a1b9beb69abdd85504b53108bac8
+DIST websocketd-0.4.1.tar.gz 46366 BLAKE2B 8b2fd1b63736cb47363e512044cb22a6eaa726c471289dbd1a6b77733d64b3023eddadd47a82357aec4bcbe097ce2b90806284f4483a36d2cf446d4eef66c224 SHA512 8535637bdf8fecbc4340606b6096672420126c32ed9e68944593f577e6307c810caf654e76f7077bf119d6273c6eec4c4c21eb21bfd805d0b8f5549c626460e4
diff --git a/net-misc/websocketd/metadata.xml b/net-misc/websocketd/metadata.xml
new file mode 100644
index 000000000000..d7ed249b765a
--- /dev/null
+++ b/net-misc/websocketd/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">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">joewalnes/websocketd</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-misc/websocketd/websocketd-0.4.1.ebuild b/net-misc/websocketd/websocketd-0.4.1.ebuild
new file mode 100644
index 000000000000..a611fd44e054
--- /dev/null
+++ b/net-misc/websocketd/websocketd-0.4.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit go-module
+
+EGIT_COMMIT="v${PV}"
+ARCHIVE_URI="https://github.com/joewalnes/websocketd/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+DESCRIPTION="Like inetd, but for WebSockets."
+HOMEPAGE="https://github.com/joewalnes/websocketd"
+SLOT="0"
+LICENSE="BSD-2"
+
+EGO_SUM=(
+"github.com/gorilla/websocket v1.4.0"
+"github.com/gorilla/websocket v1.4.0/go.mod"
+)
+
+go-module_set_globals
+SRC_URI="
+ ${ARCHIVE_URI}
+ ${EGO_SUM_SRC_URI}
+"
+
+src_compile() {
+ GOBIN="${S}/bin" CGO_ENABLED=0 go install ./... || die
+}
+
+src_test() {
+ go test -work "./..." || die
+}
+
+src_install() {
+ dobin bin/${PN}
+ dodoc CHANGES README.md
+}