View | Details | Raw Unified | Return to bug 265916 | Differences between
and this patch

Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 260-266 _fastdfs:*:313: Link Here
260
# free: 317
260
# free: 317
261
# free: 318
261
# free: 318
262
# free: 319
262
# free: 319
263
# free: 320
263
teleirc:*:320:
264
# free: 321
264
# free: 321
265
# free: 322
265
# free: 322
266
# free: 323
266
# free: 323
(-)b/UIDs (-1 / +1 lines)
Lines 265-271 _fastdfs:*:313:313::0:0:FastDFS Owner:/nonexistent:/usr/sbin/nologin Link Here
265
# free: 317
265
# free: 317
266
# free: 318
266
# free: 318
267
# free: 319
267
# free: 319
268
# free: 320
268
teleirc:*:320:320::0:0:Telegram and IRC bridge:/nonexistent:/usr/sbin/nologin
269
# free: 321
269
# free: 321
270
# free: 322
270
# free: 322
271
# free: 323
271
# free: 323
(-)b/net-im/teleirc/Makefile (+48 lines)
Added Link Here
1
PORTNAME=	teleirc
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	2.2.0
4
CATEGORIES=	net-im
5
6
MAINTAINER=	DtxdF@riseup.net
7
COMMENT=	Telegram/IRC bridge for use with any IRC channel and Telegram group
8
9
LICENSE=	GPLv3
10
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
11
12
USES=	go:modules
13
14
USE_GITHUB=	yes
15
GH_ACCOUNT=	ritlug
16
GH_TUPLE=	\
17
		caarlos0:env:v6.0.0:caarlos0_env_v6/vendor/github.com/caarlos0/env/v6 \
18
		davecgh:go-spew:v1.1.0:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
19
		go-playground:assert:v1.2.1:go_playground_assert/vendor/gopkg.in/go-playground/assert.v1 \
20
		go-playground:locales:v0.12.1:go_playground_locales/vendor/github.com/go-playground/locales \
21
		go-playground:universal-translator:v0.16.0:go_playground_universal_translator/vendor/github.com/go-playground/universal-translator \
22
		go-playground:validator:v9.29.1:go_playground_validator/vendor/github.com/go-playground/validator \
23
		go-telegram-bot-api:telegram-bot-api:v4.6.4:go_telegram_bot_api_telegram_bot_api/vendor/github.com/go-telegram-bot-api/telegram-bot-api \
24
		golang:mock:v1.4.3:golang_mock/vendor/github.com/golang/mock \
25
		joho:godotenv:v1.3.0:joho_godotenv/vendor/github.com/joho/godotenv \
26
		kyokomi:emoji:v2.1.0:kyokomi_emoji/vendor/github.com/kyokomi/emoji \
27
		leodido:go-urn:v1.1.0:leodido_go_urn/vendor/github.com/leodido/go-urn \
28
		lrstanley:girc:4fc93959e1a7:lrstanley_girc/vendor/github.com/lrstanley/girc \
29
		pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
30
		stretchr:testify:v1.3.0:stretchr_testify/vendor/github.com/stretchr/testify \
31
		technoweenie:multipartstreamer:v1.0.1:technoweenie_multipartstreamer/vendor/github.com/technoweenie/multipartstreamer
32
33
GO_BUILDFLAGS=	-ldflags "-X main.version=${PORTVERSION}"
34
GO_TARGET=	./cmd/teleirc.go:teleirc
35
36
USERS=	teleirc
37
GROUPS=	teleirc
38
39
USE_RC_SUBR=	teleirc
40
41
PLIST_SUB=	GROUP="${GROUPS:[0]}" \
42
		USER="${USERS:[0]}"
43
44
post-install:
45
	@${MKDIR} ${STAGEDIR}/${PREFIX}/etc
46
	@${CP} ${FILESDIR}/teleirc.conf ${STAGEDIR}/${PREFIX}/etc/teleirc.conf.sample
