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

(-)py-bcfg2.old/Makefile (-9 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	bcfg2
8
PORTNAME=	bcfg2
9
PORTVERSION=	0.9.4
9
PORTVERSION=	0.9.4
10
PORTREVISION=	1
11
CATEGORIES=	sysutils
10
CATEGORIES=	sysutils
12
MASTER_SITES=	ftp://ftp.mcs.anl.gov/pub/bcfg/ \
11
MASTER_SITES=	ftp://ftp.mcs.anl.gov/pub/bcfg/ \
13
		http://mirror.opensysadmin.com/bcfg/
12
		http://mirror.opensysadmin.com/bcfg/
Lines 23-32 Link Here
23
USE_PYTHON=		yes
22
USE_PYTHON=		yes
24
USE_PYDISTUTILS=	yes
23
USE_PYDISTUTILS=	yes
25
24
26
USE_RC_SUBR=	bcfg2
27
SUB_LIST+=      PYTHON_CMD=${PYTHON_CMD}
28
29
30
MAN1=	bcfg2.1
25
MAN1=	bcfg2.1
31
MAN5=	bcfg2.conf.5
26
MAN5=	bcfg2.conf.5
32
MAN8=	bcfg2-admin.8 bcfg2-build-reports.8 bcfg2-repo-validate.8 bcfg2-server.8 bcfg2-info.8
27
MAN8=	bcfg2-admin.8 bcfg2-build-reports.8 bcfg2-repo-validate.8 bcfg2-server.8 bcfg2-info.8
Lines 35-44 Link Here
35
30
36
post-patch:
31
post-patch:
37
	    @${REINPLACE_CMD} -e 's|share/man|man|g' ${WRKSRC}/setup.py
32
	    @${REINPLACE_CMD} -e 's|share/man|man|g' ${WRKSRC}/setup.py
38
.for f in bcfg2 bcfg2-admin bcfg2-build-reports bcfg2-info bcfg2-repo-validate bcfg2-server bcfg2-ping-sweep bcfg2-query 
39
	@${REINPLACE_CMD} -e 's|/etc/bcfg2.conf|${PREFIX}/etc/bcfg2.conf|g' ${WRKSRC}/src/sbin/$f
40
.endfor
41
	@${RM} ${WRKSRC}/src/sbin/*.bak
42
33
43
.if !defined(NOPORTDOCS)
34
.if !defined(NOPORTDOCS)
44
post-install:
35
post-install:
(-)py-bcfg2.old/files/bcfg2.in (-30 lines)
Lines 1-30 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# PROVIDE: bcfg2
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
8
#
9
# Add the following lines to /etc/rc.conf to enable bcfg2-server:
10
# bcfg2_enable (bool):	Set it to "YES" to enable bcfg2.
11
#			Default is "NO".
12
# bcfg2_flags (str):	Flags passed to bcfg2 on startup.
13
#			Default is "".
14
15
. %%RC_SUBR%%
16
17
name="bcfg2"
18
rcvar=${name}_enable
19
20
load_rc_config $name
21
22
: ${bcfg2_enable="NO"}
23
: ${bcfg2_pidfile="/var/run/$name.pid"}
24
: ${bcfg2_flags="-D ${bcfg2_pidfile}"}
25
26
pidfile=${bcfg2_pidfile}
27
command=%%PREFIX%%/bin/${name}-server
28
command_interpreter=%%PYTHON_CMD%%
29
30
run_rc_command "$1"

Return to bug 115342