[Fab] install gajim-remote only if dbus is present. see #2723

This commit is contained in:
Yann Leboulanger 2006-11-29 08:07:41 +00:00
parent e3dd735831
commit 2dcceee317
3 changed files with 18 additions and 6 deletions

View File

@ -2,7 +2,13 @@ SUBDIRS = src data po
ACLOCAL_AMFLAGS = -I m4
bin_SCRIPTS = scripts/gajim
if BUILD_REMOTE_CONTROL
OPTIONAL_BIN = scripts/gajim-remote
else
OPTIONAL_BIN =
endif
bin_SCRIPTS = scripts/gajim $(OPTIONAL_BIN)
docfilesdir = $(docdir)
@ -19,13 +25,15 @@ EXTRA_DIST = \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
scripts/gajim.in
scripts/gajim.in \
scripts/gajim-remote.in
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update \
scripts/gajim
scripts/gajim \
scripts/gajim-remote
MAINTAINERCLEANFILES = \
configure \

View File

@ -160,6 +160,7 @@ AC_CONFIG_FILES([
src/Makefile
src/common/Makefile
scripts/gajim
scripts/gajim-remote
po/Makefile.in
])
AC_OUTPUT

9
scripts/gajim-remote → scripts/gajim-remote.in Executable file → Normal file
View File

@ -28,6 +28,9 @@ if [ `id -u` -eq 0 ]; then
echo "You must not launch gajim-remote as root, it is INSECURE"
fi
cd PREFIX/share/gajim/src
export PYTHONPATH="$PYTHONPATH:PREFIXLIB/gajim"
exec PYTHON_EXEC -OO gajim-remote.py "$@"
datadir=@DATADIR@
PYTHON_EXEC=@PYTHON@
cd ${datadir}/gajim/src
export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim"
exec ${PYTHON_EXEC} -OO gajim-remote.py "$@"