From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D4C5D15800F for ; Sun, 29 Jan 2023 10:40:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DBB8E08F0; Sun, 29 Jan 2023 10:40:25 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 37A7BE08F0 for ; Sun, 29 Jan 2023 10:40:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CE793340EEC for ; Sun, 29 Jan 2023 10:40:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 060F98A0 for ; Sun, 29 Jan 2023 10:40:20 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1674953859.7b339947ae326bb0fbe45b2d686810f95e441201.ceamac@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: net-libs/signald/, net-libs/signald/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-libs/signald/Manifest net-libs/signald/files/signald.initd net-libs/signald/metadata.xml net-libs/signald/signald-0.23.2.ebuild X-VCS-Directories: net-libs/signald/ net-libs/signald/files/ X-VCS-Committer: ceamac X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: 7b339947ae326bb0fbe45b2d686810f95e441201 X-VCS-Branch: master Date: Sun, 29 Jan 2023 10:40:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2dcc378e-0c04-4aeb-b254-1173f63e138a X-Archives-Hash: afebc23db2d436a63a7606f5c862afd6 commit: 7b339947ae326bb0fbe45b2d686810f95e441201 Author: Julien Roy jroy ca> AuthorDate: Sun Jan 29 00:57:39 2023 +0000 Commit: Viorel Munteanu gentoo org> CommitDate: Sun Jan 29 00:57:39 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7b339947 net-libs/signald: new package, add 0.23.2 Signed-off-by: Julien Roy jroy.ca> net-libs/signald/Manifest | 2 ++ net-libs/signald/files/signald.initd | 23 +++++++++++++ net-libs/signald/metadata.xml | 19 +++++++++++ net-libs/signald/signald-0.23.2.ebuild | 60 ++++++++++++++++++++++++++++++++++ 4 files changed, 104 insertions(+) diff --git a/net-libs/signald/Manifest b/net-libs/signald/Manifest new file mode 100644 index 000000000..5c8c5ad43 --- /dev/null +++ b/net-libs/signald/Manifest @@ -0,0 +1,2 @@ +DIST signald-0.23.2.tar.bz2 267235 BLAKE2B 4ef118dcb4003320945a3110488f606889a1e4c716b54a2e984e73a3631b9b205bb782206b4ce1e89b6e2d994464971d52c24491b4c519a5cd5d648df711cea5 SHA512 a308f31a14bd6c7d71441aaa1ec318d21f4d74c224f14940077105bf0f37e3a9fbc6799d89667ce638cce291773df8a468db8e7b87def1d342b5bc6659339dc1 +DIST signald-0.23.2.tar.xz 121013748 BLAKE2B 66b6d4f0077a70f6311f60b5fd770638927ed8d4948920e616a36e701a0bfec1b950238a1817ed1bcfc68acd31de7833038a55fb2583a58b42df4324261f234e SHA512 840b0658afb3b1f30ba742328fb326bf788e9825e07fc6bc081ad02639e95eb366959ffdb2e21486d87c4973ddb69905941573e6eb4edbc4c935cd15a35fb03d diff --git a/net-libs/signald/files/signald.initd b/net-libs/signald/files/signald.initd new file mode 100644 index 000000000..65ce92d99 --- /dev/null +++ b/net-libs/signald/files/signald.initd @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="signald daemon" +description="an API for Signal" + +pidfile="/run/${RC_SVCNAME}.pid" +command="/usr/bin/signald" +command_args="-d /var/lib/signald -s /tmp/signald.sock --system-socket" +command_background=true +command_user="signald:signald" + +output_log="/var/log/signald.log" +error_log="/var/log/signald.log" + +depend() { + need net +} + +start_pre() { + checkpath -f -m 0644 -o "$command_user" "$output_log" +} diff --git a/net-libs/signald/metadata.xml b/net-libs/signald/metadata.xml new file mode 100644 index 000000000..44efbd59f --- /dev/null +++ b/net-libs/signald/metadata.xml @@ -0,0 +1,19 @@ + + + + + Julien Roy + julien@jroy.ca + + + a daemon that facilitates communication over Signal. It is unofficial, unapproved, and not nearly as secure as the real Signal clients + Signal does not offer any sort of official API. Unlike traditional messaging applications, the Signal server expects the + client software to perform encryption and key management. signald handles all of these client-side requirements and + exposes a plain-text API which can be easily used by developers to build custom Signal clients. + + https://gitlab.com/signald/signald/-/releases + https://signald.org + https://gitlab.com/signald/signald/-/issues + signald/signald + + diff --git a/net-libs/signald/signald-0.23.2.ebuild b/net-libs/signald/signald-0.23.2.ebuild new file mode 100644 index 000000000..bdc9c9701 --- /dev/null +++ b/net-libs/signald/signald-0.23.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +DESCRIPTION="an API for interacting with Signal Private Messenger" +HOMEPAGE="https://gitlab.com/signald/signald" +SRC_URI="https://gitlab.com/signald/signald/-/archive/${PV}.tar.bz2 -> ${P}.tar.bz2 + https://jroy.ca/dist/${P}.tar.xz +" +COMMIT="8cfebfe0ab8395221eca94c4c366abb6d7f39314" +S="${WORKDIR}/${P}-${COMMIT}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="acct-user/signald" +DEPEND="${RDEPEND}" +BDEPEND="dev-java/gradle-bin:7.3.3" + +# From https://github.com/gentoo/gentoo/pull/28986 +# TODO: inherit this eclass when the PR is merged +GRADLE_ARGS=( + --console=plain + --gradle-user-home "${T}/gradle_user_home" + --info + --no-build-cache + --no-daemon + --offline + --parallel + --project-cache-dir "${T}/gradle_project_cache" + --stacktrace +) + +src_unpack() { + default + mv "${WORKDIR}/gradle_project_cache" "${T}" || die + mv "${WORKDIR}/gradle_user_home" "${T}" || die +} + +src_compile() { + gradle "${GRADLE_ARGS[@]}" installDist || die +} + +src_install() { + rm "${S}/build/install/signald/bin/signald.bat" || die + dodir "/var/lib" + mv "${S}/build/install/signald" "${ED}/var/lib" || die + dosym -r "/var/lib/signald/bin/signald" "usr/bin/${PN}" + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + sed -i -e "s/^EnvironmentFile=-\/etc\/default\/signald$//" \ + "${S}/src/main/resources/io/finn/signald/signald.service" || die + sed -i -e "s/--system-socket/-s \/tmp\/signald.sock/" \ + "${S}/src/main/resources/io/finn/signald/signald.service" || die + systemd_dounit "${S}/src/main/resources/io/finn/signald/signald.service" +}