[Fab] install gajim-remote only if dbus is present. see #2723
This commit is contained in:
parent
e3dd735831
commit
2dcceee317
3 changed files with 18 additions and 6 deletions
14
Makefile.am
14
Makefile.am
|
@ -2,7 +2,13 @@ SUBDIRS = src data po
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
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)
|
docfilesdir = $(docdir)
|
||||||
|
@ -19,13 +25,15 @@ EXTRA_DIST = \
|
||||||
intltool-extract.in \
|
intltool-extract.in \
|
||||||
intltool-merge.in \
|
intltool-merge.in \
|
||||||
intltool-update.in \
|
intltool-update.in \
|
||||||
scripts/gajim.in
|
scripts/gajim.in \
|
||||||
|
scripts/gajim-remote.in
|
||||||
|
|
||||||
DISTCLEANFILES = \
|
DISTCLEANFILES = \
|
||||||
intltool-extract \
|
intltool-extract \
|
||||||
intltool-merge \
|
intltool-merge \
|
||||||
intltool-update \
|
intltool-update \
|
||||||
scripts/gajim
|
scripts/gajim \
|
||||||
|
scripts/gajim-remote
|
||||||
|
|
||||||
MAINTAINERCLEANFILES = \
|
MAINTAINERCLEANFILES = \
|
||||||
configure \
|
configure \
|
||||||
|
|
|
@ -160,6 +160,7 @@ AC_CONFIG_FILES([
|
||||||
src/Makefile
|
src/Makefile
|
||||||
src/common/Makefile
|
src/common/Makefile
|
||||||
scripts/gajim
|
scripts/gajim
|
||||||
|
scripts/gajim-remote
|
||||||
po/Makefile.in
|
po/Makefile.in
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
9
scripts/gajim-remote → scripts/gajim-remote.in
Executable file → Normal file
9
scripts/gajim-remote → scripts/gajim-remote.in
Executable file → Normal file
|
@ -28,6 +28,9 @@ if [ `id -u` -eq 0 ]; then
|
||||||
echo "You must not launch gajim-remote as root, it is INSECURE"
|
echo "You must not launch gajim-remote as root, it is INSECURE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd PREFIX/share/gajim/src
|
datadir=@DATADIR@
|
||||||
export PYTHONPATH="$PYTHONPATH:PREFIXLIB/gajim"
|
PYTHON_EXEC=@PYTHON@
|
||||||
exec PYTHON_EXEC -OO gajim-remote.py "$@"
|
|
||||||
|
cd ${datadir}/gajim/src
|
||||||
|
export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim"
|
||||||
|
exec ${PYTHON_EXEC} -OO gajim-remote.py "$@"
|
Loading…
Add table
Reference in a new issue