sb file format

Post your comments, questions, bug reports or suggest new features for alphaOS
efgee
Expert
Posts: 115
Joined: 29 Dec 2013, 20:58

sb file format

Postby efgee » 25 Jun 2014, 21:08

In regards to have software bundles available to all users: maybe we can put them on sourceforge.

In any case the directory they would reside has to explicitly mention the alphaOS version, like: sb15.
Also all sb files would need to have the sb15 note in their name.

For now I attach the software version number (like firefox_29.1) to the sb file name.
Also I have a second alphaOS install that has the "fresh" kernel switch and I use this one to create new software bundles.
Before new software bundles are created all the other sb files are deactivated; this way every software bundle is self contained and only rely on the official files. Surely the file size increases, but to me the size of sb files are not that important.

What we as a community would need is: to agree to a nomenclature for the sb file names.
Once this is done we can add sb files to sourceforge and have several directories:

Code: Select all

userbundles
          sb15
          sb16
          sb17
          etc.

or a similar arrangement.

Also we would need to agree how these software bundles should be created (dependencies etc.).
If there is some interest we could discuss it in a different thread (so we don't mess up this one)

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: sb file format

Postby Scooby » 26 Jun 2014, 14:49

I moved your post to new topic.

A naming scheme would be a good idea.
Some sb's are independent of alphaos version
though, for instance those containing only
bash scripts. I dont know if vala is independent
of version?

Also I somtimes find need to run code when
Installing sb's. Especially when savefile is used
Also maybe some sort of dependency specification.
For which programs to create With makesb


I dont wanna duplicate whats in arch repos though

Of course it could be done via arch like repo.
so maybe set up a arch repo only for alphaos
so people can makesb from it. Would have to
automate it if so, I think it should be easy
to post in it.

Binary or AUR like? Probably AUR, right?

Normal arch stuff I think people should
Makesb themselves

I have to think about this, maybe AUR repo
not the best way to go

probably a good naming scheme in conjunction with a "installer" script
that can take something like a tar archive of .sb and a scriptfile and run it

The scriptfile would contain stuff like makesb calls and prepare system for install?

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: sb file format

Postby Scooby » 09 Jul 2014, 23:34

I played around with some ideas and
created a self extracting bundle.

I created a scipt for generating such bundles
called create_selfunpack_sb

You can use it like

Code: Select all

create_selfunpack_sb any_bundle.sb


or if you want a script to be run at start

Code: Select all

create_selfunpack_sb any_bundle.sb sciptfile.sh


It will merge the self unpacking code with the bundle and the scriptfile
The result will be a new file with the added ending .sh to the name of the bundle.

You can try test below
just download it and run it in a terminal
what should happen is
1. extracting sb and putting it in modules dir
2. load bundle
3. execute scriptfile
reulting in login.mp3 playing and two hello worlds in terminal

Download and try
test_of_self_extract.sb.sh

I consider this experimental for now

PS FOUND BUG IN /usr/bin/bundle
test_of_self_extract.sb shows up as systembundle and cannot be deactivated
The reason for this is that it contains extra in its name

to unload do manually

Code: Select all

> mount -n -o remount,del:/mnt/live/memory/bundles/test_of_self_extract.sb aufs /
 >  umount -d /mnt/live/memory/bundles/test_of_self_extract.sb                     
 > rmdir /mnt/live/memory/bundles/test_of_self_extract.sb/


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 17 guests

cron