Compare commits
2 commits
24b87c0690
...
eda8aa5310
Author | SHA1 | Date | |
---|---|---|---|
Alarig Le Lay | eda8aa5310 | ||
Alarig Le Lay | f070c5b748 |
|
@ -1,2 +1,4 @@
|
|||
DIST libsignal-ffi-0.52.0-vendor.tar.xz 45875576 BLAKE2B 2dc951066b13e1c4d07ceb97965e798fbdaadca315c890a849c3851c9003f0dd609e000fbabc68abd9ab367d5e566d8759d919882876b513edd5830638480452 SHA512 296ef353b645bad07d9798375ef5081d28f8e52473681cd1e851b7ac0bba49b10f1ba213ac8b0928dd8faaab1bb3d0cc663782bcba0dd77351c654844432972b
|
||||
DIST libsignal-ffi-0.52.0.gh.tar.gz 1490320 BLAKE2B 0372f1420a1b1638965b5c36266b712944ae4dd6cb00a695ec432a6eb6383970e515c0a2b078ba6a52e8356b50644e20f5d751cc986d82848fbf9949bba2cb28 SHA512 f9410e47214ef013b2afa4971400526c9eece8ce58e7dc942a139c999b2426c668f415ac3abdde8b77ccca9a0bc342b2f51df4856d3b8e58c563753d26b4530a
|
||||
DIST libsignal-ffi-0.55.0-vendor.tar.xz 47145264 BLAKE2B de5b83abcea4dc7ac31c503a55c1aea05c0d02b3697ec5259faf30a801e6369017ec720103745a213ec495d96cf9d506dd8cc1a58fccba1a9e1df747792ead1c SHA512 0f9c99be0f6abf38baeaa167f1e4cbb5ac72c95539d4660ebc87eed7ac01ab993b7705515aa5520bc18b50595f61626c81125c09a05dfee3d8e478bae033e45f
|
||||
DIST libsignal-ffi-0.55.0.gh.tar.gz 1576924 BLAKE2B a11c594f5b690c9e5e70a78a01fabd3fac1bee2e19ff6cad7c07624e658cc674e65de7a62b6df6068ed36b6e6f58f94103382b6019a213869019648a3cebf360 SHA512 1749231ecd576efe6b5f6f7359f8843a82451d64209fb62bd48fa36e59be16d188528448c89da7ac59f53cb5676183a02d30363079e2856cae22f233d9352ef4
|
||||
|
|
50
dev-libs/libsignal-ffi/libsignal-ffi-0.55.0.ebuild
Normal file
50
dev-libs/libsignal-ffi/libsignal-ffi-0.55.0.ebuild
Normal file
|
@ -0,0 +1,50 @@
|
|||
# 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://herbizarre.swordarmor.fr/garbage/${P}-vendor.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"
|
||||
IUSE="debug"
|
||||
|
||||
BDEPEND="
|
||||
dev-libs/protobuf
|
||||
sys-devel/clang
|
||||
"
|
||||
|
||||
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() {
|
||||
if use debug; then
|
||||
TARGET=debug
|
||||
else
|
||||
TARGET=release
|
||||
fi
|
||||
|
||||
dolib.a "${WORKDIR}/${P/-ffi/}/target/${TARGET}/${PN/-/_}.a"
|
||||
}
|
13
metadata/md5-cache/dev-libs/libsignal-ffi-0.55.0
Normal file
13
metadata/md5-cache/dev-libs/libsignal-ffi-0.55.0
Normal file
|
@ -0,0 +1,13 @@
|
|||
BDEPEND=dev-libs/protobuf sys-devel/clang >=virtual/rust-1.53
|
||||
DEFINED_PHASES=compile configure install test unpack
|
||||
DESCRIPTION=A C ABI library which exposes Signal protocol logic
|
||||
EAPI=8
|
||||
HOMEPAGE=https://github.com/signalapp/libsignal
|
||||
INHERIT=cargo
|
||||
IUSE=debug debug
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=AGPL-3 AGPL-3 Apache-2.0 BSD-2 BSD ISC MIT Unicode-DFS-2016
|
||||
SLOT=0
|
||||
SRC_URI=https://github.com/signalapp/libsignal/archive/v0.55.0.tar.gz -> libsignal-ffi-0.55.0.gh.tar.gz https://herbizarre.swordarmor.fr/garbage/libsignal-ffi-0.55.0-vendor.tar.xz
|
||||
_eclasses_=toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0 flag-o-matic e503ea5acc20410237ba33ec3f7c857d multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe rust-toolchain 68a6453cb41148db1da01fa2267527f0 cargo 67ea64209e3442a3a0e095f048d43a62
|
||||
_md5_=0b9dca48161423bf37c48ca9c5112a03
|
15
metadata/md5-cache/net-im/mautrix-signal-0.7.0
Normal file
15
metadata/md5-cache/net-im/mautrix-signal-0.7.0
Normal file
|
@ -0,0 +1,15 @@
|
|||
BDEPEND=~dev-libs/libsignal-ffi-0.55.0 dev-libs/olm >=dev-lang/go-1.20:= app-arch/unzip virtual/pkgconfig
|
||||
DEFINED_PHASES=compile config install postinst unpack
|
||||
DEPEND=acct-user/mautrix-signal
|
||||
DESCRIPTION=A Matrix-Signal puppeting bridge
|
||||
EAPI=8
|
||||
HOMEPAGE=https://github.com/mautrix/signal
|
||||
INHERIT=go-module systemd
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=AGPL-3
|
||||
RDEPEND=acct-user/mautrix-signal
|
||||
RESTRICT=strip
|
||||
SLOT=0
|
||||
SRC_URI=https://github.com/mautrix/signal/archive/v0.7.0.tar.gz -> mautrix-signal-0.7.0.gh.tar.gz https://herbizarre.swordarmor.fr/garbage/mautrix-signal-0.7.0-deps.tar.xz
|
||||
_eclasses_=multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0 flag-o-matic e503ea5acc20410237ba33ec3f7c857d go-env 7eb56e61e641d6db098d57fb37477c44 go-module 83fd3ed1657cfc316c93d6a37018290d systemd c8b03e8df84486aa991d4396686e8942
|
||||
_md5_=3f2fbef8fb0f8158ecec802fa3e9e586
|
|
@ -1,2 +1,4 @@
|
|||
DIST mautrix-signal-0.6.3-deps.tar.xz 20641692 BLAKE2B f32e1898a527cde3569c48d0d8641a0c48c1e0e954e2a5065be0aa061e651339e34eb48ad64aa40e6cb25a15ce23d586caf614272efe7a5581ff41087f003160 SHA512 1a14b8683635167c11282b74f15123e31ae09b9e1c6ed2100c369127db6e2fcc1c006798fb3a94ea9431aa0e01534944f6d42a801d5ae83b145798da56cc02f1
|
||||
DIST mautrix-signal-0.6.3.gh.tar.gz 358156 BLAKE2B 9af53b4a937381a73cd07c2237ea8734e507c1865347db0db8ca4098c1357a8d256b908351b014e6a1950f70d58610654f6478177218558ad15945351d116c32 SHA512 b4ac7a0e9d9ce69d34a32d0bb458d8f43d1c665dba22524dc9909f5a314a9ed46cbd07c8c128db92d399f51d11154eafedc37bc9c0cc289cbef616cba743209e
|
||||
DIST mautrix-signal-0.7.0-deps.tar.xz 32087944 BLAKE2B dda574696b347ca9cb34799978a72c4cb05ac51dd16ddf2e1a3ed95fe0cca4a58534a9c6f4d6b8e291119049c1d57e526f3f972215035cf4486c6cdf27e6f514 SHA512 960b1f56bc3d46826f982a010b6fada9a92d81b037982eac2063928522886561bd1fe62b7da12ffcff81a6699567b3d6c2cbffd394e41535fcf771d91b441bb4
|
||||
DIST mautrix-signal-0.7.0.gh.tar.gz 266505 BLAKE2B 16b013192ed116ede99c16c8edec74f3547b777fc485e61ee0d9a370a9fe6e40c10814312510ac5c3aaf6054c3a166fff090651162cd0b60fb73966408a7b877 SHA512 26a510c43fdb119ec57774e6deafc62469481b857bd9a2a16fc2468011adcc72fca5551a21b0024c43d1c91185ebb1d20a3c9589d04265aa0224047c1d861c7a
|
||||
|
|
66
net-im/mautrix-signal/mautrix-signal-0.7.0.ebuild
Normal file
66
net-im/mautrix-signal/mautrix-signal-0.7.0.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://herbizarre.swordarmor.fr/garbage/${P}-deps.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/signal-${PV}"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/${PN}
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
~dev-libs/libsignal-ffi-0.55.0
|
||||
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"
|
||||
}
|
Loading…
Reference in a new issue