Update sysutils/cfengine36 to version 3.6.1_1,1
[dports.git] / sysutils / httplog / Makefile
1 # Created by: anders
2 # $FreeBSD$
3
4 PORTNAME=       httplog
5 PORTVERSION=    2.1
6 PORTREVISION=   1
7 CATEGORIES=     sysutils www
8 MASTER_SITES=   ftp://ftp.nuug.no/pub/anders/distfiles/
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Apache log rollover program with strftime(3) filename support
12
13 HAS_CONFIGURE=  yes
14 CONFIGURE_ARGS= --prefix=${PREFIX}
15 PORTDOCS=       ChangeLog README
16
17 OPTIONS_DEFINE= DOCS
18
19 post-patch:
20         (cd ${WRKSRC} && \
21         ${REINPLACE_CMD} -e "s@<wait.h>@<sys/wait.h>@" httplog.c && \
22         ${REINPLACE_CMD} -e \
23                 "s@/var/lib/apache/bin/httplog@${PREFIX}/sbin/httplog@" \
24         httplog.8)
25
26 do-build:
27         (cd ${WRKSRC} && ${CC} ${CFLAGS} -o httplog httplog.c -lz)
28
29 do-install:
30         ${INSTALL_PROGRAM} ${WRKSRC}/httplog ${STAGEDIR}${PREFIX}/sbin
31         ${INSTALL_MAN} ${WRKSRC}/httplog.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
32         ${MKDIR} ${STAGEDIR}${DOCSDIR}
33 .for f in ${PORTDOCS}
34         ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
35 .endfor
36
37 .include <bsd.port.mk>