From owner-svn-ports-all@freebsd.org Sun Sep 17 00:39:00 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D9EB1E14141; Sun, 17 Sep 2017 00:39:00 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B596E69A3B; Sun, 17 Sep 2017 00:39:00 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8H0cxda047700; Sun, 17 Sep 2017 00:38:59 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8H0cxoY047695; Sun, 17 Sep 2017 00:38:59 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201709170038.v8H0cxoY047695@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Sun, 17 Sep 2017 00:38:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r449977 - in head/net-p2p: litecoin litecoin-daemon litecoin-utils litecoin/files X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: in head/net-p2p: litecoin litecoin-daemon litecoin-utils litecoin/files X-SVN-Commit-Revision: 449977 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Sep 2017 00:39:01 -0000 Author: swills Date: Sun Sep 17 00:38:59 2017 New Revision: 449977 URL: https://svnweb.freebsd.org/changeset/ports/449977 Log: net-p2p/litecoin: update to 0.14.2 While here, add rc script for litecoin-daemon PR: 222343 Submitted by: Christopher Hall (with changes) Added: head/net-p2p/litecoin/files/litecoind.in (contents, props changed) Modified: head/net-p2p/litecoin-daemon/Makefile head/net-p2p/litecoin-utils/Makefile head/net-p2p/litecoin/Makefile head/net-p2p/litecoin/distinfo Modified: head/net-p2p/litecoin-daemon/Makefile ============================================================================== --- head/net-p2p/litecoin-daemon/Makefile Sun Sep 17 00:06:10 2017 (r449976) +++ head/net-p2p/litecoin-daemon/Makefile Sun Sep 17 00:38:59 2017 (r449977) @@ -15,9 +15,12 @@ CPE_VENDOR= bitcoin CPE_PRODUCT= bitcoind CPE_VERSION= ${PORTVERSION:R} -OPTIONS_DEFINE= DEBUG HARDENING TESTS UPNP WALLET +OPTIONS_DEFINE= DEBUG HARDENING TESTS UPNP WALLET ZMQ OPTIONS_DEFAULT= HARDENING WALLET +USERS= litecoin +GROUPS= litecoin + CONFIGURE_ARGS= --with-daemon \ --without-gui \ --without-libs \ @@ -26,5 +29,12 @@ CONFIGURE_ARGS= --with-daemon \ --disable-reduce-exports PLIST_FILES= bin/litecoind +PLIST_FILES+= man/man1/litecoind.1.gz +PLIST_FILES+= "@sample etc/litecoin.conf.sample" + +USE_RC_SUBR= litecoind + +post-install: + ${INSTALL_DATA} ${WRKSRC}/contrib/debian/examples/bitcoin.conf ${STAGEDIR}${PREFIX}/etc/litecoin.conf.sample .include "${MASTERDIR}/Makefile" Modified: head/net-p2p/litecoin-utils/Makefile ============================================================================== --- head/net-p2p/litecoin-utils/Makefile Sun Sep 17 00:06:10 2017 (r449976) +++ head/net-p2p/litecoin-utils/Makefile Sun Sep 17 00:38:59 2017 (r449977) @@ -21,6 +21,7 @@ CONFIGURE_ARGS= --without-daemon \ --disable-wallet \ --disable-reduce-exports -PLIST_FILES= bin/litecoin-cli bin/litecoin-tx +PLIST_FILES= bin/litecoin-cli bin/litecoin-tx \ + man/man1/litecoin-cli.1.gz man/man1/litecoin-tx.1.gz .include "${MASTERDIR}/Makefile" Modified: head/net-p2p/litecoin/Makefile ============================================================================== --- head/net-p2p/litecoin/Makefile Sun Sep 17 00:06:10 2017 (r449976) +++ head/net-p2p/litecoin/Makefile Sun Sep 17 00:38:59 2017 (r449977) @@ -2,11 +2,9 @@ # $FreeBSD$ PORTNAME= litecoin -PORTVERSION= 0.10.4.0 +PORTVERSION= 0.14.2 DISTVERSIONPREFIX= v -PORTREVISION= 8 CATEGORIES= net-p2p finance -MASTER_SITES= LOCAL/swills MAINTAINER= swills@FreeBSD.org COMMENT?= Virtual Peer-to-Peer Currency Client (QT) @@ -14,12 +12,13 @@ COMMENT?= Virtual Peer-to-Peer Currency Client (QT) LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libboost_date_time.so:devel/boost-libs - NOT_FOR_ARCHS= powerpc powerpc64 sparc64 NOT_FOR_ARCHS_REASON= fails to configure: "Big Endian not supported" -USES+= autoreconf gmake libtool pkgconfig shebangfix ssl +LIB_DEPENDS= libboost_date_time.so:devel/boost-libs \ + libevent.so:devel/libevent + +USES+= autoreconf compiler:c++11-lib gmake libtool pkgconfig shebangfix ssl SHEBANG_FILES= src/test/*.py USE_GITHUB= yes GNU_CONFIGURE= yes @@ -27,40 +26,41 @@ GNU_CONFIGURE= yes SLAVE_PORT?= no .if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" -USES+= cpe desktop-file-utils -USE_QT4= corelib gui moc_build linguisttools_build network qmake_build \ - rcc_build uic_build -CPE_VENDOR= bitcoin -CPE_PRODUCT= bitcoin-qt -CPE_VERSION= ${PORTVERSION:R} +USES+= desktop-file-utils +USE_QT5= core gui network widgets \ + buildtools_build linguisttools_build qmake_build BUILD_DEPENDS+= protoc:devel/protobuf LIB_DEPENDS+= libprotobuf.so:devel/protobuf -DBUS_USE= QT4=dbus - -TESTS_USE= QT4=testlib -TESTS_PLIST_FILES= bin/test_litecoin-qt +TESTS_USE= QT5=testlib +TESTS_PLIST_FILES= bin/test_litecoin-qt \ + bin/test_litecoin .endif -OPTIONS_DEFINE?= DBUS DEBUG HARDENING QRCODES TESTS UPNP WALLET -OPTIONS_DEFAULT?= HARDENING QRCODES WALLET +OPTIONS_DEFINE?= DBUS DEBUG HARDENING QRCODES TESTS UPNP WALLET ZMQ +OPTIONS_DEFAULT?= DBUS HARDENING QRCODES UPNP WALLET OPTIONS_SUB= yes HARDENING_DESC= Attempt to harden binaries (PIE for ASLR, NX Stack) QRCODES_DESC= Display QR Codes TESTS_DESC= Build test binary and unit tests WALLET_DESC= Wallet Management Support +ZMQ_DESC= Block and transaction broadcasting with ZeroMQ -DBUS_CONFIGURE_WITH= qtdbus +DBUS_CONFIGURE_WITH= dbus +DBUS_USE= QT5=dbus DEBUG_CONFIGURE_ENABLE= debug DEBUG_INSTALL_TARGET_OFF= install-strip HARDENING_CONFIGURE_ENABLE= hardening -TESTS_CONFIGURE_ENABLE= tests -TESTS_PLIST_FILES+= bin/test_litecoin +TESTS_CONFIGURE_ENABLE= tests bench +.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "yes" +TESTS_PLIST_FILES= bin/test_litecoin +.endif +TESTS_PLIST_FILES+= bin/bench_litecoin UPNP_CONFIGURE_WITH= miniupnpc UPNP_LIB_DEPENDS= libminiupnpc.so:net/miniupnpc @@ -75,32 +75,26 @@ WALLET_CXXFLAGS= -I${BDB_INCLUDE_DIR} WALLET_LIBS= -L${BDB_LIB_DIR} WALLET_USES= bdb:48 +ZMQ_CONFIGURE_ENABLE= zmq +ZMQ_BUILD_DEPENDS= libzmq4>0:net/libzmq4 +ZMQ_RUN_DEPENDS= libzmq4>0:net/libzmq4 + GH_ACCOUNT= litecoin-project CONFIGURE_ARGS?= --without-libs \ - --disable-reduce-exports \ - --with-gui \ + --with-gui=qt5 \ --without-daemon \ --without-utils CONFIGURE_ENV= CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" \ - SSL_CFLAGS="-I${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB} -lssl" + SSL_CFLAGS="-I${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB} -lssl" \ + OBJCXX="${CXX}" OBJCXXFLAGS="${CXXFLAGS}" V=1 +MAKE_ENV+= V=1 -CONFIGURE_ENV+= OBJC="${CC}" OBJCFLAGS="${CFLAGS}" OBJCXX="${CXX}" OBJCXXFLAGS="${CXXFLAGS}" +PLIST_FILES?= bin/litecoin-qt man/man1/litecoin-qt.1.gz \ + share/applications/litecoin-qt.desktop share/pixmaps/litecoin128.png -CPPFLAGS+= -I${OPENSSLINC} -CFLAGS+= -I${OPENSSLINC} -LDFLAGS+= -L${OPENSSLLIB} - -PLIST_FILES?= bin/litecoin-qt share/applications/litecoin-qt.desktop \ - share/pixmaps/litecoin128.png - .include - -.if ${SSL_DEFAULT:Mlibressl*} -# The configure script will output this message, so save the user the trouble -IGNORE= detected LibreSSL: This is NOT supported, and may break consensus compatibility! -.endif .if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" Modified: head/net-p2p/litecoin/distinfo ============================================================================== --- head/net-p2p/litecoin/distinfo Sun Sep 17 00:06:10 2017 (r449976) +++ head/net-p2p/litecoin/distinfo Sun Sep 17 00:38:59 2017 (r449977) @@ -1,2 +1,3 @@ -SHA256 (litecoin-project-litecoin-v0.10.4.0_GH0.tar.gz) = a9adb6d2ae555afdaa2a5febb81341ac506930cf04ab95b9dc3ab99a4de0405e -SIZE (litecoin-project-litecoin-v0.10.4.0_GH0.tar.gz) = 4730189 +TIMESTAMP = 1503300985 +SHA256 (litecoin-project-litecoin-v0.14.2_GH0.tar.gz) = 953fd6cee2da3ed63779b2dbce8a775e76d7a926be3de5b906d40f6641a2b4d5 +SIZE (litecoin-project-litecoin-v0.14.2_GH0.tar.gz) = 6205762 Added: head/net-p2p/litecoin/files/litecoind.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/litecoin/files/litecoind.in Sun Sep 17 00:38:59 2017 (r449977) @@ -0,0 +1,62 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: litecoind +# REQUIRE: DAEMON cleanvar +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable : +# litecoind_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable litecoind +# litecoind_user (str) Set to "litecoin" by default. +# Set it to preferred user +# litecoind_group (str) Set to "litecoin" by default. +# Set it to preferred group +# litecoind_data_dir (str) Set to "/var/lib/litecoin" by default. +# Set it to preferred data dir +# litecoind_config_file (str) Set to "%%PREFIX%%/etc/litecoind.conf" by default. +# Set it to preferred config file +# litecoind_log_file (str) Set to "/var/log/litecoind.log" by default. +# Set it to preferred log file + +. /etc/rc.subr + +name=litecoind +desc="Litecoin Daemon" +rcvar=litecoind_enable + +load_rc_config ${name} + +: ${litecoind_enable:=NO} +: ${litecoind_user:=litecoin} +: ${litecoind_group:=litecoin} +: ${litecoind_data_dir:=/var/db/litecoin} +: ${litecoind_config_file:=%%PREFIX%%/etc/litecoin.conf} +: ${litecoind_log_file:=/var/log/litecoind.log} + +required_files="${litecoind_config_file}" +litecoind_chdir="${litecoind_data_dir}" +litecoind_env="HOME=${litecoind_data_dir}" +pidfile="/var/run/${name}.pid" +command="%%PREFIX%%/bin/litecoind" +command_args="-daemon -pid=${pidfile} -conf=${litecoind_config_file} -datadir=${litecoind_data_dir} > ${litecoind_log_file} 2>&1" + +start_precmd=litecoind_startprecmd + +litecoind_startprecmd() +{ + if [ ! -e ${pidfile} ]; then + install -o ${litecoind_user} -g ${litecoind_group} /dev/null ${pidfile}; + fi + + if [ ! -e ${litecoind_log_file} ]; then + install -o ${litecoind_user} -g ${litecoind_group} /dev/null ${litecoind_log_file}; + fi + + if [ ! -d ${litecoind_data_dir} ]; then + install -d -o ${litecoind_user} -g ${litecoind_group} ${litecoind_data_dir} + fi +} + +run_rc_command "$1"