Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ 1 2 [3] 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: firefox.tar.gz & plugins< Next Oldest | Next Newest >
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: July 22 2004,14:43 QUOTE

My script will automatically remove all directories from the *.dsl file list before the new extension is saved.

Therefore, no post-creation directory removal fixing is required.
Back to top
Profile PM 
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: July 22 2004,15:23 QUOTE

Hi, Cbagger01!

I asked the question because I built Tuxpaint and GCompris with the script. I hate for Kent to have to go in and manually change each submitted .dsl file if we can do something different when building to help the situation.

Take care

Chris
Back to top
Profile PM MSN YIM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: July 22 2004,18:19 QUOTE

I'm just guessing here....
After using cbagger01's fine deb2dsl script..
Perhaps you went in and added/removed/edited something?
( icons, extra files, docs, delete stuff, etc.. )
Then, you rezipped it back up using tar -czvf *.dsl, or
some string to that effect...

That's what does it...  

cbagger01's script does indeed remove all directories from the tar.
..so schweet !!    :)

( I don't know if it removes empty dirs, some programs like to see an empty "high score" or "tux" directory ,That was what I
found in tuxpaint.... an empty orphaned "tux" directory.
It looked like it NEEDED to be there.... so I left IT in...)

Re-tarring the extensions makes the tar include all the source directories by default !!!

I have been using this string to re-tar.gz programs after working on them with good success..

"tar -T filelist.lst --no-recursion --numeric-owner -cvf- | gzip > ext_name.tar.gz"

where filelist.lst = your list of files made with the tar -ztf  *.dsl >  *.txt" command
where ext_name.tar.gz = name of your extension = tux.tar.gx or tux.dsl

With this string , you can go in and add icons, files, edit stuff, and repackage it back up without adding all those DIRS to the tar.

It also takes the emphasis off the username for ownerships,
and associates it with the uid/gid instead.
No more "damnsmall" or "dsl" issues...

Try this , and see if you get different/better results...

I don't mind repackaging them, as I'm going to get all inside it
anyway to look for executables, permissions, owners, etc....
before I upload it to the repository...
( more so now that I'm getting caught up in here !! )

73
ke4nt
Back to top
Profile PM 
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: July 22 2004,19:14 QUOTE

Whew! So much to learn!!

I do get in and "look under the hood" sometimes so I probably am the culprit!

Can you give me a blow by blow example of creating the filelist.lst?

I know this is getting off topic for this thread but this is fascinating stuff!  :D  I also want to make sure I send you clean files!

Take care

Chris
Back to top
Profile PM MSN YIM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: July 22 2004,23:25 QUOTE

....happy to share...

Most all of this has been devised and revised by roberts...
We've been back & forth testing methods to make these as
unintrusive to the base DSL file sysem as possible.
( He's the good lookin' one ..., I'm the stooge in the corner
 with a bucket and a mop !... spongin' up all the brain matter I can ! )
:p

I start with a work directory as root user, inside /home/dsl...
" sudo su "
" mkdir work "
" cd work "
" cp /mnt/hda*/path-to-your-package/*.dsl . "   (notice the lone dot)

I use this command to make the filelist. (I'll use tuxpaint, for ex:)

" tar -ztf tuxpaint.dsl > t.txt "    ... (makes the filelist)

" tar -zxvf tuxpaint.dsl "    ... (opens up the tar.gz file (.dsl))

" scite t.txt "   ...( lets me look inside the list, take out stuff )

./etc/                                       <--  bad
./home/                                     <--  bad
./home/dsl/                                 <-- bad
./home/dsl/.xtdesktop/                  <-- bad
./home/dsl/.xtdesktop/tuxpaint.lnk   <-- A Keeper !
./home/dsl/.xtdesktop/tuxpaint.png   <-- A Keeper !

Take out the first 4 lines, as they are no good to the file system.
They already exist, in the BASE file system, with proper owners/permissions.
No need to overwrite them, possibly with wrong owners/perms.
( I see lots of packages that have every file owned by dsl.staff )
BAD, BAD news for HDInstalls, us LiveCD guys can simply reboot.
I take out most ALL directories - they are forbidden unless they are loners...

Once you have your list clean of any directories, File/Save.
( Watch for directories in the list with no files in them.
They are loners, and usually need to be made, so leave them)
They are NOT base directories, which never need to be written.
( BASE directories are ANY directories that are already in the
  Damn Small Linux Filesystem Image  >>>  0.7.*.iso )

Then I use a shell to examine the contents of the package
check /home/dsl/.xtdesktop/tuxpaint.lnk
check /home/dsl/.xtdesktop/tuxpaint.png
check /tmp/mydsl.menu/tuxpaint
they should ALL be dsl.staff and -rw-r--r-- (chmod 644)
( THIS is key to making icons and menu choices behave )

The rest is pretty straight forward.....
Any other files in the package are.....
/etc or /etc/*  <--  usually always owned by root.root
/usr or /usr/*  <--  owned by root.root
/home/dsl or /home/dsl/*   <-- owned by dsl.staff
/opt or /opt/* <--  root.root

Unless they are specifically an item in a different group ( like /tmp/mydsl.menu/* )
It's best to make them root.root if they are not in /home/dsl
( try " ls -alR | more "  from / dir sometime, and you'll see how
 the BASE DSL .iso is setup as far as owners/perms go. )

I have seen some contribs that have every file inside them executable...
  " chmod 777 * "  ...this is NOT good form...

Once your happy with both the filelist, and the directory structure of your package,
use the tar command from my previous post to repackage it back into a *.tar.gz ( *.dsl )  .
Make your .md5.txt and .info files..  and give it a test yourself.
( " md5sum tuxpaint.dsl > tuxpaint.dsl.md5.txt " )
( I use scite to make my .info files.. use an existing one for a template, and edit over it )

Then send it to me, and share it with us..  

As DSL continues to change, this process is constantly being tailored to fit the needs of the myDSL system.
Expect changes to this method in the future, and please feel free to input your thoughts and tips...

73
ke4nt
Back to top
Profile PM 
15 replies since July 18 2004,23:59 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ 1 2 [3] 4 >/
reply to topic new topic new poll
Quick Reply: firefox.tar.gz & plugins

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code