add net-im/watgbridge

This commit is contained in:
Alexander Miroshnichenko 2024-11-28 16:33:35 +03:00
parent 824de36fec
commit d92b3e6cbc
Signed by: alex
GPG Key ID: E93720C6C73A77F4
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST watgbridge-1.11.0-vendor.tar.xz 5680020 BLAKE2B 06835ab9de749047b2636014460cbe0de2f61ef818509509a8e63677a6ff29c743173f4674a8935cef716a040435305deb5345877193c839177907c4419c45b4 SHA512 ce837b917be0415df4603ec108860055756e4374dfe89c88aa4e244432ce7244922589bb43fe90ff7619ae5f412bc17bba578842584fb1aa424a86b4b0b1cc78
DIST watgbridge-1.11.0.tar.gz 878991 BLAKE2B 6ab8c23fab7f7307151000d14b28132da67c5ea2e99cfeed600fa01e50a01e1e8d38516edc4f9bec4790df15de0bff506d3cb8e78c2f8392096ac44d1b68ecdc SHA512 6f8312c54c8794a8b71e955cac93d7930b0969713c3b2f166d3d0dfbf8a4d8b800b6e4ecea2ea328c1eae1ea538ad35cd429d2641057440f742f36686136ca50

View File

@ -0,0 +1,39 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd
DESCRIPTION="A forwarder from WhatsApp to Telegram"
HOMEPAGE="https://github.com/akshettrj/watgbridge"
SRC_URI="https://github.com/akshettrj/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://git.millerson.name/alex/gentoo-artifacts/releases/download/${P}-vendor/${P}-vendor.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_prepare() {
sed -i "s@^ExecStart=.*@ExecStart=/usr/bin/${PN}@g" watgbridge.service.sample || die
sed -i "s@^User=.*@User=nobody@g" watgbridge.service.sample
}
src_compile() {
ego build || die
}
src_install() {
dobin ${PN}
systemd_newunit watgbridge.service.sample watgbridge.service
insinto /etc
newins sample_config.yaml ${PN}.yaml
default
}