aboutsummaryrefslogtreecommitdiff
path: root/sysutils/httplog
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-06-25 14:15:32 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-06-25 14:15:32 +0000
commite9a0a2d45baba78bbe6e97d6bfb0ce83981fd8af (patch)
treed56c9c09fb9e31b556dbcf161b9b39f4b5c8931f /sysutils/httplog
parentdb00022b1a3b48ef7823f058e9a053a2b0a6d92e (diff)
downloadports-e9a0a2d45baba78bbe6e97d6bfb0ce83981fd8af.tar.gz
ports-e9a0a2d45baba78bbe6e97d6bfb0ce83981fd8af.zip
- Allow the configure script to use any zlib version rather than
requiring 1.1.3 or 1.1.4 (the program requires zlib >= 1.1.3, which was imported in January 1999) [1] - Refactor pkg-plist as PLIST_FILES/PORTDOCS - Polish the Makefile [1]: PR: ports/82524 Submitted by: Andrew McNaughton <andrew@scoop.co.nz>
Notes
Notes: svn path=/head/; revision=138013
Diffstat (limited to 'sysutils/httplog')
-rw-r--r--sysutils/httplog/Makefile16
-rw-r--r--sysutils/httplog/files/patch-configure6
-rw-r--r--sysutils/httplog/pkg-plist4
3 files changed, 12 insertions, 14 deletions
diff --git a/sysutils/httplog/Makefile b/sysutils/httplog/Makefile
index c48b03ad580f..5280205781d0 100644
--- a/sysutils/httplog/Makefile
+++ b/sysutils/httplog/Makefile
@@ -7,6 +7,7 @@
PORTNAME= httplog
PORTVERSION= 2.1
+PORTREVISION= 1
CATEGORIES= sysutils www
MASTER_SITES= http://nutbar.chemlab.org/downloads/programs/ \
ftp://ftp.nuug.no/pub/anders/distfiles/
@@ -14,9 +15,10 @@ MASTER_SITES= http://nutbar.chemlab.org/downloads/programs/ \
MAINTAINER= ports@FreeBSD.org
COMMENT= Apache log rollover program with strftime(3) filename support
-MAN8= httplog.8
+MAN8= httplog.8
-DOCS= ChangeLog README
+PLIST_FILES= sbin/httplog
+PORTDOCS= ChangeLog README
USE_REINPLACE= yes
HAS_CONFIGURE= yes
@@ -33,12 +35,12 @@ 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/
+ ${INSTALL_PROGRAM} ${WRKSRC}/httplog ${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/httplog.8 ${MAN8PREFIX}/man/man8
.if !defined(NOPORTDOCS)
- ${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
-.for f in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
+ ${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
diff --git a/sysutils/httplog/files/patch-configure b/sysutils/httplog/files/patch-configure
index bfca4780ce4c..ee796d29288d 100644
--- a/sysutils/httplog/files/patch-configure
+++ b/sysutils/httplog/files/patch-configure
@@ -1,11 +1,11 @@
---- configure.orig Tue Dec 16 10:40:16 2003
-+++ configure Tue Dec 16 10:41:45 2003
+--- configure.orig Sat Jun 25 15:53:38 2005
++++ configure Sat Jun 25 16:00:31 2005
@@ -140,7 +140,7 @@
EOF
$CC -o ./dummy ./dummy.c -lz 1>/dev/null 2>&1
if [ $? -eq 0 ]; then
- if [ `./dummy` = "1.1.3" ]; then
-+ if [ `./dummy` = "1.1.3" -o `./dummy` = "1.1.4" ]; then
++ if :; then
use_zlib=yes
LDFLAGS="$LDFLAGS -lz"
echo "Checking zlib version: `./dummy` found."
diff --git a/sysutils/httplog/pkg-plist b/sysutils/httplog/pkg-plist
deleted file mode 100644
index 120d34ab1d8b..000000000000
--- a/sysutils/httplog/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-sbin/httplog
-%%PORTDOCS%%share/doc/httplog/ChangeLog
-%%PORTDOCS%%share/doc/httplog/README
-%%PORTDOCS%%@dirrm share/doc/httplog