# Created by: Wen heping # $FreeBSD$ PORTNAME= geoserver PORTVERSION= 2.13.2 CATEGORIES= graphics geography java MASTER_SITES= SF/${PORTNAME}/GeoServer/${PORTVERSION} DISTNAME= ${PORTNAME}-${PORTVERSION}-bin MAINTAINER= bofh@FreeBSD.org COMMENT= Open Source GIS server LICENSE= GPLv2 USES= zip USE_JAVA= yes JAVA_VERSION= 1.6+ 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}/,,}" VER1=19.2 MVER=${PORTVERSION} \ VER2=1.13.2 VER3=1.0.24 VER4=1.10 VER5=1.1.24 SUB_LIST= GEOSERVERDIR="${GEOSERVERDIR}" JAVA="${JAVA}" SUB_FILES= pkg-message NO_ARCH= yes 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} ${STAGEDIR}${GEOSERVERDIR}/bin ${INSTALL_SCRIPT} ${WRKSRC}/bin/*.sh ${STAGEDIR}${GEOSERVERDIR}/bin (cd ${WRKSRC} && ${INSTALL_DATA} LICENSE.txt README.txt RUNNING.txt \ VERSION.txt start.jar ${STAGEDIR}${GEOSERVERDIR}) .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; \ done (cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${GEOSERVERDIR}) .endfor .include