blob: e75e6ffcb71db624776bcd809f07cfe669845e8e (
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
|
# New ports collection makefile for: geoserver
# Date created: 10 March 2008
# Whom: Wen heping<wenheping@gmail.com>
#
# $FreeBSD$
#
PORTNAME= geoserver
PORTVERSION= 1.6.4b
PORTREVISION= 1
CATEGORIES= graphics geography java
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
MAINTAINER= wenheping@gmail.com
COMMENT= An Open Source GIS Server
USE_JAVA= yes
USE_ZIP= yes
JAVA_VERSION= 1.5+
NO_BUILD= YES
WRKSRC= ${WRKDIR}/geoserver
GEOSERVERDIR= ${PREFIX}/lib/${PORTNAME}
.include <bsd.port.pre.mk>
USE_RC_SUBR= geoserver.sh
RC_SCRIPTS_SUB= PREFIX=${PREFIX}
post-patch:
@${REINPLACE_CMD} -e 's|$$GEOSERVER_HOME|${GEOSERVERDIR}|g' \
${WRKSRC}/bin/startup.sh ${WRKSRC}/bin/shutdown.sh
pre-install:
@${FIND} ${WRKSRC} -name "*.bak" -o -name "*.orig" | ${XARGS} ${RM}
do-install:
@${MKDIR} ${GEOSERVERDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${GEOSERVERDIR}/
@${CHMOD} -R 755 ${GEOSERVERDIR}
post-install:
@${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g'
.include <bsd.port.post.mk>
|