# New ports collection makefile for: py-bcfg2 # Date created: 1 June 2007 # Whom: Robert Gogolok # # $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+= CHEETAH "support Cheetah Templates" off \ GENSHI "support Genshi Templates" off .include USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_PKGNAME= Bcfg2 USE_RC_SUBR= bcfg2 PYDISTUTILS_PKGNAME= Bcfg2 SUB_LIST+= PYTHON_CMD=${PYTHON_CMD} .if defined(WITH_CHEETAH) RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cheetah>0:${PORTSDIR}/devel/py-cheetah .endif .if defined(WITH_GENSHI) 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 !defined(NOPORTDOCS) post-install: ${MKDIR} ${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} .endfor .endif .include