blob: 5c03d8420e0ea1b0db546a1d276fedca6424507e (
plain)
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
|
# $NetBSD: Makefile,v 1.14 2009/07/07 19:09:45 joerg Exp $
PKGNAME= jakarta-tomcat4-${TOMCAT_VERSION}
DISTNAME= jakarta-tomcat-${TOMCAT_VERSION}
PKGREVISION= 2
WRKSRC= ${WRKDIR}/${DISTNAME}
CATEGORIES= www java
# The list of sites to download is generated by a jakarta website.
# The getsite.sh script parses the HTML and extracts the urls.
MAINTAINER= erh@NetBSD.org
HOMEPAGE= http://tomcat.apache.org/
COMMENT= The Apache Project's Java Servlet 2.3 and JSP 1.2 server
PKG_DESTDIR_SUPPORT= user-destdir
TOMCAT_VERSION= 4.1.30
# This needs java 1.4 or higher.
USE_JAVA=run
USE_JAVA2=yes
USE_TOOLS+= pax
TOMCAT_LIB= ${PREFIX}/tomcat4
SAMPLECONFDIR= ${TOMCAT_LIB}/conf
PKG_SYSCONFDIR.jakarta-tomcat4= ${SAMPLECONFDIR}
CFILES= server.xml web.xml tomcat-users.xml
CFILES+= catalina.policy jk2.properties
CONF_FILES= # empty
.for FILE in ${CFILES}
CONF_FILES+= ${SAMPLECONFDIR}/${FILE}.default ${PKG_SYSCONFDIR}/${FILE}
.endfor
RCD_SCRIPTS= tomcat4
FILES_SUBST+= JAVA_HOME=${PKG_JAVA_HOME:Q} TOMCAT_LIB=${TOMCAT_LIB:Q}
.include "../../mk/java-vm.mk"
do-build:
.for FILE in ${CFILES}
${MV} -f ${WRKSRC}/conf/${FILE} ${WRKSRC}/conf/${FILE}.default
.endfor
INSTALLATION_DIRS= ${TOMCAT_LIB}
do-install:
cd ${WRKSRC} && pax -rw -pm . ${DESTDIR}${TOMCAT_LIB}
@${FIND} ${DESTDIR}${TOMCAT_LIB} -type f -print \
| ${XARGS} ${CHMOD} a+r
@${FIND} ${DESTDIR}${TOMCAT_LIB} \( -type f -o -perm -u+x \) -print \
| ${XARGS} ${CHMOD} a+rx
@${FIND} ${DESTDIR}${TOMCAT_LIB} -type d -print \
| ${XARGS} ${CHMOD} a+rx
.include "../../mk/bsd.pkg.mk"
|