# HG changeset patch # User Liu Peng # Date 1245730263 -28800 # Node ID f88cf39e28c3464b8bc767660de0f61a07b91336 # Parent a79556b6da5ab00b3ff119f051e8a5a392302532 Add gajim diff -r a79556b6da5a -r f88cf39e28c3 gajim/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gajim/receipt Tue Jun 23 12:11:03 2009 +0800 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="gajim" +VERSION="0.12.3" +CATEGORY="network" +SHORT_DESC="Gtk Jabber client." +MAINTAINER="rocky@slitaz.org" +DEPENDS="gtkspell python dbus-python pygtk pygobject pyopenssl pysqlite xorg-libXss bindutils" +BUILD_DEPENDS="gettext gtkspell gtkspell-dev python-dev pygtk-dev pygobject-dev dbus-dev xorg-libXss xorg-libXss-dev xcb-util-dev enchant-dev xorg-scrnsaverproto xorg-xextproto" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.gajim.org/" +WGET_URL="http://www.gajim.org/downloads/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + patch -p1 < ../stuff/host_srv.patch && + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + cp -a $_pkg/usr/share/gajim $fs/usr/share + cp -a $_pkg/usr/share/pixmaps $fs/usr/share + cp -a $_pkg/usr/share/applications $fs/usr/share + find $fs/usr/lib -name *.la -delete + chmod +x $fs/usr/bin/* +} diff -r a79556b6da5a -r f88cf39e28c3 gajim/stuff/host_srv.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gajim/stuff/host_srv.patch Tue Jun 23 12:11:03 2009 +0800 @@ -0,0 +1,26 @@ +use host to resolve domain +--- gajim-0.12.1/src/common/nslookup.py.orig 2009-04-18 02:11:36.000000000 +0800 ++++ gajim-0.12.1/src/common/nslookup.py 2009-04-18 02:14:37.000000000 +0800 +@@ -123,11 +123,11 @@ + line = helpers.decode_string(line) + domain = ufqdn + if domain: +- rest = line[len(domain):].split('=') ++ rest = line[len(domain):].split('record') + if len(rest) != 2: + continue + answer_type, props_str = rest +- if answer_type.strip() != 'service': ++ if answer_type.strip() != 'has SRV': + continue + props = props_str.strip().split(' ') + if len(props) < 4: +@@ -296,7 +296,7 @@ + return + + def _compose_command_args(self): +- return ['nslookup', '-type=' + self.type , self.host] ++ return ['host', '-t ' + self.type , self.host] + + def _return_result(self): + if self.result_handler: