From owner-svn-ports-head@FreeBSD.ORG Tue Aug 12 12:37:30 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C66F99F8 for ; Tue, 12 Aug 2014 12:37:30 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B3EAA2836 for ; Tue, 12 Aug 2014 12:37:30 +0000 (UTC) Received: from wg (uid 1317) (envelope-from wg@FreeBSD.org) id 66c3 by svn.freebsd.org (DragonFly Mail Agent v0.9+); Tue, 12 Aug 2014 12:37:29 +0000 From: William Grzybowski Date: Tue, 12 Aug 2014 12:37:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r364697 - in head/net-p2p/zetacoin: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53ea0a89.66c3.19430c34@svn.freebsd.org> X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 12:37:31 -0000 Author: wg Date: Tue Aug 12 12:37:29 2014 New Revision: 364697 URL: http://svnweb.freebsd.org/changeset/ports/364697 QAT: https://qat.redports.org/buildarchive/r364697/ Log: net-p2p/zetacoin: update to 0.9.2.1 - Use options helpers - Use @sample PR: 192413 Submitted by: maintainer Added: head/net-p2p/zetacoin/files/patch-Makefile_include_editSedCommands.patch (contents, props changed) head/net-p2p/zetacoin/files/patch-qt_makefile_am_editSedCommands.patch (contents, props changed) Deleted: head/net-p2p/zetacoin/files/patch-src-makefile_unix head/net-p2p/zetacoin/files/patch-src__leveldb__build_detect_platform head/net-p2p/zetacoin/files/patch-zetacoin-qt_pro Modified: head/net-p2p/zetacoin/Makefile head/net-p2p/zetacoin/distinfo head/net-p2p/zetacoin/files/zetacoin.conf.sample head/net-p2p/zetacoin/files/zetacoin.in head/net-p2p/zetacoin/pkg-plist Modified: head/net-p2p/zetacoin/Makefile ============================================================================== --- head/net-p2p/zetacoin/Makefile Tue Aug 12 12:13:12 2014 (r364696) +++ head/net-p2p/zetacoin/Makefile Tue Aug 12 12:37:29 2014 (r364697) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= zetacoin -PORTVERSION= 0.8.99.16 +PORTVERSION= 0.9.2.1 CATEGORIES= net-p2p finance MASTER_SITES= GH @@ -11,105 +11,107 @@ COMMENT= Peer-to-Peer crypto currency wi LICENSE= MIT +BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconf LIB_DEPENDS= libboost_date_time.so:${PORTSDIR}/devel/boost-libs -OPTIONS_DEFINE= X11 UPNP QRCODES -OPTIONS_DEFAULT= X11 QRCODES -UPNP_DESC= Build with UPNP support -QRCODES_DESC= Build with QR code display - USE_GITHUB= yes GH_ACCOUNT= ${PORTNAME} GH_PROJECT= ${PORTNAME} -GH_COMMIT= 9a52761 -GH_TAGNAME= 9a52761 +GH_COMMIT= 93a4ace +GH_TAGNAME= 93a4ace + +OPTIONS_DEFINE= X11 UPNP WALLET CLI TEST +OPTIONS_SUB= yes + +WALLET_DESC= Build wallet or P2P server node only +QRCODES_DESC= Enable QR code display when building graphical interface +CLI_DESC= Build command line RPC client + +OPTIONS_DEFAULT= X11 WALLET QRCODES +OPTIONS_GROUP= X11 +OPTIONS_GROUP_X11= QRCODES + +UPNP_CONFIGURE_WITH= miniupnpc +UPNP_LIB_DEPENDS= libminiupnpc.so:${PORTSDIR}/net/miniupnpc + +X11_CONFIGURE_WITH= gui +X11_CONFIGURE_ON= --without-daemon +X11_CONFIGURE_OFF= --with-daemon +X11_BUILD_DEPENDS= protoc:${PORTSDIR}/devel/protobuf +X11_USE= qt4=corelib,gui,qmake_build,linguist,uic,moc,rcc,qtestlib_build +X11_USES= desktop-file-utils + +WALLET_CONFIGURE_ENABLE= wallet +WALLET_CXXFLAGS= -I${BDB_INCLUDE_DIR} -L${BDB_LIB_DIR} +WALLET_USE= bdb=yes + +QRCODES_LIB_DEPENDS= libqrencode.so:${PORTSDIR}/graphics/libqrencode +QRCODES_CONFIGURE_WITH= qrencode + +CLI_CONFIGURE_WITH= cli + +TEST_CONFIGURE_ENABLE= tests +TEST_ALL_TARGET= check + +AUTOMAKE_ARGS+= --add-missing +USE_AUTOTOOLS= aclocal autoheader automake autoconf +CONFIGURE_ENV= SSL_LIBS="-lssl" CRYPTO_LIBS="-lcrypto" SSL_CFLAGS="-I/usr/include" CRYPTO_CFLAGS="-I/usr/include" USES= gmake USE_OPENSSL= yes -USE_BDB= yes WANT_BDB_VER= 48 -CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR} -CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR} +CXXFLAGS+= -I${LOCALBASE}/include +CXXFLAGS+= -L${LOCALBASE}/lib CXXFLAGS+= -Wno-invalid-offsetof -.include +QT_BINARY= ${PORTNAME}-qt +CLI_BINARY= ${PORTNAME}-cli +DAEMON= ${PORTNAME}d + +PLIST_SUB+= EXECUTABLE_QT=bin/${QT_BINARY} \ + EXECUTABLE_CLI=bin/${CLI_BINARY} \ + EXECUTABLE_DAEMON=bin/${DAEMON} \ + PORTNAME=${PORTNAME} -.if ${PORT_OPTIONS:MX11} -PLIST_SUB+= X11="" -.else -SUB_LIST+= PORTNAME=${PORTNAME} -USE_RC_SUBR= ${PORTNAME} -SUB_FILES= pkg-message -PLIST_SUB+= X11="@comment " -USERS= ${PORTNAME} -GROUPS= ${PORTNAME} -.endif +.include -.if ${PORT_OPTIONS:MX11} -USE_QT4= corelib gui qmake_build linguist uic moc rcc -BINARY= ${PORTNAME}-qt -PLIST_SUB+= HEADLESS="@comment " -.else -BINARY= ${PORTNAME}d -MAKE_ARGS+= -C ${WRKSRC}/src -PLIST_SUB+= HEADLESS="" +.if empty(PORT_OPTIONS:MX11) && !empty(PORT_OPTIONS:MQRCODES) +BROKEN= QRCODES requires X11 support. Run 'make config' again! .endif -.if ${PORT_OPTIONS:MQRCODES} -LIB_DEPENDS+= libqrencode.so:${PORTSDIR}/graphics/libqrencode -QMAKE_USE_QRCODE=1 -.else -QMAKE_USE_QRCODE=0 +# tests will currently fail +.if ${PORT_OPTIONS:MTEST} +BROKEN= automated testing fails .endif -PLIST_SUB+= EXECUTABLE="bin/${BINARY}" \ - PORTNAME=${PORTNAME} - -.if ${PORT_OPTIONS:MUPNP} -LIB_DEPENDS+= libminiupnpc.so:${PORTSDIR}/net/miniupnpc -QMAKE_USE_UPNP= 1 -.else -QMAKE_USE_UPNP= - +.if ! ${PORT_OPTIONS:MX11} +USE_RC_SUBR= ${PORTNAME} +SUB_LIST+= PORTNAME=${PORTNAME} +SUB_FILES= pkg-message +USERS= ${PORTNAME} +GROUPS= ${PORTNAME} .endif -.include - post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/makefile.unix -.if !${PORT_OPTIONS:MX11} - @cd ${WRKSRC}/src && ${CP} -p makefile.unix Makefile - @${REINPLACE_CMD} \ - -e 's|^USE_UPNP.*$$|USE_UPNP=${QMAKE_USE_UPNP}|' \ - -e 's|-l pthread|${PTHREAD_LIBS}|g' \ - -e 's:-l dl::' \ - ${WRKSRC}/src/Makefile -.endif + ${MKDIR} ${WRKSRC}/src/build-aux -do-configure: -.if ${PORT_OPTIONS:MX11} - cd ${WRKSRC} && ${SETENV} ${QMAKE_ENV} \ - ${QMAKE} ${QMAKE_ARGS} USE_UPNP=${QMAKE_USE_UPNP} USE_QRCODE=${QMAKE_USE_QRCODE} \ - QMAKE_LRELEASE=lrelease-qt4 PREFIX=${PREFIX} INCLUDEPATH=${BDB_INCLUDE_DIR} \ - QMAKE_LIBDIR+=${BDB_LIB_DIR} ${PORTNAME}-qt.pro +do-install: +.if ${PORT_OPTIONS:MCLI} + ${INSTALL_PROGRAM} -s ${WRKSRC}/src/${CLI_BINARY} ${STAGEDIR}${PREFIX}/bin/${CLI_BINARY} .endif -do-install: .if ${PORT_OPTIONS:MX11} - ${INSTALL_PROGRAM} -s ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/bin/${BINARY} + ${INSTALL_PROGRAM} -s ${WRKSRC}/src/qt/${QT_BINARY} ${STAGEDIR}${PREFIX}/bin/${QT_BINARY} ${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' \ -e 's,bitcoin,zetacoin,g' \ -e 's,Bitcoin,Zetacoin,g' \ -e 's,128,,g' ${WRKSRC}/contrib/debian/bitcoin-qt.desktop ${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}-qt.desktop ${INSTALL} ${WRKSRC}/src/qt/res/icons/bitcoin.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png - .else - ${INSTALL_PROGRAM} -s ${WRKSRC}/src/${BINARY} ${STAGEDIR}${PREFIX}/bin/${BINARY} - ${INSTALL} ${FILESDIR}/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample - @if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \ - ${CP} -p ${FILESDIR}/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf; \ - fi + ${INSTALL_PROGRAM} -s ${WRKSRC}/src/${DAEMON} ${STAGEDIR}${PREFIX}/bin/${DAEMON} + ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample .endif -.include +.include Modified: head/net-p2p/zetacoin/distinfo ============================================================================== --- head/net-p2p/zetacoin/distinfo Tue Aug 12 12:13:12 2014 (r364696) +++ head/net-p2p/zetacoin/distinfo Tue Aug 12 12:37:29 2014 (r364697) @@ -1,2 +1,2 @@ -SHA256 (zetacoin-0.8.99.16.tar.gz) = e8e15cf23eb9498f9de61591755c2bd5673ee759ea82e6dd349397b72556d210 -SIZE (zetacoin-0.8.99.16.tar.gz) = 2186180 +SHA256 (zetacoin-0.9.2.1.tar.gz) = 424f4c803d13b88aa72d3a04c6eadba194bd9adccc6d519bcbe3e32c512879bc +SIZE (zetacoin-0.9.2.1.tar.gz) = 4265834 Added: head/net-p2p/zetacoin/files/patch-Makefile_include_editSedCommands.patch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/zetacoin/files/patch-Makefile_include_editSedCommands.patch Tue Aug 12 12:37:29 2014 (r364697) @@ -0,0 +1,29 @@ +diff --git a/src/Makefile.include b/src/Makefile.include +index 2fc6cd7..cdd16f5 100644 +--- a/src/Makefile.include ++++ src/Makefile.include +@@ -40,18 +40,18 @@ $(LIBBITCOINQT): + ui_%.h: %.ui + @test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D) + @test -f $(UIC) && QT_SELECT=$(QT_SELECT) $(UIC) -o $(abs_builddir)/$@ $(abs_srcdir)/$< || echo error: could not build $(abs_builddir)/$@ +- $(SED) -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@{.n,} +- $(SED) -e '/^\*\*.*by:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@{.n,} ++ $(SED) -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@.n $(abs_builddir)/$@ ++ $(SED) -e '/^\*\*.*by:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@.n $(abs_builddir)/$@ + + %.moc: %.cpp + QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $< +- $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,} +- $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@{.n,} ++ $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@.n $(abs_builddir)/$@ ++ $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@.n $(abs_builddir)/$@ + + moc_%.cpp: %.h + QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $< +- $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,} +- $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@{.n,} ++ $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@.n $(abs_builddir)/$@ ++ $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@.n $(abs_builddir)/$@ + + %.qm: %.ts + @test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D) Added: head/net-p2p/zetacoin/files/patch-qt_makefile_am_editSedCommands.patch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/zetacoin/files/patch-qt_makefile_am_editSedCommands.patch Tue Aug 12 12:37:29 2014 (r364697) @@ -0,0 +1,14 @@ +diff --git a/src/qt/Makefile.am b/src/qt/Makefile.am +index 648971b..97b2ec4 100644 +--- a/src/qt/Makefile.am ++++ src/qt/Makefile.am +@@ -373,7 +373,7 @@ translate: bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_CPP) $( + $(QT_QRC_CPP): $(QT_QRC) $(QT_QM) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(PROTOBUF_H) + @cd $(abs_srcdir); test -f $(RCC) && QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin -o $(abs_builddir)/$@ $< || \ + echo error: could not build $@ +- $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,} +- $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@{.n,} ++ $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@.n $@ ++ $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@.n $@ + + CLEANFILES = $(BUILT_SOURCES) $(QT_QM) $(QT_FORMS_H) *.gcda *.gcno Modified: head/net-p2p/zetacoin/files/zetacoin.conf.sample ============================================================================== --- head/net-p2p/zetacoin/files/zetacoin.conf.sample Tue Aug 12 12:13:12 2014 (r364696) +++ head/net-p2p/zetacoin/files/zetacoin.conf.sample Tue Aug 12 12:37:29 2014 (r364697) @@ -1,6 +1,6 @@ rpcuser=myname #rpcpassword=YOU MUST SET A PASSWORD -maxconnection=80 +maxconnections=80 rpcallowip=127.0.0.1 rpcport=17335 port=17333 @@ -8,8 +8,3 @@ server=1 daemon=1 listen=1 logtimestamps=1 -addnode=63.247.147.163 -addnode=105.236.111.72 -addnode=188.252.16.110 -addnode=54.212.51.236 -addnode=75.162.220.45 Modified: head/net-p2p/zetacoin/files/zetacoin.in ============================================================================== --- head/net-p2p/zetacoin/files/zetacoin.in Tue Aug 12 12:13:12 2014 (r364696) +++ head/net-p2p/zetacoin/files/zetacoin.in Tue Aug 12 12:37:29 2014 (r364697) @@ -46,7 +46,6 @@ start_precmd="${name}_prestart" echo "Creating data directory" eval mkdir -p ${%%PORTNAME%%_datadir} [ $? -eq 0 ] && chown -R ${%%PORTNAME%%_user}:${%%PORTNAME%%_group} ${%%PORTNAME%%_datadir} - ln -s ${%%PORTNAME%%_datadir} /.%%PORTNAME%% } %%PORTNAME%%_prestart() Modified: head/net-p2p/zetacoin/pkg-plist ============================================================================== --- head/net-p2p/zetacoin/pkg-plist Tue Aug 12 12:13:12 2014 (r364696) +++ head/net-p2p/zetacoin/pkg-plist Tue Aug 12 12:37:29 2014 (r364697) @@ -1,6 +1,6 @@ -%%EXECUTABLE%% +%%NO_X11%%%%EXECUTABLE_DAEMON%% +%%NO_X11%%@sample etc/%%PORTNAME%%.conf.sample +%%CLI%%%%EXECUTABLE_CLI%% +%%X11%%%%EXECUTABLE_QT%% %%X11%%share/applications/%%PORTNAME%%-qt.desktop %%X11%%share/pixmaps/%%PORTNAME%%.png -%%HEADLESS%%@unexec if cmp -s %D/etc/%%PORTNAME%%.conf.sample %D/etc/%%PORTNAME%%.conf; then rm -f %D/etc/%%PORTNAME%%.conf; fi -%%HEADLESS%%etc/%%PORTNAME%%.conf.sample -%%HEADLESS%%@exec if [ ! -f %D/etc/%%PORTNAME%%.conf ] ; then cp -p %D/%F %B/%%PORTNAME%%.conf; fi