From owner-dev-commits-ports-all@freebsd.org Mon Aug 9 15:07:55 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 03ED3655D8F; Mon, 9 Aug 2021 15:07:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GjzwV6WbKz4fxQ; Mon, 9 Aug 2021 15:07:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C7DE220E0; Mon, 9 Aug 2021 15:07:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 179F7sNx088154; Mon, 9 Aug 2021 15:07:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 179F7shr088153; Mon, 9 Aug 2021 15:07:54 GMT (envelope-from git) Date: Mon, 9 Aug 2021 15:07:54 GMT Message-Id: <202108091507.179F7shr088153@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: af2b599fb712 - main - net/jotta-cli: (New) Jotta Cloud Daemon and Command-Line Interface MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: af2b599fb7123b5fe0fe9f3dfad9c8b8acd6201f Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2021 15:07:55 -0000 The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=af2b599fb7123b5fe0fe9f3dfad9c8b8acd6201f commit af2b599fb7123b5fe0fe9f3dfad9c8b8acd6201f Author: Trenton Schulz AuthorDate: 2021-08-09 15:06:41 +0000 Commit: Li-Wen Hsu CommitDate: 2021-08-09 15:07:47 +0000 net/jotta-cli: (New) Jotta Cloud Daemon and Command-Line Interface PR: 248173 --- GIDs | 2 +- UIDs | 2 +- net/Makefile | 1 + net/jotta-cli/Makefile | 42 ++++++++++++++++++++++++++++++++++++++ net/jotta-cli/distinfo | 5 +++++ net/jotta-cli/files/jottad.in | 18 ++++++++++++++++ net/jotta-cli/files/pkg-message.in | 17 +++++++++++++++ net/jotta-cli/pkg-descr | 23 +++++++++++++++++++++ net/jotta-cli/pkg-plist | 8 ++++++++ 9 files changed, 116 insertions(+), 2 deletions(-) diff --git a/GIDs b/GIDs index 0f002106d485..79c7b72b24a2 100644 --- a/GIDs +++ b/GIDs @@ -234,7 +234,7 @@ pydio:*:291: sftpgo:*:292: biboumi:*:293: krill:*:294: -# free: 295 +jottad:*:295: # free: 296 # free: 297 # free: 298 diff --git a/UIDs b/UIDs index acfb094bada4..9ce3d2737a13 100644 --- a/UIDs +++ b/UIDs @@ -239,7 +239,7 @@ pydio:*:291:291::0:0:pydio cells user:/var/pydio:/bin/sh sftpgo:*:292:292::0:0:SFTPGo user:/nonexistent:/usr/sbin/nologin biboumi:*:293:293::0:0:biboumi:/nonexistent:/usr/sbin/nologin krill:*:294:294::0:0:krill Pseudo User:/nonexistent:/usr/sbin/nologin -# free: 295 +jottad:*:295:295::0:0:Jotta Cloud Daemon:/nonexisten:/usr/sbin/nologin # free: 296 # free: 297 # free: 298 diff --git a/net/Makefile b/net/Makefile index f20d9de3e26b..381111a08ac7 100644 --- a/net/Makefile +++ b/net/Makefile @@ -292,6 +292,7 @@ SUBDIR += jicmp SUBDIR += jicmp6 SUBDIR += jose + SUBDIR += jotta-cli SUBDIR += jrdesktop SUBDIR += jsch SUBDIR += jumpgate diff --git a/net/jotta-cli/Makefile b/net/jotta-cli/Makefile new file mode 100644 index 000000000000..aa4d37dfc2ca --- /dev/null +++ b/net/jotta-cli/Makefile @@ -0,0 +1,42 @@ +# Created by: Trenton Schulz + +PORTNAME= jotta-cli +PORTVERSION= 0.11.44593 +CATEGORIES= net +MASTER_SITES= https://repo.jotta.us/archives/freebsd/${ARCH:S|amd64|amd64|:S|i386|386|}/ +DISTNAME= ${PORTNAME}-${PORTVERSION}_freebsd_${ARCH:S|amd64|amd64|:S|i386|386|} + +MAINTAINER= trueos@norwegianrockcat.com +COMMENT= Jotta Cloud Daemon and Command-Line Interface + +LICENSE= UNKNOWN +LICENSE_NAME= "Jottacloud Terms and Service" +LICENSE_TEXT= "JottaCloud has its own terms and conditions available at https://www.jottacloud.com/en/terms.html" +LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept + +RESTRICTED= yes + +ONLY_FOR_ARCHS= amd64 i386 + +RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss + +USE_RC_SUBR= jottad + +NO_BUILD= yes +SUB_FILES= pkg-message \ + jottad + +USERS= jottad +GROUPS= jottad + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/jottad + ${INSTALL_SCRIPT} ${WRKDIR}/jottad ${STAGEDIR}${PREFIX}/etc/rc.d/jottad + ${INSTALL_PROGRAM} ${WRKDIR}/usr/bin/jotta-cli ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKDIR}/usr/bin/jottad ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_DATA} ${WRKDIR}/etc/jottad/config.ini ${STAGEDIR}${PREFIX}/etc/jottad/config.ini.sample + +post-install: + ${MKDIR} ${STAGEDIR}/var/lib/jottad + +.include diff --git a/net/jotta-cli/distinfo b/net/jotta-cli/distinfo new file mode 100644 index 000000000000..cbadc966aed9 --- /dev/null +++ b/net/jotta-cli/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1624294110 +SHA256 (jotta-cli-0.11.44593_freebsd_amd64.tar.gz) = d8e0ca6619cca4669556e35577601e88009a3993fc3e82009993e218fe4b4c9e +SIZE (jotta-cli-0.11.44593_freebsd_amd64.tar.gz) = 11731054 +SHA256 (jotta-cli-0.11.44593_freebsd_386.tar.gz) = a4b0593383c11d22ebc22d3bccef558bd92400820aff630711c7b31675beda17 +SIZE (jotta-cli-0.11.44593_freebsd_386.tar.gz) = 11082905 diff --git a/net/jotta-cli/files/jottad.in b/net/jotta-cli/files/jottad.in new file mode 100755 index 000000000000..847f5f736f14 --- /dev/null +++ b/net/jotta-cli/files/jottad.in @@ -0,0 +1,18 @@ +#!/bin/sh +# PROVIDE: jottad +# REQUIRE: DAEMON FILESYSTEMS netif +# KEYWORD: + +# Heavily copied from user gt2416 on the FreeNAS forums +# Thread: https://www.ixsystems.com/community/threads/jottacloud-install-guide.69086/ + +. /etc/rc.subr + +name=jottad +jottad_user=jottad +rcvar=jottad_enable +command_args="datadir %%PREFIX%%/etc/jottad &" +command="%%PREFIX%%/sbin/${name}" + +load_rc_config $name +run_rc_command "$1" diff --git a/net/jotta-cli/files/pkg-message.in b/net/jotta-cli/files/pkg-message.in new file mode 100644 index 000000000000..5c15e445a4ec --- /dev/null +++ b/net/jotta-cli/files/pkg-message.in @@ -0,0 +1,17 @@ +[ +{ type: install + message: <