# Created by: Wen heping # $FreeBSD$ PORTNAME= geoserver PORTVERSION= 2.8.1 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 USE_JAVA= yes USES= zip 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}/,,}" GTVER=2.7.2 MVER=${PORTVERSION} 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