seamonkey: add seamonkey-chat.desktop and sasl script for chatzilla

Issue #96 resolved
roarde created an issue

sasl: For users connecting through tor, many internet cafes, or certain ISP's, several irc networks require sasl. Freenode is one of them. ChatZilla doesn't have sasl yet, but there's a script that works very well and very easily for that at http://gry.blinkenshell.org/FreeSoftware/irc/cz/scripts/cz_sasl-0.6.2.js . That should end up copied to /usr/lib/seamonkey-$VERSION/defaults/profile/chatzilla/scripts/cz_sasl/init.js . I don't know how to make it reliably end up there, given it's a Mozilla build.

A menu launcher for ChatZilla is needed. I would call it "seamonkey-chat.desktop" and not "chatzilla.desktop". That matches what we're doing for the mail component, and ChatZilla can also be built as a standalone; if we ever do that, we'll need the name "chatzilla.desktop" available for that. I think the Exec line is 'Exec=/usr/bin/seamonkey -chat'

Comments (8)

  1. Moises Henriquez

    The seamonkey package in the past used to conflict with our mozilla-nss and/or nspr packages. It should be noted that nspr now conflicts with mozilla-nss because mozilla-nss includes the necessary stuff from nspr.

    After reviewing the current version of the seamonkey.SlackBuild, it looks like this conflict is no longer a problem. You should be able to re-built the seamonkey package to include this.

    Here is how to include it.

    You will need to download the script into the $CWD directory, and then after the make install directive in the SlackBuild, you should add a section like this

    mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/${NAME}-${VERSION}/defaults/profile/chatzilla/scripts/cz_sasl/
    cat $CWD/cz_sasl-init.js > $PKG/usr/lib${LIBDIRSUFFIX}/${NAME}-${VERSION}/defaults/profile/chatzilla/scripts/cz_sasl/init.js
    

    After that, you would write your .desktop file with the correct call for the Exec directory. You may use a modified version of the existing chatzilla .desktop file. Make sure you change the Name directive and probably the Comment are modified accordingly.

    This file needs to be placed in $PKG/usr/share/applications/

  2. hata_ph

    Btw, pls double check the seamonkey is use mozilla-nss in the MAKEDEPEND instead of the old nspr package.

  3. roarde reporter

    The .desktop is there. The directory for the sasl addon is there, but the script itself didn't make it in.

    Edited local copy of the sb, testing with a local build. This will take a few days; started yesterday.

    Not re-opening the issue at this time.

  4. hata_ph

    Check the build log at http://vlcore.vectorlinux.com/buildbot/builders/seamonkey/builds/45/steps/32-bit%20build/logs/stdio

    You should use below

    cp -a $CWD/cz_sasl-0.6.2.js $PKG/usr/lib${LIBDIRSUFFIX}/seamonkey-$VERSION/defaults/profile/chatzilla/scripts/cz_sasl/init.js
    

    Btw, i think below script is not working...

    # Install js/nspr/nss headers.
    for includedir in nspr nspr/obsolete nspr/private ; do
      mkdir -p $PKG/usr/include/seamonkey-${VERSION}/$includedir
      cp -aL mozilla/dist/include/${includedir}/*.h $PKG/usr/include/seamonkey-${VERSION}/$includedir
    done
    cp -aL mozilla/dist/include/*.tbl mozilla/dist/include/*.msg $PKG/usr/include/seamonkey-${VERSION}
    cp -aL mozilla/dist/include/*.h $PKG/usr/include/seamonkey-${VERSION}
    cp -aL mozilla/dist/sdk/include/* $PKG/usr/include/seamonkey-${VERSION}
    # compat symlinks
    ( cd $PKG/usr/include/seamonkey-${VERSION}
      # make install seems to install js headers into a directory now, so don't make a symlink:
      #ln -sf . js
      # Relocate anything that might be in the nss directory, and replace the directory with a symlink.
      # make install was putting an empty directory here, which was breaking other compiles.
      if [ -d nss ]; then
        mv nss/* .
        rmdir nss
      fi 
      ln -sf . nss
      ln -sf . plugin
      ln -sf . xpcom
    )
    
    make[2]: Leaving directory '/tmp/builds/seamonkey/tmp/seamonkey-2.39/obj/suite/installer'
    make[1]: Leaving directory '/tmp/builds/seamonkey/tmp/seamonkey-2.39/obj'
    cp: cannot stat 'mozilla/dist/include/nspr/*.h': No such file or directory
    cp: cannot stat 'mozilla/dist/include/nspr/obsolete/*.h': No such file or directory
    cp: cannot stat 'mozilla/dist/include/nspr/private/*.h': No such file or directory
    cp: cannot stat 'mozilla/dist/include/*.tbl': No such file or directory
    cp: cannot stat 'mozilla/dist/include/*.msg': No such file or directory
    cp: cannot stat 'mozilla/dist/include/*.h': No such file or directory
    cp: cannot stat 'mozilla/dist/sdk/include/*': No such file or directory
    seamonkey.SlackBuild: line 349: /tmp/builds/seamonkey/src/cz_sasl*.js: No such file or directory
    seamonkey.SlackBuild: line 353: cd: mozilla: No such file or directory
    cp: cannot stat 'LEGAL': No such file or directory
    cp: cannot stat 'LICENSE': No such file or directory
    cp: cannot stat 'README.txt': No such file or directory
    find: `/tmp/builds/seamonkey/tmp/package-seamonkey/usr/man': No such file or directory
    find: `/tmp/builds/seamonkey/tmp/package-seamonkey/usr/info': No such file or directory
    awk: fatal: cannot open file `/tmp/builds/seamonkey/tmp/seamonkey-2.39/config.log' for reading (No such file or directory)
    
  5. Log in to comment