1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00

- change check for httpd version s/-V/-v/

-V also checks for config issues in httpd.conf, this can break a build
  in case there are config issues during rebuilds on a live system.
  -v prints the required info without check

with hat apache@

PR:		191471
Submitted by:	Todd <kovert_at_omniscient.com>
This commit is contained in:
Olli Hauer 2014-09-21 15:47:08 +00:00
parent 6bc2f635a7
commit de6bc5227e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368775

View File

@ -278,7 +278,7 @@ SHORTMODNAME?= ${MODULENAME:S/mod_//}
SRC_FILE?= ${MODULENAME}.c
.if exists(${HTTPD})
_APACHE_VERSION!= ${HTTPD} -V | ${SED} -ne 's/^Server version: Apache\/\([0-9]\)\.\([0-9]*\).*/\1\2/p'
_APACHE_VERSION!= ${HTTPD} -v | ${SED} -ne 's/^Server version: Apache\/\([0-9]\)\.\([0-9]*\).*/\1\2/p'
.elif defined(APACHE_PORT)
_APACHE_VERSION!= ${ECHO_CMD} ${APACHE_PORT} | ${SED} -ne 's,.*/apache\([0-9]*\).*,\1,p'
.endif