diff --git a/net-p2p/Makefile b/net-p2p/Makefile index 41a682e5d5e0..c55f3158e573 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -1,108 +1,109 @@ COMMENT = Peer-to-peer network applications SUBDIR += aeron SUBDIR += amule SUBDIR += autoscan SUBDIR += awgg SUBDIR += bazarr SUBDIR += bitcoin SUBDIR += bitcoin-daemon SUBDIR += bitcoin-utils SUBDIR += bitmark SUBDIR += bitmark-cli SUBDIR += bitmark-daemon SUBDIR += bitmark-recorder SUBDIR += btcheck SUBDIR += c-lightning SUBDIR += cardano-db-sync SUBDIR += cardano-node SUBDIR += clboss SUBDIR += cncli SUBDIR += cpuminer SUBDIR += createtorrent SUBDIR += ctcs SUBDIR += ctorrent + SUBDIR += datum_gateway SUBDIR += dclib SUBDIR += deluge SUBDIR += deluge-cli SUBDIR += ed2k SUBDIR += ed2k-hash SUBDIR += eiskaltdcpp-cli SUBDIR += eiskaltdcpp-daemon SUBDIR += eiskaltdcpp-data SUBDIR += eiskaltdcpp-gtk SUBDIR += eiskaltdcpp-lib SUBDIR += ethash SUBDIR += go-ethereum SUBDIR += gtk-gnutella SUBDIR += hostd SUBDIR += intermodal SUBDIR += jackett SUBDIR += jigdo SUBDIR += ktorrent SUBDIR += libktorrent SUBDIR += libtorrent SUBDIR += libtorrent-rasterbar SUBDIR += libtorrent-rasterbar2 SUBDIR += libutp SUBDIR += lidarr SUBDIR += linuxdcpp SUBDIR += litecoin SUBDIR += litecoin-daemon SUBDIR += litecoin-utils SUBDIR += lxmf SUBDIR += microdc2 SUBDIR += minder SUBDIR += mkbrr SUBDIR += mktorrent SUBDIR += mldonkey SUBDIR += mldonkey-core SUBDIR += mldonkey-gui SUBDIR += monero-cli SUBDIR += namecoin SUBDIR += namecoin-daemon SUBDIR += namecoin-utils SUBDIR += ncdc SUBDIR += nomadnet SUBDIR += ogmios SUBDIR += opendchub SUBDIR += oura SUBDIR += p5-Net-DirectConnect SUBDIR += p5-WWW-BitTorrent SUBDIR += prowlarr SUBDIR += pulsar-client-cpp SUBDIR += py-ed2k-tools SUBDIR += py-libtorrent-rasterbar SUBDIR += py-nicotine-plus SUBDIR += py-pulsar-client SUBDIR += py-stig SUBDIR += py-transmission-rpc SUBDIR += py-tremc SUBDIR += pyln-bolt7 SUBDIR += pyln-client SUBDIR += pyln-proto SUBDIR += qbittorrent SUBDIR += radarr SUBDIR += readarr SUBDIR += renterd SUBDIR += reticulum SUBDIR += retroshare SUBDIR += rslsync SUBDIR += rtorrent SUBDIR += sonarr SUBDIR += torrent-file-editor SUBDIR += torrentcheck SUBDIR += torrentsniff SUBDIR += transmission SUBDIR += transmission-components SUBDIR += transmission-remote-gui SUBDIR += tremotesf SUBDIR += twitch-tui SUBDIR += udpt SUBDIR += uhub SUBDIR += walletd SUBDIR += warpinator SUBDIR += xbt SUBDIR += xmrig .include diff --git a/net-p2p/datum_gateway/Makefile b/net-p2p/datum_gateway/Makefile new file mode 100644 index 000000000000..cdad3e8889a6 --- /dev/null +++ b/net-p2p/datum_gateway/Makefile @@ -0,0 +1,33 @@ +PORTNAME= datum_gateway +DISTVERSIONPREFIX= v +DISTVERSION= 0.4.0 +DISTVERSIONSUFFIX= beta +CATEGORIES= net-p2p + +MAINTAINER= kiwi@FreeBSD.org +COMMENT= Gateway for true solo mining +WWW= https://github.com/OCEAN-xyz/datum_gateway + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libcurl.so:ftp/curl \ + libjansson.so:devel/jansson \ + libsodium.so:security/libsodium \ + libmicrohttpd.so:www/libmicrohttpd \ + libargp.so:devel/argp-standalone \ + libepoll-shim.so:devel/libepoll-shim + +USES= cmake pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= OCEAN-xyz +GH_PROJECT= datum_gateway +USE_RC_SUBR= ${PORTNAME} + +SUB_FILES= ${PORTNAME} + +post-install: + ${CP} ${STAGEDIR}${PREFIX}/share/doc/DATUM/example_datum_gateway_config.json ${STAGEDIR}${PREFIX}/etc/datum_gateway_config.json.sample + ${MKDIR} ${STAGEDIR}/var/run/datum_gateway + +.include diff --git a/net-p2p/datum_gateway/distinfo b/net-p2p/datum_gateway/distinfo new file mode 100644 index 000000000000..5a58553f9562 --- /dev/null +++ b/net-p2p/datum_gateway/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1764082056 +SHA256 (OCEAN-xyz-datum_gateway-v0.4.0beta_GH0.tar.gz) = ac75f976a05765d15470c8ada90e4c7c5810ce1d8f2c9e779fde7355adcd72ca +SIZE (OCEAN-xyz-datum_gateway-v0.4.0beta_GH0.tar.gz) = 206345 diff --git a/net-p2p/datum_gateway/files/datum_gateway.in b/net-p2p/datum_gateway/files/datum_gateway.in new file mode 100644 index 000000000000..a960d931aa16 --- /dev/null +++ b/net-p2p/datum_gateway/files/datum_gateway.in @@ -0,0 +1,33 @@ +#!/bin/sh + +# PROVIDE: datum_gateway +# REQUIRE: DAEMON NETWORKING +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable datum_gateway: +# datum_gateway_enable="YES" +# +# datum_gateway_enable (bool): Set to YES to enable datum_gateway +# Default: NO +# datum_gateway_user (str): datum_gateway daemon user +# Default: nobody +# datum_gateway_group (str): datum_gateway daemon group +# Default: nogroup +. /etc/rc.subr + +name="datum_gateway" +rcvar=datum_gateway_enable + +: ${datum_gateway_enable:="NO"} +: ${datum_gateway_user:="nobody"} +: ${datum_gateway_group:="nogroup"} + +# daemon +pidfile="/var/run/${name}/${name}.pid" +command=/usr/sbin/daemon +procname="daemon" +command_args=" -c -f -P ${pidfile} %%PREFIX%%/bin/${name} -c %%PREFIX%%/etc/datum_gateway_config.json" + +load_rc_config $name +run_rc_command "$1" diff --git a/net-p2p/datum_gateway/pkg-descr b/net-p2p/datum_gateway/pkg-descr new file mode 100644 index 000000000000..20d9ecbff513 --- /dev/null +++ b/net-p2p/datum_gateway/pkg-descr @@ -0,0 +1,2 @@ +Datum Gateway implements lightweight efficient client side decentralized +block template creation for true solo mining. diff --git a/net-p2p/datum_gateway/pkg-plist b/net-p2p/datum_gateway/pkg-plist new file mode 100644 index 000000000000..84bb7f1edaa6 --- /dev/null +++ b/net-p2p/datum_gateway/pkg-plist @@ -0,0 +1,8 @@ +bin/datum_gateway +%%ETCDIR%%_config.json.sample +etc/rc.d/datum_gateway +share/doc/DATUM/README.md +share/doc/DATUM/doc/DATUM_recommended_setup-network_diagram.svg +share/doc/DATUM/example_datum_gateway_config.json +share/doc/DATUM/usernames.md +@dir(nobody,nogroup) /var/run/datum_gateway