View | Details | Raw Unified | Return to bug 246023 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/rundeck/Makefile (-45 lines)
Lines 1-45 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	rundeck
4
DISTVERSION=	2.11.14
5
CATEGORIES=	sysutils java
6
MASTER_SITES=	http://dl.bintray.com/rundeck/rundeck-maven/
7
DISTNAME=	rundeck-launcher-${PORTVERSION}
8
EXTRACT_SUFX=	.jar
9
10
MAINTAINER=	arcade@b1t.name
11
COMMENT=	Web-console for dispatching commands and scripts to your nodes
12
13
LICENSE=	APACHE20
14
15
USE_JAVA=	yes
16
JAVA_VERSION=	1.8+
17
18
NO_ARCH=	yes
19
NO_BUILD=	yes
20
21
PLIST_SUB=	RUNDECK_USER=${RUNDECK_USER} RUNDECK_GROUP=${RUNDECK_GROUP}
22
USE_RC_SUBR=	rundeck
23
24
RUNDECK_HOME=	${PREFIX}/rundeck
25
RUNDECK_USER?=	rundeck
26
RUNDECK_GROUP?=	rundeck
27
RUNDECK_LOG_FILE?=	/var/log/rundeck.log
28
29
.if ${RUNDECK_USER} == "rundeck"
30
USERS=	rundeck
31
.endif
32
.if ${RUNDECK_GROUP} == "rundeck"
33
GROUPS=	rundeck
34
.endif
35
36
SUB_LIST+=	RUNDECK_HOME=${RUNDECK_HOME} RUNDECK_USER=${RUNDECK_USER} \
37
		RUNDECK_GROUP=${RUNDECK_GROUP} JAVA_HOME=${JAVA_HOME} \
38
		RUNDECK_LOG_FILE=${RUNDECK_LOG_FILE}
