WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [metaextensions] how to create them?  (Read 3240 times)

Offline frimical

  • Jr. Member
  • **
  • Posts: 75
[metaextensions] how to create them?
« on: October 12, 2010, 05:29:30 AM »
please, can someone tell me how to create a metaextension ?( which I understand is  not a normal one)
thnx

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: [metaextensions] how to create them?
« Reply #1 on: October 12, 2010, 06:55:47 AM »
create an empty file and add to dep list whatever you want

forexample
Code: [Select]
mkdir -p myext/usr/local/share/myext
echo "This is a meta extension" > myext/usr/local/share/myext/readme
mksquashfs myext myext.tcz
echo "dep1.tcz" >> myext.tcz.dep
echo "dep2.tcz" >> myext.tcz.dep

if you are going to submit it to the official repository
Code: [Select]
cd myext
find usr -not -type d > ../myext.tcz.list
md5sum myext.tcz > myext.tcz.md5.txt
and you need to prepare an info file (myext.tcz.info)
take one sample from http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/tcz_3x.html

see for related wiki page and official guide for details
http://wiki.tinycorelinux.com/Creating+Extensions
http://forum.tinycorelinux.net/index.php?topic=330.0
« Last Edit: October 12, 2010, 07:03:56 AM by Arslan S. »

Offline frimical

  • Jr. Member
  • **
  • Posts: 75
Re: [metaextensions] how to create them?
« Reply #2 on: October 13, 2010, 04:07:56 AM »
thank you very much for your quick'n'neat answer, it worth being added to the wiki. Do you mind if I do so?
(by the way I was a little confused on the wiki page because it was talking  about 'tce' extension not 'tcz').

One  more question:
  Can we add a startup script?

thnx

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: [metaextensions] how to create them?
« Reply #3 on: October 13, 2010, 04:40:28 AM »
thank you very much for your quick'n'neat answer, it worth being added to the wiki. Do you mind if I do so?
(by the way I was a little confused on the wiki page because it was talking  about 'tce' extension not 'tcz').

One  more question:
  Can we add a startup script?

thnx


this is open project so anyone can contribute as long as you strict with community conventions and rules

yes there is tce.installed script that is run just after the extension is loaded
put your commands to myext/usr/local/tce.installed/myext (script name must be the same with extension name)
then adjust permissions of both tce.installed directory and tce.installed script to 775 and ownership to root.staff
Code: [Select]
sudo chmod -R 775 myext/usr/local/tce.installed
sudo chown -R root.staff myext/usr/local/tce.installed

you can find most of the information in the related wiki page already
« Last Edit: October 13, 2010, 04:42:04 AM by Arslan S. »

Offline frimical

  • Jr. Member
  • **
  • Posts: 75
Re: [metaextensions] how to create them?
« Reply #4 on: October 13, 2010, 04:17:46 PM »
thank you again, it was bright clear. I will add your explanations to the wiki page.