# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # joulecoin # joulecoin/files # joulecoin/files/patch-src-makefile_unix # joulecoin/files/patch-src__leveldb__build_detect_platform # joulecoin/files/pkg-message.in # joulecoin/files/joulecoin.in # joulecoin/files/joulecoin.conf.sample # joulecoin/files/patch-joulecoin-qt_pro # joulecoin/Makefile # joulecoin/distinfo # joulecoin/pkg-descr # joulecoin/pkg-plist # echo c - joulecoin mkdir -p joulecoin > /dev/null 2>&1 echo c - joulecoin/files mkdir -p joulecoin/files > /dev/null 2>&1 echo x - joulecoin/files/patch-src-makefile_unix sed 's/^X//' >joulecoin/files/patch-src-makefile_unix << '09e271d353b42142e014a7d2f124b2bf' X--- src/makefile.unix.orig 2013-10-13 06:05:19.000000000 -0400 X+++ src/makefile.unix 2013-12-27 05:11:28.000000000 -0500 X@@ -15,6 +15,11 @@ X X DEFS=-DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 X X+BOOST_INCLUDE_PATH=%%PREFIX%%/include X+BDB_INCLUDE_PATH=%%PREFIX%%/include/db48 X+BOOST_LIB_PATH=%%PREFIX%%/lib X+BDB_LIB_PATH=%%PREFIX%%/lib/db48 X+ X DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH)) X LIBS = $(addprefix -L,$(BOOST_LIB_PATH) $(BDB_LIB_PATH) $(OPENSSL_LIB_PATH)) X X@@ -38,6 +43,7 @@ X -l boost_filesystem$(BOOST_LIB_SUFFIX) \ X -l boost_program_options$(BOOST_LIB_SUFFIX) \ X -l boost_thread$(BOOST_LIB_SUFFIX) \ X+ -l boost_chrono$(BOOST_LIB_SUFFIX) \ X -l db_cxx$(BDB_LIB_SUFFIX) \ X -l ssl \ X -l crypto X@@ -61,7 +67,6 @@ X LIBS+= \ X -Wl,-B$(LMODE2) \ X -l z \ X- -l dl \ X -l pthread X X 09e271d353b42142e014a7d2f124b2bf echo x - joulecoin/files/patch-src__leveldb__build_detect_platform sed 's/^X//' >joulecoin/files/patch-src__leveldb__build_detect_platform << 'd5299e303c63c83e713846c5a7361a20' X--- src/leveldb/build_detect_platform.orig 2014-01-17 19:31:04.000000000 +0000 X+++ src/leveldb/build_detect_platform 2014-01-17 19:33:47.000000000 +0000 X@@ -170,7 +170,7 @@ X true X else X # If -std=c++0x works, use . Otherwise use port_posix.h. X- $CXX $CXXFLAGS -std=c++0x -x c++ - -o /dev/null 2>/dev/null < /dev/null 2>/dev/null < X int main() {} X EOF X@@ -182,7 +182,7 @@ X fi X X # Test whether tcmalloc is available X- $CXX $CXXFLAGS -x c++ - -o /dev/null -ltcmalloc 2>/dev/null < /dev/null 2>/dev/null <joulecoin/files/pkg-message.in << '7eca4c2ab7ea3cc52c31d3ea561646d0' X******************************************************************* XTo configure the Joulecoin server please edit: X%%PREFIX%%/etc/%%PORTNAME%%.conf X XYou must at least set a "rpcpassword" in the configuration file above. X XTo run the %%PORTNAME%%d server at startup, add the following Xsettings to your /etc/rc.conf X X%%PORTNAME%%_enable="YES" X X******************************************************************* 7eca4c2ab7ea3cc52c31d3ea561646d0 echo x - joulecoin/files/joulecoin.in sed 's/^X//' >joulecoin/files/joulecoin.in << 'f3b7b14d3ff99c76c7c8a214e49145ca' X#!/bin/sh X# X# $FreeBSD: head/net-p2p/zetacoin/files/zetacoin.in 356387 2014-06-03 18:33:48Z cs $ X# X X# PROVIDE: %%PORTNAME%% X# REQUIRE: LOGIN X# KEYWORD: shutdown X X# X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf X# to enable this service: X# X# %%PORTNAME%%_enable (bool): Set to NO by default. X# Set it to YES to enable %%PORTNAME%%. X# %%PORTNAME%%_config (path): Set to %%PREFIX%%/etc/%%PORTNAME%%.conf X# by default. X# %%PORTNAME%%_user: The user account %%PORTNAME%% daemon runs as X# It uses '%%PORTNAME%%' user by default. X# %%PORTNAME%%_group: The group account %%PORTNAME%% daemon runs as X# It uses '%%PORTNAME%%' group by default. X# %%PORTNAME%%_datadir (str): Default to "/var/db/%%PORTNAME%%" X# Base data directory. X X. /etc/rc.subr X Xname=%%PORTNAME%% Xrcvar=%%PORTNAME%%_enable X X: ${%%PORTNAME%%_enable:=NO} X: ${%%PORTNAME%%_config=%%PREFIX%%/etc/%%PORTNAME%%.conf} X: ${%%PORTNAME%%_datadir=/var/db/%%PORTNAME%%} X: ${%%PORTNAME%%_user="root"} X: ${%%PORTNAME%%_group="wheel"} X Xrequired_files=${%%PORTNAME%%_config} Xcommand=%%PREFIX%%/bin/%%PORTNAME%%d X%%PORTNAME%%_chdir=${%%PORTNAME%%_datadir} Xpidfile="${%%PORTNAME%%_datadir}/%%PORTNAME%%d.pid" Xstop_cmd=%%PORTNAME%%_stop Xcommand_args="-conf=${%%PORTNAME%%_config} -datadir=${%%PORTNAME%%_datadir} -noupnp -daemon -pid=${pidfile}" Xstart_precmd="${name}_prestart" X X%%PORTNAME%%_create_datadir() X{ X echo "Creating data directory" X eval mkdir -p ${%%PORTNAME%%_datadir} X [ $? -eq 0 ] && chown -R ${%%PORTNAME%%_user}:${%%PORTNAME%%_group} ${%%PORTNAME%%_datadir} X ln -s ${%%PORTNAME%%_datadir} /.%%PORTNAME%% X} X X%%PORTNAME%%_prestart() X{ X if [ ! -d "${%%PORTNAME%%_datadir}/." ]; then X %%PORTNAME%%_create_datadir || return 1 X fi X} X X%%PORTNAME%%_requirepidfile() X{ X if [ ! "0`check_pidfile ${pidfile} ${command}`" -gt 1 ]; then X echo "${name} not running? (check $pidfile)." X exit 1 X fi X} X X%%PORTNAME%%_stop() X{ X %%PORTNAME%%_requirepidfile X X echo "Stopping ${name}." X eval ${command} -conf=${%%PORTNAME%%_config} -datadir=${%%PORTNAME%%_datadir} stop X wait_for_pids ${rc_pid} X} X Xload_rc_config $name Xrun_rc_command "$1" f3b7b14d3ff99c76c7c8a214e49145ca echo x - joulecoin/files/joulecoin.conf.sample sed 's/^X//' >joulecoin/files/joulecoin.conf.sample << '9f3b7e59e83f4180b0a16be14484cd09' Xrpcuser=myname X#rpcpassword=YOU MUST SET A PASSWORD Xmaxconnections=20 Xrpcallowip=127.0.0.1 Xrpcport=8844 Xport=26789 Xserver=1 Xdaemon=1 Xlisten=1 Xlogtimestamps=1 Xaddnode=63.247.147.166 9f3b7e59e83f4180b0a16be14484cd09 echo x - joulecoin/files/patch-joulecoin-qt_pro sed 's/^X//' >joulecoin/files/patch-joulecoin-qt_pro << '0e0b3822a68cea49368a6d24686fada5' X--- joulecoin-qt.pro.orig 2013-10-13 06:05:19.000000000 -0400 X+++ joulecoin-qt.pro 2013-10-18 18:49:57.000000000 -0400 X@@ -418,7 +418,7 @@ X LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX X # -lgdi32 has to happen after -lcrypto (see #681) X win32:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32 X-LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX X+LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX -lboost_chrono$$BOOST_LIB_SUFFIX X win32:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX X macx:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX X 0e0b3822a68cea49368a6d24686fada5 echo x - joulecoin/Makefile sed 's/^X//' >joulecoin/Makefile << 'bb7e495dafb4ec9863cfb8caf5aeefc1' X# Created by: Daniel Morante X# $FreeBSD: head/net-p2p/zetacoin/Makefile 356387 2014-06-03 18:33:48Z cs $ X XPORTNAME= joulecoin XPORTVERSION= 0.8.99.13 XCATEGORIES= net-p2p finance XMASTER_SITES= GH X XMAINTAINER= daniel@morante.net XCOMMENT= Peer-to-Peer crypto currency with quick transactions X XLICENSE= MIT X XLIB_DEPENDS= libboost_date_time.so:${PORTSDIR}/devel/boost-libs X XOPTIONS_DEFINE= X11 UPNP QRCODES XOPTIONS_DEFAULT= X11 QRCODES XUPNP_DESC= Build with UPNP support XQRCODES_DESC= Build with QR code display X XUSE_GITHUB= yes XGH_ACCOUNT= ${PORTNAME} XGH_PROJECT= ${PORTNAME} XGH_COMMIT= 1ede7c6 XGH_TAGNAME= 1ede7c6 X XUSES= gmake XUSE_OPENSSL= yes XUSE_BDB= yes XWANT_BDB_VER= 48 X XCXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR} XCXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR} XCXXFLAGS+= -Wno-invalid-offsetof X X.include X X.if ${PORT_OPTIONS:MX11} XPLIST_SUB+= X11="" X.else XSUB_LIST+= PORTNAME=${PORTNAME} XUSE_RC_SUBR= ${PORTNAME} XSUB_FILES= pkg-message XPLIST_SUB+= X11="@comment " X.endif X X.if ${PORT_OPTIONS:MX11} XUSE_QT4= corelib gui qmake_build linguist uic moc rcc XBINARY= ${PORTNAME}-qt XPLIST_SUB+= HEADLESS="@comment " X.else XBINARY= ${PORTNAME}d XMAKE_ARGS+= -C ${WRKSRC}/src XPLIST_SUB+= HEADLESS="" X.endif X X.if ${PORT_OPTIONS:MQRCODES} XLIB_DEPENDS+= libqrencode.so:${PORTSDIR}/graphics/libqrencode XQMAKE_USE_QRCODE=1 X.else XQMAKE_USE_QRCODE=0 X.endif X XPLIST_SUB+= EXECUTABLE="bin/${BINARY}" \ X PORTNAME=${PORTNAME} X X.if ${PORT_OPTIONS:MUPNP} XLIB_DEPENDS+= libminiupnpc.so:${PORTSDIR}/net/miniupnpc XQMAKE_USE_UPNP= 1 X.else XQMAKE_USE_UPNP= - X.endif X X.include X Xpost-patch: X @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/makefile.unix X.if !${PORT_OPTIONS:MX11} X @cd ${WRKSRC}/src && ${CP} -p makefile.unix Makefile X @${REINPLACE_CMD} \ X -e 's|^USE_UPNP.*$$|USE_UPNP=${QMAKE_USE_UPNP}|' \ X -e 's|-l pthread|${PTHREAD_LIBS}|g' \ X -e 's:-l dl::' \ X ${WRKSRC}/src/Makefile X.endif X Xdo-configure: X.if ${PORT_OPTIONS:MX11} X cd ${WRKSRC} && ${SETENV} ${QMAKE_ENV} \ X ${QMAKE} ${QMAKE_ARGS} USE_UPNP=${QMAKE_USE_UPNP} USE_QRCODE=${QMAKE_USE_QRCODE} \ X QMAKE_LRELEASE=lrelease-qt4 PREFIX=${PREFIX} INCLUDEPATH=${BDB_INCLUDE_DIR} \ X QMAKE_LIBDIR+=${BDB_LIB_DIR} ${PORTNAME}-qt.pro X.endif X Xdo-install: X.if ${PORT_OPTIONS:MX11} X ${INSTALL_PROGRAM} -s ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/bin/${BINARY} X ${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' \ X -e 's,bitcoin,joulecoin,g' \ X -e 's,Bitcoin,Joulecoin,g' \ X -e 's,128,,g' ${WRKSRC}/contrib/debian/bitcoin-qt.desktop X ${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}-qt.desktop X ${INSTALL} ${WRKSRC}/src/qt/res/icons/bitcoin.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png X X.else X ${INSTALL_PROGRAM} -s ${WRKSRC}/src/${BINARY} ${STAGEDIR}${PREFIX}/bin/${BINARY} X ${INSTALL} ${FILESDIR}/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample X @if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \ X ${CP} -p ${FILESDIR}/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf; \ X fi X.endif X X.include bb7e495dafb4ec9863cfb8caf5aeefc1 echo x - joulecoin/distinfo sed 's/^X//' >joulecoin/distinfo << '1ed0e83b8ebef70c5618c642e8cba78f' XSHA256 (joulecoin-0.8.99.13.tar.gz) = 751feba9c8e1a2ed585613de06f4364eb40e72a2734d172742c01b9c087854a0 XSIZE (joulecoin-0.8.99.13.tar.gz) = 2085014 1ed0e83b8ebef70c5618c642e8cba78f echo x - joulecoin/pkg-descr sed 's/^X//' >joulecoin/pkg-descr << '1b069810aa81dd1419662cca38508c7e' XJoulecoin is a free open source peer-to-peer electronic cash system that Xis completely decentralized, without the need for a central server or Xtrusted parties. Users hold the crypto keys to their own money and Xtransact directly with each other, with the help of a P2P network to Xcheck for double-spending. X XWWW: http://www.joulecoin.org/ 1b069810aa81dd1419662cca38508c7e echo x - joulecoin/pkg-plist sed 's/^X//' >joulecoin/pkg-plist << 'e2b5d21ee169819d0f47c26b8702a27c' X%%EXECUTABLE%% X%%X11%%share/applications/%%PORTNAME%%-qt.desktop X%%X11%%share/pixmaps/%%PORTNAME%%.png X%%HEADLESS%%@unexec if cmp -s %D/etc/%%PORTNAME%%.conf.sample %D/etc/%%PORTNAME%%.conf; then rm -f %D/etc/%%PORTNAME%%.conf; fi X%%HEADLESS%%etc/%%PORTNAME%%.conf.sample X%%HEADLESS%%@exec if [ ! -f %D/etc/%%PORTNAME%%.conf ] ; then cp -p %D/%F %B/%%PORTNAME%%.conf; fi e2b5d21ee169819d0f47c26b8702a27c exit