mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
Merge updates from master
This commit is contained in:
15
acct-user/mautrix-meta/mautrix-meta-0.ebuild
Normal file
15
acct-user/mautrix-meta/mautrix-meta-0.ebuild
Normal file
@@ -0,0 +1,15 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit acct-user
|
||||
|
||||
DESCRIPTION="User for Mautrix Facebook Bridge"
|
||||
|
||||
ACCT_USER_ID=-1
|
||||
ACCT_USER_GROUPS=( mautrix )
|
||||
ACCT_USER_HOME=/var/lib/mautrix/meta
|
||||
ACCT_USER_HOME_PERMS=0750
|
||||
|
||||
acct-user_add_deps
|
||||
8
acct-user/mautrix-meta/metadata.xml
Normal file
8
acct-user/mautrix-meta/metadata.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>julien@jroy.ca</email>
|
||||
<name>Julien Roy</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
2
dev-libs/libsignal-ffi/Manifest
Normal file
2
dev-libs/libsignal-ffi/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST libsignal-ffi-0.41.1.gh.tar.gz 1317640 BLAKE2B 083ac5981e291c6b35be8133478010c9e6541ea82ebe3e0cf2f5d629e1e23e10f24799c50fdbaacdf9b25f5688ea2f4fcbf46f149e469486a6b2393ce64c52ce SHA512 045c03aca620918f28ae8119da084060edc9543c910dee4551a2bb86cf4e16fa1434cbb9a6d727e4302eaf172fc3c90de9f57dbd7450963e87c6369caa1761fb
|
||||
DIST libsignal-ffi-vendor-0.41.1.tar.xz 35833064 BLAKE2B 02c83a6b3dc592df14f33379bc8476fb1458e4d427d038fe1fb395b66ebe34c1bd0bb36af50c0f7a9b0d1a0d793826702544e5af52803d1ef5855b6a16f441eb SHA512 16aa343750b090bb051fb11210bd9f2b69187eff9fe20537f691e3432045c9fc67f29b8e1e90deebb6de299c0d21e702a557e574a0a8da518eb61046cbbb4f5a
|
||||
38
dev-libs/libsignal-ffi/libsignal-ffi-0.41.1.ebuild
Normal file
38
dev-libs/libsignal-ffi/libsignal-ffi-0.41.1.ebuild
Normal file
@@ -0,0 +1,38 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Autogenerated by pycargoebuild 0.13.1
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES=" "
|
||||
|
||||
inherit cargo
|
||||
|
||||
DESCRIPTION="A C ABI library which exposes Signal protocol logic"
|
||||
HOMEPAGE="https://github.com/signalapp/libsignal"
|
||||
SRC_URI="
|
||||
https://github.com/signalapp/libsignal/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz
|
||||
https://jroy.ca/dist/${PN}-vendor-${PV}.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/libsignal-${PV}/rust/bridge/ffi"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
# Dependent crate licenses
|
||||
LICENSE+=" AGPL-3 Apache-2.0 BSD-2 BSD ISC MIT Unicode-DFS-2016"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
cargo_gen_config
|
||||
ln -s "${WORKDIR}/vendor/" "${WORKDIR}/libsignal-${PV}/vendor" || die
|
||||
sed -i "${ECARGO_HOME}/config" -e '/source.crates-io/d' || die
|
||||
sed -i "${ECARGO_HOME}/config" -e '/replace-with = "gentoo"/d' || die
|
||||
sed -i "${ECARGO_HOME}/config" -e '/local-registry = "\/nonexistent"/d' || die
|
||||
cat "${WORKDIR}/vendor/vendor-config.toml" >> "${ECARGO_HOME}/config" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dolib.a "${WORKDIR}/${P/-ffi/}/target/release/${PN/-/_}.a"
|
||||
}
|
||||
13
dev-libs/libsignal-ffi/metadata.xml
Normal file
13
dev-libs/libsignal-ffi/metadata.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Julien Roy</name>
|
||||
<email>julien@jroy.ca</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/signalapp/libsignal/issues</bugs-to>
|
||||
<changelog>https://github.com/signalapp/libsignal/releases</changelog>
|
||||
<remote-id type="github">signalapp/libsignal</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
41
games-emulation/conty/conty-1.25.2.ebuild
Normal file
41
games-emulation/conty/conty-1.25.2.ebuild
Normal file
@@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2024 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Easy to use unprivileged Linux container packed in a single portable executable"
|
||||
HOMEPAGE="https://github.com/Kron4ek/Conty"
|
||||
|
||||
inherit linux-info
|
||||
|
||||
NAME="${PN}_lite_dwarfs.sh"
|
||||
|
||||
SRC_URI="https://github.com/Kron4ek/Conty/releases/download/${PV}/${NAME}"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
RESTRICT="strip"
|
||||
|
||||
RDEPEND="sys-fs/fuse:0"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
CONFIG_CHECK="
|
||||
IA32_EMULATION
|
||||
USER_NS
|
||||
"
|
||||
|
||||
src_install() {
|
||||
dobin "${DISTDIR}/${PN}_lite_dwarfs.sh"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "How to use: $ ${NAME} [command] [command_arguments]"
|
||||
einfo "For example: ${NAME} steam"
|
||||
einfo "or"
|
||||
einfo "WINEPREFIX=$HOME/wine-conty ${NAME} gamescope -f -- wine ./game.exe"
|
||||
|
||||
}
|
||||
2
net-im/mautrix-meta/Manifest
Normal file
2
net-im/mautrix-meta/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST mautrix-meta-0.2.0.gh.tar.gz 198829 BLAKE2B 0dd9f02d5518d8fa3839c3df9388618a4051b41501fbc1b99ec5c0d213ab8482b0b909d9d7f572471429e441ab12d3f545d4a6ba5b67d3ae885e67b3685a35ae SHA512 76831c21a81c0b8e9ba9df144e938a647ac264e3dd2584df8190cd0bf9e875d8384b46c04e79486d923dc73aea909f585a0879ed7446009d1524e80490c9c7e0
|
||||
DIST mautrix-meta-0.2.0.tar.xz 28251872 BLAKE2B bca146d5da3093742fa8a6cb218251c75ba213c1dac48a9a8535971a38baf43c854f90882f40b0797029785bb40785d305d48feeab7cea6d985dfbf86614f00b SHA512 a5c267b49127ddc0052e2f823ed784951d5347567f31ec284516c8abab72a2f209069cfd378385075f86fd87416608d7d9dccb80247d7a44f46f4a037cc74b7e
|
||||
25
net-im/mautrix-meta/files/mautrix-meta.initd
Normal file
25
net-im/mautrix-meta/files/mautrix-meta.initd
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
name="mautrix-meta daemon"
|
||||
description="A Matrix-Meta puppeting bridge"
|
||||
module="mautrix_meta"
|
||||
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
command="/usr/bin/mautrix-meta"
|
||||
command_args="-c /etc/mautrix/${module}.yaml -r /var/lib/mautrix/meta/registration.yaml"
|
||||
command_background=true
|
||||
command_user="mautrix-meta:mautrix"
|
||||
|
||||
output_log="/var/log/mautrix/meta/daemon.log"
|
||||
error_log="/var/log/mautrix/meta/daemon.log"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 -o "$command_user" /var/lib/mautrix/meta
|
||||
checkpath -f -m 0644 -o "$command_user" "$output_log"
|
||||
}
|
||||
12
net-im/mautrix-meta/files/mautrix-meta.service
Normal file
12
net-im/mautrix-meta/files/mautrix-meta.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=A Matrix-Meta puppeting bridge
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=mautrix-meta
|
||||
Group=mautrix
|
||||
Restart=always
|
||||
ExecStart=/usr/bin/mautrix-meta -c /etc/mautrix/mautrix_meta.yaml -r /var/lib/mautrix/meta/registration.yaml
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
63
net-im/mautrix-meta/mautrix-meta-0.2.0.ebuild
Normal file
63
net-im/mautrix-meta/mautrix-meta-0.2.0.ebuild
Normal file
@@ -0,0 +1,63 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module systemd
|
||||
|
||||
DESCRIPTION="A Matrix-Facebook puppeting bridge"
|
||||
HOMEPAGE="https://github.com/mautrix/meta"
|
||||
SRC_URI="https://github.com/mautrix/meta/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz
|
||||
https://jroy.ca/dist/${P}.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/meta-${PV}"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/${PN}
|
||||
dev-libs/olm
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_compile() {
|
||||
ego build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin mautrix-meta
|
||||
|
||||
keepdir /var/log/mautrix/meta
|
||||
fowners -R root:mautrix /var/log/mautrix
|
||||
fperms -R 770 /var/log/mautrix
|
||||
sed -i -e "s/\.\/logs/\/var\/log\/${PN/-/\\\/}/" "example-config.yaml" || die
|
||||
|
||||
insinto "/etc/mautrix"
|
||||
newins "example-config.yaml" "${PN/-/_}.yaml"
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
fowners -R root:mautrix /etc/mautrix
|
||||
fperms -R 770 /etc/mautrix
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo
|
||||
elog ""
|
||||
elog "Before you can use ${PN}, you must configure it correctly"
|
||||
elog "The configuration file is located at \"/etc/mautrix/${PN/-/_}.yaml\""
|
||||
elog "When done, run the following command: emerge --config ${CATEGORY}/${PN}"
|
||||
elog "Then, you must register the bridge with your homeserver"
|
||||
elog "Refer your homeserver's documentation for instructions"
|
||||
elog "The registration file is located at /var/lib/${PN/-/\/}/registration.yaml"
|
||||
elog "Finally, you may start the ${PN} daemon"
|
||||
einfo
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
su - "${PN}" -s /bin/sh -c \
|
||||
"/usr/bin/${PN} -c /etc/mautrix/${PN/-/_}.yaml -g -r /var/lib/${PN/-/\/}/registration.yaml"
|
||||
}
|
||||
18
net-im/mautrix-meta/metadata.xml
Normal file
18
net-im/mautrix-meta/metadata.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Julien Roy</name>
|
||||
<email>julien@jroy.ca</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<maintainer>
|
||||
<name>Tulir Asokan</name>
|
||||
<email>tulir@maunium.net</email>
|
||||
</maintainer>
|
||||
<changelog>https://github.com/mautrix/meta/releases</changelog>
|
||||
<doc>https://docs.mau.fi/bridges/go/meta/index.html</doc>
|
||||
<bugs-to>https://github.com/mautrix/meta/issues</bugs-to>
|
||||
<remote-id type="github">mautrix/meta</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,2 +1,2 @@
|
||||
DIST mautrix-signal-0.4.2.gh.tar.gz 99310 BLAKE2B 31150d71bd7be79e081e31399964df2df3f855ea1c779c4f568419c4f84c007fd8c935095f3b1f57987dfcb786ca166682ff2ba6a75be64ee47bd4a1c5318fdc SHA512 381f4838182834e696697bbc1f159d51bd905f8e9a1c1d18b1ccdd84553d383c3f9c71f20dbef74d7634aae587f9db733fa7b944916d4be7cc02f37db7cdb956
|
||||
DIST mautrix-signal-0.4.3.gh.tar.gz 104515 BLAKE2B 706f2028da4c30b1a86135b9c55681244ae2ea9a953bebe3986a94486c3b5cde4f2f569a92168d097ad3246f032f138ba19eeaa777b6bdd4ef9c4c8f3f975021 SHA512 0ecb3a1e5cd7624376392de69edeef96271af6bf75b4ac2ca4efb642a1197cf531e37be766b681d5ae1010002cfd117c34423250f12c3cebfbd84f5338500212
|
||||
DIST mautrix-signal-0.5.1.gh.tar.gz 305845 BLAKE2B 6de8992b4204499f62d106cfd06a9841f79c5b929e7b214fd5b142f71d3c88a09bccea2842ba6465d0ad658e5f1dfcaff343a5b7b6b8090adb75e5f712c7e2c3 SHA512 20434685189ac2d6647539afdd63dd530312b1da5d6ce2d25e96268ca15384f7309bd99d9df49648b04e97cbec1ea7c7605ff401acc69eccbec972665035b96d
|
||||
DIST mautrix-signal-0.5.1.tar.xz 20352288 BLAKE2B 835e2baf0dc3e0184eb8f1ffec8b8840708c1bba84105b6044b7bd2b671a693b4038d8858fb32353344353f24c63d714ad6536c3aab40cf214cefac1deb47b8f SHA512 d932dcd99df6e2a2e88282f88fc0301706c4a45fabf835fb1eb81ad94e621e1c77671d310cbd0dc4959f1b45e3bab893535228d89a6cf3fc409e1f6da059b089
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit distutils-r1 optfeature systemd
|
||||
|
||||
DESCRIPTION="A Matrix-Signal Messenger puppeting bridge "
|
||||
HOMEPAGE="https://github.com/mautrix/signal/"
|
||||
SRC_URI="https://github.com/mautrix/signal/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
S="${WORKDIR}/signal-${PV}"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/${PN}
|
||||
dev-python/aiohttp[${PYTHON_USEDEP}]
|
||||
dev-python/asyncpg[${PYTHON_USEDEP}]
|
||||
dev-python/attrs[${PYTHON_USEDEP}]
|
||||
dev-python/commonmark[${PYTHON_USEDEP}]
|
||||
dev-python/mautrix[${PYTHON_USEDEP}]
|
||||
dev-python/python-olm[${PYTHON_USEDEP}]
|
||||
dev-python/phonenumbers[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
dev-python/python-magic[${PYTHON_USEDEP}]
|
||||
dev-python/qrcode[${PYTHON_USEDEP}]
|
||||
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
|
||||
dev-python/signalstickers-client[${PYTHON_USEDEP}]
|
||||
dev-python/unpaddedbase64[${PYTHON_USEDEP}]
|
||||
dev-python/yarl[${PYTHON_USEDEP}]
|
||||
net-libs/signald
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
keepdir /var/log/mautrix
|
||||
fowners root:mautrix /var/log/mautrix
|
||||
fperms 770 /var/log/mautrix
|
||||
sed -i -e "s/\/var\/run\/signald\/signald\.sock/\/tmp\/signald\.sock/" "${ED}/usr/example-config.yaml" || die
|
||||
sed -i -e "s/\.\/${PN}.log/\/var\/log\/mautrix\/${PN}.log/" "${ED}/usr/example-config.yaml" || die
|
||||
|
||||
insinto "/etc/mautrix"
|
||||
newins "${ED}/usr/example-config.yaml" "${PN/-/_}.yaml"
|
||||
rm "${ED}/usr/example-config.yaml" || die
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
fowners -R root:mautrix /etc/mautrix
|
||||
fperms -R 770 /etc/mautrix
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Prometheus statistics" dev-python/prometheus_client
|
||||
optfeature "Sqlite backend" dev-python/aiosqlite
|
||||
|
||||
einfo
|
||||
elog ""
|
||||
elog "Before you can use ${PN}, you must configure it correctly"
|
||||
elog "The configuration file is located at \"/etc/mautrix/${PN/-/_}.yaml\""
|
||||
elog "When done, run the following command: emerge --config ${CATEGORY}/${PN}"
|
||||
elog "Then, you must register the bridge with your homeserver"
|
||||
elog "Refer your homeserver's documentation for instructions"
|
||||
elog "The registration file is located at /var/lib/${PN/-/\/}/registration.yaml"
|
||||
elog "Finally, you may start the ${PN} daemon"
|
||||
einfo
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
su - "${PN}" -s /bin/sh -c \
|
||||
"/usr/bin/python -m ${PN/-/_} -c /etc/mautrix/${PN/-/_}.yaml -g -r /var/lib/${PN/-/\/}/registration.yaml"
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit distutils-r1 optfeature systemd
|
||||
|
||||
DESCRIPTION="A Matrix-Signal Messenger puppeting bridge "
|
||||
HOMEPAGE="https://github.com/mautrix/signal/"
|
||||
SRC_URI="https://github.com/mautrix/signal/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
S="${WORKDIR}/signal-${PV}"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/${PN}
|
||||
dev-python/aiohttp[${PYTHON_USEDEP}]
|
||||
dev-python/asyncpg[${PYTHON_USEDEP}]
|
||||
dev-python/attrs[${PYTHON_USEDEP}]
|
||||
dev-python/commonmark[${PYTHON_USEDEP}]
|
||||
dev-python/mautrix[${PYTHON_USEDEP}]
|
||||
dev-python/python-olm[${PYTHON_USEDEP}]
|
||||
dev-python/phonenumbers[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
dev-python/python-magic[${PYTHON_USEDEP}]
|
||||
dev-python/qrcode[${PYTHON_USEDEP}]
|
||||
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
|
||||
dev-python/signalstickers-client[${PYTHON_USEDEP}]
|
||||
dev-python/unpaddedbase64[${PYTHON_USEDEP}]
|
||||
dev-python/yarl[${PYTHON_USEDEP}]
|
||||
net-libs/signald
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
keepdir /var/log/mautrix
|
||||
fowners root:mautrix /var/log/mautrix
|
||||
fperms 770 /var/log/mautrix
|
||||
sed -i -e "s/\/var\/run\/signald\/signald\.sock/\/tmp\/signald\.sock/" "${ED}/usr/example-config.yaml" || die
|
||||
sed -i -e "s/\.\/${PN}.log/\/var\/log\/mautrix\/${PN}.log/" "${ED}/usr/example-config.yaml" || die
|
||||
|
||||
insinto "/etc/mautrix"
|
||||
newins "${ED}/usr/example-config.yaml" "${PN/-/_}.yaml"
|
||||
rm "${ED}/usr/example-config.yaml" || die
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
fowners -R root:mautrix /etc/mautrix
|
||||
fperms -R 770 /etc/mautrix
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Prometheus statistics" dev-python/prometheus_client
|
||||
optfeature "Sqlite backend" dev-python/aiosqlite
|
||||
|
||||
einfo
|
||||
elog ""
|
||||
elog "Before you can use ${PN}, you must configure it correctly"
|
||||
elog "The configuration file is located at \"/etc/mautrix/${PN/-/_}.yaml\""
|
||||
elog "When done, run the following command: emerge --config ${CATEGORY}/${PN}"
|
||||
elog "Then, you must register the bridge with your homeserver"
|
||||
elog "Refer your homeserver's documentation for instructions"
|
||||
elog "The registration file is located at /var/lib/${PN/-/\/}/registration.yaml"
|
||||
elog "Finally, you may start the ${PN} daemon"
|
||||
einfo
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
su - "${PN}" -s /bin/sh -c \
|
||||
"/usr/bin/python -m ${PN/-/_} -c /etc/mautrix/${PN/-/_}.yaml -g -r /var/lib/${PN/-/\/}/registration.yaml"
|
||||
}
|
||||
66
net-im/mautrix-signal/mautrix-signal-0.5.1.ebuild
Normal file
66
net-im/mautrix-signal/mautrix-signal-0.5.1.ebuild
Normal file
@@ -0,0 +1,66 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module systemd
|
||||
|
||||
DESCRIPTION="A Matrix-Signal puppeting bridge"
|
||||
HOMEPAGE="https://github.com/mautrix/signal"
|
||||
SRC_URI="https://github.com/mautrix/signal/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz
|
||||
https://jroy.ca/dist/${P}.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/signal-${PV}"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/${PN}
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-libs/libsignal-ffi
|
||||
dev-libs/olm
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
ego build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin mautrix-signal
|
||||
|
||||
keepdir /var/log/mautrix/signal
|
||||
fowners -R root:mautrix /var/log/mautrix
|
||||
fperms -R 770 /var/log/mautrix
|
||||
sed -i -e "s/\.\/logs/\/var\/log\/${PN/-/\\\/}/" "example-config.yaml" || die
|
||||
|
||||
insinto "/etc/mautrix"
|
||||
newins "example-config.yaml" "${PN/-/_}.yaml"
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
fowners -R root:mautrix /etc/mautrix
|
||||
fperms -R 770 /etc/mautrix
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo
|
||||
elog ""
|
||||
elog "Before you can use ${PN}, you must configure it correctly"
|
||||
elog "The configuration file is located at \"/etc/mautrix/${PN/-/_}.yaml\""
|
||||
elog "When done, run the following command: emerge --config ${CATEGORY}/${PN}"
|
||||
elog "Then, you must register the bridge with your homeserver"
|
||||
elog "Refer your homeserver's documentation for instructions"
|
||||
elog "The registration file is located at /var/lib/${PN/-/\/}/registration.yaml"
|
||||
elog "Finally, you may start the ${PN} daemon"
|
||||
einfo
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
su - "${PN}" -s /bin/sh -c \
|
||||
"/usr/bin/${PN} -c /etc/mautrix/${PN/-/_}.yaml -g -r /var/lib/${PN/-/\/}/registration.yaml"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
DIST mautrix-slack-0_pre20230517.gh.tar.gz 94370 BLAKE2B 56cb12269fb6695aaf6ed3485166732b5f526e00f6a0237b2c2d1fe7f36eda15bf2ba26560b31069cda3f1229645f64bb99c9e6ce88d6c8d441af4e338071875 SHA512 7374b87892c92ca7dd493d1886bc24a8916931951be8c3e5799d223931a18bbf2d7a93dc02e4c6714f53e1b3c9005272e278a60578859d48f8882b50488de52b
|
||||
DIST mautrix-slack-0_pre20230517.tar.xz 18026880 BLAKE2B 14623cbf2b3ed3a244f762fee4f816ab38bb2bd9f2d488e3bdd93419b838403e9c3eb50fb473c358c3391788383d382977db23ad3721138f38ad1e022cf18cd2 SHA512 bc9b8cb0b59ca2c196d555c49633f1b00305577e400f11b5430f843a6a166ce708ac62db9d06ea262d2b6e2e3b070395fc7dbe79de6467e6a46d89ae6e3ee5de
|
||||
DIST mautrix-slack-0_pre20230925.gh.tar.gz 98793 BLAKE2B 3172f0b274da2f95897cec163bd82090668de0ee8d8a4dfc2e20ec65cf764d8a6270a3801a72efc0b16cef6275c4b767e2728715736878354533de475fb23ea0 SHA512 d2bd2b4a52233d2ce59c7fde956ae253c97c6e28913b479fd64708759fceae8154dc71d54dadb8d515fccf6a5a43c0b77a94d0938e4c2a8333a18ac9b7965a7f
|
||||
DIST mautrix-slack-0_pre20230925.tar.xz 15741728 BLAKE2B 8f107120e688fedf925a219fc317afaa7f19b97951dc48ba9de75596d3866d549775d169eeaaa4747151f82bdb101b901018430d1f29907e66c122892ce8f908 SHA512 59d1879ac30feee322dc17af04a651db193ecf688aba2308411ee4534c3c0d824cbce199315c1345f296c7e787d35fc19bc8cf9447169947c889f0fd2d1dd219
|
||||
DIST mautrix-slack-0_pre20240215.gh.tar.gz 98878 BLAKE2B 1c2fe565990d2ab0a1cb39c72b4bd3c8b9fcbb18978e785a1ad6f994d01a59b047f127db4c1dfa291dfae97d81f82c64200d1ccb10b5ade27391fdde40794529 SHA512 68636ee04a41f152f4a7d75e9ad6937ded86da84327031a04a17fdf9260422a2717f133fc6b1c25dc3364877d5f08e8915420a5f1e19a51957d6dcd6d364c697
|
||||
DIST mautrix-slack-0_pre20240215.tar.xz 15847308 BLAKE2B e8f6b95899cbebab026fc90e76217c1c058baaa18146942feb75c34ca76a081f4d937ea270c076156d247de4e612bedc2eb4d2679d6dbc435723118d69a4000e SHA512 f4ef145e0514de0fb472e1b6bd8793dc6f9042b5ff6454a04ac631aef8f20fca6d5802707811f0bc3961d9b5d86839ec92298b1f87f69bec9ff49bec7a208dde
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module systemd
|
||||
|
||||
COMMIT="eb519c6407751b48001bb66bc55014100322b6c6"
|
||||
COMMIT="a9ba2f9249bdc5df69a1349122d1769e7e48c9e1"
|
||||
DESCRIPTION="A Matrix-Slack puppeting bridge based on slack-go"
|
||||
HOMEPAGE="https://github.com/mautrix/slack"
|
||||
SRC_URI="https://github.com/mautrix/slack/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz
|
||||
@@ -14,6 +14,13 @@
|
||||
|
||||
# New entries go on top.
|
||||
|
||||
# Julien Roy <julien@jroy.ca> (2024-03-19)
|
||||
# Per upstream, as of 2024-03-02:
|
||||
# "This bridge is deprecated. mautrix-meta is recommended instead."
|
||||
# net-im/mautrix-meta 0.2.0 is available in ::guru
|
||||
# Masked for removal in 60 days
|
||||
net-im/mautrix-facebook
|
||||
|
||||
# Julien Roy <julien@jroy.ca> (2024-03-09)
|
||||
# Dracut fails to boot with Clevis 20
|
||||
# https://github.com/latchset/clevis/issues/456
|
||||
@@ -580,18 +587,13 @@ virtual/survival
|
||||
# Removal in +30 days.
|
||||
net-p2p/popura
|
||||
|
||||
# Anna Vyalkova <cyber+gentoo@sysrq.in> (2024-01-07)
|
||||
# Depends on dropped net-libs/signald package
|
||||
# Keeping the package since version >=0.5.0 no longer depend on it, just needs to be packaged
|
||||
net-im/mautrix-signal
|
||||
|
||||
# Lucio Sauer <watermanpaint@posteo.net> (2024-01-04)
|
||||
# Known security bugs. Masked until somone updates it.
|
||||
# Known security bugs. Masked until someone updates it.
|
||||
# https://github.com/TheDarkBug/uwufetch/issues/249
|
||||
app-misc/uwufetch
|
||||
|
||||
# David Roman <davidroman96@gmail.com> (2023-10-19)
|
||||
# Known security bugs. Masked until somone updates it.
|
||||
# Known security bugs. Masked until someone updates it.
|
||||
# See https://bugs.gentoo.org/915891
|
||||
media-video/owncast
|
||||
|
||||
|
||||
Reference in New Issue
Block a user