aboutsummaryrefslogtreecommitdiffstats
path: root/www/varnish/Makefile
blob: 11f21e41dadfd6a310d4b2ab219d7863307c6824 (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
# New ports collection makefile for:    varnish
# Date created:             2006-08-11
# Whom:                 des
#
# $FreeBSD$
#

PORTNAME=   varnish
PORTVERSION=    1.0.4
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= des@FreeBSD.org
COMMENT=    The Varnish high-performance HTTP accelerator

GNU_CONFIGURE=  yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --mandir=${PREFIX}/man
USE_LDCONFIG=   yes

MAN1=       varnishd.1 varnishhist.1 varnishlog.1 varnishncsa.1 \
        varnishstat.1 varnishtop.1
MAN7=       vcl.7
USE_RC_SUBR=    varnishd varnishlog

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 601000
BROKEN=     does not compile
.endif

post-install:
    ${MKDIR} ${PREFIX}/etc/varnish
    @[ -f ${PREFIX}/etc/varnish/default.vcl ] || \
        ${INSTALL_DATA} ${WRKSRC}/etc/default.vcl ${PREFIX}/etc/varnish/

.include <bsd.port.post.mk>