1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/sysutils/httplog/Makefile
Patrick Li 850379f680 PERL -> REINPLACE_CMD
PR:		ports/39731, ports/39732, ports/39733, ports/39734, ports/39735
		ports/39736, ports/39737, ports/39738, ports/39739 ports/39740
Submitted by:	Scott Flatman <sf@dsinw.com>
2002-06-23 20:29:01 +00:00

45 lines
989 B
Makefile

# 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>