39
40
do-install:
41
	@${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${RUNDECK_HOME}/server/lib
42
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
43
		${STAGEDIR}${DATADIR}/rundeck-launcher${EXTRACT_SUFX}
44
45
.include <bsd.port.mk>
(-)sysutils/rundeck/distinfo (-3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1570615790
2
SHA256 (rundeck-launcher-2.11.14.jar) = 53b3436cf7234f8fd26986e0b35bb5d42569570ca99e8580c6a616ae98b6973f
3
SIZE (rundeck-launcher-2.11.14.jar) = 102513074
(-)sysutils/rundeck/files/rundeck.in (-84 lines)
Lines 1-84 Link Here
1
#!/bin/sh
2
3
# PROVIDE: rundeck
4
# REQUIRE: LOGIN
5
# KEYWORD: shutdown
6
7
#
8
# Configuration settings for rundeck in /etc/rc.conf:
9
#
10
# rundeck_enable (bool):
11
#   Set to "NO" by default.
12
#   Set it to "YES" to enable rundeck
13
#
14
# rundeck_args (str):
15
#   Extra arguments passed to start command
16
#
17
# rundeck_home (str)
18
#   Set to "%%RUNDECK_HOME%%" by default.
19
#   Set the RUNDECK_HOME variable for rundeck process
20
#
21
# rundeck_java_home (str):
22
#   Set to "%%JAVA_HOME%%" by default.
23
#   Set the Java virtual machine to run rundeck
24
#
25
# rundeck_java_opts (str):
26
#   Set to "" by default.
27
#   Java VM args to use.
28
#
29
# rundeck_user (str):
30
#   Set to "%%RUNDECK_USER%%" by default.
31
#   User to run rundeck as.
32
#
33
# rundeck_group (str):
34
#   Set to "%%RUNDECK_GROUP%%" by default.
35
#   Group for data file ownership.
36
#
37
# rundeck_log_file (str):
38
#   Set to "%%RUNDECK_LOG_FILE%%" by default.
39
#   Log file location.
40
#
41
42
. /etc/rc.subr
43
44
name="rundeck"
45
rcvar=rundeck_enable
46
47
load_rc_config "${name}"
48
49
: ${rundeck_args="-b %%RUNDECK_HOME%%"}
50
: ${rundeck_enable="NO"}
51
: ${rundeck_home="%%RUNDECK_HOME%%"}
52
: ${rundeck_java_home="%%JAVA_HOME%%"}
53
: ${rundeck_user="%%RUNDECK_USER%%"}
54
: ${rundeck_group="%%RUNDECK_GROUP%%"}
55
: ${rundeck_log_file="%%RUNDECK_LOG_FILE%%"}
56
57
pidfile="/var/run/rundeck/rundeck.pid"
58
command="/usr/sbin/daemon"
59
java_cmd="${rundeck_java_home}/bin/java"
60
procname="${java_cmd}"
61
command_args="-p ${pidfile} ${java_cmd} ${rundeck_java_opts} -jar %%DATADIR%%/rundeck-launcher.jar ${rundeck_args} > ${rundeck_log_file} 2>&1"
62
required_files="${java_cmd}"
63
64
start_precmd="rundeck_prestart"
65
start_cmd="rundeck_start"
66
67
rundeck_prestart() {
68
	if [ ! -f "${rundeck_log_file}" ]; then
69
		touch "${rundeck_log_file}"
70
		chown "${rundeck_user}:${rundeck_group}" "${rundeck_log_file}"
71
		chmod 640 "${rundeck_log_file}"
72
	fi
73
	if [ ! -d "/var/run/rundeck" ]; then
74
		install -d -o "${rundeck_user}" -g "${rundeck_group}" -m 750 "/var/run/rundeck"
75
	fi
76
}
77
78
rundeck_start()
79
{
80
	check_startmsgs && echo "Starting ${name}."
81
	su -l ${rundeck_user} -c "exec ${command} ${command_args} ${rc_arg}"
82
}
83
84
run_rc_command "$1"
(-)sysutils/rundeck/pkg-descr (-6 lines)
Lines 1-6 Link Here
1
Welcome to Rundeck, the human interface to your operations. Rundeck
2
features fine-grain access controls, a built-in job scheduler, and the
3
ability to define workflows that dispatch commands and scripts to your
4
nodes.
5
6
WWW: http://rundeck.org
(-)sysutils/rundeck/pkg-plist (-3 lines)
Lines 1-3 Link Here
1
%%DATADIR%%/rundeck-launcher.jar
2
@dir(%%RUNDECK_USER%%,%%RUNDECK_GROUP%%,755) rundeck/server/lib
3
@dir(%%RUNDECK_USER%%,%%RUNDECK_GROUP%%,755) rundeck/server
(-)sysutils/rundeck3/Makefile (+46 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	rundeck
4
DISTVERSION=	3.2.6
5
DISTVERSIONSUFFIX=	20200427
6
CATEGORIES=	sysutils java
7
MASTER_SITES=	http://dl.bintray.com/rundeck/rundeck-maven/
8
DISTNAME=	${PORTNAME}-${DISTVERSION}-${DISTVERSIONSUFFIX}
9
EXTRACT_SUFX=	.war
10
11
MAINTAINER=	arcade@b1t.name
12
COMMENT=	Web-console for dispatching commands and scripts to your nodes
13
14
LICENSE=	APACHE20
15
16
USE_JAVA=	yes
17
JAVA_VERSION=	1.8+
18
19
NO_ARCH=	yes
20
NO_BUILD=	yes
21
22
PLIST_SUB=	RUNDECK_USER=${RUNDECK_USER} RUNDECK_GROUP=${RUNDECK_GROUP}
23
USE_RC_SUBR=	rundeck
24
25
RUNDECK_HOME=	${PREFIX}/rundeck
26
RUNDECK_USER?=	rundeck
27
RUNDECK_GROUP?=	rundeck
28
RUNDECK_LOG_FILE?=	/var/log/rundeck.log
29
30
.if ${RUNDECK_USER} == "rundeck"
31
USERS=	rundeck
32
.endif
33
.if ${RUNDECK_GROUP} == "rundeck"
34
GROUPS=	rundeck
35
.endif
36
37
SUB_LIST+=	RUNDECK_HOME=${RUNDECK_HOME} RUNDECK_USER=${RUNDECK_USER} \
38
		RUNDECK_GROUP=${RUNDECK_GROUP} JAVA_HOME=${JAVA_HOME} \
39
		RUNDECK_LOG_FILE=${RUNDECK_LOG_FILE}
40
41
do-install:
42
	@${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${RUNDECK_HOME}/server/lib
43
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
44
		${STAGEDIR}${DATADIR}/rundeck${EXTRACT_SUFX}
45
46
.include <bsd.port.mk>
(-)sysutils/rundeck3/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1588154995
2
SHA256 (rundeck-3.2.6-20200427.war) = a866c32d866d7b28470e439eeb8c490625d2b116dcc0451a17e198891573cafb
3
SIZE (rundeck-3.2.6-20200427.war) = 165490944
(-)sysutils/rundeck3/files/rundeck.in (+84 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# PROVIDE: rundeck
4
# REQUIRE: LOGIN
5
# KEYWORD: shutdown
6
7
#
8
# Configuration settings for rundeck in /etc/rc.conf:
9
#
10
# rundeck_enable (bool):
11
#   Set to "NO" by default.
12
#   Set it to "YES" to enable rundeck
13
#
14
# rundeck_args (str):
15
#   Extra arguments passed to start command
16
#
17
# rundeck_home (str)
18
#   Set to "%%RUNDECK_HOME%%" by default.
19
#   Set the RUNDECK_HOME variable for rundeck process
20
#
21
# rundeck_java_home (str):
22
#   Set to "%%JAVA_HOME%%" by default.
23
#   Set the Java virtual machine to run rundeck
24
#
25
# rundeck_java_opts (str):
26
#   Set to "" by default.
27
#   Java VM args to use.
28
#
29
# rundeck_user (str):
30
#   Set to "%%RUNDECK_USER%%" by default.
31
#   User to run rundeck as.
32
#
33
# rundeck_group (str):
34
#   Set to "%%RUNDECK_GROUP%%" by default.
35
#   Group for data file ownership.
36
#
37
# rundeck_log_file (str):
38
#   Set to "%%RUNDECK_LOG_FILE%%" by default.
39
#   Log file location.
40
#
41
42
. /etc/rc.subr
43
44
name="rundeck"
45
rcvar=rundeck_enable
46
47
load_rc_config "${name}"
48
49
: ${rundeck_args="-b %%RUNDECK_HOME%%"}
50
: ${rundeck_enable="NO"}
51
: ${rundeck_home="%%RUNDECK_HOME%%"}
52
: ${rundeck_java_home="%%JAVA_HOME%%"}
53
: ${rundeck_user="%%RUNDECK_USER%%"}
54
: ${rundeck_group="%%RUNDECK_GROUP%%"}
55
: ${rundeck_log_file="%%RUNDECK_LOG_FILE%%"}
56
57
pidfile="/var/run/rundeck/rundeck.pid"
58
command="/usr/sbin/daemon"
59
java_cmd="${rundeck_java_home}/bin/java"
60
procname="${java_cmd}"
61
command_args="-p ${pidfile} ${java_cmd} ${rundeck_java_opts} -jar %%DATADIR%%/rundeck.war ${rundeck_args} > ${rundeck_log_file} 2>&1"
62
required_files="${java_cmd}"
63
64
start_precmd="rundeck_prestart"
65
start_cmd="rundeck_start"
66
67
rundeck_prestart() {
68
	if [ ! -f "${rundeck_log_file}" ]; then
69
		touch "${rundeck_log_file}"
70
		chown "${rundeck_user}:${rundeck_group}" "${rundeck_log_file}"
71
		chmod 640 "${rundeck_log_file}"
72
	fi
73
	if [ ! -d "/var/run/rundeck" ]; then
74
		install -d -o "${rundeck_user}" -g "${rundeck_group}" -m 750 "/var/run/rundeck"
75
	fi
76
}
77
78
rundeck_start()
79
{
80
	check_startmsgs && echo "Starting ${name}."
81
	su -l ${rundeck_user} -c "exec ${command} ${command_args} ${rc_arg}"
82
}
83
84
run_rc_command "$1"
(-)sysutils/rundeck3/pkg-descr (+6 lines)
Line 0 Link Here
1
Welcome to Rundeck, the human interface to your operations. Rundeck
2
features fine-grain access controls, a built-in job scheduler, and the
3
ability to define workflows that dispatch commands and scripts to your
4
nodes.
5
6
WWW: http://rundeck.org
(-)sysutils/rundeck3/pkg-plist (+3 lines)
Line 0 Link Here
1
etc/rc.d/%%RUNDECK_USER%%
2
%%DATADIR%%/%%RUNDECK_USER%%.war
3
@dir %%RUNDECK_USER%%/server/lib

Return to bug 246023