Respect destdir in public key path

This commit is contained in:
mjentsch 2015-01-11 00:39:10 +01:00
parent 87fad25bde
commit 5985d08fc5
2 changed files with 8 additions and 3 deletions

View file

@ -1,8 +1,9 @@
srcdir=@srcdir@
CFLAGS=@CFLAGS@ @PURPLE_CFLAGS@ -Wall -Wextra -Wno-unused-parameter -I${srcdir} -I. -fno-strict-aliasing -fPIC
CFLAGS=@CFLAGS@ @PURPLE_CFLAGS@ -Wall -Wextra -Wno-unused-parameter -I${srcdir} -I. -fno-strict-aliasing -fPIC -DDESTDIR=\"@PREFIX@\"
LDFLAGS=@LDFLAGS@ @OPENSSL_LDFLAGS@ @PURPLE_LIBS@ @LIBS@ -lcrypto -rdynamic -ggdb
CPPFLAGS=@CPPFLAGS@ -DFLAGS
CPPFLAGS=@CPPFLAGS@ -DFLAGS
DESTDIR=@PREFIX@
COMPILE_FLAGS=${CFLAGS} ${CPPFLAGS}
LINK_FLAGS=${LDFLAGS}

View file

@ -63,10 +63,14 @@
#define _(m) m
#ifndef DESTDIR
#define DESTDIR
#endif
PurplePlugin *_telegram_protocol = NULL;
PurpleGroup *tggroup;
const char *config_dir = ".telegram-purple";
const char *pk_path = "/etc/telegram-purple/server.pub";
const char *pk_path = DESTDIR"/etc/telegram-purple/server.pub";
void tgprpl_login_on_connected();
void on_user_get_info (struct tgl_state *TLS, void *info_data, int success, struct tgl_user *U);