1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/www/mod_rpaf2/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

42 lines
913 B
Makefile

PORTNAME= mod_rpaf
PORTVERSION= 0.8.4
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= www
PKGNAMESUFFIX= 2
MAINTAINER= apache@FreeBSD.org
COMMENT= Make proxied requests appear with client IP
WWW= https://github.com/gnif/mod_rpaf/
LICENSE= APACHE20
USES= apache cpe
CPE_VENDOR= thomas_eibner
USE_GITHUB= yes
GH_ACCOUNT= gnif
AP_FAST_BUILD= yes
SHORTMODNAME= rpaf
SRC_FILE= mod_rpaf.c
APMOD_FILE= 200_mod_rpaf.conf.sample
PLIST_SUB+= APMOD_FILE=${APMOD_FILE}
PLIST_FILES= @sample\ ${APACHEETCDIR}/modules.d/200_${PORTNAME}.conf.sample \
${APACHEMODDIR}/${PORTNAME}.so
SUB_FILES= ${APMOD_FILE}
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${APMOD_FILE} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>