From nobody Sun Jun 30 10:43:58 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WBm4Z5vDHz5Pf8m; Sun, 30 Jun 2024 10:43:58 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WBm4Z54hjz4drl; Sun, 30 Jun 2024 10:43:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719744238; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VcOVjb29n/D5FjKpEs8AK5eMnPKZWGgMkTKGYNALiQo=; b=TLII99zZVnY6lfM5WWgWO5Sml0SUQO6Br9sdCodYJCKqBUvuCKku5UYxe67Q0gj74MAjo3 zv0qQDubCjg7ZTDP247CP4FReem+exWHTt7EPKlL/OLl9RjHXXgFGa6+b77TkiBGkGgOix 8aol+slTgqewA2TjQZhqkN1XChCpKo3vDSyobIc9EuylZdhy31TiedE6nVz1y2Q25TPk+N cpy5CrUMmhNpPQ3IGWcIyQM5BDc2snP0Fx+FB2mkg9ixpdwx6Fo6heJ4flFnkOyloZcLkR zM23lTZ3AUP39iUWrjSFYPIKREQ7ItkW2v3UL7xfP+ty5hkB4uMpi4WmlaI9Ow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719744238; a=rsa-sha256; cv=none; b=K2CcCHH1p0X83ls5mwLw9XwHX0De7hSHS+EptdvAL0vejbrSsH2Ggn2+0uZ+ZoYDFW8rCv eODxissCOlTB3JHUiKwqJMOcqOA7BMp6adijf5SHa51x8p828om3HcoG3fdocQdHscySB4 TZGoDtjspXp/vFzTtgH9N6KcL7JEWmfpnKe1vSL5xFAr4IHZcrWRqXD5eJeG1aFDEvtqvD 26AACfKFb2aJW3SBpKbvsObu5lOOGP/jhWwhIt30UyYW4qPuZgZVna7lMXq/j13atTZBJo OlfeWYrJCXdSrGTEjmWtDVs0hrImTFlRHxxe+JrWLpIxaaSHSWxVLoqtjWIxeQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719744238; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VcOVjb29n/D5FjKpEs8AK5eMnPKZWGgMkTKGYNALiQo=; b=B+Hsj9/62tsjDuLkx/9DtQj+GUh4KDiDpdIh4DXUu/GNrfBZsbB4t/s5Qjq+7Au2gJHpxs QunbOEnaAL147LBOADv8NY6bUziruq7oZ4sjBAnlA9q7veAH8lrGpQrEq12a+WHWGHw0eX VrFLb+ACDmuzkTz2xbzbWkNRsYxzLk1YsK9fDdNWUtgxbTgB7uOGdYcxnFWsZXi5Iskisb ShhkxWcN407j+Sfw8uwjL0ANo49C9yXGz/GiJuyaGedTWhwMl1lmNdQQQ6m5WElh0BgD/F Znk6S0uAyBixxV6KFvOKYLioeR8Bz+F65PeZaZSRdDbYbIuNOrQPmSw/FXUqag== 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 4WBm4Z4gkyzJgn; Sun, 30 Jun 2024 10:43:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 45UAhw0T085488; Sun, 30 Jun 2024 10:43:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 45UAhwRi085485; Sun, 30 Jun 2024 10:43:58 GMT (envelope-from git) Date: Sun, 30 Jun 2024 10:43:58 GMT Message-Id: <202406301043.45UAhwRi085485@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: John Hixson Subject: git: fc2f8f7ed067 - main - sysutils/kubo: update ipfs port to kubo version v0.2.9 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhixson X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fc2f8f7ed067de1d4b2682cb5cf8a65807d81978 Auto-Submitted: auto-generated The branch main has been updated by jhixson: URL: https://cgit.FreeBSD.org/ports/commit/?id=fc2f8f7ed067de1d4b2682cb5cf8a65807d81978 commit fc2f8f7ed067de1d4b2682cb5cf8a65807d81978 Author: John Hixson AuthorDate: 2024-06-30 10:37:05 +0000 Commit: John Hixson CommitDate: 2024-06-30 10:43:54 +0000 sysutils/kubo: update ipfs port to kubo version v0.2.9 --- GIDs | 2 +- UIDs | 2 +- sysutils/Makefile | 2 +- sysutils/ipfs-go/distinfo | 5 ---- sysutils/ipfs-go/files/ipfs-go.in | 50 ------------------------------- sysutils/ipfs-go/pkg-plist | 2 -- sysutils/{ipfs-go => kubo-go}/Makefile | 33 ++++++++++---------- sysutils/kubo-go/distinfo | 5 ++++ sysutils/kubo-go/files/kubo-go.in | 50 +++++++++++++++++++++++++++++++ sysutils/{ipfs-go => kubo-go}/pkg-descr | 4 +-- sysutils/{ipfs-go => kubo-go}/pkg-message | 2 +- sysutils/kubo-go/pkg-plist | 2 ++ 12 files changed, 79 insertions(+), 80 deletions(-) diff --git a/GIDs b/GIDs index a68dfd3cc521..2fe7c6905e41 100644 --- a/GIDs +++ b/GIDs @@ -824,7 +824,7 @@ _encrypted-dns:*:879: pyspf-milter:*:880: ultimaker:*:881: midpoint:*:882: -ipfs-go:*:883: +kubo-go:*:883: telegraf:*:884: tcpdump:*:885: miniflux:*:886: diff --git a/UIDs b/UIDs index 0f9bc5e64d9a..c4f31fcd8949 100644 --- a/UIDs +++ b/UIDs @@ -829,7 +829,7 @@ _encrypted-dns:*:879:879::0:0:encrypted-dns user:/var/empty:/usr/sbin/nologin pyspf-milter:*:880:880::0:0:pyspf-milter:/nonexistent:/usr/sbin/nologin ultimaker:*:881:881::0:0:Ultimaker user:/nonexistent:/usr/sbin/nologin midpoint:*:882:882::0:0:midPoint user:/var/db/midpoint:/usr/sbin/nologin -ipfs-go:*:883:883::0:0:ipfs-go user:/var/db/ipfs-go:/bin/sh +kubo-go:*:883:883::0:0:kubo-go user:/var/db/kubo-go:/bin/sh telegraf:*:884:884::0:0:telegraf user:/nonexistent:/usr/sbin/nologin tcpdump:*:885:885::0:0:tcpdump user:/nonexistent:/usr/sbin/nologin miniflux:*:886:886::0:0:Miniflux:/nonexistent:/usr/sbin/nologin diff --git a/sysutils/Makefile b/sysutils/Makefile index 5021696dc3fb..b000e4982f67 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -600,7 +600,6 @@ SUBDIR += ipa SUBDIR += ipad_charge SUBDIR += ipdbtools - SUBDIR += ipfs-go SUBDIR += ipfs-go-fs-repo-migrations SUBDIR += ipget SUBDIR += ipmi_exporter @@ -659,6 +658,7 @@ SUBDIR += kshutdown SUBDIR += ksystemlog SUBDIR += kubectl + SUBDIR += kubo-go SUBDIR += kvmclock-kmod SUBDIR += lava SUBDIR += lbl-cf diff --git a/sysutils/ipfs-go/distinfo b/sysutils/ipfs-go/distinfo deleted file mode 100644 index cad276cfb2b3..000000000000 --- a/sysutils/ipfs-go/distinfo +++ /dev/null @@ -1,5 +0,0 @@ -TIMESTAMP = 1706918873 -SHA256 (go/sysutils_ipfs-go/ipfs-v0.26.0/v0.26.0.mod) = 93aa3aa155466dd5d68e1898c79eb9715f501de663fb20197e9995b8863280a6 -SIZE (go/sysutils_ipfs-go/ipfs-v0.26.0/v0.26.0.mod) = 12260 -SHA256 (go/sysutils_ipfs-go/ipfs-v0.26.0/v0.26.0.zip) = 0880f8c0dd2b2efeef748cdf5cc8084631016662cb5339f7c1973146cbed2dd2 -SIZE (go/sysutils_ipfs-go/ipfs-v0.26.0/v0.26.0.zip) = 4136356 diff --git a/sysutils/ipfs-go/files/ipfs-go.in b/sysutils/ipfs-go/files/ipfs-go.in deleted file mode 100644 index f7a16f796113..000000000000 --- a/sysutils/ipfs-go/files/ipfs-go.in +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh - -# PROVIDE: ipfs_go -# REQUIRE: DAEMON NETWORKING -# KEYWORD: shutdown - -# ipfs_go_enable (bool): Set to NO by default -# Set to YES to enable ipfs_go -# ipfs_go_user (str): Set to %%IPFS_USER%% by default -# Set it to ipfs_go daemon user -# ipfs_go_group (str): Set to %%IPFS_GROUP%% by default -# Set it to ipfs_go daemon group -# ipfs_go_path (str): Set to %%IPFS_HOME%%/.ipfs by default -# Set it to ipfs repo path -# ipfs_go_syslog_priority (str): Set to "info" by default. -# Set it to priority to be used by syslog -# ipfs_go_syslog_facility (str): Set to "daemon" by default. -# Set it to facility to be used by syslog -# ipfs_go_syslog_tag (str): Set to "ipfs-go" by default. -# Set it to tag to be used by syslog - -. /etc/rc.subr - -name=ipfs_go -rcvar=ipfs_go_enable -load_rc_config $name - -: ${ipfs_go_enable:="NO"} -: ${ipfs_go_user:="%%IPFS_USER%%"} -: ${ipfs_go_group:="%%IPFS_GROUP%%"} -: ${ipfs_go_path:="%%IPFS_HOME%%/.ipfs"} -: ${ipfs_go_syslog_priority:="info"} -: ${ipfs_go_syslog_facility:="daemon"} -: ${ipfs_go_syslog_tag:="ipfs-go"} - -pidfile="/var/run/${name}.pid" - -command="/usr/sbin/daemon" -command_args="-S -m 3 -s ${ipfs_go_syslog_priority} -l ${ipfs_go_syslog_facility} -T ${ipfs_go_syslog_tag} -p ${pidfile} /usr/bin/env IPFS_PATH=${ipfs_go_path} ${ipfs_go_env} %%PREFIX%%/bin/ipfs-go daemon --init --init-profile=server --migrate=true ${ipfs_go_args}" -procname="%%PREFIX%%/bin/ipfs-go" - -start_precmd="ipfs_go_startprecmd" - -ipfs_go_startprecmd() { - if [ ! -e "${pidfile}" ]; then - install -g ${ipfs_go_group} -o ${ipfs_go_user} -- /dev/null "${pidfile}" - fi -} - -run_rc_command "$1" diff --git a/sysutils/ipfs-go/pkg-plist b/sysutils/ipfs-go/pkg-plist deleted file mode 100644 index cb26f81c3676..000000000000 --- a/sysutils/ipfs-go/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -bin/ipfs-go -@dir(%%IPFS_USER%%,%%IPFS_GROUP%%,755) %%IPFS_HOME%% diff --git a/sysutils/ipfs-go/Makefile b/sysutils/kubo-go/Makefile similarity index 52% rename from sysutils/ipfs-go/Makefile rename to sysutils/kubo-go/Makefile index bafa89cb9733..c8fb5203a558 100644 --- a/sysutils/ipfs-go/Makefile +++ b/sysutils/kubo-go/Makefile @@ -1,7 +1,6 @@ -PORTNAME= ipfs +PORTNAME= kubo DISTVERSIONPREFIX= v -DISTVERSION= 0.26.0 -PORTREVISION= 1 +DISTVERSION= 0.29.0 CATEGORIES= sysutils PKGNAMESUFFIX= -go @@ -14,33 +13,33 @@ LICENSE_COMB= dual LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE -USES= cpe go:1.20,modules +USES= cpe go:1.22,modules CPE_VENDOR= protocol GO_MODULE= github.com/ipfs/kubo -GO_TARGET= ./cmd/ipfs:ipfs-go +GO_TARGET= ./cmd/ipfs:kubo USE_RC_SUBR= ${PORTNAME}${PKGNAMESUFFIX} SUB_FILES= ${FULLNAME} -SUB_LIST= IPFS_USER=${IPFS_USER} \ - IPFS_GROUP=${IPFS_GROUP} \ - IPFS_HOME=${IPFS_HOME} -PLIST_SUB= IPFS_USER=${IPFS_USER} \ - IPFS_GROUP=${IPFS_GROUP} \ - IPFS_HOME=${IPFS_HOME} +SUB_LIST= KUBO_USER=${KUBO_USER} \ + KUBO_GROUP=${KUBO_GROUP} \ + KUBO_HOME=${KUBO_HOME} +PLIST_SUB= KUBO_USER=${KUBO_USER} \ + KUBO_GROUP=${KUBO_GROUP} \ + KUBO_HOME=${KUBO_HOME} -IPFS_USER?= ${FULLNAME} -IPFS_GROUP?= ${FULLNAME} -IPFS_HOME?= /var/db/${FULLNAME} +KUBO_USER?= ${FULLNAME} +KUBO_GROUP?= ${FULLNAME} +KUBO_HOME?= /var/db/${FULLNAME} -USERS= ${IPFS_USER} -GROUPS= ${IPFS_GROUP} +USERS= ${KUBO_USER} +GROUPS= ${KUBO_GROUP} FULLNAME= ${PORTNAME}${PKGNAMESUFFIX} post-install: - @${MKDIR} ${STAGEDIR}${IPFS_HOME} + @${MKDIR} ${STAGEDIR}${KUBO_HOME} .include diff --git a/sysutils/kubo-go/distinfo b/sysutils/kubo-go/distinfo new file mode 100644 index 000000000000..941eee07c5b6 --- /dev/null +++ b/sysutils/kubo-go/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1719737224 +SHA256 (go/sysutils_kubo-go/kubo-v0.29.0/v0.29.0.mod) = 6612cbcd3a7b628723a62f9eb63febaa4f6abe57deaec05ab2f274523eb1727b +SIZE (go/sysutils_kubo-go/kubo-v0.29.0/v0.29.0.mod) = 12047 +SHA256 (go/sysutils_kubo-go/kubo-v0.29.0/v0.29.0.zip) = f90cb3ed8c05967b31a6330b26d393fd95be314994d56efbb9253380ee5f1f08 +SIZE (go/sysutils_kubo-go/kubo-v0.29.0/v0.29.0.zip) = 4133213 diff --git a/sysutils/kubo-go/files/kubo-go.in b/sysutils/kubo-go/files/kubo-go.in new file mode 100644 index 000000000000..082d49dedcee --- /dev/null +++ b/sysutils/kubo-go/files/kubo-go.in @@ -0,0 +1,50 @@ +#!/bin/sh + +# PROVIDE: kubo_go +# REQUIRE: DAEMON NETWORKING +# KEYWORD: shutdown + +# kubo_enable (bool): Set to NO by default +# Set to YES to enable kubo_go +# kubo_user (str): Set to %%KUBO_USER%% by default +# Set it to kubo_go daemon user +# kubo_group (str): Set to %%KUBO_GROUP%% by default +# Set it to kubo_go daemon group +# kubo_path (str): Set to %%KUBO_HOME%%/.kubo by default +# Set it to kubo repo path +# kubo_syslog_priority (str): Set to "info" by default. +# Set it to priority to be used by syslog +# kubo_syslog_facility (str): Set to "daemon" by default. +# Set it to facility to be used by syslog +# kubo_syslog_tag (str): Set to "kubo-go" by default. +# Set it to tag to be used by syslog + +. /etc/rc.subr + +name=kubo_go +rcvar=kubo_enable +load_rc_config $name + +: ${kubo_enable:="NO"} +: ${kubo_user:="%%KUBO_USER%%"} +: ${kubo_group:="%%KUBO_GROUP%%"} +: ${kubo_path:="%%KUBO_HOME%%/.kubo"} +: ${kubo_syslog_priority:="info"} +: ${kubo_syslog_facility:="daemon"} +: ${kubo_syslog_tag:="kubo-go"} + +pidfile="/var/run/${name}.pid" + +command="/usr/sbin/daemon" +command_args="-S -m 3 -s ${kubo_syslog_priority} -l ${kubo_syslog_facility} -T ${kubo_syslog_tag} -p ${pidfile} /usr/bin/env KUBO_PATH=${kubo_path} ${kubo_env} %%PREFIX%%/bin/kubo-go daemon --init --init-profile=server --migrate=true ${kubo_args}" +procname="%%PREFIX%%/bin/kubo-go" + +start_precmd="kubo_startprecmd" + +kubo_startprecmd() { + if [ ! -e "${pidfile}" ]; then + install -g ${kubo_group} -o ${kubo_user} -- /dev/null "${pidfile}" + fi +} + +run_rc_command "$1" diff --git a/sysutils/ipfs-go/pkg-descr b/sysutils/kubo-go/pkg-descr similarity index 53% rename from sysutils/ipfs-go/pkg-descr rename to sysutils/kubo-go/pkg-descr index 4dd02ef8920e..494bc156f3c5 100644 --- a/sysutils/ipfs-go/pkg-descr +++ b/sysutils/kubo-go/pkg-descr @@ -1,4 +1,4 @@ -IPFS is a global, versioned, peer-to-peer filesystem. It combines good ideas +kubo is a global, versioned, peer-to-peer filesystem. It combines good ideas from Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single -bittorrent swarm, exchanging git objects. IPFS provides an interface as simple +bittorrent swarm, exchanging git objects. kubo provides an interface as simple as the HTTP web, but with permanence built in. diff --git a/sysutils/ipfs-go/pkg-message b/sysutils/kubo-go/pkg-message similarity index 74% rename from sysutils/ipfs-go/pkg-message rename to sysutils/kubo-go/pkg-message index bdc98a3771b5..5321f506ab71 100644 --- a/sysutils/ipfs-go/pkg-message +++ b/sysutils/kubo-go/pkg-message @@ -3,7 +3,7 @@ message: <