freebsd-ports/databases/puppetdb/Makefile
Johannes Jost Meixner d181cdd827 databases/puppetdb{,-terminus}: update to 2.2.2
- Update puppetdb to 2.2.2
- Update puppetdb-terminus to 2.2.2
- Hardcode puppetdb_log_file, as it can be overwritten
  in rc.conf if necessary.

PR:		198619
Submitted by:	Michael Moll <kvedulv@kvedulv.de>
Approved by:	mentors (implicit)
2015-03-30 15:48:33 +00:00

53 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= puppetdb
PORTVERSION= 2.2.2
CATEGORIES= databases java
MASTER_SITES= http://downloads.puppetlabs.com/puppetdb/
MAINTAINER= xaque208@gmail.com
COMMENT= PuppetDB storeconfigs backend
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \
puppet>=0:${PORTSDIR}/sysutils/puppet
BUILD_DEPENDS= rubygem-facter>=0:${PORTSDIR}/sysutils/rubygem-facter \
rubygem-rake>=0:${PORTSDIR}/devel/rubygem-rake
USE_RC_SUBR= puppetdb
USES= shebangfix
SHEBANG_FILES= ext/files/puppetdb \
ext/files/puppetdb-anonymize \
ext/files/puppetdb-export \
ext/files/puppetdb-foreground \
ext/files/puppetdb-import \
ext/files/puppetdb-legacy \
ext/files/puppetdb-ssl-setup
USE_JAVA= yes
USE_RUBY= yes
USE_RAKE= 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
.include <bsd.port.pre.mk>
post-patch:
.for file in tasks/install.rake ext/files/config.ini ext/files/puppetdb \
ext/files/puppetdb-import ext/files/puppetdb-anonymize \
ext/files/database.ini ext/files/puppetdb-ssl-setup \
ext/files/puppetdb-export ext/files/puppetdb-foreground Rakefile
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/${file}
.endfor
do-install:
@cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} rake install
.include <bsd.port.post.mk>