summaryrefslogblamecommitdiff
path: root/sysutils/py-bcfg2/Makefile
blob: ee15b284e2c95232835b9d79a1035a5521cf50eb (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                          
                       
                 
                        

                                                    





                                                                            
                                                    



                                                                        
                             
 


                                        

                    

                                                                   




                                                                       


                                                                                                                                     











                                                                           

                           
# New ports collection makefile for:	py-bcfg2
# Date created:		1 June 2007
# Whom:			Robert Gogolok <gogo@cs.uni-sb.de>
#
# $FreeBSD$
#

PORTNAME=	bcfg2
PORTVERSION=	0.9.5.5
PORTREVISION=	2
CATEGORIES=	sysutils
MASTER_SITES=	ftp://ftp.mcs.anl.gov/pub/bcfg/ \
		http://mirror.opensysadmin.com/bcfg/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	gogo@cs.uni-sb.de
COMMENT=	A configuration management system written in Python

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/${PYLXML_EGG}:${PORTSDIR}/devel/py-lxml
RUN_DEPENDS+=	cheetah:${PORTSDIR}/devel/py-cheetah
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/gamin.py:${PORTSDIR}/devel/py-gamin

USE_PYTHON=		yes
USE_PYDISTUTILS=	yes
PYDISTUTILS_PKGNAME=	Bcfg2

USE_RC_SUBR=	bcfg2
SUB_LIST+=	PYTHON_CMD=${PYTHON_CMD}

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-remote.8 bcfg2-query.8

PORTDOCS=	AUTHORS COPYRIGHT ChangeLog 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 bcfg2-query bcfg2-remote
	@${REINPLACE_CMD} -i '' -e 's|/etc/bcfg2.conf|${PREFIX}/etc/bcfg2.conf|g' ${WRKSRC}/src/sbin/$f
.endfor

.if !defined(NOPORTDOCS)
post-install:
	${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.pre.mk>

PYLXML_EGG!=	${MAKE} -f ${PORTSDIR}/devel/py-lxml/Makefile -V PYLXML_EGG

.include <bsd.port.post.mk>