Changeset View
Changeset View
Standalone View
Standalone View
head/net-mgmt/crmsh/Makefile
# Created by: dpejesh@yahoo.com | # Created by: dpejesh@yahoo.com | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= crmsh | PORTNAME= crmsh | ||||
PORTVERSION= 2.2.0 | PORTVERSION= 3.0.0 | ||||
PORTREVISION= 3 | |||||
CATEGORIES= net-mgmt python | CATEGORIES= net-mgmt python | ||||
MAINTAINER= dpejesh@yahoo.com | MAINTAINER= dpejesh@yahoo.com | ||||
COMMENT= Command-line interface for High-Availability cluster management | COMMENT= Command-line interface for High-Availability cluster management | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
# Set the build/run depends on setuptools instead of adding distutils to USE_PYTHON | |||||
# because the crmsh build uses autotools which then calls setup.py. | |||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/${PYTHON_PKGNAMEPREFIX}setuptools | |||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml \ | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml \ | ||||
${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/${PYTHON_PKGNAMEPREFIX}setuptools \ | |||||
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml | ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= ClusterLabs | GH_ACCOUNT= ClusterLabs | ||||
USES= autoreconf gmake python:2 shebangfix | USES= autoreconf gmake python:2 shebangfix | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS= --with-ocf-root=${PREFIX}/etc/ocf | CONFIGURE_ARGS= --with-ocf-root=${PREFIX}/lib/ocf | ||||
NO_ARCH= yes | NO_ARCH= yes | ||||
SHEBANG_FILES= crm \ | SHEBANG_FILES= bin/crm \ | ||||
scripts/*/*.py \ | scripts/*/*.py \ | ||||
test/cib-tests.sh \ | test/cib-tests.sh \ | ||||
test/evaltest.sh \ | |||||
test/list-undocumented-commands.py \ | test/list-undocumented-commands.py \ | ||||
utils/crm_clean.py \ | utils/crm_clean.py \ | ||||
utils/crm_pkg.py \ | utils/crm_pkg.py \ | ||||
utils/crm_rpmcheck.py | utils/crm_rpmcheck.py | ||||
OPTIONS_DEFINE= DOCS MANPAGES | OPTIONS_DEFINE= DOCS MANPAGES | ||||
OPTIONS_DEFAULT=MANPAGES | OPTIONS_DEFAULT=MANPAGES | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
DOCS_BUILD_DEPENDS= asciidoc:textproc/asciidoc | DOCS_BUILD_DEPENDS= asciidoc:textproc/asciidoc | ||||
MANPAGES_BUILD_DEPENDS= ${DOCS_BUILD_DEPENDS} | MANPAGES_BUILD_DEPENDS= ${DOCS_BUILD_DEPENDS} | ||||
post-patch: | |||||
${REINPLACE_CMD} 's,%%DATADIR%%,${DATADIR},' ${WRKSRC}/setup.py | |||||
post-install: | post-install: | ||||
${MV} ${STAGEDIR}${PREFIX}/etc/crm/crm.conf \ | ${MV} ${STAGEDIR}${PREFIX}/etc/crm/crm.conf \ | ||||
${STAGEDIR}${PREFIX}/etc/crm/crm.conf.sample | ${STAGEDIR}${PREFIX}/etc/crm/crm.conf.sample | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |