mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 05:23:01 -04:00
Merge updates from master
This commit is contained in:
@@ -1,26 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_11 )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="A simple code complexity analyser, supports most of the popular languages."
|
|
||||||
HOMEPAGE="http://www.lizard.ws/"
|
|
||||||
SRC_URI="https://github.com/terryyin/lizard/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
test? (
|
|
||||||
dev-python/jinja[${PYTHON_USEDEP}]
|
|
||||||
dev-python/mock[${PYTHON_USEDEP}]
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
@@ -18,7 +18,9 @@ LICENSE="MIT"
|
|||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
# dev-python/nose removed from ::gentoo
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
RDEPEND="dev-python/cryptography[${PYTHON_USEDEP}]"
|
RDEPEND="dev-python/cryptography[${PYTHON_USEDEP}]"
|
||||||
|
|
||||||
# Removed from ::gentoo
|
|
||||||
# distutils_enable_tests nose
|
# distutils_enable_tests nose
|
||||||
|
|||||||
@@ -20,5 +20,7 @@ LICENSE="BSD"
|
|||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
# Removed from ::gentoo
|
# dev-python/nose removed from ::gentoo
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
# distutils_enable_tests nose
|
# distutils_enable_tests nose
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ KEYWORDS="~amd64"
|
|||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
|
# dev-python/nose removed from ::gentoo
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
dev-python/requests[${PYTHON_USEDEP},socks5]
|
dev-python/requests[${PYTHON_USEDEP},socks5]
|
||||||
dev-python/requests-oauthlib[${PYTHON_USEDEP}]
|
dev-python/requests-oauthlib[${PYTHON_USEDEP}]
|
||||||
@@ -32,5 +35,4 @@ DEPEND="
|
|||||||
# dev-python/vcrpy[${PYTHON_USEDEP}]
|
# dev-python/vcrpy[${PYTHON_USEDEP}]
|
||||||
# )
|
# )
|
||||||
|
|
||||||
# Removed from ::gentoo
|
|
||||||
# distutils_enable_tests nose
|
# distutils_enable_tests nose
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
DIST owncast-0.0.12-deps.tar.xz 71882432 BLAKE2B 525b44ba7182432fa4de7aa9b7c0b2145604ef7341d3962ac27807c2ab76445c37a80d0cdd4d9c7884c85cb3546c20564947486cd0f54bc11dce9dfd6fb83409 SHA512 0d1b3c229715119062bf310b66a5d9686d4e5c466809e26ebe801448e387c08bf7256f9f81de4c9e4f8c470ec18cb9d10bde4c99fec4c9abbc31dc279bde15ad
|
|
||||||
DIST owncast-0.0.12-linux-64bit.zip 19386338 BLAKE2B b891d9e414b8adc1adc750faea77012f8435be21db8ebde9c3ca91187848104326107c975edf611e337d816bc0a0eeac17b93e08e36c496a8e84f74ae8eefebe SHA512 aa51901c6bcdfb7a026b8e0a1b755511103f4c0d79f1d0592420fcb53f935670b86f7b5ea495a518374f08efe91d3416da21ec0b4256db07e32744d1a112d2c0
|
|
||||||
DIST owncast-0.0.12.tar.gz 10273424 BLAKE2B fee74684f6acd214dfd8627947097ae3a7d8a6f7e58a79f51899685887fc1f62009476243a9f2e7b89bd46d577442d7f61e0be9dfe767f7f4bad493076e75f56 SHA512 3fb7efac918d8af241849a9006d711392d596103bf592cf2a09818cf2c3413ef1faf6fe9990ab0d0779b501f0c6be5ad6ac820f963d62564ff1a37d6c4eee2e9
|
|
||||||
DIST owncast-0.0.13-deps.tar.xz 70793580 BLAKE2B 7ee3429f06b90cbabc9a08ce756b3d21399137c0067c9fe9532e2ec7376e2a3db43a45551dddfcaba59719873599153793ff00b4ab13b75739ec68a391464203 SHA512 f7149b1e57316dc8f2b79b938dee349fa2fbcc4b95f1838049094aa7d1ac7924b8da36a5718681073a5f04560540ce53d3660d5275905d19aff5e85bb2898f36
|
|
||||||
DIST owncast-0.0.13-linux-64bit.zip 19494694 BLAKE2B 5d48ff7307248716693038c561eff259c913f0498f9e1abafff691b96d23f4ef46f0c8a7be6b267b3f5c65ac2123a08a8580771ecb1bc3c12ffc2f1e1c038ddc SHA512 1728a323861eafb3e22b572905b01e18b9f78323908d12fb1355fee8473d4dfec0a4de90cac26006b5fc5d1edda38617173fcf7f071b0b04f918000740920afc
|
|
||||||
DIST owncast-0.0.13.tar.gz 10282725 BLAKE2B b88f67d26fa438320debe01de2651df1625314ec5a89dde4b9d64c40296481f35fdda2e93bb268e93a0be8a5645a5a4243da1f9894c78b64054b302392779319 SHA512 3894da43330d247b460e475b19a96af23a6a115f38bef052bf6f128355d4a22053095ea67af694fb3af69086d1a750d65943295e791f3163156d76b5c9774524
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
diff --git a/core/chat/chatclient.go b/core/chat/chatclient.go
|
|
||||||
index fdcd77e3..4408bd48 100644
|
|
||||||
--- a/core/chat/chatclient.go
|
|
||||||
+++ b/core/chat/chatclient.go
|
|
||||||
@@ -3,6 +3,7 @@ package chat
|
|
||||||
import (
|
|
||||||
"bytes"
|
|
||||||
"encoding/json"
|
|
||||||
+ "net/http"
|
|
||||||
"sync"
|
|
||||||
"time"
|
|
||||||
|
|
||||||
@@ -60,6 +61,9 @@ const (
|
|
||||||
var upgrader = websocket.Upgrader{
|
|
||||||
ReadBufferSize: 1024,
|
|
||||||
WriteBufferSize: 1024,
|
|
||||||
+ CheckOrigin: func(r *http.Request) bool {
|
|
||||||
+ return true
|
|
||||||
+ },
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
name="Owncast server"
|
|
||||||
description="Owncast is a self-hosted live video and web chat server"
|
|
||||||
|
|
||||||
command=/usr/bin/owncast
|
|
||||||
user=owncast
|
|
||||||
group=owncast
|
|
||||||
pidfile=/var/run/owncast.pid
|
|
||||||
dir=/var/lib/owncast
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
use net
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting Owncast server"
|
|
||||||
start-stop-daemon --start --exec "${command}" \
|
|
||||||
--user "${user}":"${group}" \
|
|
||||||
--chdir "${dir}" \
|
|
||||||
--pidfile "${pidfile}" \
|
|
||||||
--make-pidfile --background
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping Owncast server"
|
|
||||||
start-stop-daemon --stop --exec "${command}" \
|
|
||||||
--pidfile "${pidfile}" \
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<!-- maintainer-needed -->
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">owncast/owncast</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit go-module
|
|
||||||
|
|
||||||
DESCRIPTION="A self-hosted live video and web chat server"
|
|
||||||
HOMEPAGE="https://owncast.online/ https://github.com/owncast/owncast"
|
|
||||||
|
|
||||||
LICENSE="MIT Apache-2.0 ISC BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
acct-user/owncast
|
|
||||||
acct-group/owncast
|
|
||||||
media-video/ffmpeg"
|
|
||||||
|
|
||||||
SRC_URI="https://github.com/owncast/owncast/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
|
||||||
https://github.com/owncast/owncast/releases/download/v${PV}/${P}-linux-64bit.zip
|
|
||||||
https://www.lysator.liu.se/~creideiki/owncast-0.0.12-deps.tar.xz"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${P}-1758-remove-websocket-origin-check.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
go-module_src_unpack
|
|
||||||
|
|
||||||
# go-module_src_unpack unpacked both the source and the binary
|
|
||||||
# package. This places the binary package files in the wrong
|
|
||||||
# place, but that's hopefully survivable. We need the binary
|
|
||||||
# package to get the minified CSS file, which is generated using
|
|
||||||
# NPM by upstream.
|
|
||||||
cp "${WORKDIR}"/webroot/js/web_modules/tailwindcss/dist/tailwind.min.css "${S}"/webroot/js/web_modules/tailwindcss/dist/tailwind.min.css || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
ego build -v -work -x \
|
|
||||||
-ldflags "-s -w -X github.com/${PN}/${PN}/config.VersionNumber=${PV} -X github.com/${PN}/${PN}/config.BuildPlatform=gentoo" \
|
|
||||||
-o ${PN} \
|
|
||||||
github.com/${PN}/${PN} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin ${PN}
|
|
||||||
|
|
||||||
dodoc README.md
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
|
|
||||||
diropts -m 0755 -o owncast -g owncast
|
|
||||||
insopts -m 0644 -o owncast -g owncast
|
|
||||||
|
|
||||||
insinto /var/lib/${PN}
|
|
||||||
doins -r static webroot
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ -z "${REPLACING_VERSIONS}" ]] ; then
|
|
||||||
einfo "The admin interface at http://localhost:8080/admin/"
|
|
||||||
einfo "has default username 'admin' and password 'abc123'."
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Hardware accelerated transcoding requires support in media-video/ffmpeg, see https://owncast.online/docs/codecs/"
|
|
||||||
}
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit go-module
|
|
||||||
|
|
||||||
DESCRIPTION="A self-hosted live video and web chat server"
|
|
||||||
HOMEPAGE="https://owncast.online/ https://github.com/owncast/owncast"
|
|
||||||
|
|
||||||
LICENSE="MIT Apache-2.0 ISC BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
acct-user/owncast
|
|
||||||
acct-group/owncast
|
|
||||||
media-video/ffmpeg"
|
|
||||||
|
|
||||||
SRC_URI="https://github.com/owncast/owncast/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
|
||||||
https://github.com/owncast/owncast/releases/download/v${PV}/${P}-linux-64bit.zip
|
|
||||||
https://www.lysator.liu.se/~creideiki/${P}-deps.tar.xz"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-0.0.12-1758-remove-websocket-origin-check.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
go-module_src_unpack
|
|
||||||
|
|
||||||
# go-module_src_unpack unpacked both the source and the binary
|
|
||||||
# package. This places the binary package files in the wrong
|
|
||||||
# place, but that's hopefully survivable. We need the binary
|
|
||||||
# package to get the minified CSS file, which is generated using
|
|
||||||
# NPM by upstream.
|
|
||||||
cp "${WORKDIR}"/webroot/js/web_modules/tailwindcss/dist/tailwind.min.css "${S}"/webroot/js/web_modules/tailwindcss/dist/tailwind.min.css || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
ego build -v -work -x \
|
|
||||||
-ldflags "-s -w -X github.com/${PN}/${PN}/config.VersionNumber=${PV} -X github.com/${PN}/${PN}/config.BuildPlatform=gentoo" \
|
|
||||||
-o ${PN} \
|
|
||||||
github.com/${PN}/${PN} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin ${PN}
|
|
||||||
|
|
||||||
dodoc README.md
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
|
|
||||||
diropts -m 0755 -o owncast -g owncast
|
|
||||||
insopts -m 0644 -o owncast -g owncast
|
|
||||||
|
|
||||||
insinto /var/lib/${PN}
|
|
||||||
doins -r static webroot
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ -z "${REPLACING_VERSIONS}" ]] ; then
|
|
||||||
einfo "The admin interface at http://localhost:8080/admin/"
|
|
||||||
einfo "has default username 'admin' and password 'abc123'."
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Hardware accelerated transcoding requires support in media-video/ffmpeg, see https://owncast.online/docs/codecs/"
|
|
||||||
}
|
|
||||||
@@ -15,21 +15,11 @@
|
|||||||
# New entries go on top.
|
# New entries go on top.
|
||||||
|
|
||||||
# Julien Roy <julien@jroy.ca (2024-03-29)
|
# Julien Roy <julien@jroy.ca (2024-03-29)
|
||||||
# Dependencies removed from ::gentoo
|
# build2 eclass removed from ::gentoo
|
||||||
# Masked for removal in 30 days
|
# Masked for removal in 30 days
|
||||||
app-text/lizard
|
|
||||||
dev-cpp/libcutl
|
dev-cpp/libcutl
|
||||||
dev-cpp/libstudxml
|
dev-cpp/libstudxml
|
||||||
dev-python/http-ece
|
|
||||||
dev-python/proxy_tools
|
|
||||||
dev-python/tweepy
|
|
||||||
dev-util/odb
|
dev-util/odb
|
||||||
# revdeps
|
|
||||||
dev-python/mastodon-py
|
|
||||||
dev-python/pywebview
|
|
||||||
# revdeps of revdeps
|
|
||||||
games-util/legendary
|
|
||||||
net-misc/fedigroup
|
|
||||||
|
|
||||||
# Julien Roy <julien@jroy.ca> (2024-03-21)
|
# Julien Roy <julien@jroy.ca> (2024-03-21)
|
||||||
# sys-libs/libucontext is masked in ::gentoo
|
# sys-libs/libucontext is masked in ::gentoo
|
||||||
@@ -52,11 +42,6 @@ net-im/mautrix-facebook
|
|||||||
# https://github.com/TheDarkBug/uwufetch/issues/249
|
# https://github.com/TheDarkBug/uwufetch/issues/249
|
||||||
app-misc/uwufetch
|
app-misc/uwufetch
|
||||||
|
|
||||||
# David Roman <davidroman96@gmail.com> (2023-10-19)
|
|
||||||
# Known security bugs. Masked until someone updates it.
|
|
||||||
# See https://bugs.gentoo.org/915891
|
|
||||||
media-video/owncast
|
|
||||||
|
|
||||||
# Viorel Munteanu <ceamac@gentoo.org> (2023-06-07)
|
# Viorel Munteanu <ceamac@gentoo.org> (2023-06-07)
|
||||||
# Does not work on no-multilib profiles and cannot be masked per profile
|
# Does not work on no-multilib profiles and cannot be masked per profile
|
||||||
# (See also top comment)
|
# (See also top comment)
|
||||||
|
|||||||
Reference in New Issue
Block a user