aboutsummaryrefslogtreecommitdiffstats
path: root/www/spreadlogd/Makefile
blob: 7fd06409dd3166282d98288fb07b74ba7f128dad (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
# New ports collection makefile for:    spreadlogd
# Date created:         08 May 2005
# Whom:             Meno Abels <meno.abels@adviser.com>
#
# $FreeBSD$
#

PORTNAME=   spreadlogd
PORTVERSION=    1.4.2
CATEGORIES= www net
MASTER_SITES=   http://www.lethargy.org/mod_log_spread/

MAINTAINER= ports@FreeBSD.org
COMMENT=    The backend of mod_log_spread

LIB_DEPENDS=    spread.1:${PORTSDIR}/net/spread

MAKEFILE=   makefile

USE_RC_SUBR=    spreadlogd.sh
SUB_FILES=  spreadlogd.sh

PLIST_FILES=    sbin/spreadlogd etc/spreadlogd.conf.sample

.if !defined(NOPORTDOCS)
PORTDOCS=   README Artistic.txt
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/spreadlogd.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/spreadlogd ${PREFIX}/sbin
    ${INSTALL} ${WRKSRC}/spreadlogd.conf ${PREFIX}/etc/spreadlogd.conf.sample
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>