Index: head/net-im/linux-telegram-desktop/Makefile =================================================================== --- head/net-im/linux-telegram-desktop/Makefile (revision 451519) +++ head/net-im/linux-telegram-desktop/Makefile (revision 451520) @@ -1,41 +1,41 @@ # Created by: Henry Hu # $FreeBSD$ PORTNAME= telegram-desktop -PORTVERSION= 1.1.7 +PORTVERSION= 1.1.23 CATEGORIES= net-im linux -MASTER_SITES= https://updates.tdesktop.com/tlinux32/ \ - http://freebsd.nsu.ru/distfiles/ +MASTER_SITES= https://updates.tdesktop.com/tlinux32/ PKGNAMEPREFIX= linux- DISTNAME= tsetup32.${PORTVERSION} MAINTAINER= henry.hu.sh@gmail.com COMMENT= Official desktop client for Telegram messenger (Linux version) LICENSE= GPLv3 USES= linux:c7 tar:xz USE_LINUX= alsalib alsa-plugins-oss dbuslibs dri expat gtk2 xorglibs NO_BUILD= yes +RUN_DEPENDS= dbus-launch:devel/dbus WRKSRC= ${WRKDIR}/Telegram TDESKTOPDIR= lib/telegram-desktop SUB_FILES= telegram-desktop.sh SUB_LIST= TDESKTOPDIR=${TDESKTOPDIR} DESKTOP_ENTRIES= "Telegram Desktop" "${COMMENT}" "" \ "${PREFIX}/bin/telegram-desktop -- %u" \ "Network;InstantMessaging;" false PLIST_FILES= bin/telegram-desktop ${TDESKTOPDIR}/Telegram do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${TDESKTOPDIR} # The main program binary ${INSTALL_PROGRAM} ${WRKSRC}/Telegram \ ${STAGEDIR}${PREFIX}/${TDESKTOPDIR} # Wrapper for the main program ${INSTALL_SCRIPT} ${WRKDIR}/telegram-desktop.sh \ ${STAGEDIR}${PREFIX}/bin/telegram-desktop .include Index: head/net-im/linux-telegram-desktop/distinfo =================================================================== --- head/net-im/linux-telegram-desktop/distinfo (revision 451519) +++ head/net-im/linux-telegram-desktop/distinfo (revision 451520) @@ -1,3 +1,3 @@ -TIMESTAMP = 1496182037 -SHA256 (tsetup32.1.1.7.tar.xz) = 49db49c089efa680e8ce68ee7153e7a3f601e485a1305857f5cf1b13a5e7e5b0 -SIZE (tsetup32.1.1.7.tar.xz) = 30618984 +TIMESTAMP = 1506705339 +SHA256 (tsetup32.1.1.23.tar.xz) = d3a93bd958e3e692e39c9744e62a967e42ee089c68a106a3ab236937252111ef +SIZE (tsetup32.1.1.23.tar.xz) = 31249588 Index: head/net-im/linux-telegram-desktop/files/telegram-desktop.sh.in =================================================================== --- head/net-im/linux-telegram-desktop/files/telegram-desktop.sh.in (revision 451519) +++ head/net-im/linux-telegram-desktop/files/telegram-desktop.sh.in (revision 451520) @@ -1,4 +1,9 @@ #!/bin/sh +if [ "$DBUS_SESSION_BUS_ADDRESS" = "" ]; then + eval `dbus-launch --sh-syntax` +fi + +mkdir -p $HOME/.local/share/TelegramDesktop/tdata export QT_XKB_CONFIG_ROOT=%%PREFIX%%/share/X11/xkb exec %%PREFIX%%/%%TDESKTOPDIR%%/Telegram "$@"