blob: 37a8063169282935ea5fa4f6fc83dff4ff686cee (
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
45
|
# Created by: anders
# $FreeBSD$
PORTNAME= httplog
PORTVERSION= 2.1
PORTREVISION= 1
CATEGORIES= sysutils www
MASTER_SITES= ftp://ftp.nuug.no/pub/anders/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= Apache log rollover program with strftime(3) filename support
LICENSE= FSL
LICENSE_NAME= Free software license
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
PORTDOCS= ChangeLog README
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e "s@<wait.h>@<sys/wait.h>@" \
${WRKSRC}/httplog.c
@${REINPLACE_CMD} -e \
"s@/var/lib/apache/bin/httplog@${PREFIX}/sbin/httplog@" \
${WRKSRC}/httplog.8
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o httplog httplog.c -lz)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/httplog ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/httplog.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|