aboutsummaryrefslogtreecommitdiff
path: root/www/spreadlogd/Makefile
blob: c836514714c83148cd81e02e746230693d009016 (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
PORTNAME=	spreadlogd
PORTVERSION=	1.4.2
CATEGORIES=	www net
MASTER_SITES=	http://www.lethargy.org/mod_log_spread/

MAINTAINER=	portmaster@bsdforge.com
COMMENT=	Backend for mod_log_spread
WWW=		https://BSDforge.com/projects/www/spreadlogd/

LICENSE=	ART10

LIB_DEPENDS=	libgnuregex.so:devel/libgnuregex \
		libspread.so:net/spread

MAKEFILE=	makefile
USE_RC_SUBR=	spreadlogd

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

OPTIONS_DEFINE=	DOCS

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

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/spreadlogd ${STAGEDIR}${PREFIX}/sbin
	${INSTALL_DATA} ${WRKSRC}/spreadlogd.conf \
		${STAGEDIR}${PREFIX}/etc/spreadlogd.conf.sample

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>