aboutsummaryrefslogtreecommitdiff
path: root/sysutils/flog
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2014-02-25 13:31:49 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2014-02-25 13:31:49 +0000
commit1ffaa567ff587627fb823bda52550f4dc6519e26 (patch)
tree154c128bc2c6f46062fa6483950a7c16769bc1f4 /sysutils/flog
parent1ea7b8e6dac6e4a65f81eef05d04f3c0799bdfee (diff)
downloadports-1ffaa567ff587627fb823bda52550f4dc6519e26.tar.gz
ports-1ffaa567ff587627fb823bda52550f4dc6519e26.zip
Support staging
Notes
Notes: svn path=/head/; revision=345994
Diffstat (limited to 'sysutils/flog')
-rw-r--r--sysutils/flog/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/sysutils/flog/Makefile b/sysutils/flog/Makefile
index 0b1104a407a8..4d42c6c2b565 100644
--- a/sysutils/flog/Makefile
+++ b/sysutils/flog/Makefile
@@ -12,7 +12,8 @@ COMMENT= A small STDIN-to-file logger with support for log rotation
PORTDOCS= README
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
${REINPLACE_CMD} -e "s@|O_LARGEFILE@@" ${WRKSRC}/flog.c
@@ -20,10 +21,8 @@ do-build:
${CC} ${CFLAGS} -o ${WRKSRC}/flog ${WRKSRC}/flog.c
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/flog ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- ${INSTALL} -d -m 0755 ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/flog ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>