From d92b3e6cbc77a4576c9c600ded60dfd2e8cdbd06 Mon Sep 17 00:00:00 2001 From: Alexander Miroshnichenko Date: Thu, 28 Nov 2024 16:33:35 +0300 Subject: [PATCH] add net-im/watgbridge --- net-im/watgbridge/Manifest | 2 ++ net-im/watgbridge/watgbridge-1.11.0.ebuild | 39 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 net-im/watgbridge/Manifest create mode 100644 net-im/watgbridge/watgbridge-1.11.0.ebuild diff --git a/net-im/watgbridge/Manifest b/net-im/watgbridge/Manifest new file mode 100644 index 0000000..04fb383 --- /dev/null +++ b/net-im/watgbridge/Manifest @@ -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 diff --git a/net-im/watgbridge/watgbridge-1.11.0.ebuild b/net-im/watgbridge/watgbridge-1.11.0.ebuild new file mode 100644 index 0000000..150090a --- /dev/null +++ b/net-im/watgbridge/watgbridge-1.11.0.ebuild @@ -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 +}