diff --git a/net-p2p/litecoin/Makefile b/net-p2p/litecoin/Makefile index 33db9260d712..5afa6a04b52f 100644 --- a/net-p2p/litecoin/Makefile +++ b/net-p2p/litecoin/Makefile @@ -1,120 +1,119 @@ # $FreeBSD$ PORTNAME= litecoin -PORTVERSION= 0.17.1 +PORTVERSION= 0.18.1 DISTVERSIONPREFIX= v -PORTREVISION?= 3 CATEGORIES= net-p2p finance MAINTAINER= hsw@bitmark.com COMMENT?= Virtual Peer-to-Peer Currency Client (QT) LICENSE= MIT LIB_DEPENDS= libboost_date_time.so:devel/boost-libs \ libevent.so:devel/libevent USES= autoreconf compiler:c++11-lib gmake libtool pkgconfig qt:5 shebangfix ssl USE_GITHUB= yes GNU_CONFIGURE= yes SLAVE_PORT?= no .if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" USES+= desktop-file-utils USE_QT= core gui network widgets \ buildtools_build linguisttools_build qmake_build BUILD_DEPENDS+= protoc:devel/protobuf LIB_DEPENDS+= libprotobuf.so:devel/protobuf TESTS_USE= QT=testlib TESTS_PLIST_FILES= bin/test_litecoin-qt \ bin/test_litecoin .endif OPTIONS_DEFINE?= DBUS DEBUG HARDENING QRCODES TESTS UPNP WALLET_BDBMODERN ZMQ OPTIONS_DEFAULT?= DBUS HARDENING QRCODES UPNP WALLET_BDBMODERN ZMQ 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_BDBMODERN_DESC= Wallet using modern BDB 5.x or 6.x ZMQ_DESC= Block and transaction broadcasting with ZeroMQ DBUS_CONFIGURE_WITH= dbus DBUS_USE= QT=dbus DEBUG_CONFIGURE_ENABLE= debug DEBUG_INSTALL_TARGET_OFF= install-strip HARDENING_CONFIGURE_ENABLE= hardening 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 UPNP_CPPFLAGS= -I${LOCALBASE}/include UPNP_LIBS= -L${LOCALBASE}/lib QRCODES_CONFIGURE_WITH= qrencode QRCODES_LIB_DEPENDS= libqrencode.so:graphics/libqrencode 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 \ --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" \ OBJCXX="${CXX}" OBJCXXFLAGS="${CXXFLAGS}" MAKE_ENV+= V=1 PLIST_FILES?= bin/litecoin-qt man/man1/litecoin-qt.1.gz \ share/applications/litecoin-qt.desktop share/pixmaps/litecoin.png .include .if ${PORT_OPTIONS:MWALLET_BDBMODERN} CONFIGURE_ARGS+= --enable-wallet --with-incompatible-bdb USES+= bdb:5+ .else CONFIGURE_ARGS+= --disable-wallet .endif .include .if ${PORT_OPTIONS:MWALLET_BDBMODERN} CPPFLAGS+= -I${BDB_INCLUDE_DIR} LIBS+= -L${BDB_LIB_DIR} .endif .if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" post-install: ${INSTALL} ${FILESDIR}/litecoin-qt.desktop \ ${STAGEDIR}${PREFIX}/share/applications/ ${INSTALL} ${WRKSRC}/share/pixmaps/bitcoin128.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/litecoin.png .endif regression-test: build # To use this sucessfully, remove --without-daemon and --without-utils # from CONFIGURE_ARGS above. @cd ${WRKSRC} && ${GMAKE} check .include diff --git a/net-p2p/litecoin/distinfo b/net-p2p/litecoin/distinfo index ac04b4eb34f8..f94c4afd554a 100644 --- a/net-p2p/litecoin/distinfo +++ b/net-p2p/litecoin/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1562572626 -SHA256 (litecoin-project-litecoin-v0.17.1_GH0.tar.gz) = 6e05514a480990f1ff1e7c81b5443d741f4016c03ab5c1ef44bf4b169af88bee -SIZE (litecoin-project-litecoin-v0.17.1_GH0.tar.gz) = 4717718 +TIMESTAMP = 1591956417 +SHA256 (litecoin-project-litecoin-v0.18.1_GH0.tar.gz) = 2d67cba11adc5890b9698ccddeb68dd3c2ff6af19bf3ed0f1c719348b914042f +SIZE (litecoin-project-litecoin-v0.18.1_GH0.tar.gz) = 5122629 diff --git a/net-p2p/litecoin/files/litecoind.in b/net-p2p/litecoin/files/litecoind.in index 3691daf3ec03..5f1b7923a01d 100644 --- a/net-p2p/litecoin/files/litecoind.in +++ b/net-p2p/litecoin/files/litecoind.in @@ -1,172 +1,172 @@ #!/bin/sh # $FreeBSD$ # PROVIDE: litecoind # REQUIRE: LOGIN 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. # litecoind_group (str) Set to "litecoin" by default. # litecoind_conf (str) Set to "%%PREFIX%%/etc/litecoind.conf" by default. # litecoind_data_dir (str) Set to "/var/db/litecoin" by default. # litecoindlimits_enable (bool) Set to "NO" by default. # Set it to "YES" to enable litecoindlimits # litecoindlimits_args Set to "-e -U ${litecoind_user}" by default . /etc/rc.subr name="litecoind" rcvar=litecoind_enable start_precmd="litecoind_precmd" start_cmd="litecoind_start" restart_precmd="litecoind_checkconfig" reload_precmd="litecoind_checkconfig" configtest_cmd="litecoind_checkconfig" status_cmd="litecoind_status" stop_cmd="litecoind_stop" stop_postcmd="litecoind_wait" command="%%PREFIX%%/bin/litecoind" daemon_command="/usr/sbin/daemon" #pidfile="/var/run/${name}.pid" extra_commands="configtest" : ${litecoind_enable:="NO"} : ${litecoindlimits_enable:="NO"} load_rc_config ${name} : ${litecoind_user:="litecoin"} : ${litecoind_group:="litecoin"} : ${litecoind_data_dir:="/var/db/litecoin"} : ${litecoind_config_file:="%%PREFIX%%/etc/litecoin.conf"} : ${litecoindlimits_args:="-e -U ${litecoind_user}"} # set up dependant variables procname="${command}" -pidfile="${litecoind_data_dir}/litecoind.pid" +pidfile="${litecoind_data_dir}/litecoind-daemon.pid" required_files="${litecoind_config_file}" litecoind_checkconfig() { echo "Performing sanity check on litecoind configuration:" if [ ! -d "${litecoind_data_dir}" ] then echo "Missing data directory: ${litecoind_data_dir}" exit 1 fi chown -R "${litecoind_user}:${litecoind_group}" "${litecoind_data_dir}" if [ ! -f "${litecoind_config_file}" ] then echo "Missing configuration file: ${litecoind_config_file}" exit 1 fi if [ ! -x "${command}" ] then echo "Missing executable: ${command}" exit 1 fi return 0 } litecoind_cleanup() { rm -f "${pidfile}" } litecoind_precmd() { litecoind_checkconfig pid=$(check_pidfile "${pidfile}" "${procname}") if [ -z "${pid}" ] then echo "Litecoind is not running" rm -f "${pidfile}" fi if checkyesno litecoindlimits_enable then eval $(/usr/bin/limits ${litecoindlimits_args}) 2>/dev/null else return 0 fi } litecoind_status() { local pid pid=$(check_pidfile "${pidfile}" "${procname}") if [ -z "${pid}" ] then echo "Litecoind is not running" return 1 else echo "Litecoind running, pid: ${pid}" fi } litecoind_start() { echo "Starting litecoind:" cd "${litecoind_data_dir}" || return 1 ${daemon_command} -u "${litecoind_user}" -p "${pidfile}" -f \ ${command} \ -conf="${litecoind_config_file}" \ -datadir="${litecoind_data_dir}" } litecoind_stop() { echo "Stopping litecoind:" pid=$(check_pidfile "${pidfile}" "${procname}") if [ -z "${pid}" ] then echo "Litecoind is not running" return 1 else kill ${pid} fi } litecoind_wait() { local n=60 echo "Waiting for litecoind shutdown:" while : do printf '.' pid=$(check_pidfile "${pidfile}" "${procname}") if [ -z "${pid}" ] then printf '\n' break fi sleep 1 n=$((${n} - 1)) if [ ${n} -eq 0 -a -f "${pidfile}" ] then printf "\nForce shutdown" kill -9 $(cat "${pidfile}") for n in 1 2 3 do printf '.' sleep 1 done printf '\n' break fi done rm -f "${pidfile}" echo "Shutdown complete" } run_rc_command "$1"