Lines 1-7
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= varnish |
3 |
PORTNAME= varnish |
4 |
PORTVERSION= 3.0.4 |
4 |
PORTVERSION= 3.0.5 |
5 |
CATEGORIES= www |
5 |
CATEGORIES= www |
6 |
MASTER_SITES= http://repo.varnish-cache.org/source/ |
6 |
MASTER_SITES= http://repo.varnish-cache.org/source/ |
7 |
|
7 |
|
Lines 8-16
Link Here
|
8 |
MAINTAINER= anders@FreeBSD.org |
8 |
MAINTAINER= anders@FreeBSD.org |
9 |
COMMENT= The Varnish high-performance HTTP accelerator |
9 |
COMMENT= The Varnish high-performance HTTP accelerator |
10 |
|
10 |
|
11 |
LICENSE= BSD |
11 |
LICENSE= BSD2CLAUSE |
12 |
|
12 |
|
13 |
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre |
13 |
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre |
14 |
|
14 |
|
15 |
CONFLICTS= varnish-2.* |
15 |
CONFLICTS= varnish-2.* |
16 |
|
16 |
|
Lines 20-35
Link Here
|
20 |
CONFIGURE_ARGS= --localstatedir=${PREFIX} --enable-tests |
20 |
CONFIGURE_ARGS= --localstatedir=${PREFIX} --enable-tests |
21 |
CONFIGURE_ENV= RST2MAN=true |
21 |
CONFIGURE_ENV= RST2MAN=true |
22 |
USE_LDCONFIG= yes |
22 |
USE_LDCONFIG= yes |
23 |
USE_AUTOTOOLS= aclocal libtool libtoolize automake autoconf |
23 |
USE_AUTOTOOLS= aclocal libtool libtoolize automake autoconf |
24 |
ACLOCAL_ARGS= -I m4 |
24 |
ACLOCAL_ARGS= -I m4 |
25 |
LIBTOOLFLAGS= --copy --force --disable-static |
25 |
LIBTOOLFLAGS= --copy --force --disable-static |
26 |
AUTOMAKE_ARGS= --add-missing --copy --foreign |
26 |
AUTOMAKE_ARGS= --add-missing --copy --foreign |
27 |
|
27 |
|
28 |
MAN1= varnishadm.1 varnishd.1 varnishhist.1 varnishlog.1 \ |
|
|
29 |
varnishncsa.1 varnishreplay.1 varnishsizes.1 \ |
30 |
varnishstat.1 varnishtest.1 varnishtop.1 |
31 |
MAN3= vmod_std.3 |
32 |
MAN7= vcl.7 varnish-cli.7 varnish-counters.7 |
33 |
USE_RC_SUBR= varnishd varnishlog varnishncsa |
28 |
USE_RC_SUBR= varnishd varnishlog varnishncsa |
34 |
SUB_FILES= pkg-message |
29 |
SUB_FILES= pkg-message |
35 |
.if defined(NO_INET6) || defined(WITHOUT_INET6) |
30 |
.if defined(NO_INET6) || defined(WITHOUT_INET6) |
Lines 37-43
Link Here
|
37 |
EXTRA_PATCHES+= ${FILESDIR}/no-inet6.patch |
32 |
EXTRA_PATCHES+= ${FILESDIR}/no-inet6.patch |
38 |
.endif |
33 |
.endif |
39 |
|
34 |
|
40 |
NO_STAGE= yes |
|
|
41 |
post-patch: |
35 |
post-patch: |
42 |
@${REINPLACE_CMD} -e 's|\$$(libdir)/pkgconfig|\$$(prefix)/libdata/pkgconfig|' \ |
36 |
@${REINPLACE_CMD} -e 's|\$$(libdir)/pkgconfig|\$$(prefix)/libdata/pkgconfig|' \ |
43 |
${WRKSRC}/Makefile.am |
37 |
${WRKSRC}/Makefile.am |
Lines 59-74
Link Here
|
59 |
# |
53 |
# |
60 |
|
54 |
|
61 |
post-install: |
55 |
post-install: |
62 |
@${MKDIR} ${PREFIX}/share/varnish |
56 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/varnish |
63 |
@${INSTALL_SCRIPT} ${WRKSRC}/lib/libvmod_std/vmod.py ${PREFIX}/share/varnish |
57 |
${INSTALL_SCRIPT} ${WRKSRC}/lib/libvmod_std/vmod.py ${STAGEDIR}${PREFIX}/share/varnish |
64 |
.for f in cache.h heritage.h steps.h common.h acct_fields.h locks.h body_status.h |
58 |
.for f in cache.h heritage.h steps.h common.h acct_fields.h locks.h body_status.h |
65 |
@${INSTALL_DATA} ${WRKSRC}/bin/varnishd/${f} ${PREFIX}/include/varnish |
59 |
${INSTALL_DATA} ${WRKSRC}/bin/varnishd/${f} ${STAGEDIR}${PREFIX}/include/varnish |
66 |
.endfor |
60 |
.endfor |
67 |
.for f in vct.h vmod_abi.h vre.h vrt.h vqueue.h vsb.h libvarnish.h miniobj.h vas.h vav.h http_headers.h vcl_returns.h |
61 |
.for f in vct.h vmod_abi.h vre.h vrt.h vqueue.h vsb.h libvarnish.h miniobj.h vas.h vav.h http_headers.h vcl_returns.h |
68 |
@${INSTALL_DATA} ${WRKSRC}/include/${f} ${PREFIX}/include/varnish |
62 |
${INSTALL_DATA} ${WRKSRC}/include/${f} ${STAGEDIR}${PREFIX}/include/varnish |
69 |
.endfor |
63 |
.endfor |
70 |
@${CAT} ${PKGMESSAGE} |
64 |
@${CAT} ${PKGMESSAGE} |
71 |
@${RM} -f ${PREFIX}/lib/libvarnishapi.*a ${PREFIX}/lib/varnish/lib*a ${PREFIX}/lib/varnish/vmods/lib*a |
65 |
@${RM} -f ${STAGEDIR}${PREFIX}/lib/libvarnishapi.*a ${STAGEDIR}${PREFIX}/lib/varnish/lib*a ${STAGEDIR}${PREFIX}/lib/varnish/vmods/lib*a |
72 |
|
66 |
|
73 |
.include <bsd.port.pre.mk> |
67 |
.include <bsd.port.pre.mk> |
74 |
|
68 |
|