mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
54 lines
1.7 KiB
Makefile
54 lines
1.7 KiB
Makefile
# Created by: Wen heping<wenheping@gmail.com>
|
|
|
|
PORTNAME= geoserver
|
|
PORTVERSION= 2.19.0
|
|
CATEGORIES= graphics geography java
|
|
MASTER_SITES= SF/${PORTNAME}/GeoServer/${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= Open Source GIS server
|
|
|
|
LICENSE= APACHE20 BSD2CLAUSE EPL GPLv2 GPLv3 MIT
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE= ${WRKSRC}/NOTICE.md
|
|
|
|
USES= zip
|
|
USE_JAVA= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
GEOSERVERDIR= ${PREFIX}/${PORTNAME}
|
|
GEODIRS= data_dir etc lib logs modules resources webapps
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
PLIST_SUB= G="${GEOSERVERDIR:S,^${PREFIX}/,,}" VER1=25.0 MVER=${PORTVERSION} \
|
|
VER3=1.1.3 BATIK=1.14 GWC=1.19.0 ECLIPSE=2.15.0 JETTY=9.4.36.v20210114 \
|
|
IMAGEIO=1.3.5 JT=1.1.20 JT1=1.6.0 SPRING=5.1.20 SPRINGS=5.1.13 SI=2.0.1
|
|
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
|
|
@(cd ${WRKSRC}/etc;${FIND} -E . -type f -iregex ".*(keystore|\.(xml|properties))") \
|
|
| while read a; do \
|
|
${MV} ${WRKSRC}/etc/$$a ${WRKSRC}/etc/$$a.sample; \
|
|
done
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${GEOSERVERDIR}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/*.sh ${STAGEDIR}${GEOSERVERDIR}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/start.jar ${STAGEDIR}${GEOSERVERDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/start.ini ${STAGEDIR}${GEOSERVERDIR}/
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} NOTICE.md README.txt RUNNING.txt license/* \
|
|
VERSION.txt start.jar ${STAGEDIR}${GEOSERVERDIR})
|
|
.for dir in ${GEODIRS}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${GEOSERVERDIR})
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|