public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Viorel Munteanu" <ceamac@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-libs/signald/, net-libs/signald/files/
Date: Sun, 29 Jan 2023 10:40:20 +0000 (UTC)	[thread overview]
Message-ID: <1674953859.7b339947ae326bb0fbe45b2d686810f95e441201.ceamac@gentoo> (raw)

commit:     7b339947ae326bb0fbe45b2d686810f95e441201
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sun Jan 29 00:57:39 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> 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 <julien <AT> 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 @@
+<?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>
+	<longdescription>
+	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.	</longdescription>
+	<upstream>
+		<changelog>https://gitlab.com/signald/signald/-/releases</changelog>
+		<doc>https://signald.org</doc>
+		<bugs-to>https://gitlab.com/signald/signald/-/issues</bugs-to>
+		<remote-id type="gitlab">signald/signald</remote-id>
+	</upstream>
+</pkgmetadata>

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"
+}


                 reply	other threads:[~2023-01-29 10:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1674953859.7b339947ae326bb0fbe45b2d686810f95e441201.ceamac@gentoo \
    --to=ceamac@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox