Ticket #2723: enable-remote.2.patch

File enable-remote.2.patch, 2.6 kB (added by Fab <netfab@…>, 2 years ago)

second try : have /usr/bin/gajim-remote (working) with --enable-remote

  • configure.ac

    diff -Nru gajim.old/configure.ac gajim/configure.ac
    old new  
    160160        src/Makefile 
    161161        src/common/Makefile 
    162162        scripts/gajim 
     163        scripts/gajim-remote 
    163164        po/Makefile.in 
    164165]) 
    165166AC_OUTPUT 
  • Makefile.am

    diff -Nru gajim.old/Makefile.am gajim/Makefile.am
    old new  
    22 
    33ACLOCAL_AMFLAGS = -I m4 
    44 
    5 bin_SCRIPTS = scripts/gajim 
     5if BUILD_REMOTE_CONTROL 
     6OPTIONAL_BIN = scripts/gajim-remote 
     7else 
     8OPTIONAL_BIN = 
     9endif 
     10 
     11bin_SCRIPTS = scripts/gajim $(OPTIONAL_BIN) 
    612 
    713 
    814docfilesdir = $(docdir) 
     
    1925        intltool-extract.in \ 
    2026        intltool-merge.in       \ 
    2127        intltool-update.in      \ 
    22         scripts/gajim.in 
     28        scripts/gajim.in        \ 
     29        scripts/gajim-remote.in 
    2330         
    2431DISTCLEANFILES =                \ 
    2532        intltool-extract        \ 
    2633        intltool-merge          \ 
    2734        intltool-update         \ 
    28         scripts/gajim 
     35        scripts/gajim           \ 
     36        scripts/gajim-remote 
    2937 
    3038MAINTAINERCLEANFILES = \ 
    3139        configure \ 
  • scripts/gajim-remote.in

    diff -Nru gajim.old/scripts/gajim-remote.in gajim/scripts/gajim-remote.in
    old new  
     1#!/bin/sh 
     2##      gajim 
     3## 
     4## Contributors for this file: 
     5##      - Yann Le Boulanger <asterix@lagaule.org> 
     6##      - Nikos Kouremenos <kourem@gmail.com> 
     7##      - Dimitur Kirov <dkirov@gmail.com> 
     8##               
     9## Copyright (C) 2003-2004 Yann Le Boulanger <asterix@lagaule.org> 
     10##                         Vincent Hanquez <tab@snarc.org> 
     11## Copyright (C) 2005 Yann Le Boulanger <asterix@lagaule.org> 
     12##                    Vincent Hanquez <tab@snarc.org> 
     13##                    Nikos Kouremenos <nkour@jabber.org> 
     14##                    Dimitur Kirov <dkirov@gmail.com> 
     15##                    Travis Shirk <travis@pobox.com> 
     16##                    Norman Rasmussen <norman@rasmussen.co.za> 
     17## 
     18## This program is free software; you can redistribute it and/or modify 
     19## it under the terms of the GNU General Public License as published 
     20## by the Free Software Foundation; version 2 only. 
     21## 
     22## This program is distributed in the hope that it will be useful, 
     23## but WITHOUT ANY WARRANTY; without even the implied warranty of 
     24## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     25## GNU General Public License for more details. 
     26 
     27if [ `id -u` -eq 0 ]; then 
     28        echo "You must not launch gajim-remote as root, it is INSECURE" 
     29fi 
     30 
     31datadir=@DATADIR@ 
     32PYTHON_EXEC=@PYTHON@ 
     33 
     34cd ${datadir}/gajim/src 
     35export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim" 
     36exec ${PYTHON_EXEC} -OO gajim-remote.py "$@"