summaryrefslogtreecommitdiff
path: root/sysutils/httplog/Makefile
blob: a26c094df99d9c7fb7c4e460619f10b3d8c6e40c (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
44
# New ports collection makefile for:	httplog
# Date created:				25 November 2001
# Whom:					anders
#
# $FreeBSD$
#

PORTNAME=	httplog
PORTVERSION=	2.1
CATEGORIES=	sysutils www
MASTER_SITES=	http://nutbar.chemlab.org/downloads/programs/ \
		ftp://ftp.nuug.no/pub/anders/distfiles/

MAINTAINER=	ports@FreeBSD.org

MAN8=	httplog.8

DOCS=	ChangeLog README

USE_REINPLACE=	yes
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX}

post-patch:
	(cd ${WRKSRC} && \
	${REINPLACE_CMD} -e "s@<wait.h>@<sys/wait.h>@" httplog.c && \
	${REINPLACE_CMD} -e \
		"s@/var/lib/apache/bin/httplog@${PREFIX}/sbin/httplog@" \
	httplog.8)

do-build:
	(cd ${WRKSRC} && ${CC} ${CFLAGS} -o httplog httplog.c -lz)

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/httplog ${PREFIX}/sbin/
	${INSTALL_MAN} ${WRKSRC}/httplog.8 ${PREFIX}/man/man8/
.if !defined(NOPORTDOCS)
	${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif

.include <bsd.port.mk>