mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
bf72e81a1f
. Modernise the port. PR: 157634 Approved by: Richard Stockley <rws@procopia.com> (MAINTAINER)
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
# Ports collection makefile for: dbXML
|
|
# Date created: 2001/18/10
|
|
# Whom: Richard Stockley <rws@procopia.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dbXML
|
|
PORTVERSION= 2.0
|
|
CATEGORIES= databases java
|
|
MASTER_SITES= SF/${PORTNAME:L}-core/${PORTNAME}/${PORTNAME}%20${PORTVERSION}/
|
|
DISTNAME= dbXML-${PORTVERSION}
|
|
|
|
MAINTAINER= rws@procopia.com
|
|
COMMENT= Java Native XML Database
|
|
|
|
USE_JAVA= 1.5+
|
|
DBXML_HOME= ${JAVASHAREDIR}/${PORTNAME}
|
|
PLIST_SUB+= T=${DBXML_HOME:S/^${PREFIX}\///}
|
|
|
|
NO_BUILD= yes
|
|
|
|
SUB_FILES+= pkg-message \
|
|
dbxmlctl
|
|
SUB_LIST+= DBXML_HOME=${DBXML_HOME} \
|
|
USER=${USERS} \
|
|
PORTNAME=${PORTNAME:L}
|
|
USE_RC_SUBR= ${PORTNAME:L}
|
|
|
|
USERS= ${PORTNAME:L}
|
|
GROUPS= ${PORTNAME:L}
|
|
SHAREMODE= 0644
|
|
|
|
post-patch:
|
|
.for f in bin/dbxml bin/dbxml-gui install/create-db startup
|
|
@${REINPLACE_CMD} -e "s:%%DBXML_HOME%%:${DBXML_HOME}:" \
|
|
-e "s:%%LOCALBASE%%:${LOCALBASE}:" "${WRKSRC}/${f}"
|
|
.endfor
|
|
|
|
do-install:
|
|
@${MKDIR} ${DBXML_HOME}
|
|
.for d in cocoa config db docs install java jsp logs schemas stylesheets
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DBXML_HOME})
|
|
.endfor
|
|
@${INSTALL_DATA} ${WRKSRC}/LICENSE ${DBXML_HOME}
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DBXML_HOME}
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/startup ${DBXML_HOME}
|
|
@${CHOWN} -R ${USERS}:${GROUPS} ${DBXML_HOME}
|
|
.for f in dbxml dbxml-gui
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${PREFIX}/bin/
|
|
.endfor
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/dbxmlctl ${PREFIX}/bin/
|
|
.for f in install/create-db startup
|
|
@${CHMOD} 0755 ${DBXML_HOME}/${f}
|
|
.endfor
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|