freebsd-ports/databases/puppetdb4/Makefile
Romain Tartière da15e01f3a New ports for PuppetDB 3.x
- databases/puppetdb3 [1]
  - databases/puppetdb-terminus3 [2]

Also add conflicts with the puppetdb 2.x and 4.x ports.

PR:		204074 [1], 206594 [2]
Submitted by:	freebsd@zleslie.info [1, 2]
2016-06-09 11:06:28 +00:00

52 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= puppetdb
PORTVERSION= 4.0.0
PORTREVISION= 1
CATEGORIES= databases java
MASTER_SITES= http://downloads.puppetlabs.com/puppetdb/
PKGNAMESUFFIX= 4
MAINTAINER= tj@FreeBSD.org
COMMENT= PuppetDB storeconfigs backend
LICENSE= APACHE20
RUN_DEPENDS= bash:shells/bash \
puppet:sysutils/puppet4
USE_RC_SUBR= puppetdb
CONFLICTS_INSTALL= puppetdb-* puppetdb3-*
USES= shebangfix
SHEBANG_FILES= ext/bin/puppetdb \
ext/cli/anonymize \
ext/cli/config-migration \
ext/cli/export \
ext/cli/foreground \
ext/cli/import \
ext/cli/ssl-setup
USE_JAVA= yes
NO_ARCH= yes
NO_BUILD= yes
JAVA_VERSION= 1.7+
USERS= puppetdb
GROUPS= puppetdb
SUB_LIST= JAVA_HOME=${JAVA_HOME}
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
post-patch:
.for file in Makefile ext/bin/puppetdb ext/cli/ssl-setup \
ext/config/conf.d/jetty.ini ext/config/conf.d/config.ini
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/${file}
.endfor
@${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" ${WRKSRC}/ext/bin/puppetdb
do-install:
@cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} make install-puppetdb
.include <bsd.port.mk>