Listed in https://wiki.freebsd.org/WantedPorts is cointop. This is a package to to fullfil the request It may be listed in the wrong category
Created attachment 195124 [details] Cointop new diff
Give this PR a better Summary.
(In reply to Mark Linimon from comment #2) Updated PR summary
Created attachment 195127 [details] New port for finance/cointop
Changed attachment due to adding different email to control possible spam in future
Comment on attachment 195127 [details] New port for finance/cointop >Index: finance/cointop/Makefile >=================================================================== >--- finance/cointop/Makefile (nonexistent) >+++ finance/cointop/Makefile (working copy) >@@ -0,0 +1,31 @@ >+# $FreeBSD$ >+ >+PORTNAME= cointop >+PORTVERSION= 1.0.6 >+CATEGORIES= finance >+ >+MAINTAINER= ndowens.fbsd@yandex.com >+COMMENT= Light cryptocurrency coin stats >+ >+LICENSE= APACHE20 >+LICENSE_FILE= ${WRKSRC}/LICENSE.md >+ >+USES= go >+USE_GITHUB= yes >+GH_ACCOUNT= miguelmota >+GH_PROJECT= cointop >+ >+PLIST= bin/cointop >+ >+do-build: >+ @${MKDIR} ${WRKSRC}/github.com/${GH_ACCOUNT} >+ @${RLN} ${WRKSRC} ${WRKSRC}/github.com/${GH_ACCOUNT}/${PORTNAME} >+ @${RLN} ${WRKSRC} ${WRKSRC}/src >+ cd ${WRKSRC} && \ >+ ${SETENV} ${MAKE_ENV} ${GO_ENV} CGO_ENABLED=0 GOPATH=${WRKSRC} \ >+ ${GO_CMD} build -ldflags "-X main.Version=${DISTVERSION}" -o bin/${PORTNAME} >+ >+do-install: >+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/cointop ${DESTDIR}/${PREFIX}/bin/ >+ >+.include <bsd.port.mk> > >Property changes on: finance/cointop/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: finance/cointop/distinfo >=================================================================== >--- finance/cointop/distinfo (nonexistent) >+++ finance/cointop/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1531543729 >+SHA256 (miguelmota-cointop-1.0.6_GH0.tar.gz) = 6188f21e7fcdfe686324a30a5ccc89a684e2a9acd81f2b042309ec0b28c26272 >+SIZE (miguelmota-cointop-1.0.6_GH0.tar.gz) = 3988031 > >Property changes on: finance/cointop/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: finance/cointop/pkg-descr >=================================================================== >--- finance/cointop/pkg-descr (nonexistent) >+++ finance/cointop/pkg-descr (working copy) >@@ -0,0 +1,5 @@ >+WWW: https://github.com/miguelmota/cointop >+ >+Fast and lightweight terminal based UI application >+for tracking and monitoring cryptocurrency coins >+in real-time; inspired by htop with vim-inspired keys > >Property changes on: finance/cointop/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
Created attachment 195155 [details] Patch to create the port
The patch doesn't apply cleanly. I get the following message: > patch: **** malformed patch at line 49: @@ -0,0 +1, @@ and pkg-plist ends up being empty. I populated it by hand and it then builds fine on the following versions (poudriere testport): 10.4: amd64, i386 11.1: amd64, i386 11.2: amd64, i386 It won't run inside my poudriere jails, it just throws this message: > 2018/07/21 21:30:56 failed to ping I haven't looked into why this happens, but it runs and works fine outside the jails (only tested on 11.2).
Created attachment 195351 [details] Patch to update
(In reply to Vidar Karlsen from comment #9) See if this patch causes you issues or not. I deleted my finance/cointop after creating it and it seems to patch fine, for some reason there is *.orig files there?
(In reply to Nathan from comment #11) pkg-plist still doesn't get created properly here. How was the patch created? This is what happens when I apply the patch from attachment 195351 [details]: root@desk /ports# svn patch /tmp/att195351.patch A finance/cointop A finance/cointop/Makefile A finance/cointop/distinfo A finance/cointop/pkg-descr root@desk /ports# I'll attach one that seems to work: root@desk /ports# svn patch /tmp/finance_cointop.svn_diff A finance/cointop A finance/cointop/Makefile A finance/cointop/distinfo A finance/cointop/pkg-descr A finance/cointop/pkg-plist root@desk /ports# I checked out a fresh and clean ports tree to make sure the problem wasn't something I had fubared on my box.
Created attachment 195354 [details] svn diff that works for me This patch works for me
(In reply to Vidar Karlsen from comment #13) What i do is make sure I'm in the /usr/port root dir, after running svn add . inside the new port, and do svn diff finance/cointop > /home/..../name.diff
(In reply to Nathan from comment #14) Ok, this is weird. Those two patches are identical. I just noticed that clicking the attachment name gives the literal attachment, but clicking "Diff" and then "Raw Unified" (which points to https://bz-attachments.freebsd.org/attachment.cgi?id=195351&action=diff&format=raw&headers=1 ) gives a somewhat processed (mangled or cropped) version of the patch, which in this case doesn't work properly.
(In reply to Vidar Karlsen from comment #15) Do Diff then select view. That's how my diff file looks and should work for ya then. If you do the way ya said it won't work as the diff isn't the same as I sent
A commit references this bug: Author: swills Date: Wed Aug 22 19:42:49 UTC 2018 New revision: 477816 URL: https://svnweb.freebsd.org/changeset/ports/477816 Log: finance/cointop: terminal UI showing cryptocurrency values in realtime PR: 229766 Submitted by: Nathan <ndowens@yahoo.com> Changes: head/finance/Makefile head/finance/cointop/ head/finance/cointop/Makefile head/finance/cointop/distinfo head/finance/cointop/pkg-descr
Committed, thanks!