summaryrefslogtreecommitdiffstats
path: root/www/jetty/Makefile
blob: ad978297c9b851f49b5e19fbd45f570ccb4195e2 (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
# New ports collection makefile for:	Jetty
# Date created:				28 August 2000
# Whom:				Stephane Legrand <stephane@freebsd-fr.org>
#
# $FreeBSD$
#

PORTNAME=	jetty
PORTVERSION=	4.2.11
CATEGORIES=	www java
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
		ftp://jetty.mortbay.com/pub/
MASTER_SITE_SUBDIR=	jetty
DISTNAME=	Jetty-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Extensible Java HTTP Server

USE_JAVA=	1.2+

NO_BUILD=	yes

PLIST_SUB=	JETTY_VERSION=${PORTVERSION}

post-extract:
	${FIND} ${WRKSRC} -name CVS -delete
	${FIND} ${WRKSRC} -name .cvsignore -delete

do-install:
	@${MKDIR} ${PREFIX}/share/java/${PORTNAME}-${PORTVERSION}
	@(cd ${WRKSRC} && ${TAR} -c --exclude 'src/*' -f - ./ ) \
		| (cd ${PREFIX}/share/java/${PORTNAME}-${PORTVERSION} && ${TAR} --unlink -x -f -)

post-install:
	@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGMESSAGE} \
		| ${SED} 's|%%PORTVERSION%%|${PORTVERSION}|g'
	@${CHMOD} a+rx \
		${PREFIX}/share/java/${PORTNAME}-${PORTVERSION}/bin/jetty.sh
	@${LN} -sf \
		${PREFIX}/share/java/${PORTNAME}-${PORTVERSION}/bin/jetty.sh \
		${PREFIX}/sbin/jetty

.include <bsd.port.mk>
OpenPOWER on IntegriCloud