Update debian folder to build deb pakage
Add manpage
This commit is contained in:
parent
283b8672a2
commit
2a1d38ac5d
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,5 +1,5 @@
|
||||
telegram-cli (0.1-1) unstable; urgency=low
|
||||
telegram-cli (1.0.5.1-1) unstable; urgency=low
|
||||
|
||||
* Initial release (Closes #737563)
|
||||
* Initial release
|
||||
|
||||
-- Cleto Martín <cleto@debian.org> Mon, 03 Feb 2014 20:00:03 +0000
|
||||
-- Steve Illichevsky <still.ru@gmail.com> Wed, 01 Oct 2014 21:06:28 +0400
|
||||
|
2
debian/compat
vendored
2
debian/compat
vendored
@ -1 +1 @@
|
||||
9
|
||||
8
|
||||
|
10
debian/control
vendored
10
debian/control
vendored
@ -1,16 +1,16 @@
|
||||
Source: telegram-cli
|
||||
Section: net
|
||||
Priority: optional
|
||||
Maintainer: Cleto Martín <cleto@debian.org>
|
||||
Priority: extra
|
||||
Maintainer: Steve Illichevsky <still.ru@gmail.com>
|
||||
Build-Depends: debhelper (>= 8.0.0),
|
||||
autotools-dev,
|
||||
autoconf-archive,
|
||||
libreadline-dev,
|
||||
libconfig-dev,
|
||||
libssl-dev,
|
||||
lua5.2,
|
||||
liblua5.2-dev
|
||||
Standards-Version: 3.9.4
|
||||
lua5.1,
|
||||
liblua5.1-dev
|
||||
Standards-Version: 3.9.2
|
||||
Homepage: https://github.com/vysheng/tg
|
||||
Vcs-Git: git://github.com/vysheng/tg.git
|
||||
Vcs-Browser: https://github.com/vysheng/tg
|
||||
|
23
debian/copyright
vendored
23
debian/copyright
vendored
@ -1,19 +1,19 @@
|
||||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Format: http://dep.debian.net/deps/dep5
|
||||
Upstream-Name: telegram-cli
|
||||
Source: https://github.com/vysheng/tg
|
||||
|
||||
Files: *
|
||||
Copyright: 2013 Vitaly Valtman
|
||||
License: GPL-2.0+
|
||||
Copyright: 2013-2014 vysheng
|
||||
License: GPL-3.0+
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2014 Cleto Martín <cleto@debian.org>
|
||||
License: GPL-2.0+
|
||||
Copyright: 2014 Steve Illichevsky <still.ru@gmail.com>
|
||||
License: GPL-3.0+
|
||||
|
||||
License: GPL-2.0+
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
License: GPL-3.0+
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This package is distributed in the hope that it will be useful,
|
||||
@ -22,7 +22,10 @@ License: GPL-2.0+
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
|
||||
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
|
||||
|
||||
# Please also look if there are files or directories which have a
|
||||
# different copyright/license attached and list them here.
|
||||
|
3
debian/docs
vendored
3
debian/docs
vendored
@ -1 +1,4 @@
|
||||
README.es
|
||||
README-LUA
|
||||
README.md
|
||||
#telegram-cli.8
|
||||
|
1
debian/files
vendored
Normal file
1
debian/files
vendored
Normal file
@ -0,0 +1 @@
|
||||
telegram-cli_1.0.5.1-1_i386.deb net extra
|
4
debian/install
vendored
4
debian/install
vendored
@ -1 +1,3 @@
|
||||
telegram usr/bin
|
||||
bin/telegram-cli usr/bin
|
||||
bin/tlc usr/bin
|
||||
tg-server.pub etc/telegrsm-cli
|
10
debian/rules
vendored
10
debian/rules
vendored
@ -1,12 +1,18 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# This file was originally written by Joey Hess and Craig Small.
|
||||
# As a special exception, when this file is copied by dh-make into a
|
||||
# dh-make output file, you may use that output file without restriction.
|
||||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
VERSION=$(shell dpkg-parsechangelog | sed -n 's/^Version: //p' | cut -f1 -d'-')
|
||||
PACKAGE_NAME=$(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
|
||||
|
||||
%:
|
||||
dh $@ --with autotools-dev
|
||||
|
||||
build-orig:
|
||||
mkdir -p $(PACKAGE_NAME)-$(VERSION)
|
||||
tar --exclude=ax_lua.m4 --exclude=debian --exclude=\.pc \
|
||||
|
48
debian/telegram-cli.8
vendored
Normal file
48
debian/telegram-cli.8
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
.TH man 8 "02 October 2014" "1.0.5.1" "telegram-cli man page"
|
||||
.SH NAME
|
||||
telegram-cli \- Command-line interface for Telegram messenger
|
||||
.SH SYNOPSIS
|
||||
telegram-cli -k [keyfile]
|
||||
.SH DESCRIPTION
|
||||
Telegram messenger is a cloud-based instant messaging designed for
|
||||
smart phones and similar to Whatsapp but more flexible, and
|
||||
powerful. You can send messages, photos, videos and documents to
|
||||
people who are in your phone contacts (and have Telegram). Telegram
|
||||
also supports secret chats whose provide a private (encrypted) way of
|
||||
communication.
|
||||
.
|
||||
This package contains a command-line based client for Telegram with
|
||||
the following features:
|
||||
* Colored terminal messages.
|
||||
* Message management: history, stats, etc.
|
||||
* Group chat: create and manage groups.
|
||||
* Secret chat: secured and encrypted conversations.
|
||||
* Contact management: add/edit/remove contacts.
|
||||
* Multimedia support: send/load photos and videos.
|
||||
.SH OPTIONS
|
||||
Telegram-cli Usage
|
||||
-u specify username (would not be asked during authorization)
|
||||
-k specify location of public key (possible multiple entries)
|
||||
-v increase verbosity (0-ERROR 1-WARNIN 2-NOTICE 3+-DEBUG-levels)
|
||||
-N message num mode
|
||||
-c config file name
|
||||
-p use specified profile
|
||||
-l log level
|
||||
-f during authorization fetch all messages since registration
|
||||
-E diable auto accept of encrypted chats
|
||||
-s lua script file
|
||||
-W send dialog_list query and wait for answer before reading input
|
||||
-C disable color output
|
||||
-R disable readline
|
||||
-d daemon mode
|
||||
-L <log-name> log file name
|
||||
-U <user-name> change uid after start
|
||||
-G <group-name> change gid after start
|
||||
-D disable output
|
||||
-P <port> port to listen for input commands
|
||||
-S <socket-name> unix socket to create
|
||||
.SH SEE ALSO
|
||||
.SH BUGS
|
||||
No known bugs.
|
||||
.SH AUTHOR
|
||||
Vitaliy Vatman (-@-)
|
12
debian/telegram-cli.debhelper.log
vendored
Normal file
12
debian/telegram-cli.debhelper.log
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
dh_autotools-dev_updateconfig
|
||||
dh_auto_configure
|
||||
dh_auto_build
|
||||
dh_auto_test
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
dh_auto_install
|
||||
dh_install
|
||||
dh_installdocs
|
||||
dh_installchangelogs
|
||||
dh_installexamples
|
||||
dh_installmanpages
|
1
debian/telegram-cli.manpages
vendored
Normal file
1
debian/telegram-cli.manpages
vendored
Normal file
@ -0,0 +1 @@
|
||||
debian/telegram-cli.8
|
25
debian/telegram-cli/DEBIAN/control
vendored
Normal file
25
debian/telegram-cli/DEBIAN/control
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
Package: telegram-cli
|
||||
Version: 1.0.5.1-1
|
||||
Architecture: i386
|
||||
Maintainer: Steve Illichevsky <still.ru@gmail.com>
|
||||
Installed-Size: 2393
|
||||
Depends: libc6 (>= 2.8), libconfig8 (>= 1.3.2-2), libevent-2.0-5 (>= 2.0.16-stable), liblua5.1-0, libreadline6 (>= 6.0), libssl1.0.0 (>= 1.0.0), zlib1g (>= 1:1.1.4)
|
||||
Section: net
|
||||
Priority: extra
|
||||
Homepage: https://github.com/vysheng/tg
|
||||
Description: Command-line interface for Telegram messenger
|
||||
Telegram messenger is a cloud-based instant messaging designed for
|
||||
smart phones and similar to Whatsapp but more flexible, and
|
||||
powerful. You can send messages, photos, videos and documents to
|
||||
people who are in your phone contacts (and have Telegram). Telegram
|
||||
also supports secret chats whose provide a private (encrypted) way of
|
||||
communication.
|
||||
.
|
||||
This package contains a command-line based client for Telegram with
|
||||
the following features:
|
||||
* Colored terminal messages.
|
||||
* Message management: history, stats, etc.
|
||||
* Group chat: create and manage groups.
|
||||
* Secret chat: secured and encrypted conversations.
|
||||
* Contact management: add/edit/remove contacts.
|
||||
* Multimedia support: send/load photos and videos.
|
7
debian/telegram-cli/DEBIAN/md5sums
vendored
Normal file
7
debian/telegram-cli/DEBIAN/md5sums
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
ccff83397f23c2d1bab75059c742e11f usr/bin/telegram-cli
|
||||
a0daa671f7b9a4f7503494abcc182f84 usr/bin/tlc
|
||||
c129ddac4b2f1e1f78b69e1d8eb10558 usr/share/doc/telegram-cli/README-LUA
|
||||
0ade98b594fb92d79ba3aa69411949aa usr/share/doc/telegram-cli/README.es.gz
|
||||
0136d70c21b079cb72401a7f9f67efcb usr/share/doc/telegram-cli/README.md.gz
|
||||
04a875e9e8d89a55e1d11747f87aca46 usr/share/doc/telegram-cli/changelog.Debian.gz
|
||||
2f35632c84ef58586c1255f261454859 usr/share/doc/telegram-cli/copyright
|
78
debian/telegram-cli/usr/share/doc/telegram-cli/README-LUA
vendored
Normal file
78
debian/telegram-cli/usr/share/doc/telegram-cli/README-LUA
vendored
Normal file
@ -0,0 +1,78 @@
|
||||
To use lua with client you should write lua script. You can specify it from config ("lua_script" option) or from command_line [-s].
|
||||
|
||||
It should have several functions:
|
||||
on_binlog_replay_end() - it is called when replay of old events end. Any updates prior this call were already received by this client
|
||||
some time ago.
|
||||
|
||||
on_get_difference_end() - it is called after first get_difference call. So we received all updates after last client execute.
|
||||
|
||||
on_our_id(our_id) - Informs about id of currently logged in user.
|
||||
|
||||
on_msg_receive(msg) - it is called when we receive new msg (!! may be called before on_binlog_replay_end, than it is old msg).
|
||||
|
||||
on_user_update(user,what_changed) - updated info about user. what_changed is array of strings.
|
||||
on_chat_update(user,what_changed) - updated info about user. what_changed is array of strings.
|
||||
on_secret_chat_update(user,what_changed) - updated info about user. what_changed is array of strings.
|
||||
|
||||
|
||||
|
||||
Also, you can call several functions. Each this function last two arguments, are cb_function and cb_extra.
|
||||
These functions may return false immidiately if something is bad with args, or return true and call cb_function in future.
|
||||
cb_function would have two or three arguments: first cb_extra, second success (1 or 0), third result (if applicable).
|
||||
|
||||
If you want to pass msg to function, you should pass it's id.
|
||||
If you want to pass peer to function, you should pass it's print_name.
|
||||
Or, you can pass string user#id<id> chat#id<id> and secret_chat#id<id> as peer. It is in some cases better. For example if you want to postpone and you are afraid, that print_name would be changed in the meantime.
|
||||
|
||||
Function_list (arguments are listed aside from cb_function and cb_extra, :
|
||||
get_contact_list ()
|
||||
get_dialog_list ()
|
||||
|
||||
rename_chat (chat, new_name)
|
||||
chat_set_photo (chat, file)
|
||||
|
||||
send_msg (peer, text)
|
||||
fwd_msg (peer, msg)
|
||||
|
||||
send_photo (peer, file)
|
||||
send_video (peer, file)
|
||||
send_audio (peer, file)
|
||||
send_document (peer, file)
|
||||
send_text (peer, file)
|
||||
|
||||
load_photo(msg)
|
||||
load_video(msg)
|
||||
load_video_thumb(msg)
|
||||
load_audio(msg)
|
||||
load_document(msg)
|
||||
load_document_thumb(msg)
|
||||
|
||||
chat_info (chat)
|
||||
user_info (user)
|
||||
|
||||
get_history (peer, limit)
|
||||
|
||||
chat_add_user (chat, user)
|
||||
chat_del_user (chat, user)
|
||||
|
||||
add_contactt (phone, first_name, last_name)
|
||||
rename_contactt (phone, first_name, last_name)
|
||||
|
||||
msg_search (peer, text)
|
||||
msg_global_search (text)
|
||||
|
||||
mark_read (peer)
|
||||
|
||||
set_profile_photo (file)
|
||||
|
||||
create_secret_chat (user)
|
||||
create_group_chat (user, name)
|
||||
|
||||
delete_msg (msg)
|
||||
restore_msg (number)
|
||||
|
||||
status_online ()
|
||||
status_offline ()
|
||||
|
||||
Also, you have function
|
||||
postpone (cb_function, cb_extra, timeout). It will call your cb_function in specified number of seconds (number of seconds may be double).
|
BIN
debian/telegram-cli/usr/share/doc/telegram-cli/README.es.gz
vendored
Normal file
BIN
debian/telegram-cli/usr/share/doc/telegram-cli/README.es.gz
vendored
Normal file
Binary file not shown.
BIN
debian/telegram-cli/usr/share/doc/telegram-cli/README.md.gz
vendored
Normal file
BIN
debian/telegram-cli/usr/share/doc/telegram-cli/README.md.gz
vendored
Normal file
Binary file not shown.
BIN
debian/telegram-cli/usr/share/doc/telegram-cli/changelog.Debian.gz
vendored
Normal file
BIN
debian/telegram-cli/usr/share/doc/telegram-cli/changelog.Debian.gz
vendored
Normal file
Binary file not shown.
31
debian/telegram-cli/usr/share/doc/telegram-cli/copyright
vendored
Normal file
31
debian/telegram-cli/usr/share/doc/telegram-cli/copyright
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
Format: http://dep.debian.net/deps/dep5
|
||||
Upstream-Name: telegram-cli
|
||||
Source: https://github.com/vysheng/tg
|
||||
|
||||
Files: *
|
||||
Copyright: 2013-2014 vysheng
|
||||
License: GPL-3.0+
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2014 Steve Illichevsky <still.ru@gmail.com>
|
||||
License: GPL-3.0+
|
||||
|
||||
License: GPL-3.0+
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
|
||||
|
||||
# Please also look if there are files or directories which have a
|
||||
# different copyright/license attached and list them here.
|
Loading…
Reference in New Issue
Block a user