freebsd-ports/sysutils/httplog/Makefile
2001-11-25 20:21:34 +00:00

41 lines
991 B
Makefile

# New ports collection makefile for: httplog
# Date created: 25 November 2001
# Whom: anders
#
# $FreeBSD$
#
PORTNAME= httplog
PORTVERSION= 1.9
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
post-patch:
(cd ${WRKSRC} && printf \
"#define VERSION \"1.9\"\n#define USE_ZLIB\n#define USE_DEBUG\n" \
>defines.h && \
${PERL} -pi -e "s@<wait.h>@<sys/wait.h>@" httplog.c && \
${PERL} -pi -e "s@/var/lib/apache/bin/httplog@${PREFIX}/bin/httplog@" \
httplog.8)
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o httplog httplog.c -lz)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/httplog ${PREFIX}/bin/
${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>