blob: f0ee7a459fc8baba895ef5375f667e0cfc1eebc5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Created by: Robert Gogolok <gogo@cs.uni-sb.de>
# $FreeBSD$
PORTNAME= bcfg2
PORTVERSION= 1.1.1
PORTREVISION= 0
CATEGORIES= sysutils python
MASTER_SITES= ftp://ftp.mcs.anl.gov/pub/bcfg/ \
http://mirror.opensysadmin.com/bcfg/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= dhutty@allgoodbits.org
COMMENT= A configuration management system written in Python
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gamin.py:${PORTSDIR}/devel/py-gamin
# bypass infrastructure bug
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE= CHEETAH GENSHI
CHEETAH_DESC= Support Cheetah Templates
GENSHI_DESC= Support Genshi Templates
.include <bsd.port.options.mk>
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= Bcfg2
USE_RC_SUBR= bcfg2
PYDISTUTILS_PKGNAME= Bcfg2
SUB_LIST+= PYTHON_CMD=${PYTHON_CMD}
.if ${PORT_OPTIONS:MCHEETAH}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cheetah>0:${PORTSDIR}/devel/py-cheetah
.endif
.if ${PORT_OPTIONS:MGENSHI}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}Genshi>0:${PORTSDIR}/textproc/py-genshi
.endif
MAN1= bcfg2.1
MAN5= bcfg2.conf.5
MAN8= bcfg2-admin.8 bcfg2-build-reports.8 bcfg2-repo-validate.8 \
bcfg2-server.8 bcfg2-info.8 bcfg2-reports.8
PORTDOCS= AUTHORS COPYRIGHT README
post-patch:
@${REINPLACE_CMD} -e 's|share/man|man|g' ${WRKSRC}/setup.py
.for f in bcfg2 bcfg2-admin bcfg2-build-reports bcfg2-info bcfg2-repo-validate bcfg2-server bcfg2-ping-sweep
@${REINPLACE_CMD} -i '' -e 's|/etc/bcfg2.conf|${PREFIX}/etc/bcfg2.conf|g' ${WRKSRC}/src/sbin/$f
.endfor
.for f in 'Options.py' 'Server/Core.py'
@${REINPLACE_CMD} -i '' -e 's|/etc/bcfg2.conf|${PREFIX}/etc/bcfg2.conf|g' ${WRKSRC}/src/lib/$f
.endfor
.for f in 'Options.py'
@${REINPLACE_CMD} -i '' -e 's|DEFAULT_INSTALL_PREFIX = ./usr.|DEFAULT_INSTALL_PREFIX = "${PREFIX}"|' ${WRKSRC}/src/lib/$f
@${REINPLACE_CMD} -i '' -e 's|/var/lock|/var/run|' ${WRKSRC}/src/lib/$f
.endfor
.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|