aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/crmsh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/crmsh/Makefile')
-rw-r--r--net-mgmt/crmsh/Makefile82
1 files changed, 46 insertions, 36 deletions
diff --git a/net-mgmt/crmsh/Makefile b/net-mgmt/crmsh/Makefile
index 1da94eb9e7a0..d228d719ce3b 100644
--- a/net-mgmt/crmsh/Makefile
+++ b/net-mgmt/crmsh/Makefile
@@ -1,52 +1,62 @@
-# Created by: dpejesh@yahoo.com
+# Created by: David Shane Holden <dpejesh@yahoo.com>
# $FreeBSD$
-PORTNAME= crmsh
-PORTVERSION= 3.0.0
-PORTREVISION= 1
-CATEGORIES= net-mgmt python
+PORTNAME= crmsh
+PORTVERSION= 3.0.1
+CATEGORIES= net-mgmt python
-MAINTAINER= dpejesh@yahoo.com
-COMMENT= Command-line interface for High-Availability cluster management
+MAINTAINER= dpejesh@yahoo.com
+COMMENT= Command-line interface for High-Availability cluster management
-LICENSE= GPLv2
-LICENSE_FILE= ${WRKSRC}/COPYING
+LICENSE= GPLv2
+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/py-setuptools@${FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${FLAVOR}
-
-USE_GITHUB= yes
-GH_ACCOUNT= ClusterLabs
-
-USES= autoreconf gmake python:2.7 shebangfix
-USE_PYTHON= flavors
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-ocf-root=${PREFIX}/lib/ocf
-NO_ARCH= yes
-
-SHEBANG_FILES= bin/crm \
- scripts/*/*.py \
- test/cib-tests.sh \
- test/evaltest.sh \
- test/list-undocumented-commands.py \
- utils/crm_clean.py \
- utils/crm_pkg.py \
- utils/crm_rpmcheck.py
-
-OPTIONS_DEFINE= DOCS MANPAGES
-OPTIONS_DEFAULT=MANPAGES
-OPTIONS_SUB= yes
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}parallax>0:devel/py-parallax@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
+
+USES= autoreconf gmake python:2.7 shebangfix
+USE_GITHUB= yes
+GH_ACCOUNT= ClusterLabs
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-ocf-root=${PREFIX}/lib/ocf
+USE_GITHUB= yes
+GH_ACCOUNT= ClusterLabs
+
+NO_ARCH= yes
+
+SHEBANG_FILES= bin/crm \
+ scripts/*/*.py \
+ test/cib-tests.sh \
+ test/evaltest.sh \
+ test/list-undocumented-commands.py \
+ utils/crm_clean.py \
+ utils/crm_pkg.py \
+ utils/crm_rpmcheck.py
+
+OPTIONS_DEFINE= DOCS MANPAGES
+OPTIONS_DEFAULT= MANPAGES
+OPTIONS_SUB= yes
DOCS_BUILD_DEPENDS= asciidoc:textproc/asciidoc
MANPAGES_BUILD_DEPENDS= ${DOCS_BUILD_DEPENDS}
post-patch:
- ${REINPLACE_CMD} 's,%%DATADIR%%,${DATADIR},' ${WRKSRC}/setup.py
+ @${REINPLACE_CMD} 's,%%DATADIR%%,${DATADIR},g' ${WRKSRC}/setup.py
+ @${REINPLACE_CMD} 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/crmsh/corosync.py
+ @${REINPLACE_CMD} 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/crmsh/utils.py
+ @${REINPLACE_CMD} 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/hb_report/hb_report.in
+ @${REINPLACE_CMD} 's,%%PYTHON_CMD%%,${PYTHON_CMD},g' ${WRKSRC}/hb_report/hb_report.in
+ @${REINPLACE_CMD} 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/hb_report/openais_conf_support.sh
+ @${REINPLACE_CMD} 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/hb_report/utillib.sh
+ @${REINPLACE_CMD} 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/scripts/health/collect.py
+ @${REINPLACE_CMD} 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/utils/crm_init.py
post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/crm/crm.conf \