https://github.com/ansible/ansible/blob/stable-2.4/CHANGELOG.md#243-dancing-days---2018-01-31 ok gonzalo@ jasper@ (maintainer)
75 lines
2.2 KiB
Makefile
75 lines
2.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.84 2018/02/04 08:13:36 landry Exp $
|
|
|
|
COMMENT-main = ssh based config management framework
|
|
COMMENT-html = offline Ansible documentation in HTML format
|
|
|
|
MODPY_EGG_VERSION = 2.4.3.0
|
|
DISTNAME = ansible-${MODPY_EGG_VERSION}
|
|
PKGNAME-main = ${PKGNAME}
|
|
PKGNAME-html = ansible-html-${MODPY_EGG_VERSION}
|
|
|
|
CATEGORIES = sysutils
|
|
|
|
HOMEPAGE = https://www.ansible.com/
|
|
|
|
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
|
|
|
MULTI_PACKAGES = -main -html
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MASTER_SITES = https://releases.ansible.com/ansible/
|
|
|
|
MODULES = lang/python
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
BUILD_DEPENDS = archivers/gtar \
|
|
textproc/py-sphinx
|
|
RUN_DEPENDS = security/py-crypto \
|
|
security/py-keyczar \
|
|
security/py-paramiko \
|
|
security/py-passlib \
|
|
textproc/py-yaml \
|
|
www/py-jinja2
|
|
RUN_DEPENDS-html = ${BUILD_PKGPATH},-main
|
|
|
|
PKG_ARCH-html = *
|
|
|
|
NO_TEST = Yes
|
|
|
|
DOCDIR = ${PREFIX}/share/doc/ansible
|
|
EXDIR = ${PREFIX}/share/examples/ansible
|
|
PLUGINDIR = ${PREFIX}/share/ansible_plugins
|
|
|
|
# tar: A hard link to the directory ansible-2.4.2.0/test/integration/targets/copy/files/subdir/subdir1/circles/subdir1/circles/subdir1/circles/subdir1/circles/[..]subdi is not allowed
|
|
TAR = ${LOCALBASE}/bin/gtar
|
|
|
|
pre-configure:
|
|
sed -i -e "s,/usr/share,${TRUEPREFIX}/share,g;" \
|
|
-e "s,/usr/share/ansible_plugins,${PLUGINDIR},g" \
|
|
${WRKSRC}/lib/ansible/constants.py \
|
|
${WRKSRC}/examples/ansible.cfg \
|
|
${WRKSRC}/docs/man/man1/*.1
|
|
|
|
# "_build" to be revisited in case SEPARATE_BUILD is changed
|
|
post-build:
|
|
cd ${WRKSRC}/docs/docsite; \
|
|
${LOCALBASE}/bin/sphinx-build -M html rst _build -j ${MAKE_JOBS}
|
|
# Ansible misses this file in distribution?
|
|
ln ${WRKSRC}/docs/docsite/_build/html/_static/css/theme.css \
|
|
${WRKSRC}/docs/docsite/_build/html/_static/css/theme.min.css
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EXDIR} ${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXDIR}
|
|
${SUBST_CMD} ${EXDIR}/hosts
|
|
${INSTALL_DATA} ${WRKSRC}/docs/man/man1/*.1 ${PREFIX}/man/man1
|
|
cp -R ${WRKBUILD}/docs/docsite/_build/html ${DOCDIR}
|
|
rm -f ${DOCDIR}/html/.buildinfo
|
|
${INSTALL_DATA} ${WRKSRC}/{COPYING,README.md} ${DOCDIR}/
|
|
find ${PREFIX} \( -name '*.orig' -o -name '.git*' \
|
|
-o -name '*.beforesubst' \) -type f -exec rm {} +
|
|
|
|
.include <bsd.port.mk>
|