diff options
Diffstat (limited to 'net-im/signald')
| -rw-r--r-- | net-im/signald/Makefile | 135 | ||||
| -rw-r--r-- | net-im/signald/distinfo | 63 | ||||
| -rw-r--r-- | net-im/signald/files/patch-build.gradle | 82 | ||||
| -rw-r--r-- | net-im/signald/files/patch-src_main_java_io_finn_signald_db_RecipientsTable.java | 19 | ||||
| -rw-r--r-- | net-im/signald/files/signald.7.in | 142 | ||||
| -rw-r--r-- | net-im/signald/files/signald.in | 71 | ||||
| -rw-r--r-- | net-im/signald/pkg-descr | 12 | ||||
| -rw-r--r-- | net-im/signald/pkg-message | 7 | ||||
| -rw-r--r-- | net-im/signald/pkg-plist | 33 |
9 files changed, 0 insertions, 564 deletions
diff --git a/net-im/signald/Makefile b/net-im/signald/Makefile deleted file mode 100644 index a9f6a0bf2936..000000000000 --- a/net-im/signald/Makefile +++ /dev/null @@ -1,135 +0,0 @@ -PORTNAME= signald -DISTVERSION= 0.15.0 -PORTREVISION= 3 -CATEGORIES= net-im java -MASTER_SITES= https://plugins.gradle.org/m2/gradle/plugin/de/fuerstenau/BuildConfigPlugin/1.1.8/:buildconfig \ - https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.9.0/:jackann \ - https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.9.9/:jackcore \ - https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.9.9.2/:jackdbind \ - https://repo.maven.apache.org/maven2/com/github/turasa/signal-service-java/2.15.3_unofficial_27/:sservice \ - https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-javalite/3.10.0/:protobuf \ - https://repo.maven.apache.org/maven2/com/googlecode/libphonenumber/libphonenumber/8.12.17/:libphone \ - https://repo.maven.apache.org/maven2/io/prometheus/simpleclient/0.11.0/:simpleclient \ - https://repo.maven.apache.org/maven2/io/prometheus/simpleclient_hotspot/0.11.0/:simpleclient_hotspot \ - https://repo.maven.apache.org/maven2/io/prometheus/simpleclient_httpserver/0.11.0/:simpleclient_httpserver \ - https://repo.maven.apache.org/maven2/io/reactivex/rxjava3/rxjava/3.1.2/:rxjava \ - https://repo.maven.apache.org/maven2/com/kohlschutter/junixsocket/junixsocket-common/2.3.2/:jcommon \ - https://repo.maven.apache.org/maven2/com/kohlschutter/junixsocket/junixsocket-native-common/2.3.2/:jncommon \ - https://repo.maven.apache.org/maven2/com/squareup/okhttp3/okhttp/4.9.1/:okhttp \ - https://repo.maven.apache.org/maven2/com/squareup/okhttp3/logging-interceptor/4.9.1/:okhttp_interceptor \ - https://repo.maven.apache.org/maven2/com/squareup/okio/2.6.0/:okjvm \ - https://repo.maven.apache.org/maven2/info/picocli/picocli/4.5.2/:picocli \ - https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-api/2.17.0/:log4j_api \ - https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.17.0/:log4j_core \ - https://repo.maven.apache.org/maven2/org/bouncycastle/bcprov-jdk15on/1.66/:bcprov \ - https://repo.maven.apache.org/maven2/org/flywaydb/flyway-core/7.5.3/:flyway \ - https://repo.maven.apache.org/maven2/org/jetbrains/annotations/13.0/:jetann \ - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.71/:jetkotstdcommon \ - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.3.71/:jetkotstd \ - https://repo.maven.apache.org/maven2/org/reactivestreams/reactive-streams/1.0.3/:reactivestreams \ - https://repo.maven.apache.org/maven2/org/signal/zkgroup-java/0.7.3/:zkgroup \ - https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.8.0-beta4/:slf4japi \ - https://repo.maven.apache.org/maven2/org/slf4j/slf4j-nop/1.8.0-beta4/:slf4jnop \ - https://repo.maven.apache.org/maven2/org/threeten/threetenbp/1.3.6/:threeten \ - https://repo.maven.apache.org/maven2/org/whispersystems/signal-client-java/0.9.6/:sclient -DISTFILES= BuildConfigPlugin-1.1.8.jar:buildconfig \ - annotations-13.0.jar:jetann \ - bcprov-jdk15on-1.66.jar:bcprov \ - flyway-core-7.5.3.jar:flyway \ - jackson-annotations-2.9.0.jar:jackann \ - jackson-core-2.9.9.jar:jackcore \ - jackson-databind-2.9.9.2.jar:jackdbind \ - junixsocket-common-2.3.2.jar:jcommon \ - junixsocket-native-common-2.3.2.jar:jncommon \ - kotlin-stdlib-1.3.71.jar:jetkotstd \ - kotlin-stdlib-common-1.3.71.jar:jetkotstdcommon \ - libphonenumber-8.12.17.jar:libphone \ - logging-interceptor-4.9.1.jar:okhttp_interceptor \ - log4j-api-2.17.0.jar:log4j_api \ - log4j-core-2.17.0.jar:log4j_core \ - okhttp-4.9.1.jar:okhttp \ - okio-2.6.0.jar:okjvm \ - picocli-4.5.2.jar:picocli \ - protobuf-javalite-3.10.0.jar:protobuf \ - reactive-streams-1.0.3.jar:reactivestreams \ - rxjava-3.1.2.jar:rxjava \ - signal-client-java-0.9.6.jar:sclient \ - signal-service-java-2.15.3_unofficial_27.jar:sservice \ - simpleclient-0.11.0.jar:simpleclient \ - simpleclient_hotspot-0.11.0.jar:simpleclient_hotspot \ - simpleclient_httpserver-0.11.0.jar:simpleclient_httpserver \ - slf4j-api-1.8.0-beta4.jar:slf4japi \ - slf4j-nop-1.8.0-beta4.jar:slf4jnop \ - threetenbp-1.3.6.jar:threeten \ - zkgroup-java-0.7.3.jar:zkgroup - -MAINTAINER= grembo@FreeBSD.org -COMMENT= Daemon to facilitate communication via Signal Private Messenger -WWW= https://signald.org/ - -LICENSE= GPLv3 -LICENSE_FILE= ${WRKSRC}/LICENSE - -ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le - -EXTRACT_DEPENDS=zip:archivers/zip -BUILD_DEPENDS= gradle6>=6.7:devel/gradle6 -LIB_DEPENDS= libsignal_jni.so:net-im/libsignal-client \ - libsqlitejdbc.so:java/sqlitejdbc \ - libzkgroup.so:net-im/zkgroup - -USES= gmake java shebangfix -USE_GITLAB= yes -GL_ACCOUNT= signald -GL_TAGNAME= 65cf5e8a1cf2b81fd1f5c3936e0164d53c5a9b29 -JAVA_VERSION= 11+ -USE_RC_SUBR= signald - -SUB_FILES= signald.7 -SUB_LIST= JAVA_HOME="${JAVA_HOME}" \ - PKGBASE="${PKGBASE}" - -NO_ARCH= yes - -# re-use user from net-im/signal-cli -USERS= signal-cli -GROUPS= signal-cli - -PLIST_SUB= VERSION=${DISTVERSION} - -MAKE_ENV= CI_BUILD_REF_NAME=main \ - CI_COMMIT_SHA="${CI_COMMIT_SHA}" \ - GRADLE="${LOCALBASE}/bin/gradle --no-daemon" \ - GRADLE_USER_HOME=${WRKDIR}/gradle-home \ - JAVA_HOME="${JAVA_HOME}" \ - SIGNALD_TARGET=x86_64-unknown-freebsd \ - VERSION="${DISTVERSION}" - -ALL_TARGET= installDist - -post-extract: - ${MKDIR} ${WRKDIR}/jars -.for f in ${DISTFILES} - ${CP} ${DISTDIR}/${f:C/:.*//} ${WRKDIR}/jars -.endfor - -post-build: - ${CP} ${LOCALBASE}/share/java/classes/sqlitejdbc-native.jar \ - ${WRKSRC}/build/install/${PORTNAME}/lib/. - ${REINPLACE_CMD} -i '' -e 's|#!/usr/bin/env sh|#!/bin/sh|' \ - ${WRKSRC}/build/install/signald/bin/signald - zip -d ${WRKSRC}/build/install/${PORTNAME}/lib/zkgroup-java-*.jar \ - libzkgroup.so - zip -d ${WRKSRC}/build/install/${PORTNAME}/lib/signal-client-java-*.jar \ - libsignal_jni.so - -do-install: - @${MKDIR} ${STAGEDIR}${DATADIR}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/build/install/${PORTNAME}/bin/${PORTNAME} \ - ${STAGEDIR}${DATADIR}/bin/${PORTNAME} - @${MKDIR} ${STAGEDIR}${DATADIR}/lib - ${INSTALL_DATA} ${WRKSRC}/build/install/${PORTNAME}/lib/*.jar \ - ${STAGEDIR}${DATADIR}/lib/ - ${INSTALL_MAN} ${WRKDIR}/signald.7 ${STAGEDIR}${PREFIX}/share/man/man7 - -.include <bsd.port.mk> diff --git a/net-im/signald/distinfo b/net-im/signald/distinfo deleted file mode 100644 index 2065dc520dd5..000000000000 --- a/net-im/signald/distinfo +++ /dev/null @@ -1,63 +0,0 @@ -TIMESTAMP = 1639927271 -SHA256 (BuildConfigPlugin-1.1.8.jar) = 99b5256936af67431a8a92902f253f525837ac3639a5ff05ed2225febaa710af -SIZE (BuildConfigPlugin-1.1.8.jar) = 52133 -SHA256 (annotations-13.0.jar) = ace2a10dc8e2d5fd34925ecac03e4988b2c0f851650c94b8cef49ba1bd111478 -SIZE (annotations-13.0.jar) = 17536 -SHA256 (bcprov-jdk15on-1.66.jar) = 1b861dba1c5445de9b38a1789c211ef28b9d07e26d1fa38bee717e5b51162ffe -SIZE (bcprov-jdk15on-1.66.jar) = 5884134 -SHA256 (flyway-core-7.5.3.jar) = d0283d9481ae39cc77d210a5bb176a5c103da292898bfd3a9acb25da059e97d8 -SIZE (flyway-core-7.5.3.jar) = 679850 -SHA256 (jackson-annotations-2.9.0.jar) = 45d32ac61ef8a744b464c54c2b3414be571016dd46bfc2bec226761cf7ae457a -SIZE (jackson-annotations-2.9.0.jar) = 66519 -SHA256 (jackson-core-2.9.9.jar) = 3083079be6088db2ed0a0c6ff92204e0aa48fa1de9db5b59c468f35acf882c2c -SIZE (jackson-core-2.9.9.jar) = 325632 -SHA256 (jackson-databind-2.9.9.2.jar) = fb262d42ea2de98044b62d393950a5aa050435fec38bbcadf2325cf7dc41b848 -SIZE (jackson-databind-2.9.9.2.jar) = 1348331 -SHA256 (junixsocket-common-2.3.2.jar) = 2b501ae7e230b8dbcae0991a10b99bb22b752c583919d6db8e017de53415db0e -SIZE (junixsocket-common-2.3.2.jar) = 88642 -SHA256 (junixsocket-native-common-2.3.2.jar) = 6a090697071ae30a29c263ffd5999778dd560779974ee15b9586a0aa3dc3e0d2 -SIZE (junixsocket-native-common-2.3.2.jar) = 355182 -SHA256 (kotlin-stdlib-1.3.71.jar) = 5ace22b102a96425e4ac44e0558b927f3857b56a33cbc289cf1b70aee645e6a7 -SIZE (kotlin-stdlib-1.3.71.jar) = 1379827 -SHA256 (kotlin-stdlib-common-1.3.71.jar) = 974f8a9b7bfce3d730a86efe0eab219a72621e8530f91e30c89f400ba98092ec -SIZE (kotlin-stdlib-common-1.3.71.jar) = 179597 -SHA256 (libphonenumber-8.12.17.jar) = 729483057ef874b01537da8395d67e23b419d504f8ff29ddf5f69da21bf816ac -SIZE (libphonenumber-8.12.17.jar) = 350448 -SHA256 (logging-interceptor-4.9.1.jar) = 08ae52d4e7ab4dde8f94970bbeb1545b51934d4b3f0802f6e816b0522902fa9d -SIZE (logging-interceptor-4.9.1.jar) = 15680 -SHA256 (log4j-api-2.17.0.jar) = ab9cadc80e234580e3f3c8c18644314fccd4b3cd3f7085d4e934866cb561b95d -SIZE (log4j-api-2.17.0.jar) = 301776 -SHA256 (log4j-core-2.17.0.jar) = 65c33dc9b24a5e5f6cacae62680641582894749c7bf16c951032ef92f3e12a60 -SIZE (log4j-core-2.17.0.jar) = 1789339 -SHA256 (okhttp-4.9.1.jar) = 6afdd8f35f4eb60df965c290fa3acf29443fa986545113d0729b8461f6571f8f -SIZE (okhttp-4.9.1.jar) = 791390 -SHA256 (okio-2.6.0.jar) = 4d84ef686277b58eb05691ac19cd3befa3429a27274982ee65ea0f07044bcc00 -SIZE (okio-2.6.0.jar) = 243330 -SHA256 (picocli-4.5.2.jar) = b4395e9a67932616efd2245d984bf5fcd453c2c5049558c3ce959ac2af4d3fac -SIZE (picocli-4.5.2.jar) = 390247 -SHA256 (protobuf-javalite-3.10.0.jar) = 215a94dbe100130295906b531bb72a26965c7ac8fcd9a75bf8054a8ac2abf4b4 -SIZE (protobuf-javalite-3.10.0.jar) = 690955 -SHA256 (reactive-streams-1.0.3.jar) = 1dee0481072d19c929b623e155e14d2f6085dc011529a0a0dbefc84cf571d865 -SIZE (reactive-streams-1.0.3.jar) = 11369 -SHA256 (rxjava-3.1.2.jar) = 8d784075bec0b7c55042c109a4de8923b3b6d2ebd2e00912d518f07240f9c23a -SIZE (rxjava-3.1.2.jar) = 2654933 -SHA256 (signal-client-java-0.9.6.jar) = f64aeb071eae2e1e2413902da6554c03e22f66d7a59ffdd79f3beeb0248ea054 -SIZE (signal-client-java-0.9.6.jar) = 4002591 -SHA256 (signal-service-java-2.15.3_unofficial_27.jar) = 01ff7cb5c1874d9a09ba1a7b9a44c01ed206d1f2d368d1ef05c4140a0ec5968e -SIZE (signal-service-java-2.15.3_unofficial_27.jar) = 1781909 -SHA256 (simpleclient-0.11.0.jar) = dee025612a2bec65bb813eaf6830221ded9d44733d5c90855dbdcdf559f209eb -SIZE (simpleclient-0.11.0.jar) = 82198 -SHA256 (simpleclient_hotspot-0.11.0.jar) = 96a349c370007786c611257bce66930a4ab749146d360098069b9a50d478b4fd -SIZE (simpleclient_hotspot-0.11.0.jar) = 22116 -SHA256 (simpleclient_httpserver-0.11.0.jar) = de2c12b90c586425b6fcb9b9a716973b2e328b421a314230f16a3060eeaeb31a -SIZE (simpleclient_httpserver-0.11.0.jar) = 10621 -SHA256 (slf4j-api-1.8.0-beta4.jar) = 602b712329c84b4a83c40464f4fdfd0fe4238c53ef397139a867064739dbf4e0 -SIZE (slf4j-api-1.8.0-beta4.jar) = 44213 -SHA256 (slf4j-nop-1.8.0-beta4.jar) = c833140c2c210678d4aea0d689696ae0b0bdbdc69d36b565ddf357bacacce052 -SIZE (slf4j-nop-1.8.0-beta4.jar) = 5860 -SHA256 (threetenbp-1.3.6.jar) = f4c23ffaaed717c3b99c003e0ee02d6d66377fd47d866fec7d971bd8644fc1a7 -SIZE (threetenbp-1.3.6.jar) = 514875 -SHA256 (zkgroup-java-0.7.3.jar) = 6d45d1bce568a87089bc6a1d9a2daa4587a7f04d168069abfa50616ca2bae524 -SIZE (zkgroup-java-0.7.3.jar) = 321682 -SHA256 (signald-signald-65cf5e8a1cf2b81fd1f5c3936e0164d53c5a9b29_GL0.tar.gz) = d9b807aa6097141779ec30f47c217783812a375d2f435c85b097da1bd996092c -SIZE (signald-signald-65cf5e8a1cf2b81fd1f5c3936e0164d53c5a9b29_GL0.tar.gz) = 257854 diff --git a/net-im/signald/files/patch-build.gradle b/net-im/signald/files/patch-build.gradle deleted file mode 100644 index 480b26a8de87..000000000000 --- a/net-im/signald/files/patch-build.gradle +++ /dev/null @@ -1,82 +0,0 @@ ---- build.gradle.orig 2021-10-02 23:08:05 UTC -+++ build.gradle -@@ -20,10 +20,13 @@ import org.gradle.nativeplatform.platform.internal.Ope - import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform - import org.xml.sax.SAXParseException - --plugins { -- id 'de.fuerstenau.buildconfig' version '1.1.8' -+buildscript { -+ dependencies { -+ classpath files ("../jars/BuildConfigPlugin-1.1.8.jar") -+ } - } - -+apply plugin: 'de.fuerstenau.buildconfig' - apply plugin: 'java' - apply plugin: 'application' - apply plugin: 'idea' -@@ -86,10 +89,18 @@ static String getTarget() { - return target - } - -+ - repositories { -- maven {url "https://gitlab.com/api/v4/groups/6853927/-/packages/maven"} // https://gitlab.com/groups/signald/-/packages -- maven {url "https://plugins.gradle.org/m2/"} -- mavenCentral() -+ ivy { -+ url "../jars" -+ metadataSources { -+ artifact() -+ } -+ patternLayout { -+ artifact "[artifact]-[revision](-[classifier]).[ext]" -+ artifact "[artifact].[ext]" -+ } -+ } - } - - sourceSets { -@@ -109,21 +120,37 @@ configurations { - } - - dependencies { -- implementation 'com.github.turasa:signal-service-java-' + getTarget() + ':2.15.3_unofficial_27' -+ implementation 'com.github.turasa:signal-service-java:2.15.3_unofficial_27' - implementation 'org.bouncycastle:bcprov-jdk15on:1.66' - implementation 'com.kohlschutter.junixsocket:junixsocket-common:2.3.2' - implementation 'com.kohlschutter.junixsocket:junixsocket-native-common:2.3.2' -- implementation 'org.apache.logging.log4j:log4j-api:2.14.0' -- implementation 'org.apache.logging.log4j:log4j-core:2.14.0' -+ implementation 'org.apache.logging.log4j:log4j-api:2.17.0' -+ implementation 'org.apache.logging.log4j:log4j-core:2.17.0' - implementation 'org.slf4j:slf4j-nop:1.8.0-beta4' -+ implementation 'org.slf4j:slf4j-api:1.8.0-beta4' - implementation 'info.picocli:picocli:4.5.2' -- implementation 'org.xerial:sqlite-jdbc:3.34.0' -+ implementation files('sqlitejdbc-native.jar') -+ implementation 'com.fasterxml.jackson.core:jackson-core:2.9.9' -+ implementation 'com.fasterxml.jackson.annotations:jackson-annotations:2.9.0' -+ implementation 'com.fasterxml.jackson.databind:jackson-databind:2.9.9.2' -+ implementation 'org.whispersystems.libsignal.signal-client-java:signal-client-java:0.9.6' -+ implementation 'org.signal.zkgroup:zkgroup-java:0.7.3' - implementation 'org.flywaydb:flyway-core:7.5.3' - implementation 'com.google.protobuf:protobuf-javalite:3.10.0' - implementation 'io.prometheus:simpleclient:0.11.0' - implementation 'io.prometheus:simpleclient_hotspot:0.11.0' - implementation 'io.prometheus:simpleclient_httpserver:0.11.0' -+ implementation 'io.reactivex.rxjava3:rxjava:3.1.2' - implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1' -+ implementation 'okhttp3:okhttp:4.9.1' -+ implementation 'okio:okio:2.6.0' -+ implementation 'org.jetbrains.annotations:annotations:13.0' -+ implementation 'org.jetbrains.kotlin.kotlin-stdlib:kotlin-stdlib:1.3.71' -+ implementation 'org.jetbrains.kotlin.kotlin-stdlib-common:kotlin-stdlib-common:1.3.71' -+ implementation 'org.reactivestreams:reactive-streams:1.0.3' -+ implementation 'com.googlecode.libphonenumber:libphonenumber:8.12.17' -+ implementation 'com.googlecode.libphonenumber:libphonenumber:8.12.17' -+ implementation 'org.threeten.threetenbp:threetenbp:1.3.6' - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.0' - testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.0' - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.0' diff --git a/net-im/signald/files/patch-src_main_java_io_finn_signald_db_RecipientsTable.java b/net-im/signald/files/patch-src_main_java_io_finn_signald_db_RecipientsTable.java deleted file mode 100644 index 016d5bb4aa71..000000000000 --- a/net-im/signald/files/patch-src_main_java_io_finn_signald_db_RecipientsTable.java +++ /dev/null @@ -1,19 +0,0 @@ ---- src/main/java/io/finn/signald/db/RecipientsTable.java.orig 2021-10-17 08:41:09 UTC -+++ src/main/java/io/finn/signald/db/RecipientsTable.java -@@ -144,6 +144,16 @@ public class RecipientsTable { - - if (storedUUID == null) { - storedUUID = getRegisteredUser(e164); -+ if (rowid < 0 && storedUUID != null && queryUUID == null) { -+ statement.setString(1, storedUUID.toString()); -+ statement.setString(2, null); -+ rows = statement.executeQuery(); -+ if (rows.next()) { -+ rowid = rows.getInt(ROW_ID); -+ update(E164, e164, rowid); -+ } -+ } -+ - if (rowid > 0) { - update(UUID, storedUUID.toString(), rowid); - } else { diff --git a/net-im/signald/files/signald.7.in b/net-im/signald/files/signald.7.in deleted file mode 100644 index fe7607c23ab0..000000000000 --- a/net-im/signald/files/signald.7.in +++ /dev/null @@ -1,142 +0,0 @@ -.\" -.\" Copyright (c) 2021 Michael Gmelin -.\" -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR -.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, -.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -.\" -.Dd August 28, 2021 -.Dt SIGNALD 7 -.Os -.Sh NAME -.Nm %%PKGBASE%% -.Nd Daemon to facilitate communication via Signal Private Messenger -.Sh SYNOPSIS -.Nm pkg install %%PKGBASE%% -.Sh DESCRIPTION -.Em Signald -is an unofficial utility for interacting with Signal. -It is a Java based daemon that is running in the background and is -communicated to over a socket. -.Pp -This man page documents how the -.Fx -port is installed and how to get started. -It assumes that the %%PKGBASE%% package was already installed, -e.g., from the -.Fx -package repo as described in -.Sx SYNOPSIS . -.Sh GETTING STARTED -To enable and start the service, run as root -.Bd -literal -offset indent -service %%PKGBASE%% enable -service %%PKGBASE%% start -.Ed -.Pp -Check log output: -.Bd -literal -offset indent -cat /var/log/%%PKGBASE%%/%%PKGBASE%%.log -.Ed -.Pp -Install signaldctl, a command line tool that allows interacting with -the service: -.Bd -literal -offset indent -pkg install go -go install gitlab.com/signald/signald-go/cmd/signaldctl@latest -.Ed -.Sh LINKING A DEVICE -To link an existing device (phone), first enter -.Bd -literal -offset indent -~/go/bin/signaldctl account link -.Ed -.Pp -then do "Select Linked Devices -> Link New Device" -in the Signal smartphone app's menu and scan the QR code shown -on your terminal. -.Sh REGISTERING A DEVICE -.Em WARNING : -This disconnects other devices using the same MSISDN. -.Bl -bullet -compact -.It -Open your web browser and enable developer mode -.It -Go to -.Lk https://signalcaptchas.org/registration/generate.html -.It -Solve the captcha -.It -Depending on your browser you are redirected to a URL starting -with "signalcaptcha://" or it can be seen in the web developer -console - everything after "//" is the captcha. -.El -.Pp -Register your device using the captcha copied above: -.Bd -literal -offset indent -~/go/bin/signaldctl account register [msisdn] --captcha [captcha] -.Ed -.Pp -.Em msisdn -is your full mobile phone number with country code, e.g., +123456789. -.Pp -You will receive a text message containing a verification code on the -MSISDN specified in the registration call above. -Use this verification code -.Bd -literal -offset indent -~/go/bin/signaldctl account verify [msisdn] [code] -.Ed -.Pp -to complete the registration. -.Sh SENDING A MESSAGE -Use this command to send a message -.Bd -literal -offset indent -~/go/bin/signaldctl message send -a [msisdn_from] [msisdn_to] [msg] -.Ed -.Pp -You can also send a message to yourself when using a linked device, -which will show up in "Note to Self", but not cause a notification, -e.g., -.Bd -literal -offset indent -~/go/bin/signaldctl message send -a +123456789 +123456789 "Beep beep" -.Ed -.Sh FILES -.Bl -tag -width ".Pa /var/run/signald/signald.sock" -compact -.It Pa /var/db/signald -Signald database. -.It Pa /var/log/signald/signald.log -Signald log output. -.It Pa /var/run/signald/signald.sock -Socket to communicate with signald, -.Em world writable . -.El -.Sh SEE ALSO -.Xr ports 7 , -.Xr daemon 8 , -.Xr service 8 -.Pp -.Rs -.%B "Signald project website" -.%U https://signald.org -.Re -.Sh AUTHORS -.An -nosplit -This manual page was written by -.An Michael Gmelin Aq Mt grembo@FreeBSD.org . diff --git a/net-im/signald/files/signald.in b/net-im/signald/files/signald.in deleted file mode 100644 index 308a645d696d..000000000000 --- a/net-im/signald/files/signald.in +++ /dev/null @@ -1,71 +0,0 @@ -#! /bin/sh - - -# SPDX-License-Identifier: BSD-2-Clause -# -# Copyright (c) 2021 Michael Gmelin <grembo@FreeBSD.org> -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1. Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -# PROVIDE: signald -# REQUIRE: DAEMON LOGIN NETWORKING - -. /etc/rc.subr - -name='signald' -rcvar='signald_enable' - -# User-facing settings and their default values. - -: ${signald_enable:="NO"} -: ${signald_user:="signal-cli"} -: ${signald_group:="signal-cli"} -: ${signald_data_dir:="/var/db/signald"} -: ${signald_env:="JAVA_HOME=%%JAVA_HOME%%"} - -pidfile="/var/run/${name}/${name}.pid" -procname="%%JAVA_HOME%%/bin/java" - -_daemon_args="-p ${pidfile} -o /var/log/${name}/${name}.log" -_signald="%%DATADIR%%/bin/${name}" -_signald_args="-d ${signald_data_dir}" -command="/usr/sbin/daemon" -command_args="${_daemon_args} ${_signald} ${_signald_args}" - -start_precmd="signald_prestart" - -signald_prestart() { - if ! install -d -o "${signald_user}" -g "${signald_group}" -m 700 \ - "${signald_data_dir}"; then - err 1 "Failed to create data directory \"${signald_data_dir}\"" - fi - if ! install -d -o "${signald_user}" -g "${signald_group}" -m 755 \ - "/var/run/${name}"; then - err 1 "Failed to create run directory \"/var/run/${name}\"" - fi - if ! install -d -o "${signald_user}" -g "${signald_group}" -m 755 \ - "/var/log/${name}"; then - err 1 "Failed to create log directory \"/var/log/${name}\"" - fi -} - -load_rc_config "$name" -run_rc_command "$@" diff --git a/net-im/signald/pkg-descr b/net-im/signald/pkg-descr deleted file mode 100644 index e4e633c78f4f..000000000000 --- a/net-im/signald/pkg-descr +++ /dev/null @@ -1,12 +0,0 @@ -signald - unofficial utility for interacting with Signal - -Signal does not offer any sort of official API. Their server software is -open source and anyone can figure out the REST endpoints, but formatting the -payloads turns out to be a little trickier. Signal, unlike traditional -messaging applications, puts a number requirements around encryption and -account data storage on the client software. signald aims to handle all of -the Signal-specific requirements, exposing an API that sends and receives -unencrypted messages with other software on the same machine. - -signald does not come with a user friendly frontend. Users should select an -existing client to use signald with. diff --git a/net-im/signald/pkg-message b/net-im/signald/pkg-message deleted file mode 100644 index 51761fb36c8c..000000000000 --- a/net-im/signald/pkg-message +++ /dev/null @@ -1,7 +0,0 @@ -[ -{ type: install - message: <<EOM - Please see `man signald' for details on how to get started. -EOM -} -] diff --git a/net-im/signald/pkg-plist b/net-im/signald/pkg-plist deleted file mode 100644 index 6a55af0e6f65..000000000000 --- a/net-im/signald/pkg-plist +++ /dev/null @@ -1,33 +0,0 @@ -share/man/man7/signald.7.gz -%%DATADIR%%/bin/signald -%%DATADIR%%/lib/annotations-13.0.jar -%%DATADIR%%/lib/bcprov-jdk15on-1.66.jar -%%DATADIR%%/lib/flyway-core-7.5.3.jar -%%DATADIR%%/lib/jackson-annotations-2.9.0.jar -%%DATADIR%%/lib/jackson-core-2.9.9.jar -%%DATADIR%%/lib/jackson-databind-2.9.9.2.jar -%%DATADIR%%/lib/junixsocket-common-2.3.2.jar -%%DATADIR%%/lib/junixsocket-native-common-2.3.2.jar -%%DATADIR%%/lib/kotlin-stdlib-1.3.71.jar -%%DATADIR%%/lib/kotlin-stdlib-common-1.3.71.jar -%%DATADIR%%/lib/libphonenumber-8.12.17.jar -%%DATADIR%%/lib/log4j-api-2.17.0.jar -%%DATADIR%%/lib/log4j-core-2.17.0.jar -%%DATADIR%%/lib/logging-interceptor-4.9.1.jar -%%DATADIR%%/lib/okhttp-4.9.1.jar -%%DATADIR%%/lib/okio-2.6.0.jar -%%DATADIR%%/lib/picocli-4.5.2.jar -%%DATADIR%%/lib/protobuf-javalite-3.10.0.jar -%%DATADIR%%/lib/reactive-streams-1.0.3.jar -%%DATADIR%%/lib/rxjava-3.1.2.jar -%%DATADIR%%/lib/signal-client-java-0.9.6.jar -%%DATADIR%%/lib/signal-service-java-2.15.3_unofficial_27.jar -%%DATADIR%%/lib/signald.jar -%%DATADIR%%/lib/simpleclient-0.11.0.jar -%%DATADIR%%/lib/simpleclient_hotspot-0.11.0.jar -%%DATADIR%%/lib/simpleclient_httpserver-0.11.0.jar -%%DATADIR%%/lib/slf4j-api-1.8.0-beta4.jar -%%DATADIR%%/lib/slf4j-nop-1.8.0-beta4.jar -%%DATADIR%%/lib/sqlitejdbc-native.jar -%%DATADIR%%/lib/threetenbp-1.3.6.jar -%%DATADIR%%/lib/zkgroup-java-0.7.3.jar |
