WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TC fonts, language support and tcz package creation  (Read 8429 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14626
Re: TC fonts, language support and tcz package creation
« Reply #15 on: January 05, 2012, 03:40:51 AM »
By the look of the names of those scripts, i.e. "pppoe-init.in", they need  to be compiled first.

As mentioned in the wiki, the trick to getting the required files into an extension is either to use DESTDIR or to otherwise copy the required files to a temporary location such as /tmp/pkg.

Once the files - for example /tmp/pkg/usr/local/bin/pppoe-init - are all copied to /tmp/pkg, squashfs-tools-4.x can be used to create and extension as follows:
Code: [Select]
$ cd /tmp
$ sudo mksquashfs pkg/ extension_name.tcz
$ sudo chown tc:staff extension_name.tcz

If you cannot use DESTDIR, then something like this will work:
Code: [Select]
$ touch mymarker
$ sudo make install
$ sudo find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | grep -v "^\/sys\/" | tee files
$ vi files [edit out unneeded files and save changes]
$ sudo tar -T files --numeric-owner -zcvf extension_name.tar.gz
$ sudo chown tc:staff extension_name.tar.gz
$ mv extension_name.tar.gz /tmp/pkg
$ cd /tmp/pkg
$ sudo tar xzf extension_name.tar.gz
$ rm extension_name.tar.gz
$ cd ..
$ sudo mksquashfs pkg/ extension_name.tcz
$ sudo chown tc:staff extension_name.tcz

Offline martin

  • Jr. Member
  • **
  • Posts: 87
Re: TC fonts, language support and tcz package creation
« Reply #16 on: January 05, 2012, 03:52:11 AM »
I had my environment set up for creating another extension from a little earlier and I spotted this thread. I have made a RP-PPPOE extension if anyone is interested. It relies upon the existing pppd.tcz of course. If anyone would like to test it before I formally submit, just send me a message.

edit: spelling. edit: and again. that'll teach me for posting late...
« Last Edit: January 05, 2012, 04:00:17 AM by markerr »

Offline martin

  • Jr. Member
  • **
  • Posts: 87
Re: TC fonts, language support and tcz package creation
« Reply #17 on: January 12, 2012, 10:09:40 PM »
OT: I have heard back privately from the forum member that the package I emailed works, so I will be submitting the RP-PPPOE extension sometime within the next 24 hours, in case anyone else was interested.