System :: Creating DSL extension questions



I am attempting to enhance the cups.dsl extension by adding support for hpijs drivers with foomatic scripts and additional ppd filters.  I found the "Creating a Compressed Extension from Source" wiki which answered most questions but I have a couple of others.

What I did was take the current cups.dsl extension and expand it in /home/dsl/cups.  Then I copied in the additional products to the appropriate mirrored directories off my /home/dsl/cups directory.

/usr/bin/hpijs to /home/dsl/cups/usr/bin/hpijs
/usr/bin/foomatic-gswapper to /home/dsl/cups/usr/bin/foomatic-gswapper
/usr/bin/foomatic-rip to /home/dsl/cups/usr/bin/foomatic-rip
/usr/share/perl/5.8.0/sigtrap.pm to /home/dsl/cups/usr/share/5.8.0/sigtrap.pm

ln -s /usr/bin/foomatic-rip ./usr/lib/cups/filter/foomatic-rip

Also I loaded hpijs PPD files downloaded from linuxprinting.org in

/home/dsl/cups/usr/share/cups/model

Following the instructions from the document, I created a tar file and then compressed it using gzip.  I named this cups_hpijs.dsl (sorry for the lack of creativity here).

My first question is.  Is this the correct procedure for a *.dsl extension or did I miss something?

I then rebooted with the norestore option.  After the system came up I opened Emelfm, found my newly created cups_hpijs.dsl package and click myDSL.

I started the cupsd by hand, added root passwd, configured my hp printer and printed a test sheet.  So it seems to have worked for the most part.  The only issue I have is the myDSL submenu does not get added to the DSL menu. I do find

root@box:/tmp/mydsl.menu# cat cups
[submenu] (Cups) {}
  [exec] (start) {sudo /etc/init.d/cupsys start}
  [exec] (stop) {sudo /etc/init.d/cupsys stop}
  [exec] (restart) {sudo /etc/init.d/cupsys restart}
  [exec] (reload) {sudo /etc/init.d/cupsys reload}
  [exec] (force-reload) {sudo /etc/init.d/cupsys force-reload}
  [exec] (Cups Admin) {/usr/local/firefox/firefox http://localhost:631}
[end]
root@box:/tmp/mydsl.menu#

but this is not added to /home/dsl/.fluxbox/menu nor does it appear in the menu when I bring it up.

So am I missing something or did I skip a step?  It seems I am fairly close to what I want but would like to resolve this issue.

Any help is appreciated. Thanks

Trying renaming the menu file in /tmp from cups to cups_hpijs

Since these is no place to specifiy the menu file name, it is assumed to be the base of the extension name and must be unique from all others.

I would suggest to place the extra cups files in /opt and not /home/dsl. That way it should work for those you want to run with multiple users.


original here.