blob: f7b643f88681bc7dc9c92a34b60c5bd91bd716c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# New ports collection makefile for: geoserver
# Date created: 10 March 2008
# Whom: Wen heping<wenheping@gmail.com>
#
# $FreeBSD$
#
PORTNAME= geoserver
PORTVERSION= 2.1.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
LICENSE= GPLv2
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}/,,}" GTVER=2.7.2 MVER=${PORTVERSION}
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 LICENSE.txt README.txt RUNNING.txt VERSION.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>
|