freebsd-ports/www/thundersnarf/Makefile
Muhammad Moinur Rahman 40843b1ccb Mk/Uses/apache.mk: Refactor after removal of older versions
apache22 and apache25 had been removed a long time ago however the
apache.mk file has never been refactored and is out of sync from the
file Mk/bsd.default-versions.mk. These changes refactors the removals of
the older versions. In addition:

- Move some keywords like USE_APACHE, USE_APACHE_BUILD, USE_APACHE_RUN
  from SANITY_DEPRECATED to SANITY_UNSUPPORTED
- Remove apache versions from ports Makefiles as currently there is only
  one available version in the tree. However the version checks are
  still valid and should work flawlessly whenever a new version is
  added. For example USES=apache:2.2+ are simply replaced with
  USES=apache. As currently there are no other versions available for
  test this could not be checked on it's own ground.
- Update FOO_USE=APACHE=yes to FOO_USES=apache
- Remove trailing whitespaces

Approved by:    portmgr
Differential Revision: https://reviews.freebsd.org/D38113
2023-01-25 11:54:07 -06:00

66 lines
1.5 KiB
Makefile

PORTNAME= thundersnarf
PORTVERSION= 1.3
PORTREVISION= 6
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= http://www.tracanelli.com.br/l/dev/thunder/ \
LOCAL/jmelo
MAINTAINER= eksffa@freebsdbrasil.com.br
COMMENT= Web reporting and trending analysis for Thunder Cache Pro
WWW= http://www.thundercache.com.br
OPTIONS_DEFINE= APACHE PHP PGSQL DOCS
OPTIONS_DEFAULT=APACHE PHP PGSQL
APACHE_DESC= Install apache for reporting viewing
PHP_DESC= Install PHP for reporting generating
PGSQL_DESC= Install PostgreSQL (report data storing)
USES= tar:bzip2
PHP_USES= php
PHP_VARS= IGNORE_WITH_PHP=81 82
NO_BUILD= yes
NO_ARCH= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_SUB= OWNER=${WWWOWN} GROUP=${WWWGRP}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MAPACHE}
USES+= apache:run
.endif
.if ${PORT_OPTIONS:MPGSQL}
USES+= pgsql
WANT_PGSQL= server
.endif
.if ${PORT_OPTIONS:MPHP}
USE_PHP+= curl pcre bcmath pdo mcrypt hash session pgsql spl dom xmlrpc ctype openssl simplexml soap json
. if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pdo_pgsql pgsql
. endif
.endif
LIB_DEPENDS+= libcurl.so:ftp/curl
SUB_FILES= pkg-message
post-extract:
# Present on FreeBSD 8 and 9 after extraction
@${RM} ${WRKSRC}/protected/data/bin/._thundersnarf
do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR}
${INSTALL_SCRIPT} ${WRKSRC}/protected/data/bin/thundersnarf* \
${STAGEDIR}${PREFIX}/bin/
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README.pt_BR
.include <bsd.port.mk>