Cgit header

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Cgit header

#1 Post by sc0ttman »

Without adding any deps to the install, it should be possible to write our own perl files to use as headers for git, which is a website frontend for Git.

why bother? Well, at Github.com, you can sign up and upload your SSH key over the web interface, making it much simpler for beginners to do it.

We could easily write our own little PERL script include it at the top of the page (cgit allows this easily) and use it to provide users with a really easy way of getting involved in proper collaborative style puppy projects..


The header could include:

- an upload form + backend to add your SSH key to the server
- useful link(s) to Git, Puppy and general Linux help
- better, puppy specific theming


Note, this might sound pointless, but updating git is easy, then it's much better, gives an interactive, secure shell, and Cgit works great and is tiny - I will be adding the latest Git and Cgit to the akita devx...

... I see no reason why puppy should not have latest git+cgit in the devx.. git hasn't grown much (latest i compiled was 8mb), and cgit is about 370kb..


So... Here's the question...

How in PERL do you add stuff to files on the file system, and manage file/dir ownership and permissions?

And what is the easiest way in PERL of managing user registrations?
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

Re: Cgit header

#2 Post by disciple »

sc0ttman wrote:Without adding any deps to the install, it should be possible to write our own perl files to use as headers for git
I guess you mean to say cgit here. But I still don't follow what you're actually suggesting to use cgit for...
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Re: Cgit header

#3 Post by sc0ttman »

disciple wrote:
sc0ttman wrote:Without adding any deps to the install, it should be possible to write our own perl files to use as headers for git
I guess you mean to say cgit here. But I still don't follow what you're actually suggesting to use cgit for...
yes i did mean cgit there,,, and my point is (just thinking out load) that it should be quite easy to include a mini github inside the devx (using git+cgit+custom header) , and then users could start serving their projects through git+web, using their fave puppy, much more quickly and easily.. it would encourage users to develop and collaborate on puppy projects in that way, or at least make it a bit faster and easier..
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#4 Post by disciple »

I don't understand why users would want to serve their own projects rather than using GitHub or something.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#5 Post by sc0ttman »

disciple wrote:I don't understand why users would want to serve their own projects rather than using GitHub or something.
then don't worry about it ;)
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#6 Post by disciple »

Obviously you think the idea is worth putting effort into, and You said you can see no reason not to do it - I just thought you might want to explain the reason to do it.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#7 Post by sc0ttman »

disciple wrote:Obviously you think the idea is worth putting effort into, and You said you can see no reason not to do it - I just thought you might want to explain the reason to do it.
ok, but i believe i already stated above that i think it's a very easy update for a dev to make in the devx of any future pups, so that the end users of those future pups can get started much easier with git hosting if they wish.. the 'effort' to do it is relatively tiny, but I'm not a puppy dev, so i'm not in control of what goes into the devx of any given puppy.. so i thought i'd just 'put it out there'..
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#8 Post by jamesbond »

Scott, why not consider fossil? It is only 4MB uncompressed (on 64-bit, could be smaller on 32-bit) and it has everything already. For those who loves git they can always convert between the two: http://www.fossil-scm.org/xfer/doc/tip/www/inout.wiki.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#9 Post by sc0ttman »

jamesbond wrote:Scott, why not consider fossil? It is only 4MB uncompressed (on 64-bit, could be smaller on 32-bit) and it has everything already. For those who loves git they can always convert between the two: http://www.fossil-scm.org/xfer/doc/tip/www/inout.wiki.
I thought about it.. and maybe I am missing something, but the git package in wary (and therefore the akita devx) is around 50mb, and the latest i compiled (without extras, perl, python, etc) was 8mb, i compared, the difference was the git stuff in /usr/libexec/ .. yet to fully compare features and build a new devx with the new git, but i'm *hoping* to go that way, save space... like I say, maybe I am missing something there...

..a side thought.. I know generally there is not much love for git and such in puppy dev land, and its not used in many puppy projects, but maybe if we did it a bit more, and also included better git support in puppy, we might attract more devs from elsewhere...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Post Reply