View | Details | Raw Unified | Return to bug 227063
Collapse All | Expand All

(-)GIDs (-1 / +1 lines)
Lines 830-836 Link Here
830
# free: 887
830
# free: 887
831
vuls:*:888:
831
vuls:*:888:
832
mattermost:*:889:
832
mattermost:*:889:
833
# free: 890
833
matterircd:*:890:
834
# free: 891
834
# free: 891
835
# free: 892
835
# free: 892
836
# free: 893
836
# free: 893
(-)UIDs (-1 / +1 lines)
Lines 836-842 Link Here
836
# free: 887
836
# free: 887
837
vuls:*:888:888::0:0:VULnerability Scanner:/var/db/vuls:/usr/sbin/nologin
837
vuls:*:888:888::0:0:VULnerability Scanner:/var/db/vuls:/usr/sbin/nologin
838
mattermost:*:889:889::0:0:Mattermost:/usr/local/www/mattermost:/usr/sbin/nologin
838
mattermost:*:889:889::0:0:Mattermost:/usr/local/www/mattermost:/usr/sbin/nologin
839
# free: 890
839
matterircd:*:890:890::0:0:Matterircd:/nonexistent:/usr/sbin/nologin
840
# free: 891
840
# free: 891
841
# free: 892
841
# free: 892
842
# free: 893
842
# free: 893
(-)net-im/matterircd/Makefile (+44 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	matterircd
4
PORTVERSION=	0.16.7
5
DISTVERSIONPREFIX=	v
6
CATEGORIES=	net-im
7
8
MAINTAINER=	norrland@nullbyte.se
9
COMMENT=	IRC bridge for MatterMost
10
11
LICENSE=	MIT
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
ONLY_FOR_ARCHS=	amd64 armv6 armv7 i386
15
16
BUILD_DEPENDS=	go>=1.8:lang/go
17
18
USES=		go
19
20
USE_RC_SUBR=	matterircd
21
22
USE_GITHUB=	yes
23
GH_ACCOUNT=	42wim
24
GH_SUBDIR=	src/github.com/${GH_ACCOUNT}/${PORTNAME}
25
26
MATTERIRCD_USER=	matterircd
27
MATTERIRCD_GROUP=	matterircd
28
29
USERS=		${MATTERIRCD_USER}
30
GROUPS=		${MATTERIRCD_GROUP}
31
32
PLIST_FILES=	bin/${GO_PKGNAME} \
33
		${ETCDIR}/${GO_PKGNAME}.toml.example
34
35
do-build:
36
	@cd ${WRKSRC}/${GH_SUBDIR} && \
37
		${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build
38
39
do-install:
40
	${INSTALL_PROGRAM} ${WRKSRC}/matterircd ${STAGEDIR}${PREFIX}/bin/matterircd
41
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/matterircd
42
	${CP} ${WRKSRC}/matterircd.toml.example ${STAGEDIR}${PREFIX}/etc/matterircd/matterircd.toml.example
43
44
.include <bsd.port.mk>
(-)net-im/matterircd/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1522178987
2
SHA256 (42wim-matterircd-v0.16.7_GH0.tar.gz) = 3f9ef394d79c36990a9fff4b809a974d6f0e401377c4fd182de46fa8aefc1ca8
3
SIZE (42wim-matterircd-v0.16.7_GH0.tar.gz) = 1595920
(-)net-im/matterircd/files/matterircd.in (+48 lines)
Line 0 Link Here
1
#!/bin/sh
2
# $FreeBSD$
3
4
# PROVIDE: matterircd
5
# REQUIRE: DAEMON NETWORKING
6
# BEFORE: LOGIN
7
# KEYWORD: shutdown
8
9
# Add the following lines to /etc/rc.conf to enable matterircd:
10
# matterircd_enable="YES"
11
#
12
# matterircd_enable (bool):	Set to YES to enable matterircd
13
#				Default: NO
14
# matterircd_conf (str):		matterircd configuration file
15
#				Default: ${PREFIX}/etc/matterircd.toml
16
# matterircd_user (str):		matterircd daemon user
17
#				Default: matterircd
18
# matterircd_group (str):		matterircd daemon group
19
#				Default: matterircd
20
# matterircd_flags (str):		Extra flags passed to matterircd
21
#
22
23
. /etc/rc.subr
24
25
name="matterircd"
26
rcvar=matterircd_enable
27
load_rc_config $name
28
29
: ${matterircd_enable:="NO"}
30
: ${matterircd_user:="matterircd"}
31
: ${matterircd_group:="matterircd"}
32
: ${matterircd_flags:=""}
33
: ${matterircd_conf:="%%PREFIX%%/etc/matterircd/matterircd.toml"}
34
: ${matterircd_options:="${matterircd_flags} -conf=${matterircd_conf}"}
35
36
# daemon
37
matterircd_pidfile="/var/run/${name}.pid"
38
procname="%%PREFIX%%/bin/${name}"
39
command=/usr/sbin/daemon
40
start_cmd="matterircd_startcmd_daemon"
41
42
matterircd_startcmd_daemon()
43
{
44
    echo "Starting ${name}."
45
      /usr/sbin/daemon -p ${matterircd_pidfile} -u ${matterircd_user} -S -T ${name} ${procname} ${matterircd_options}
46
}
47
48
run_rc_command "$1"
(-)net-im/matterircd/pkg-descr (+3 lines)
Line 0 Link Here
1
Matterircd - IRC bridge for Mattermost
2
3
WWW: https://github.com/42wim/matterircd

Return to bug 227063