1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/www/suphp/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

61 lines
1.5 KiB
Makefile

PORTNAME= suphp
PORTVERSION= 0.7.2
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://www.suphp.org/download/ \
LOCAL/bdrewery/${PORTNAME}/ \
http://mirror.shatow.net/freebsd/${PORTNAME}/
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
MAINTAINER= freebsd-ports@dan.me.uk
COMMENT= Securely execute PHP scripts under Apache
WWW= https://www.suphp.org/
LICENSE= GPLv2
GNU_CONFIGURE= yes
USES= apache autoreconf cpe libtool php:cgi,flavors
SUB_FILES= pkg-message
CFLAGS+= -I${LOCALBASE}/include
USE_CSTD= gnu89
USE_CXXSTD= gnu++98
MYPORTDOCS= apache/CONFIG \
apache/INSTALL \
apache/README \
CONFIG LICENSE \
INSTALL README
CONFIGURE_ARGS= CFLAGS="${CFLAGS} -I`${LOCALBASE}/bin/apr-1-config --includedir`" \
--with-apxs=${APXS}
# WITH_SETID_MODE should be a value of "owner", "force", or "paranoid".
# It's important that you understand the differences between each mode.
# See /usr/local/share/doc/suphp/INSTALL for details.
#
WITH_SETID_MODE?= owner
CONFIGURE_ARGS+= --with-setid-mode=${WITH_SETID_MODE}
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
CONFIGURE_ARGS+= --with-apr=${LOCALBASE}
post-install:
.if !defined(WITH_DEBUG)
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/suphp
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_suphp.so
.endif
${INSTALL_DATA} ${WRKSRC}/doc/suphp.conf-example \
${STAGEDIR}${PREFIX}/etc/suphp.conf-example
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/apache
.for f in ${MYPORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}/${f}
.endfor
.include <bsd.port.mk>