Index: head/finance/Makefile =================================================================== --- head/finance/Makefile (revision 453766) +++ head/finance/Makefile (revision 453767) @@ -1,176 +1,177 @@ # $FreeBSD$ # COMMENT = Monetary, financial, and related applications SUBDIR += R-cran-AER SUBDIR += R-cran-PerformanceAnalytics SUBDIR += R-cran-RFinanceYJ SUBDIR += R-cran-TTR SUBDIR += R-cran-ccgarch SUBDIR += R-cran-fBasics SUBDIR += R-cran-fGarch SUBDIR += R-cran-gmm SUBDIR += R-cran-lmtest SUBDIR += R-cran-plm SUBDIR += R-cran-quantmod SUBDIR += R-cran-strucchange SUBDIR += R-cran-timeDate SUBDIR += R-cran-timeSeries SUBDIR += R-cran-tseries SUBDIR += R-cran-urca SUBDIR += R-cran-vars SUBDIR += aqbanking SUBDIR += aqmoney SUBDIR += beanie SUBDIR += bitcoin-armory SUBDIR += cbb SUBDIR += electrum + SUBDIR += electrum2 SUBDIR += expense SUBDIR += fixc SUBDIR += frontaccounting SUBDIR += gnucash SUBDIR += gnucash-docs SUBDIR += grisbi SUBDIR += homebank SUBDIR += jgnash SUBDIR += kmymoney-kde4 SUBDIR += ktoblzcheck SUBDIR += ledger SUBDIR += ledgersmb SUBDIR += ledgersmb12 SUBDIR += libalkimia SUBDIR += libofx SUBDIR += libstocks SUBDIR += moneymanagerex SUBDIR += mybudget SUBDIR += myphpmoney SUBDIR += openhbci SUBDIR += p5-Business-CreditCard SUBDIR += p5-Business-MaxMind-CreditCardFraudDetection SUBDIR += p5-Business-OCV SUBDIR += p5-Business-OnlinePayment SUBDIR += p5-Business-OnlinePayment-2CheckOut SUBDIR += p5-Business-OnlinePayment-AuthorizeNet SUBDIR += p5-Business-OnlinePayment-BankOfAmerica SUBDIR += p5-Business-OnlinePayment-Beanstream SUBDIR += p5-Business-OnlinePayment-Cardstream SUBDIR += p5-Business-OnlinePayment-Jettis SUBDIR += p5-Business-OnlinePayment-LinkPoint SUBDIR += p5-Business-OnlinePayment-MerchantCommerce SUBDIR += p5-Business-OnlinePayment-Network1Financial SUBDIR += p5-Business-OnlinePayment-OCV SUBDIR += p5-Business-OnlinePayment-PayConnect SUBDIR += p5-Business-OnlinePayment-PaymenTech SUBDIR += p5-Business-OnlinePayment-PaymentsGateway SUBDIR += p5-Business-OnlinePayment-SurePay SUBDIR += p5-Business-OnlinePayment-TCLink SUBDIR += p5-Business-OnlinePayment-VirtualNet SUBDIR += p5-Business-OnlinePayment-eSec SUBDIR += p5-Business-OnlinePayment-iAuthorizer SUBDIR += p5-Business-PayPal-IPN SUBDIR += p5-Business-Stripe SUBDIR += p5-Business-TW-Invoice-U420 SUBDIR += p5-Business-TW-TSIB-CStorePayment SUBDIR += p5-Business-TW-TSIB-VirtualAccount SUBDIR += p5-Business-WorldPay-Junior SUBDIR += p5-Data-Currency SUBDIR += p5-Finance-Amortization SUBDIR += p5-Finance-Bitcoin SUBDIR += p5-Finance-Currency-Convert SUBDIR += p5-Finance-Currency-Convert-WebserviceX SUBDIR += p5-Finance-Currency-Convert-XE SUBDIR += p5-Finance-Quote SUBDIR += p5-Finance-QuoteHist SUBDIR += p5-Finance-QuoteTW SUBDIR += p5-Finance-TW-EmergingQuote SUBDIR += p5-Finance-TW-TSEQuote SUBDIR += p5-Finance-YahooQuote SUBDIR += p5-Locale-Currency-Format SUBDIR += p5-Math-Financial SUBDIR += p5-PayflowPro SUBDIR += pear_Payment_DTA SUBDIR += php-tclink SUBDIR += prestashop SUBDIR += py-bitcoin SUBDIR += py-python-obelisk SUBDIR += py-stripe SUBDIR += py-vatnumber SUBDIR += py-ystockquote SUBDIR += qhacc SUBDIR += rubygem-money SUBDIR += sabernetdcs-client SUBDIR += skrooge SUBDIR += sql-ledger SUBDIR += tryton28 SUBDIR += trytond28 SUBDIR += trytond28_account SUBDIR += trytond28_account_asset SUBDIR += trytond28_account_be SUBDIR += trytond28_account_invoice SUBDIR += trytond28_account_invoice_history SUBDIR += trytond28_account_invoice_line_standalone SUBDIR += trytond28_account_product SUBDIR += trytond28_account_statement SUBDIR += trytond28_account_stock_anglo_saxon SUBDIR += trytond28_account_stock_continental SUBDIR += trytond28_analytic_account SUBDIR += trytond28_analytic_invoice SUBDIR += trytond28_analytic_purchase SUBDIR += trytond28_analytic_sale SUBDIR += trytond28_calendar SUBDIR += trytond28_calendar_classification SUBDIR += trytond28_calendar_scheduling SUBDIR += trytond28_calendar_todo SUBDIR += trytond28_carrier SUBDIR += trytond28_carrier_percentage SUBDIR += trytond28_carrier_weight SUBDIR += trytond28_company SUBDIR += trytond28_company_work_time SUBDIR += trytond28_country SUBDIR += trytond28_currency SUBDIR += trytond28_dashboard SUBDIR += trytond28_ldap_authentication SUBDIR += trytond28_ldap_connection SUBDIR += trytond28_party SUBDIR += trytond28_party_siret SUBDIR += trytond28_party_vcarddav SUBDIR += trytond28_product SUBDIR += trytond28_product_attribute SUBDIR += trytond28_product_cost_fifo SUBDIR += trytond28_product_cost_history SUBDIR += trytond28_product_measurements SUBDIR += trytond28_product_price_list SUBDIR += trytond28_production SUBDIR += trytond28_project SUBDIR += trytond28_project_invoice SUBDIR += trytond28_project_plan SUBDIR += trytond28_project_revenue SUBDIR += trytond28_purchase SUBDIR += trytond28_purchase_invoice_line_standalone SUBDIR += trytond28_purchase_shipment_cost SUBDIR += trytond28_sale SUBDIR += trytond28_sale_opportunity SUBDIR += trytond28_sale_price_list SUBDIR += trytond28_sale_shipment_cost SUBDIR += trytond28_sale_supply SUBDIR += trytond28_sale_supply_drop_shipment SUBDIR += trytond28_stock SUBDIR += trytond28_stock_forecast SUBDIR += trytond28_stock_inventory_location SUBDIR += trytond28_stock_location_sequence SUBDIR += trytond28_stock_lot SUBDIR += trytond28_stock_product_location SUBDIR += trytond28_stock_split SUBDIR += trytond28_stock_supply SUBDIR += trytond28_stock_supply_day SUBDIR += trytond28_stock_supply_forecast SUBDIR += trytond28_stock_supply_production SUBDIR += trytond28_timesheet SUBDIR += vanitygen SUBDIR += venice SUBDIR += weberp SUBDIR += wmstock SUBDIR += xtrader .include Index: head/finance/electrum2/Makefile =================================================================== --- head/finance/electrum2/Makefile (nonexistent) +++ head/finance/electrum2/Makefile (revision 453767) @@ -0,0 +1,64 @@ +# Created by: Neil Booth +# $FreeBSD$ + +PORTNAME= electrum +PORTVERSION= 2.9.3 +PORTREVISION= 2 +CATEGORIES= finance python +MASTER_SITES= https://download.electrum.org/${PORTVERSION}/ \ + http://download.electrum.org/${PORTVERSION}/ +PKGNAMESUFFIX= 2 +DISTNAME= Electrum-${PORTVERSION} + +MAINTAINER= ehaupt@FreeBSD.org +COMMENT= Easy to use Bitcoin client (legacy version) + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENCE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython \ + ${PYTHON_PKGNAMEPREFIX}ecdsa>0:security/py-ecdsa \ + ${PYTHON_PKGNAMEPREFIX}jsonrpclib>0:devel/py-jsonrpclib \ + ${PYTHON_PKGNAMEPREFIX}pbkdf2>=1.3:security/py-pbkdf2 \ + ${PYTHON_PKGNAMEPREFIX}protobuf>=2.6.0:devel/py-protobuf \ + ${PYTHON_PKGNAMEPREFIX}pyaes>0:security/py-pyaes \ + ${PYTHON_PKGNAMEPREFIX}pysocks>=0:net/py-pysocks \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.4.3:www/py-requests \ + ${PYTHON_PKGNAMEPREFIX}qrcode>=5.1:textproc/py-qrcode + +CONFLICTS_INSTALL= electrum-3.* + +USES= desktop-file-utils pyqt:4 python:-2.7 +USE_PYQT= gui_run +USE_PYTHON= autoplist distutils +PYDISTUTILS_PKGNAME= Electrum +NO_ARCH= yes +OPTIONS_SUB= yes + +OPTIONS_DEFINE= LEDGER TREZOR +OPTIONS_DEFAULT=LEDGER TREZOR + +LEDGER_DESC= Enable LEDGER Bitcoin hardware wallet support +TREZOR_DESC= Enable TREZOR Bitcoin hardware wallet support + +LEDGER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}btchip-python>0:security/py-btchip-python +TREZOR_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}trezor>0:security/py-trezor + +LEDGER_PLIST_FILES= "@sample etc/devd/ledger_wallet.conf.sample" +TREZOR_PLIST_FILES= "@sample etc/devd/trezor_wallet.conf.sample" + +LEDGER_SUB_FILES= pkg-message-hwwallet +TREZOR_SUB_FILES= pkg-message-hwwallet + +post-patch: + @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/setup.py + +post-install-LEDGER-on: + ${INSTALL_DATA} ${FILESDIR}/ledger_wallet.conf.sample \ + ${STAGEDIR}${PREFIX}/etc/devd + +post-install-TREZOR-on: + ${INSTALL_DATA} ${FILESDIR}/trezor_wallet.conf.sample \ + ${STAGEDIR}${PREFIX}/etc/devd + +.include Property changes on: head/finance/electrum2/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/finance/electrum2/files/ledger_wallet.conf.sample =================================================================== --- head/finance/electrum2/files/ledger_wallet.conf.sample (nonexistent) +++ head/finance/electrum2/files/ledger_wallet.conf.sample (revision 453767) @@ -0,0 +1,13 @@ +# $FreeBSD$ +# +# Allow members of group operator to access hardware wallet devices + +## Ledger Nano S +#notify 301 { +# match "system" "USB"; +# match "subsystem" "DEVICE"; +# match "vendor" "0x2c97"; +# match "product" "0x0001"; +# match "type" "ATTACH"; +# action "/bin/chmod g=rw /dev/$cdev"; +#}; Property changes on: head/finance/electrum2/files/ledger_wallet.conf.sample ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/finance/electrum2/files/pkg-message-hwwallet.in =================================================================== --- head/finance/electrum2/files/pkg-message-hwwallet.in (nonexistent) +++ head/finance/electrum2/files/pkg-message-hwwallet.in (revision 453767) @@ -0,0 +1,14 @@ +For hardware wallet devices to work you need to be in the operator group +and need r/w permissions to the appropriate /dev/usb/* device. + +Add a user to operator group: + +% pw groupmod operator -m satoshi + +Edit your configuration: + +%%PREFIX%%/etc/devd/*_wallet.conf + +Then restart devd to load the new rules: + +% /etc/rc.d/devd restart Property changes on: head/finance/electrum2/files/pkg-message-hwwallet.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/finance/electrum2/files/trezor_wallet.conf.sample =================================================================== --- head/finance/electrum2/files/trezor_wallet.conf.sample (nonexistent) +++ head/finance/electrum2/files/trezor_wallet.conf.sample (revision 453767) @@ -0,0 +1,13 @@ +# $FreeBSD$ +# +# Allow members of group operator to access hardware wallet devices + +## SatoshiLabs TREZOR +#notify 301 { +# match "system" "USB"; +# match "subsystem" "DEVICE"; +# match "vendor" "0x534c"; +# match "product" "0x0001"; +# match "type" "ATTACH"; +# action "/bin/chmod g=rw /dev/$cdev"; +#}; Property changes on: head/finance/electrum2/files/trezor_wallet.conf.sample ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/finance/electrum2/files/patch-setup.py =================================================================== --- head/finance/electrum2/files/patch-setup.py (nonexistent) +++ head/finance/electrum2/files/patch-setup.py (revision 453767) @@ -0,0 +1,15 @@ +--- setup.py.orig 2017-03-23 01:56:41 UTC ++++ setup.py +@@ -21,12 +21,6 @@ if platform.system() in ['Linux', 'FreeB + parser.add_argument('--root=', dest='root_path', metavar='dir', default='/') + opts, _ = parser.parse_known_args(sys.argv[1:]) + usr_share = os.path.join(sys.prefix, "share") +- if not os.access(opts.root_path + usr_share, os.W_OK) and \ +- not os.access(opts.root_path, os.W_OK): +- if 'XDG_DATA_HOME' in os.environ.keys(): +- usr_share = os.environ['XDG_DATA_HOME'] +- else: +- usr_share = os.path.expanduser('~/.local/share') + data_files += [ + (os.path.join(usr_share, 'applications/'), ['electrum.desktop']), + (os.path.join(usr_share, 'pixmaps/'), ['icons/electrum.png']) Property changes on: head/finance/electrum2/files/patch-setup.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/finance/electrum2/distinfo =================================================================== --- head/finance/electrum2/distinfo (nonexistent) +++ head/finance/electrum2/distinfo (revision 453767) @@ -0,0 +1,3 @@ +TIMESTAMP = 1505652872 +SHA256 (Electrum-2.9.3.tar.gz) = c2192d4df6490fdc6e6f9f85b05db0e3915683a016a43ed444ebbc51ccfa0e34 +SIZE (Electrum-2.9.3.tar.gz) = 2389367 Property changes on: head/finance/electrum2/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/finance/electrum2/pkg-descr =================================================================== --- head/finance/electrum2/pkg-descr (nonexistent) +++ head/finance/electrum2/pkg-descr (revision 453767) @@ -0,0 +1,7 @@ +Electrum is an easy to use Bitcoin client. It protects you from +losing coins in a backup mistake or computer failure, because your +wallet can be recovered from a secret phrase. There is no waiting +time when you start the client, because it does not download the +Bitcoin blockchain. + +WWW: http://electrum.org/ Property changes on: head/finance/electrum2/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property