1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Stage support

- Fix compile errors on 10X and above

PR:		190788
This commit is contained in:
Martin Wilke 2014-06-27 14:21:37 +00:00
parent bec0e327de
commit e2e3623af5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359536
2 changed files with 14 additions and 9 deletions

View File

@ -3,29 +3,34 @@
PORTNAME= webreport
PORTVERSION= 1.5
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.inter7.com/webreport/
MAINTAINER= ismail@EnderUNIX.org
COMMENT= WebReport is a web log statistics program for web hosting sites
SUB_FILES= pkg-message
PORTDOCS= INSTALL
PLIST_FILES= bin/webreport etc/webreport.conf-dist
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
# silence clang errors on 10.0+
CFLAGS+= -Wno-return-type
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's,ulong,unsigned long,;s,/etc/,${PREFIX}/etc/,' ${WRKSRC}/webreport.h
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/webreport ${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/webreport.conf ${PREFIX}/etc/webreport.conf-dist
@${INSTALL_PROGRAM} ${WRKSRC}/webreport ${STAGEDIR}${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/webreport.conf ${STAGEDIR}${PREFIX}/etc/webreport.conf-dist
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_MAN} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_MAN} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g'
.include <bsd.port.mk>