From 08525ad801a4cf4adb03671554d6dc73118111c2 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 20 Mar 2018 19:01:47 +0100 Subject: [PATCH] net-irc/matterircd: new package --- README.md | 1 + net-irc/matterircd/Manifest | 3 +++ net-irc/matterircd/files/matterircd.init | 16 ++++++++++++ net-irc/matterircd/matterircd-0.16.7.ebuild | 29 +++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 net-irc/matterircd/Manifest create mode 100644 net-irc/matterircd/files/matterircd.init create mode 100644 net-irc/matterircd/matterircd-0.16.7.ebuild diff --git a/README.md b/README.md index b814d9f..b224703 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ This overlay includes ebuilds for the following packages: * `dev-python/qarnot`: Qarnot computing SDK (https://computing.qarnot.com) * `net-im/netsoul-purple`: Netsoul plugin for libpurple (https://github.com/sekh/netsoul-purple) +* `net-irc/matterircd`: IRC gateway to Mattermost and Slack (https://github.com/42wim/matterircd) Usage with Layman ----------------- diff --git a/net-irc/matterircd/Manifest b/net-irc/matterircd/Manifest new file mode 100644 index 0000000..c5b9b84 --- /dev/null +++ b/net-irc/matterircd/Manifest @@ -0,0 +1,3 @@ +AUX matterircd.init 560 SHA256 1fb9a63483763e80d01f5e4624b283991a7546776a5289a1196e28d885449909 SHA512 0306d54296bb9cbe1fa937352438cbf0c597dde55998839903ecaa8409b8b1bcfe6e541fcb79e0c5ecd44552405b327232542c704e39d13155c0a7f8e3e975ad WHIRLPOOL 5f3fc0a222675741a916d04a65cae9866f928b0278ae3110f9b6cf6c0e21b84ec2f35c33aca65537655886090b0032db5a7d92155b16913db835c29579534fa1 +DIST matterircd-0.16.7.tar.gz 1595920 SHA256 3f9ef394d79c36990a9fff4b809a974d6f0e401377c4fd182de46fa8aefc1ca8 SHA512 84556845fc48312c7688f9276c791df05310fa039e03bb6d93d8199bf6116a8d04817e7918740a983219e9e222bd05a310f67d89e36f652c871548837feeca07 WHIRLPOOL 56922cff2100e2da928dbb96c82e25f846894ea06a56cb2e3cb757306b2ad8d92446ae4787a3926236590a7fe06eb72dfc8c3d879b866a21ff308bfc01847542 +EBUILD matterircd-0.16.7.ebuild 673 SHA256 4ee151843e052b17375ed5c532dd70e3f980aa0e980dff0e1a1a65e4c42f33fa SHA512 792f753bd6f5da0f3044caaa14c7e06800e18fc62e93d642880e6d3603439d80c9388355627739bd8407f0bafc674284ce7e1ed690d37d53f4599182226c439b WHIRLPOOL 5c1667b35c8274069d05a80c9a80046559486c6485aa43f59d46f8c60b9bc9fe6580cd2e2e01759d24d7fe5b4ebb169a79eaa090e3f0c8213fc521296c410029 diff --git a/net-irc/matterircd/files/matterircd.init b/net-irc/matterircd/files/matterircd.init new file mode 100644 index 0000000..126bed6 --- /dev/null +++ b/net-irc/matterircd/files/matterircd.init @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command=/usr/bin/matterircd +command_args="-conf /etc/matterircd.toml" +pidfile=/var/run/matterircd/matterircd.pid +start_stop_daemon_args="--make-pidfile --background --user nobody --group nobody --chdir /var/run/matterircd --stdout /var/log/matterircd/matterircd.log --stderr /var/log/matterircd/matterircd.log" + +depend() { + need net +} + +start_pre() { + checkpath -d -m 0750 -o nobody:nobody /var/run/matterircd/ /var/log/matterircd/ +} diff --git a/net-irc/matterircd/matterircd-0.16.7.ebuild b/net-irc/matterircd/matterircd-0.16.7.ebuild new file mode 100644 index 0000000..0dfe332 --- /dev/null +++ b/net-irc/matterircd/matterircd-0.16.7.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit golang-build golang-vcs-snapshot + +EGO_PN=github.com/42wim/matterircd + +if [[ ${PV} = *9999* ]]; then + inherit golang-vcs + KEYWORDS="" +else + SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~arm ~amd64" +fi + +DESCRIPTION="Connect to your local/remote mattermost installation or to slack via your IRC-client." +HOMEPAGE="https://${EGO_PN}" +LICENSE="MIT" +SLOT="0" +IUSE="" + +src_install() { + dobin ${PN} + newinitd "${FILESDIR}"/${PN}.init ${PN} + + insinto /etc/ + newins "${S}/src/${EGO_PN}/matterircd.toml.example" matterircd.toml +}