forked from Lainports/freebsd-ports
XQuery processing, automatic indexing, extensions for full-text search, XUpdate support, XQuery update extensions and tight integration with existing XML development tools. The database implements the current XQuery 1.0 working drafts, with exception of the schema import and schema validation features defined as optional in the XQuery specification. WWW: http://exist-db.org/ PR: ports/115717 Submitted by: Anton Yudin (<contact at toha.org.ua>)
62 lines
1.8 KiB
Makefile
62 lines
1.8 KiB
Makefile
# Ports collection makefile for: eXist
|
|
# Date created: August 9, 2007
|
|
# Whom: Anton Yudin (<contact@toha.org.ua>)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= exist
|
|
PORTVERSION= 1.1.1
|
|
CATEGORIES= databases java
|
|
MASTER_SITES= SF
|
|
DISTNAME= eXist-${PORTVERSION}-newcore-build4311
|
|
EXTRACT_SUFX= .jar
|
|
EXTRACT_ONLY= #
|
|
|
|
MAINTAINER= contact@toha.org.ua
|
|
COMMENT= Open Source Native XML Database
|
|
|
|
USE_ZIP= yes
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.5+
|
|
USE_RC_SUBR= eXist
|
|
REINPLACE_ARGS= -i ''
|
|
NO_BUILD= yes
|
|
|
|
DATADIR= ${PREFIX}/eXist
|
|
EXIST_USER?= ${WWWOWN}
|
|
EXIST_GROUP?= ${WWWGRP}
|
|
|
|
SUB_LIST= JAVA="${JAVA}" \
|
|
EXIST_USER=${EXIST_USER} \
|
|
EXIST_GROUP=${EXIST_GROUP}
|
|
|
|
do-install:
|
|
@${JAVA} -Djava.awt.headless=true -jar ${DISTDIR}/${DISTFILES} \
|
|
-p ${DATADIR}
|
|
@${CHOWN} -R ${EXIST_USER}:${EXIST_GROUP} ${DATADIR}
|
|
|
|
post-install:
|
|
# Fix interpreter line.
|
|
@${FIND} ${DATADIR} -type f -name "*.sh" | ${XARGS} \
|
|
${REINPLACE_CMD} -e 's|#!/bin/bash|#!${SH}|'
|
|
|
|
# Generate pkg-plist (at maintainer's request, after installing).
|
|
# - Configuration files and logs are saved there, so instead of producing
|
|
# errors when removing directories, inform the user once at the end.
|
|
# - Do not generate when installing, since the configuration files would be
|
|
# added and removed in the next update.
|
|
maint-gen-plist: install
|
|
@if [ -f ${PLIST} ]; then \
|
|
${ECHO_CMD} "ERROR: the packaging list already exists."; \
|
|
${FALSE}; \
|
|
fi
|
|
@(cd ${DATADIR} && \
|
|
${FIND} * -not -type d | ${SED} -e 's|^|%%DATADIR%%/|' && \
|
|
${FIND} -d * -type d | ${SED} -e 's|^|@dirrmtry %%DATADIR%%/|' && \
|
|
${ECHO_CMD} '@unexec rmdir %D/%%DATADIR%% 2>/dev/null || \
|
|
${ECHO_CMD} "If you are permanently removing this port, remember to delete the configuration files and logs left in \"%D/%%DATADIR%%\"." | \
|
|
${FMT}') \
|
|
> ${PLIST}
|
|
|
|
.include <bsd.port.mk>
|