1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/graphics/geoserver/Makefile
Alexander Logvinov f4211b573a - Update to 2.0.1
2010-02-03 03:14:48 +00:00

61 lines
1.6 KiB
Makefile

# New ports collection makefile for: geoserver
# Date created: 10 March 2008
# Whom: Wen heping<wenheping@gmail.com>
#
# $FreeBSD$
#
PORTNAME= geoserver
PORTVERSION= 2.0.1
CATEGORIES= graphics geography java
MASTER_SITES= SF/${PORTNAME}/GeoServer/${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
MAINTAINER= avl@FreeBSD.org
COMMENT= An Open Source GIS Server
USE_JAVA= yes
USE_ZIP= yes
JAVA_VERSION= 1.5+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
GEOSERVERDIR= ${PREFIX}/${PORTNAME}
GEODIRS= data_dir etc lib logs resources webapps
USE_RC_SUBR= ${PORTNAME}
PLIST_SUB= G="${GEOSERVERDIR:S,^${PREFIX}/,,}"
SUB_LIST= GEOSERVERDIR="${GEOSERVERDIR}" JAVA="${JAVA}"
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} -e 's|$$GEOSERVER_HOME|${GEOSERVERDIR}|g' \
-e 's|%%JAVA%%|${JAVA}|g' \
${WRKSRC}/bin/startup.sh ${WRKSRC}/bin/shutdown.sh
do-install:
@${MKDIR} ${GEOSERVERDIR}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/*.sh ${GEOSERVERDIR}/bin
.for f in GPL.txt LICENSE.txt README.txt RUNNING.txt start.jar
${INSTALL_DATA} ${WRKSRC}/${f} ${GEOSERVERDIR}
.endfor
.for dir in ${GEODIRS}
@(cd ${WRKSRC};${FIND} -E ${dir} -type f -iregex ".*(keystore|\.(xml|properties))") \
| while read a; do \
${MV} ${WRKSRC}/$$a ${WRKSRC}/$$a.sample; \
if [ ! -e "${GEOSERVERDIR}/$$a" ]; then \
${CP} ${WRKSRC}/$$a.sample ${WRKSRC}/$$a; \
fi; \
done
@cd ${WRKSRC} && \
${FIND} ${dir} -type d -exec \
${MKDIR} "${GEOSERVERDIR}/{}" \; && \
${FIND} ${dir} -type f -exec \
${INSTALL_DATA} "${WRKSRC}/{}" "${GEOSERVERDIR}/{}" \;
.endfor
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>