Bug 252220 - New Port: net/gitup Minimalist, dependency-free program to clone/pull git repositories
Summary: New Port: net/gitup Minimalist, dependency-free program to clone/pull git rep...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-27 21:46 UTC by Nuno Teixeira
Modified: 2020-12-29 12:55 UTC (History)
6 users (show)

See Also:


Attachments
Sugested shar archive (2.75 KB, text/plain)
2020-12-27 21:46 UTC, Nuno Teixeira
no flags Details
Sugested shar archive by Yasuhiro Kimura (2.52 KB, text/plain)
2020-12-28 10:16 UTC, Nuno Teixeira
no flags Details
Sugested shar archive by Yasuhiro Kimura (new distinfo) (2.52 KB, text/plain)
2020-12-28 23:56 UTC, Nuno Teixeira
no flags Details
Sugested shar archive (without textproc/libucl lib dep) (2.47 KB, text/plain)
2020-12-29 08:52 UTC, Nuno Teixeira
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno Teixeira freebsd_committer freebsd_triage 2020-12-27 21:46:37 UTC
Created attachment 221027 [details]
Sugested shar archive

New port: net/gitup

Minimalist, dependency-free program to clone/pull git repositories

A minimalist, dependency-free FreeBSD program to clone/pull git repositories.
Intended for non-developers, gitup synchronizes local copies of repositories
without the additional overhead that the official git client requires.
Because gitup neither uses nor updates the contents of .git directories, the
official git client should not be used on repositories cloned or modified
with gitup or vice versa.

WWW: https://github.com/johnmehr/gitup

---

I used net/svnup port as an example because they are similar programs (and from same author.

I used a patch to help program to find is config file in /usr/local/etc that is hardcoded in gitup.c:

-       const char         *configuration_file = "./gitup.conf";
+       const char         *configuration_file = "/usr/local/etc/gitup.conf";

Is there a better way to fix it like using an variable?

Thanks,

Nuno Teixeira
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2020-12-28 10:16:37 UTC
Created attachment 221043 [details]
Sugested shar archive by Yasuhiro Kimura

Me and Yasuhiro Kimura agreed I can take maintainership on this port, since we ported it at same time, but I was faster submiting than him :)

I will use Yasuhiro port to improve what I've done:

- use LIB_DEPENDS=libucl.so:textproc/libucl:
 (-L${LOCALBASE}/lib -lucl) instead of -lprivateucl (libprivateucl.so.1 => /usr/lib/libprivateucl.so.1)

- use REINPLACE_CMD to fix gitup.conf path and gitup.1 manual.

- add an advisory about this program is beta and to be carefull using it

Thanks Yasuhiro
Comment 2 Nuno Teixeira freebsd_committer freebsd_triage 2020-12-28 14:09:14 UTC
"dependency-free" means what?

Should it be -lprivateucl (base) instead of textproc/libucl?
Comment 3 Renato Botelho freebsd_committer freebsd_triage 2020-12-28 14:14:54 UTC
I can't see 0.87 available at https://github.com/johnmehr/gitup/releases and it also fails to download

===>  License BSD2CLAUSE accepted by the user
===>   gitup-0.87 depends on file: /usr/local/sbin/pkg - found
=> johnmehr-gitup-0.87_GH0.tar.gz doesn't seem to exist in /usr/home/garga/work/freebsd/ports/head/distfiles/.
=> Attempting to fetch https://codeload.github.com/johnmehr/gitup/tar.gz/0.87?dummy=/johnmehr-gitup-0.87_GH0.tar.gz
fetch: https://codeload.github.com/johnmehr/gitup/tar.gz/0.87?dummy=/johnmehr-gitup-0.87_GH0.tar.gz: Not Found
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/johnmehr-gitup-0.87_GH0.tar.gz
fetch: http://distcache.FreeBSD.org/ports-distfiles/johnmehr-gitup-0.87_GH0.tar.gz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/home/garga/work/freebsd/ports/head/distfiles/ and try again.
Comment 4 Nuno Teixeira freebsd_committer freebsd_triage 2020-12-28 14:48:54 UTC
ooops!

Same error here!
Comment 5 Nuno Teixeira freebsd_committer freebsd_triage 2020-12-28 14:54:56 UTC
it seems that 0.87 its not there anymore.

But I still have:

SHA256 (johnmehr-gitup-0.87_GH0.tar.gz) = 77c3f40053b61016324c558c334fe50a869dda88c4f1d3f4c89a40796af65917

Strange, isn'it?
Comment 6 Nuno Teixeira freebsd_committer freebsd_triage 2020-12-28 23:56:20 UTC
Created attachment 221062 [details]
Sugested shar archive by Yasuhiro Kimura (new distinfo)

new distinfo, upstream new 0.87 tag

https://github.com/johnmehr/gitup/issues/14
Comment 7 Nuno Teixeira freebsd_committer freebsd_triage 2020-12-29 08:52:08 UTC
Created attachment 221082 [details]
Sugested shar archive (without textproc/libucl lib dep)

- use -libprivateucl from base and remove dependency on textproc/libucl.

Jonh Mehr:

"It should definitely use -libprivateucl (I don't have textproc/libucl installed and I did all development work using the base library)."

I don't have anymore doubts about this port.

Thanks
Comment 8 Nuno Teixeira freebsd_committer freebsd_triage 2020-12-29 08:54:12 UTC
Could a commiter take a look?
Comment 9 Nuno Teixeira freebsd_committer freebsd_triage 2020-12-29 08:56:56 UTC
(In reply to Nuno Teixeira from comment #2)

Please ignore this question, I made some confusion and now I am crarified.
Comment 10 commit-hook freebsd_committer freebsd_triage 2020-12-29 12:53:55 UTC
A commit references this bug:

Author: garga
Date: Tue Dec 29 12:53:21 UTC 2020
New revision: 559576
URL: https://svnweb.freebsd.org/changeset/ports/559576

Log:
  Add gitup 0.87, minimalist, dependency-free program to clone/pull git
  repositories.

  PR:		252220
  Submitted by:	ed.arrakis@gmail.com
  Sponsored by:	Rubicon Communications, LLC (Netgate)

Changes:
  head/net/Makefile
  head/net/gitup/
  head/net/gitup/Makefile
  head/net/gitup/distinfo
  head/net/gitup/pkg-descr
  head/net/gitup/pkg-message
  head/net/gitup/pkg-plist