47
48
.include <bsd.port.mk>
(-)b/net-im/teleirc/distinfo (+33 lines)
Added Link Here
1
TIMESTAMP = 1660698944
2
SHA256 (ritlug-teleirc-v2.2.0_GH0.tar.gz) = 63c870e4a1f1c0625ee7afa0f4bac084429d58da73c106a32ffd74ef609e1310
3
SIZE (ritlug-teleirc-v2.2.0_GH0.tar.gz) = 372733
4
SHA256 (caarlos0-env-v6.0.0_GH0.tar.gz) = 1773dbb54a3734bda3c288050c8e37de50761855f1fccd785c37dc4d868182df
5
SIZE (caarlos0-env-v6.0.0_GH0.tar.gz) = 11237
6
SHA256 (davecgh-go-spew-v1.1.0_GH0.tar.gz) = 1f7e0bd2db0341925b5f2ee5834e99380f4c2b1bd36cf0fa62d7717899d39d62
7
SIZE (davecgh-go-spew-v1.1.0_GH0.tar.gz) = 42337
8
SHA256 (go-playground-assert-v1.2.1_GH0.tar.gz) = 73c63ba9a0c07a1f0b8746a5c86705ca26ae11267d77a9babdd6d4073c1fa2ed
9
SIZE (go-playground-assert-v1.2.1_GH0.tar.gz) = 4163
10
SHA256 (go-playground-locales-v0.12.1_GH0.tar.gz) = 03bc7bd40b953c01aa0be2f2d049f4cc83ba81d3aa4906298aebeb0fa3983ad0
11
SIZE (go-playground-locales-v0.12.1_GH0.tar.gz) = 4225114
12
SHA256 (go-playground-universal-translator-v0.16.0_GH0.tar.gz) = 478dfc8959c919d371d3218d8c5c380ef517e094a5e0990e23fdb6824b55158a
13
SIZE (go-playground-universal-translator-v0.16.0_GH0.tar.gz) = 36036
14
SHA256 (go-playground-validator-v9.29.1_GH0.tar.gz) = 1b53988c7b0079869be75c2fd4acbb9d3e8c204751d620652329995878bb37b4
15
SIZE (go-playground-validator-v9.29.1_GH0.tar.gz) = 133468
16
SHA256 (go-telegram-bot-api-telegram-bot-api-v4.6.4_GH0.tar.gz) = bfdb23fda6da247305164d206c95532e1a0b0537a621ad337f74798852a81958
17
SIZE (go-telegram-bot-api-telegram-bot-api-v4.6.4_GH0.tar.gz) = 2076453
18
SHA256 (golang-mock-v1.4.3_GH0.tar.gz) = a5961e57823e449a7f1bd6c958628e4f5d167b7cd8b83b81c10b609f9f5591ce
19
SIZE (golang-mock-v1.4.3_GH0.tar.gz) = 55835
20
SHA256 (joho-godotenv-v1.3.0_GH0.tar.gz) = 07beb0bae964dbe37442603a404196111dbbbaaa986fc179d5d5fdc46ed6a189
21
SIZE (joho-godotenv-v1.3.0_GH0.tar.gz) = 9941
22
SHA256 (kyokomi-emoji-v2.1.0_GH0.tar.gz) = ee2c17312cb796c7c54d1265a4fe3190c1a3c1defebcea614156420223120c8a
23
SIZE (kyokomi-emoji-v2.1.0_GH0.tar.gz) = 60122
24
SHA256 (leodido-go-urn-v1.1.0_GH0.tar.gz) = a94e300521a1b6a1c86c0c5ad8778e8a71dd6a4dd965b63a14d8af107593e709
25
SIZE (leodido-go-urn-v1.1.0_GH0.tar.gz) = 9295
26
SHA256 (lrstanley-girc-4fc93959e1a7_GH0.tar.gz) = 2b688db043f780b8ac661ac165bd3a0da0cf80d4c5a5a4d92d171f9f6289006a
27
SIZE (lrstanley-girc-4fc93959e1a7_GH0.tar.gz) = 67961
28
SHA256 (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 28f3dc1b5c0efd61203ab07233f774740d3bf08da4d8153fb5310db6cea0ebda
29
SIZE (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 11398
30
SHA256 (stretchr-testify-v1.3.0_GH0.tar.gz) = 0cd9c199a72b8d80621624b37c0ed5ac724352d458506a31dfa86710551e7fc5
31
SIZE (stretchr-testify-v1.3.0_GH0.tar.gz) = 102859
32
SHA256 (technoweenie-multipartstreamer-v1.0.1_GH0.tar.gz) = 9247a9071eb90653e2b70efd6abd9bffbe7498b238c0f06d62d8b5096f7c31e6
33
SIZE (technoweenie-multipartstreamer-v1.0.1_GH0.tar.gz) = 3246
(-)b/net-im/teleirc/files/teleirc.conf (+79 lines)
Added Link Here
1
# vim:set filetype=sh:
2
# See the Config File Glossary for instructions.
3
# https://docs.teleirc.com/en/latest/user/config-file-glossary/
4
5
###############################################################################
6
#                                                                             #
7
#                       IRC configuration settings                            #
8
#                                                                             #
9
###############################################################################
10
11
#####----- Host connection settings -----#####
12
IRC_HOST_IP=""
13
14
15
#####----- IRC server connection settings -----#####
16
IRC_SERVER=chat.freenode.net
17
IRC_SERVER_PASSWORD=""
18
IRC_PORT=6697
19
20
## Encryption (SSL/TLS) options
21
IRC_USE_SSL=true
22
IRC_CERT_ALLOW_EXPIRED=false
23
IRC_CERT_ALLOW_SELFSIGNED=false
24
25
26
#####----- IRC channel settings -----#####
27
IRC_CHANNEL="#channel"
28
IRC_CHANNEL_KEY=""
29
IRC_BLACKLIST=""
30
31
32
#####----- IRC bot settings -----#####
33
IRC_BOT_NAME=tg-bridge-bot
34
IRC_BOT_REALNAME="Powered by TeleIRC <github.com/RITlug/teleirc>"
35
IRC_BOT_IDENT="teleirc"
36
37
# NickServ options
38
IRC_NICKSERV_SERVICE=NickServ
39
IRC_NICKSERV_USER=""
40
IRC_NICKSERV_PASS=""
41
42
43
#####----- IRC message settings -----#####
44
IRC_PREFIX="<"
45
IRC_SUFFIX=">"
46
IRC_SEND_STICKER_EMOJI=true
47
IRC_SEND_DOCUMENT=false
48
IRC_EDITED_PREFIX="(edited) "
49
IRC_MAX_MESSAGE_LENGTH=400
50
IRC_SHOW_ZWSP=true
51
IRC_NO_FORWARD_PREFIX=""
52
IRC_QUIT_MESSAGE="TeleIRC bridge stopped."
53
54
55
56
###############################################################################
57
#                                                                             #
58
#                     Telegram configuration settings                         #
59
#                                                                             #
60
###############################################################################
61
62
TELEGRAM_CHAT_ID=-0000000000000
63
TELEIRC_TOKEN=000000000:AAAAAAaAAa2AaAAaoAAAA-a_aaAAaAaaaAA
64
MAX_MESSAGES_PER_MINUTE=20
65
SHOW_ACTION_MESSAGE=true
66
SHOW_JOIN_MESSAGE=false
67
SHOW_KICK_MESSAGE=true
68
SHOW_LEAVE_MESSAGE=false
69
SHOW_DISCONNECT_MESSAGE=true
70
71
72
73
################################################################################
74
#                                                                             #
75
#                      Imgur configuration settings                           #
76
#                                                                             #
77
###############################################################################
78
79
IMGUR_CLIENT_ID=7d6b00b87043f58
(-)b/net-im/teleirc/files/teleirc.in (+58 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: teleirc
4
# REQUIRE: LOGIN
5
# KEYWORD: shutdown
6
#
7
# Configuration settings for teleirc in /etc/rc.conf
8
#
9
# teleirc_enable (bool):		Enable teleirc. (Default=NO)
10
# teleirc_conf (str):			Teleirc configuration file. (Default=%%PREFIX%%/etc/teleirc.conf)
11
# teleirc_flags (str):			Flags used for teleirc. (Default=-conf ${teleirc_conf})
12
# teleirc_logfile (str):		Log file used for teleirc. (Default=/var/log/teleirc.log)
13
# teleirc_program (str):		Path to teleirc application. (Default=%%PREFIX%%/bin/teleirc)
14
# teleirc_username (str):		User to run teleirc as. (Default=teleirc)
15
# teleirc_restart_delay_seconds (int):	Supervise and restart teleirc after the specified delay if it
16
#					has been terminated. (Default=30)
17
18
. /etc/rc.subr
19
20
name="teleirc"
21
desc="Bridge between IRC and Telegram"
22
rcvar="teleirc_enable"
23
start_cmd="teleirc_start"
24
restart_cmd="teleirc_restart"
25
procname=/usr/sbin/daemon
26
27
load_rc_config $name
28
29
: ${teleirc_enable:=NO}
30
: ${teleirc_conf:=%%PREFIX%%/etc/teleirc.conf}
31
: ${teleirc_flags=-conf "${teleirc_conf}"}
32
: ${teleirc_logfile:=/var/log/teleirc.log}
33
: ${teleirc_program:=%%PREFIX%%/bin/teleirc}
34
: ${teleirc_username:=teleirc}
35
: ${teleirc_restart_delay_seconds:=30}
36
: ${teleirc_pidfile:=/var/run/teleirc.pid}
37
38
pidfile="${teleirc_pidfile}"
39
40
teleirc_start()
41
{
42
        echo "Starting ${name}." && sleep 1
43
        ${procname} \
44
		-t "${desc}" \
45
		-R "${teleirc_restart_delay_seconds}" \
46
		-u "${teleirc_username}" \
47
                -o "${teleirc_logfile}" \
48
                -P "${pidfile}" \
49
        ${teleirc_program} ${teleirc_flags}
50
}
51
52
teleirc_restart()
53
{
54
        run_rc_command stop &&
55
        run_rc_command start
56
}
57
58
run_rc_command "$1"
(-)b/net-im/teleirc/pkg-descr (+5 lines)
Added Link Here
1
TeleIRC is a Go implementation of a Telegram <=> IRC bridge. TeleIRC
2
works with any IRC channel and Telegram group. It bridges messages
3
between a Telegram group and an IRC channel.
4
5
WWW: https://github.com/RITlug/teleirc
(-)b/net-im/teleirc/pkg-plist (-1 / +2 lines)
Added Link Here
0
- 
1
bin/teleirc
2
@sample(%%USER%%,%%GROUP%%,0640) etc/teleirc.conf.sample etc/teleirc.conf

Return to bug 265916