From owner-svn-ports-all@freebsd.org Sat Mar 31 15:35:24 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E11F2F6A0E4; Sat, 31 Mar 2018 15:35:23 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 92C64684D2; Sat, 31 Mar 2018 15:35:23 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8D95319B77; Sat, 31 Mar 2018 15:35:23 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w2VFZNb2040398; Sat, 31 Mar 2018 15:35:23 GMT (envelope-from dbaio@FreeBSD.org) Received: (from dbaio@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w2VFZMNK040385; Sat, 31 Mar 2018 15:35:22 GMT (envelope-from dbaio@FreeBSD.org) Message-Id: <201803311535.w2VFZMNK040385@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dbaio set sender to dbaio@FreeBSD.org using -f From: "Danilo G. Baio" Date: Sat, 31 Mar 2018 15:35:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r466052 - in head: . net-im net-im/matterircd net-im/matterircd/files X-SVN-Group: ports-head X-SVN-Commit-Author: dbaio X-SVN-Commit-Paths: in head: . net-im net-im/matterircd net-im/matterircd/files X-SVN-Commit-Revision: 466052 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Mar 2018 15:35:24 -0000 Author: dbaio Date: Sat Mar 31 15:35:22 2018 New Revision: 466052 URL: https://svnweb.freebsd.org/changeset/ports/466052 Log: Add net-im/matterircd: IRC bridge for Mattermost and Slack Minimal IRC server which integrates with Mattermost and Slack. Connect to your local/remote Mattermost installation or to Slack via your IRC-client. WWW: https://github.com/42wim/matterircd PR: 227063 Submitted by: norrland@nullbyte.se Added: head/net-im/matterircd/ head/net-im/matterircd/Makefile (contents, props changed) head/net-im/matterircd/distinfo (contents, props changed) head/net-im/matterircd/files/ head/net-im/matterircd/files/matterircd.in (contents, props changed) head/net-im/matterircd/pkg-descr (contents, props changed) head/net-im/matterircd/pkg-plist (contents, props changed) Modified: head/GIDs head/UIDs head/net-im/Makefile Modified: head/GIDs ============================================================================== --- head/GIDs Sat Mar 31 13:20:32 2018 (r466051) +++ head/GIDs Sat Mar 31 15:35:22 2018 (r466052) @@ -830,7 +830,7 @@ chronyd:*:849: # free: 887 vuls:*:888: mattermost:*:889: -# free: 890 +matterircd:*:890: # free: 891 # free: 892 # free: 893 Modified: head/UIDs ============================================================================== --- head/UIDs Sat Mar 31 13:20:32 2018 (r466051) +++ head/UIDs Sat Mar 31 15:35:22 2018 (r466052) @@ -836,7 +836,7 @@ archiva:*:871:871::0:0:Apache Archiva Daemon:/nonexist # free: 887 vuls:*:888:888::0:0:VULnerability Scanner:/var/db/vuls:/usr/sbin/nologin mattermost:*:889:889::0:0:Mattermost:/usr/local/www/mattermost:/usr/sbin/nologin -# free: 890 +matterircd:*:890:890::0:0:Matterircd User:/nonexistent:/usr/sbin/nologin # free: 891 # free: 892 # free: 893 Modified: head/net-im/Makefile ============================================================================== --- head/net-im/Makefile Sat Mar 31 13:20:32 2018 (r466051) +++ head/net-im/Makefile Sat Mar 31 15:35:22 2018 (r466052) @@ -74,6 +74,7 @@ SUBDIR += linux-telegram-desktop SUBDIR += loudmouth SUBDIR += mastodon + SUBDIR += matterircd SUBDIR += mbpurple SUBDIR += mcabber SUBDIR += meanwhile Added: head/net-im/matterircd/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/matterircd/Makefile Sat Mar 31 15:35:22 2018 (r466052) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= matterircd +PORTVERSION= 0.16.7 +DISTVERSIONPREFIX= v +CATEGORIES= net-im irc + +MAINTAINER= norrland@nullbyte.se +COMMENT= IRC bridge for Mattermost and Slack + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 + +BUILD_DEPENDS= go>=1.8:lang/go + +USE_RC_SUBR= matterircd + +USE_GITHUB= yes +GH_ACCOUNT= 42wim +GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME} + +USERS= matterircd +GROUPS= matterircd + +do-build: + @cd ${WRKSRC}/${GH_SUBDIR} && \ + ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/matterircd ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/matterircd.toml.example \ + ${STAGEDIR}${PREFIX}/etc/matterircd.toml.sample + +.include Added: head/net-im/matterircd/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/matterircd/distinfo Sat Mar 31 15:35:22 2018 (r466052) @@ -0,0 +1,3 @@ +TIMESTAMP = 1522178987 +SHA256 (42wim-matterircd-v0.16.7_GH0.tar.gz) = 3f9ef394d79c36990a9fff4b809a974d6f0e401377c4fd182de46fa8aefc1ca8 +SIZE (42wim-matterircd-v0.16.7_GH0.tar.gz) = 1595920 Added: head/net-im/matterircd/files/matterircd.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/matterircd/files/matterircd.in Sat Mar 31 15:35:22 2018 (r466052) @@ -0,0 +1,42 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: matterircd +# REQUIRE: DAEMON NETWORKING +# BEFORE: LOGIN +# KEYWORD: shutdown +# +# Options to configure matterircd via /etc/rc.conf: +# +# matterircd_enable (bool) Enable service on boot +# Default: NO +# +# matterircd_conf (str) Config file to use +# Default: ${PREFIX}/etc/matterircd.toml +# +# matterircd_uid (str) User to run matterircd as +# Default: matterircd +# +# matterircd_flags (str) Extra flags passed to matterircd +# + +. /etc/rc.subr + +name="matterircd" +rcvar="matterircd_enable" +pidfile="/var/run/matterircd.pid" +procname="%%PREFIX%%/bin/matterircd" + +load_rc_config $name + +: ${matterircd_enable:="NO"} +: ${matterircd_uid:="matterircd"} +: ${matterircd_flags:=""} +: ${matterircd_conf:="%%PREFIX%%/etc/matterircd.toml"} +: ${matterircd_options:="${matterircd_flags} -conf=${matterircd_conf}"} + +command="/usr/sbin/daemon" +command_args="-p ${pidfile} -u ${matterircd_uid} -S -T ${name} ${procname} ${matterircd_options}" + +run_rc_command "$1" Added: head/net-im/matterircd/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/matterircd/pkg-descr Sat Mar 31 15:35:22 2018 (r466052) @@ -0,0 +1,6 @@ +Minimal IRC server which integrates with Mattermost and Slack. + +Connect to your local/remote Mattermost installation or to Slack via your +IRC-client. + +WWW: https://github.com/42wim/matterircd Added: head/net-im/matterircd/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/matterircd/pkg-plist Sat Mar 31 15:35:22 2018 (r466052) @@ -0,0 +1,2 @@ +@sample etc/matterircd.toml.sample +bin/matterircd