mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
# Created by: Wen heping<wenheping@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= geoserver
|
|
PORTVERSION= 2.11.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
|
|
|
|
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 <bsd.port.mk>
|