From nobody Tue Jun 06 07:25:35 2023 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 4Qb27g31D6z4ZblS; Tue, 6 Jun 2023 07:25:35 +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 4Qb27g2YXvz3yKt; Tue, 6 Jun 2023 07:25:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686036335; 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=vkaQB27oxJ9d0Ad6lo3Znh8vBi1WGq2eB6o7NlvnBaI=; b=eWgjARLf0ENxqW7ZgoX2OAI8A4eK76Lj1Vj+UGlsSMNOpwHrvOotofmEfQ2be/+l/e9lGu Q5VmgYnsi0lcblG+UEHsvf6x/PTgG8C3uIhSgZ5Td5De1pzj/xi1n3Il0Zc/u/wUH3XzD6 HJJMQp9eBPeXs0H5HCw1j4O5idpMw8IOOfDwQI+fWK0sOpmkhH+rQE48+TfWdz2/HuECMQ 3kir1uOK0dAdjkQT1NedwcponEwjcOXKvR4daSCcA5/IaIcdAAgD9ruzalLUgJJfyhQw2q sm/LyddI+y5IYWPUNn6qDalI4ytD98sS9hrZwIGnQ0c72eouin2cwfQSMZyrtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686036335; 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=vkaQB27oxJ9d0Ad6lo3Znh8vBi1WGq2eB6o7NlvnBaI=; b=U5kXguIgk/v7OOG1P2yUq3q4N0s7AfXR/LSAkaMX6aSUrK6uFnTF1lIGCkBhaQWSoYXqJx TZO8Y/Pd1BGzM30PzrCfNCOhVshSGkxuHs5Q54zJTkktrcU8EJrmHMYxFck4iPQpRiNa3/ aBmDvVpw4lbMOSGmwBzONOkLgcZ2v1WCcacueQi9ShlZKN23YvHvNmPbx7Oajl153zMsnb lFTkYq3yMuLFvMLiz2eP94jtXE1788yizuopLYCpannbQq+wfuV2sVHE/33oMfi73d/+nX KcsHlLwZBq7Ef/E6U50S4tcDkXmy/xA2N0LomlEPiD/T4eloStZXtyDWjMyp+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686036335; a=rsa-sha256; cv=none; b=QqKUtXePSxjfaY367V2DE+RhQ+bsgS1py68/7T32ULxrhfy4ZW9Ze5zTomFW+6hreMdQMX 7gOMnj69tm8fCyeWloofZZdb+k5/g7SU5TUrCdF9mFkSD2ECIucJOKjZBzndVViszi03Mg YVNOFGerd2jD9VSOu3xpq8N1j79X2htQLxNyAlvJIIxR6ERw+Si7FZH9xpgmQ2KPA+ajGT U0Z3Hu9yzopGEQjfZDNI18bm0HthR9OwxghvsmtBqQXlTdrkx5bONjYEom2qGHzhA5ItA2 KELuZ8Y5PHnLE7JKN4RiECnL560GacwnncICMnC9fKRyuBRTHt8iCncLotW2iQ== 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 4Qb27g1Kr5zLNX; Tue, 6 Jun 2023 07:25:35 +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 3567PZx2007625; Tue, 6 Jun 2023 07:25:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3567PZIH007624; Tue, 6 Jun 2023 07:25:35 GMT (envelope-from git) Date: Tue, 6 Jun 2023 07:25:35 GMT Message-Id: <202306060725.3567PZIH007624@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Daniel Engberg Subject: git: f7ca7eba9e9c - main - net-p2p/namecoin: Update to 24.0 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: diizzy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f7ca7eba9e9c3c08e3d1d233529c8c1933ebd5c4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=f7ca7eba9e9c3c08e3d1d233529c8c1933ebd5c4 commit f7ca7eba9e9c3c08e3d1d233529c8c1933ebd5c4 Author: Chad Jacob Milios AuthorDate: 2023-06-06 06:46:55 +0000 Commit: Daniel Engberg CommitDate: 2023-06-06 07:25:29 +0000 net-p2p/namecoin: Update to 24.0 A few minor changes made to submitted patch: * Switch PORTVERSION to DISTVERSION * Use USES= localbase for UPNP option * Disable autodetection of sqlite when WALLET option is selected * Fix plist for net-p2p/namecoin-utils Changelog: https://github.com/namecoin/namecoin-core/releases/tag/nc24.0 PR: 270753 --- GIDs | 2 +- UIDs | 2 +- net-p2p/namecoin-daemon/Makefile | 13 ++++++++----- net-p2p/namecoin-utils/Makefile | 6 +----- net-p2p/namecoin/Makefile | 12 +++++------- net-p2p/namecoin/distinfo | 6 +++--- net-p2p/namecoin/files/namecoin.conf | 20 ++++++++++++++++++++ net-p2p/namecoin/files/namecoind.in | 14 ++++++-------- net-p2p/namecoin/files/patch-src_rpc_names.cpp | 10 ++++++++++ 9 files changed, 55 insertions(+), 30 deletions(-) diff --git a/GIDs b/GIDs index 8b150392a8f7..1bc518eb5105 100644 --- a/GIDs +++ b/GIDs @@ -717,7 +717,7 @@ postgrest:*:772: # free: 773 # free: 774 # free: 775 -# free: 776 +namecoin:*:776: openxpki:*:777: litecoin:*:778: bitcoin:*:779: diff --git a/UIDs b/UIDs index 4aba8df6c785..6a8d9f320972 100644 --- a/UIDs +++ b/UIDs @@ -722,7 +722,7 @@ postgrest:*:772:772::0:0:PostgREST Daemon:/nonexistent:/usr/sbin/nologin # free: 773 # free: 774 # free: 775 -# free: 776 +namecoin:*:776:776::0:0:namecoin Daemon:/var/db/namecoin:/usr/sbin/nologin openxpki:*:777:777::0:0:OpenXPKI Owner:/nonexistent:/usr/sbin/nologin litecoin:*:778:778::0:0:litecoin Daemon:/var/db/litecoin:/usr/sbin/nologin bitcoin:*:779:779::0:0:bitcoin Daemon:/var/db/bitcoin:/usr/sbin/nologin diff --git a/net-p2p/namecoin-daemon/Makefile b/net-p2p/namecoin-daemon/Makefile index 5bcdf57e1026..56c3505e1354 100644 --- a/net-p2p/namecoin-daemon/Makefile +++ b/net-p2p/namecoin-daemon/Makefile @@ -1,17 +1,16 @@ MASTERDIR= ${.CURDIR}/../namecoin -PORTREVISION= 4 PKGNAMESUFFIX= -daemon COMMENT= Decentralized, open DNS and more (Daemon) SLAVE_PORT= yes -CONFLICTS_INSTALL= namecoin-stable namecoin-stable-daemon namecoin-stable-utils \ - namecoin-beta namecoin-beta-daemon namecoin-beta-utils - OPTIONS_DEFINE= DEBUG HARDENING TESTS UPNP WALLET ZMQ OPTIONS_DEFAULT= HARDENING UPNP WALLET +USERS= namecoin +GROUPS= namecoin + CONFIGURE_ARGS= --with-daemon \ --without-gui \ --without-libs \ @@ -19,8 +18,12 @@ CONFIGURE_ARGS= --with-daemon \ --without-utils \ --disable-man -PLIST_FILES= bin/namecoind +PLIST_FILES= bin/namecoind \ + "@sample %%ETCDIR%%.conf.sample" USE_RC_SUBR= namecoind +post-install: + ${INSTALL_DATA} ${FILESDIR}/namecoin.conf ${STAGEDIR}${PREFIX}/etc/namecoin.conf.sample + .include "${MASTERDIR}/Makefile" diff --git a/net-p2p/namecoin-utils/Makefile b/net-p2p/namecoin-utils/Makefile index 7ccc3652e087..09a0187a7f9f 100644 --- a/net-p2p/namecoin-utils/Makefile +++ b/net-p2p/namecoin-utils/Makefile @@ -1,14 +1,10 @@ MASTERDIR= ${.CURDIR}/../namecoin -PORTREVISION= 4 PKGNAMESUFFIX= -utils COMMENT= Decentralized, open DNS and more (CLI and Utilities) SLAVE_PORT= yes -CONFLICTS_INSTALL= namecoin-stable namecoin-stable-daemon namecoin-stable-utils \ - namecoin-beta namecoin-beta-daemon namecoin-beta-utils - OPTIONS_DEFINE= DEBUG HARDENING TESTS OPTIONS_DEFAULT= HARDENING TESTS @@ -20,6 +16,6 @@ CONFIGURE_ARGS= --without-daemon \ --disable-wallet \ --disable-man -PLIST_FILES= bin/namecoin-cli bin/namecoin-tx +PLIST_FILES= bin/namecoin-cli bin/namecoin-tx bin/namecoin-util .include "${MASTERDIR}/Makefile" diff --git a/net-p2p/namecoin/Makefile b/net-p2p/namecoin/Makefile index 8f1d6c1d9710..f9afa07a51d5 100644 --- a/net-p2p/namecoin/Makefile +++ b/net-p2p/namecoin/Makefile @@ -1,7 +1,6 @@ PORTNAME= namecoin -PORTVERSION= 0.21.0.1 +DISTVERSION= 24.0 DISTVERSIONPREFIX= nc -PORTREVISION= 8 PORTEPOCH= 1 CATEGORIES= net-p2p dns @@ -14,7 +13,7 @@ LICENSE= MIT LIB_DEPENDS= libboost_date_time.so:devel/boost-libs \ libevent.so:devel/libevent -USES= autoreconf compiler:c++11-lib gmake libtool pkgconfig ssl +USES= autoreconf compiler:c++17-lang gmake libtool pkgconfig ssl GNU_CONFIGURE= yes USE_GITHUB= yes @@ -65,19 +64,18 @@ TESTS_PLIST_FILES+= bin/bench_namecoin UPNP_CONFIGURE_WITH= miniupnpc UPNP_LIB_DEPENDS= libminiupnpc.so:net/miniupnpc -UPNP_CPPFLAGS= -I${LOCALBASE}/include -UPNP_LIBS= -L${LOCALBASE}/lib +UPNP_USES= localbase QRCODES_CONFIGURE_WITH= qrencode QRCODES_LIB_DEPENDS= libqrencode.so:graphics/libqrencode WALLET_CONFIGURE_OFF= --disable-wallet WALLET_CONFIGURE_ON= --enable-wallet \ + --with-sqlite=no \ --with-incompatible-bdb \ BDB_CFLAGS=-I${BDB_INCLUDE_DIR} \ BDB_LIBS="-L${BDB_LIB_DIR} \ - -Wl,-rpath=${BDB_LIB_DIR} \ - -l${BDB_LIB_CXX_NAME}" + -Wl,-rpath=${BDB_LIB_DIR} -l${BDB_LIB_CXX_NAME}" WALLET_USES= bdb:5+ ZMQ_CONFIGURE_ENABLE= zmq diff --git a/net-p2p/namecoin/distinfo b/net-p2p/namecoin/distinfo index 88b79215c6d6..a3a65b40fd64 100644 --- a/net-p2p/namecoin/distinfo +++ b/net-p2p/namecoin/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1618840122 -SHA256 (namecoin-namecoin-core-nc0.21.0.1_GH0.tar.gz) = 56cb87f7c92eba5ba25dd1c5febca75f5d32aef2102382de88b6f0d8c81ba569 -SIZE (namecoin-namecoin-core-nc0.21.0.1_GH0.tar.gz) = 6771191 +TIMESTAMP = 1677164952 +SHA256 (namecoin-namecoin-core-nc24.0_GH0.tar.gz) = 27fe1323ac09fad48ea2a3b8ed872f427d4711a129b565c0794c1d39a7d41033 +SIZE (namecoin-namecoin-core-nc24.0_GH0.tar.gz) = 10728123 SHA256 (indolering-namecoin-graphics-a13a73b_GH0.tar.gz) = 82f308a3527d96a202099feb96a754d036bbdaa875156ad002ba2747d75000c7 SIZE (indolering-namecoin-graphics-a13a73b_GH0.tar.gz) = 7364908 diff --git a/net-p2p/namecoin/files/namecoin.conf b/net-p2p/namecoin/files/namecoin.conf new file mode 100644 index 000000000000..d4999ffe65ba --- /dev/null +++ b/net-p2p/namecoin/files/namecoin.conf @@ -0,0 +1,20 @@ +# FreeBSD namecoind configuration file + +# This file is used by namecoind +# The GUI and CLI will default to generating and using ~/.namecoin/namecoin.conf +# +# namecoin has hundreds of config options and there isn't a single mode of +# operation (mining, client, testnet etc) that can be easily covered by a +# sample file. + +# Bind to given address and always listen on it. Use [host]:port notation for IPv6 +#bind= + +# Specify your own public IP address. +#externalip= + +# Listen for incoming connections on non-default port. +#port= + +# Connect via a SOCKS5 proxy +#proxy=127.0.0.1:9050 diff --git a/net-p2p/namecoin/files/namecoind.in b/net-p2p/namecoin/files/namecoind.in index 1cb4d366f40e..75095f5539b7 100644 --- a/net-p2p/namecoin/files/namecoind.in +++ b/net-p2p/namecoin/files/namecoind.in @@ -11,7 +11,7 @@ # namecoind_user (str) Set to "namecoin" by default. # namecoind_group (str) Set to "namecoin" by default. # namecoind_conf (str) Set to "%%PREFIX%%/etc/namecoind.conf" by default. -# namecoind_data (str) Set to "/var/lib/namecoind" by default. +# namecoind_data_dir (str) Set to "/var/db/namecoin" by default. # namecoindlimits_enable (bool) Set to "NO" by default. # Set it to "YES" to enable namecoindlimits # namecoindlimits_args Set to "-e -U ${namecoind_user}" by default @@ -31,9 +31,8 @@ status_cmd="namecoind_status" stop_cmd="namecoind_stop" stop_postcmd="namecoind_wait" command="%%PREFIX%%/bin/namecoind" -cli_command="%%PREFIX%%/bin/namecoin-cli" daemon_command="/usr/sbin/daemon" -#pidfile="/var/run/${name}.pid" +pidfile="/var/run/${name}.pid" extra_commands="configtest" @@ -44,13 +43,12 @@ load_rc_config ${name} : ${namecoind_user:="namecoin"} : ${namecoind_group:="namecoin"} -: ${namecoind_data_dir:="/var/db/namecoind"} +: ${namecoind_data_dir:="/var/db/namecoin"} : ${namecoind_config_file:="%%PREFIX%%/etc/namecoin.conf"} : ${namecoindlimits_args:="-e -U ${namecoind_user}"} # set up dependant variables procname="${command}" -pidfile="${namecoind_data_dir}/namecoind.pid" required_files="${namecoind_config_file}" @@ -118,10 +116,10 @@ namecoind_start() { echo "Starting namecoind:" cd "${namecoind_data_dir}" || return 1 - ${daemon_command} -u "${namecoind_user}" -p "${pidfile}" \ + ${daemon_command} -u "${namecoind_user}" -p "${pidfile}" -f \ ${command} \ -conf="${namecoind_config_file}" \ - -datadir="${namecoind_data_dir}" 2> /tmp/namecoind.stderr > /tmp/namecoind.stdout + -datadir="${namecoind_data_dir}" } namecoind_stop() @@ -133,7 +131,7 @@ namecoind_stop() echo "Namecoind is not running" return 1 else - ${cli_command} -conf="${namecoind_config_file}" -datadir="${namecoind_data_dir}" stop + kill ${pid} fi } diff --git a/net-p2p/namecoin/files/patch-src_rpc_names.cpp b/net-p2p/namecoin/files/patch-src_rpc_names.cpp new file mode 100644 index 000000000000..d1065dcfa3e4 --- /dev/null +++ b/net-p2p/namecoin/files/patch-src_rpc_names.cpp @@ -0,0 +1,10 @@ +--- src/rpc/names.cpp.orig 2023-02-23 16:44:43.398660000 +0000 ++++ src/rpc/names.cpp 2023-02-23 16:44:58.322833000 +0000 +@@ -20,6 +20,7 @@ + #include + #include