net-p2p/litecoin: update to 0.14.2
While here, add rc script for litecoin-daemon PR: 222343 Submitted by: Christopher Hall <hsw@bitmark.com> (with changes)
This commit is contained in:
parent
6492cecad4
commit
e4f9348119
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=449977
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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,33 +75,27 @@ 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}"
|
||||
|
||||
CPPFLAGS+= -I${OPENSSLINC}
|
||||
CFLAGS+= -I${OPENSSLINC}
|
||||
LDFLAGS+= -L${OPENSSLLIB}
|
||||
|
||||
PLIST_FILES?= bin/litecoin-qt share/applications/litecoin-qt.desktop \
|
||||
share/pixmaps/litecoin128.png
|
||||
PLIST_FILES?= bin/litecoin-qt man/man1/litecoin-qt.1.gz \
|
||||
share/applications/litecoin-qt.desktop share/pixmaps/litecoin128.png
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.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"
|
||||
|
||||
post-patch:
|
||||
|
@ -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
|
||||
|
62
net-p2p/litecoin/files/litecoind.in
Normal file
62
net-p2p/litecoin/files/litecoind.in
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user