forked from Lainports/freebsd-ports
Puppet 4 was part of Puppet Enterprise 2016.4.15 (LTS) [1], which has reached EOL in december 2018 [2]. Users of this version of the Puppet ecosystem are encouraged to update to Puppet 5 (sysutils/puppet5) or Puppet 6 (sysutils/puppet6). References: 1. https://puppet.com/docs/pe/2019.0/component_versions_in_recent_pe_releases.html 2. https://puppet.com/misc/puppet-enterprise-lifecycle With hat: puppet
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= puppetdb
|
|
PORTVERSION= 4.4.0
|
|
CATEGORIES= databases java
|
|
MASTER_SITES= http://downloads.puppetlabs.com/puppetdb/
|
|
PKGNAMESUFFIX= 4
|
|
|
|
MAINTAINER= puppet@FreeBSD.org
|
|
COMMENT= PuppetDB storeconfigs backend
|
|
|
|
LICENSE= APACHE20
|
|
|
|
DEPRECATED= Puppet 4 has reached EOL
|
|
EXPIRATION_DATE=2019-02-28
|
|
|
|
RUN_DEPENDS= bash:shells/bash \
|
|
puppet:sysutils/puppet4
|
|
|
|
USE_RC_SUBR= puppetdb
|
|
|
|
CONFLICTS_INSTALL= puppetdb5-* puppetdb6-*
|
|
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 \
|
|
ext/cli/start \
|
|
ext/cli/stop \
|
|
ext/cli/reload \
|
|
ext/ezbake-functions.sh
|
|
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
|
|
|
|
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>
|