You are not logged in.

#1 2007-01-02 23:47:29

Eugenia
Member
From: Bay Area, CA, USA
Registered: 2005-03-08
Posts: 74
Website

[request] mugshot

an updated version of mugshot please

Offline

#2 2007-01-03 09:52:19

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 606

Re: [request] mugshot

Hmmh, not that easy big_smile.

i've some problems with dbus as it seems...

on starting (the new) version of mugshot:
Can't connect to session message bus: Unable to determine the address of the message bus (try 'man dbus-launch' and 'man dbus-daemon' for help)

might need some more patching to work...


Ability is nothing without opportunity.

Offline

#3 2007-01-03 16:26:02

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [request] mugshot

launch it with:
$ dbus-launch mugshot
Or better, you can also start a dbus session in your .xinitrc, e.g.:
exec dbus-launch --exit-with-session --auto-syntax gnome-session
Replace gnome-session by the WM you use. The above line could be off by a argument.

If update is non-trivial, post the PKGBUILD. I'll update the community package.

Offline

#4 2007-01-03 16:32:58

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 606

Re: [request] mugshot

Fine, working tongue.

Anyway, think on the advice of snowman AND hate me, but this package is quite unclean with depending on a specified gecko-sdk.
I could have done a package for this depending on it, or find a way to combine with the current firefox. Too lazy though, will never use the package at all wink

PKGBUILD

# Contributor: William Rea <sillywilly>
pkgname=mugshot
pkgver=1.1.30
pkgrel=1
pkgdesc="A program to facilitate social networking"
url="http://mugshot.org"
options=('NOEMPTYDIRS')
depends=('loudmouth' 'dbus' 'gtk2' 'curl' 'gconf' 'libxss')
makedepends=('pkgconfig')
source=(http://download.mugshot.org/client/sources/linux/mugshot-$pkgver.tar.gz 
        http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.0.4/sdk/gecko-sdk-i686-pc-linux-gnu-1.8.0.4.tar.bz2 
        $pkgname.install)

install=$pkgname.install
md5sums=('282102620ec24371baa69011eb3d4e9a'
         '2e331346b2bf5db971857b5f343f35fa'
         '87b02b674245829f47f35786d80e70da')

build() {
  cd $startdir/src/mugshot-$pkgver
  export PATH=$PATH:/opt/gnome/bin
  ./configure --prefix=/usr --disable-schemas-install 
              --with-gconf-schema-file-dir=/opt/gnome/etc/gconf/schemas 
              --with-gecko-sdk=$startdir/src/gecko-sdk
  make || return 1
  make DESTDIR=$startdir/pkg install
}

mugshot.install

schemas=(
  'opt/gnome/etc/gconf/schemas/mugshot-uri-handler.schemas'
)

post_install() {
  for schema in "${schemas[@]}" ; do
    GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source` opt/gnome/bin/gconftool-2 --makefile-install-rule "$schema" > /dev/null 2>&1
  done
  kill -s HUP `pidof /opt/gnome/bin/gconfd-2` > /dev/null 2>&1
  echo "updating scrollkeeper catalogue ..."
  scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
  update-desktop-database > /dev/null 2>&1
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  for schema in "${schemas[@]}" ; do
    GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source` opt/gnome/bin/gconftool-2 --makefile-uninstall-rule "$schema" > /dev/null 2>&1
  done
  echo "updating scrollkeeper catalogue ..."
  kill -s HUP `pidof /opt/gnome/bin/gconfd-2` > /dev/null 2>&1
  scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
  update-desktop-database > /dev/null 2>&1
}

post_remove() {
  echo "updating scrollkeeper catalogue ..."
  scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
  update-desktop-database > /dev/null 2>&1
}

op=$1
shift

$op $*

i don't really get the reason the program could be used for anyway, a tray icon opening a webbrowser, i'm impressed tongue.


Ability is nothing without opportunity.

Offline

#5 2007-01-03 20:00:34

WillySilly
Member
Registered: 2005-01-14
Posts: 268

Re: [request] mugshot

Downloading gecko-sdk is not necessary, a simple patch is only needed

--- mugshot-1.1.30/configure.ac 2006-12-19 16:39:06.000000000 -0800
+++ mugshot-1.1.30-new/configure.ac     2007-01-03 11:14:56.000000000 -0800
@@ -428,11 +428,11 @@
 fi

 if test "x$GECKO_INCLUDEDIR" = x ; then
-    AC_MSG_CHECKING([for Gecko SDK in /opt/gecko-sdk])
-    if test -f "/opt/gecko-sdk/idl/nsIURI.idl" ; then
-        GECKO_IDLDIR="/opt/gecko-sdk/idl"
-        GECKO_INCLUDEDIR="/opt/gecko-sdk/include"
-        XPIDL="/opt/gecko-sdk/bin/xpidl"
+    AC_MSG_CHECKING([for Gecko SDK])
+    if test -f "/opt/mozilla/share/idl/xulrunner-1.8.1.1/nsIURI.idl" ; then
+        GECKO_IDLDIR="/opt/mozilla/share/idl/xulrunner-1.8.1.1"
+        GECKO_INCLUDEDIR="/opt/mozilla/include/xulrunner-1.8.1.1"
+        XPIDL="/opt/mozilla/lib/xulrunner-1.8.1.1/xpidl"
        AC_MSG_RESULT([yes])
     else
        AC_MSG_RESULT([no])

And the edited PKGBUILD:

# Contributor: William Rea <sillywilly>
pkgname=mugshot
pkgver=1.1.30
pkgrel=1
pkgdesc="A program to facilitate social networking"
url="http://mugshot.org"
options=('NOEMPTYDIRS')
depends=('loudmouth' 'dbus' 'gtk2' 'curl' 'gconf' 'libxss')
source=(http://download.mugshot.org/client/sources/linux/mugshot-$pkgver.tar.gz$
        arch.patch)
install=$pkgname.install
md5sums=('282102620ec24371baa69011eb3d4e9a')

build() {
  cd $startdir/src/mugshot-$pkgver
  patch -p1 -i ../arch.patch
  autoreconf -i

  ./configure --prefix=/usr --disable-static --disable-schemas-install 
                  --with-gconf-schema-file-dir=/opt/gnome/etc/gconf/schemas
  make || return 1

  make DESTDIR=$startdir/pkg install

  install -d $startdir/pkg/usr/share/applications
  mv $startdir/pkg/usr/share/gnome/autostart/mugshot.desktop 
     $startdir/pkg/usr/share/applications
  rm -r $startdir/pkg/usr/share/gnome/autostart
}

I havent tested the app, only compiled, since I'm at work.

Offline

#6 2007-01-03 21:14:43

Eugenia
Member
From: Bay Area, CA, USA
Registered: 2005-03-08
Posts: 74
Website

Re: [request] mugshot

JGC said that it can also be built like this, without the need of a patch:

./configure --with-gecko-idl=/opt/mozilla/share/idl/xulrunner
--with-gecko-headers=/opt/mozilla/include/xulrunner
--with-xpidl=/opt/mozilla/lib/xulrunner/xpidl

make LDFLAGS+="-R/opt/mozilla/lib/xulrunner"

Offline

Board footer

Powered by FluxBB