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

(-)devel/buildbot/Makefile (+4 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	buildbot
4
PORTNAME=	buildbot
5
PORTVERSION=	0.9.5
5
PORTVERSION=	0.9.5
6
PORTREVISION=	1
6
CATEGORIES=	devel python
7
CATEGORIES=	devel python
7
MASTER_SITES=	CHEESESHOP
8
MASTER_SITES=	CHEESESHOP
8
9
Lines 29-37 Link Here
29
		${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3 \
30
		${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3 \
30
		${PYTHON_PKGNAMEPREFIX}txrequests>0:www/py-txrequests
31
		${PYTHON_PKGNAMEPREFIX}txrequests>0:www/py-txrequests
31
32
33
USE_RC_SUBR=	buildbot
32
USES=		python:-2.7
34
USES=		python:-2.7
33
USE_PYTHON=	autoplist distutils
35
USE_PYTHON=	autoplist distutils
34
36
37
SUB_LIST+=	PYTHON_CMD=${PYTHON_CMD}
38
35
NO_ARCH=	yes
39
NO_ARCH=	yes
36
40
37
post-patch:
41
post-patch:
(-)devel/buildbot/files/buildbot.in (+57 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD$
4
# PROVIDE: buildbot
5
# REQUIRE: DAEMON
6
# KEYWORD: shutdown
7
8
#
9
# Add the following lines to /etc/rc.conf to enable buildbot:
10
# buildbot_enable (bool):	Set to "NO" by default
11
# buildbot_basedir (path):	Must be set to the path of the buildbot directory
12
#				file, e.g. /var/www/buildbot
13
# buildbot_user (str):		Set to "root" by default.  Change it to run
14
#				buildbot as a different user.
15
16
. /etc/rc.subr
17
18
export PATH=${PATH}:%%PREFIX%%/bin
19
20
name="buildbot"
21
rcvar=buildbot_enable
22
command="%%PREFIX%%/bin/buildbot"
23
load_rc_config $name
24
25
check_cmd="${name}_check"
26
extra_commands="check reload"
27
reload_cmd="${name}_reload"
28
start_precmd="${name}_prestart"
29
stop_precmd="${name}_prestop"
30
31
pidfile="${buildbot_basedir}/twistd.pid"
32
procname="%%PYTHON_CMD%%"
33
34
buildbot_check()
35
{
36
	echo "Checking BuildBot config"
37
	rc_flags="${buildbot_basedir} ${rc_flags}"
38
	${command} checkconfig ${rc_flags}
39
}
40
41
buildbot_prestart()
42
{
43
	rc_flags="start ${buildbot_basedir} ${rc_flags}"
44
}
45
46
buildbot_prestop()
47
{
48
	rc_flags="stop ${buildbot_basedir} ${rc_flags}"
49
}
50
51
buildbot_reload()
52
{
53
	rc_flags="${buildbot_basedir} ${rc_flags}"
54
	${command} sighup ${rc_flags}
55
}
56
57
run_rc_command "$1"

Return to bug 219787