wok rev 3545

Add gajim
author Liu Peng <rocky@slitaz.org>
date Tue Jun 23 12:11:03 2009 +0800 (2009-06-23)
parents a79556b6da5a
children 360f1070ee8a
files gajim/receipt gajim/stuff/host_srv.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gajim/receipt	Tue Jun 23 12:11:03 2009 +0800
     1.3 @@ -0,0 +1,37 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gajim"
     1.7 +VERSION="0.12.3"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Gtk Jabber client."
    1.10 +MAINTAINER="rocky@slitaz.org"
    1.11 +DEPENDS="gtkspell python dbus-python pygtk pygobject pyopenssl pysqlite xorg-libXss bindutils"
    1.12 +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"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WEB_SITE="http://www.gajim.org/"
    1.15 +WGET_URL="http://www.gajim.org/downloads/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +    cd $src
    1.21 +    patch -p1 < ../stuff/host_srv.patch &&
    1.22 +    ./configure --prefix=/usr \
    1.23 +        --mandir=/usr/share/man \
    1.24 +        $CONFIGURE_ARGS &&
    1.25 +    make &&
    1.26 +    make DESTDIR=$PWD/_pkg install
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +    mkdir -p $fs/usr/share
    1.33 +    cp -a $_pkg/usr/bin $fs/usr
    1.34 +    cp -a $_pkg/usr/lib $fs/usr
    1.35 +    cp -a $_pkg/usr/share/gajim $fs/usr/share
    1.36 +    cp -a $_pkg/usr/share/pixmaps $fs/usr/share
    1.37 +    cp -a $_pkg/usr/share/applications $fs/usr/share
    1.38 +    find $fs/usr/lib -name *.la -delete
    1.39 +    chmod +x $fs/usr/bin/*
    1.40 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/gajim/stuff/host_srv.patch	Tue Jun 23 12:11:03 2009 +0800
     2.3 @@ -0,0 +1,26 @@
     2.4 +use host to resolve domain
     2.5 +--- gajim-0.12.1/src/common/nslookup.py.orig	2009-04-18 02:11:36.000000000 +0800
     2.6 ++++ gajim-0.12.1/src/common/nslookup.py	2009-04-18 02:14:37.000000000 +0800
     2.7 +@@ -123,11 +123,11 @@
     2.8 + 				line = helpers.decode_string(line)
     2.9 + 				domain = ufqdn
    2.10 + 			if domain:
    2.11 +-				rest = line[len(domain):].split('=')
    2.12 ++				rest = line[len(domain):].split('record')
    2.13 + 				if len(rest) != 2:
    2.14 + 					continue
    2.15 + 				answer_type, props_str = rest
    2.16 +-				if answer_type.strip() != 'service':
    2.17 ++				if answer_type.strip() != 'has SRV':
    2.18 + 					continue
    2.19 + 				props = props_str.strip().split(' ')
    2.20 + 				if len(props) < 4:
    2.21 +@@ -296,7 +296,7 @@
    2.22 + 			return
    2.23 + 	
    2.24 + 	def _compose_command_args(self):
    2.25 +-		return ['nslookup', '-type=' + self.type , self.host]
    2.26 ++		return ['host', '-t ' + self.type , self.host]
    2.27 + 	
    2.28 + 	def _return_result(self):
    2.29 + 		if self.result_handler: