[Fab] install gajim-remote only if dbus is present. see #2723
This commit is contained in:
parent
e3dd735831
commit
2dcceee317
14
Makefile.am
14
Makefile.am
|
@ -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 \
|
||||
|
|
|
@ -160,6 +160,7 @@ AC_CONFIG_FILES([
|
|||
src/Makefile
|
||||
src/common/Makefile
|
||||
scripts/gajim
|
||||
scripts/gajim-remote
|
||||
po/Makefile.in
|
||||
])
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -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 "$@"
|
Loading…
Reference in New Issue