aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/httplog
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-06-25 22:15:32 +0800
committerjylefort <jylefort@FreeBSD.org>2005-06-25 22:15:32 +0800
commitad885a48d9389a092ff6fffe5f38fef6a40cecac (patch)
tree1b875708461b88ebab47c5107cf3ae388b937895 /sysutils/httplog
parent4b73bb0710a1fdb128d4f5660fa6c8f60c73e6d2 (diff)
downloadfreebsd-ports-gnome-ad885a48d9389a092ff6fffe5f38fef6a40cecac.tar.gz
freebsd-ports-gnome-ad885a48d9389a092ff6fffe5f38fef6a40cecac.tar.zst
freebsd-ports-gnome-ad885a48d9389a092ff6fffe5f38fef6a40cecac.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>
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