summaryrefslogtreecommitdiff
path: root/net/plb/Makefile
blob: aa18f9780d61186e631a54a502275423fb0801c9 (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
# New ports collection Makefile for:    plb
# Date created:                         Feb 26, 2003
# Whom:                                 Frank Denis <j@pureftpd.org>
#
# $FreeBSD$
#

PORTNAME=	plb
PORTVERSION=	0.3
PORTREVISION=	4
CATEGORIES=	net ipv6
MASTER_SITES=	http://plb.sunsite.dk/files/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A high-performance HTTP load balancer

LIB_DEPENDS=	event-1.3d:${PORTSDIR}/devel/libevent

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/etc

MAN8=		plb.8
DOCS=		AUTHORS CONTACT COPYING NEWS README THANKS TODO

.include <bsd.port.pre.mk>

post-extract:
	@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/plb.sh.sample \
		> ${WRKSRC}/plb.sh.sample

post-install:
	${INSTALL_DATA} ${WRKSRC}/plb.conf ${PREFIX}/etc/plb.conf.sample
	${INSTALL_SCRIPT} ${WRKSRC}/plb.sh.sample ${PREFIX}/etc/rc.d/plb.sh.sample
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/plb
	(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/plb)
.endif
	@${ECHO_CMD}
	@${ECHO_CMD} "Now you need to examine ${PREFIX}/etc/plb.conf.sample,"
	@${ECHO_CMD} "to adapt it to your needs, and save it as ${PREFIX}/etc/plb.conf.sample."
	@${ECHO_CMD}

.include <bsd.port.post.mk>