2013-09-21 01:05:58 +02:00
|
|
|
# Created by: anders
|
2001-11-25 21:21:34 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= httplog
|
2002-01-28 01:47:32 +01:00
|
|
|
PORTVERSION= 2.1
|
2005-06-25 16:15:32 +02:00
|
|
|
PORTREVISION= 1
|
2001-11-25 21:21:34 +01:00
|
|
|
CATEGORIES= sysutils www
|
2005-09-14 10:33:35 +02:00
|
|
|
MASTER_SITES= ftp://ftp.nuug.no/pub/anders/distfiles/
|
2001-11-25 21:21:34 +01:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Apache log rollover program with strftime(3) filename support
|
2001-11-25 21:21:34 +01:00
|
|
|
|
2016-03-16 03:34:41 +01:00
|
|
|
LICENSE= FSL
|
|
|
|
LICENSE_NAME= Free software license
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
|
2002-01-28 01:47:32 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}
|
2016-03-16 03:34:41 +01:00
|
|
|
|
2013-11-15 04:26:59 +01:00
|
|
|
PORTDOCS= ChangeLog README
|
2002-01-28 01:47:32 +01:00
|
|
|
|
2014-07-16 05:18:26 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2001-11-25 21:21:34 +01:00
|
|
|
post-patch:
|
2016-03-16 03:34:41 +01:00
|
|
|
@${REINPLACE_CMD} -e "s@<wait.h>@<sys/wait.h>@" \
|
|
|
|
${WRKSRC}/httplog.c
|
|
|
|
@${REINPLACE_CMD} -e \
|
2002-01-28 01:47:32 +01:00
|
|
|
"s@/var/lib/apache/bin/httplog@${PREFIX}/sbin/httplog@" \
|
2016-03-16 03:34:41 +01:00
|
|
|
${WRKSRC}/httplog.8
|
2001-11-25 21:21:34 +01:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o httplog httplog.c -lz)
|
|
|
|
|
|
|
|
do-install:
|
2013-11-15 04:26:59 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/httplog ${STAGEDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/httplog.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
|
2016-03-16 03:34:41 +01:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2005-06-25 16:15:32 +02:00
|
|
|
.for f in ${PORTDOCS}
|
2013-11-15 04:26:59 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
2001-11-25 21:21:34 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|