summaryrefslogtreecommitdiff
path: root/www/logtools/Makefile
blob: 2fef17fa9faab041c452d8174cef0655c2231bf0 (plain)
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
# Created by: Mark Huizer; Eindhoven
# $FreeBSD$

PORTNAME=	logtools
PORTVERSION=	0.13e
PORTREVISION=	2
CATEGORIES=	www
MASTER_SITES=	http://www.coker.com.au/logtools/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Useful tools to deal with CLF files (Common Log File format)

LICENSE=	GPLv2

USES=		compiler:c++11-lang tar:tgz
GNU_CONFIGURE=	yes

post-patch:
	@${REINPLACE_CMD} -e \
		's|-O2 -g|| ; \
		 s|-lstdc++|| ; \
		 s| \($${prefix}\)| $${DESTDIR}\1|g ; \
		 s| \(@mandir@\)| $${DESTDIR}\1|g ; \
		 s|.cfg |.cfg.sample | ; \
		 s| \(@sysconfdir@\)| $${DESTDIR}\1|g' ${WRKSRC}/Makefile.in

post-build:
	@${LN} -sf clfdomainsplit.cfg ${WRKSRC}/clfdomainsplit.cfg.sample

.include <bsd.port.mk>