aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/httplog
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2013-11-15 11:26:59 +0800
committervanilla <vanilla@FreeBSD.org>2013-11-15 11:26:59 +0800
commit2dfeda167a2720f6199311a8365397dc66ba3fc5 (patch)
tree38bc91f7938df922d934d4c8939aa3a9db17a815 /sysutils/httplog
parent1ed8b5448014a784ab8b4a9753fc7e718670ea86 (diff)
downloadfreebsd-ports-gnome-2dfeda167a2720f6199311a8365397dc66ba3fc5.tar.gz
freebsd-ports-gnome-2dfeda167a2720f6199311a8365397dc66ba3fc5.tar.zst
freebsd-ports-gnome-2dfeda167a2720f6199311a8365397dc66ba3fc5.zip
Support STAGEDIR.
Diffstat (limited to 'sysutils/httplog')
-rw-r--r--sysutils/httplog/Makefile17
-rw-r--r--sysutils/httplog/pkg-plist5
2 files changed, 10 insertions, 12 deletions
diff --git a/sysutils/httplog/Makefile b/sysutils/httplog/Makefile
index 1e097d632f84..fa6a3a1f6bc1 100644
--- a/sysutils/httplog/Makefile
+++ b/sysutils/httplog/Makefile
@@ -10,15 +10,10 @@ MASTER_SITES= ftp://ftp.nuug.no/pub/anders/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= Apache log rollover program with strftime(3) filename support
-MAN8= httplog.8
-
-PLIST_FILES= sbin/httplog
-PORTDOCS= ChangeLog README
-
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
+PORTDOCS= ChangeLog README
-NO_STAGE= yes
post-patch:
(cd ${WRKSRC} && \
${REINPLACE_CMD} -e "s@<wait.h>@<sys/wait.h>@" httplog.c && \
@@ -30,13 +25,11 @@ do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o httplog httplog.c -lz)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/httplog ${PREFIX}/sbin
- ${INSTALL_MAN} ${WRKSRC}/httplog.8 ${MAN8PREFIX}/man/man8
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/httplog ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/httplog.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/sysutils/httplog/pkg-plist b/sysutils/httplog/pkg-plist
new file mode 100644
index 000000000000..612979eca1f3
--- /dev/null
+++ b/sysutils/httplog/pkg-plist
@@ -0,0 +1,5 @@
+man/man8/httplog.8.gz
+sbin/httplog
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%