| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.54 2017/01/28 04:57:57 ryoon Exp $ | | 1 | # $NetBSD: Makefile,v 1.54.2.1 2017/04/16 15:36:15 bsiegert Exp $ |
2 | # | | 2 | # |
3 | # When updating this package, make sure that no strings like | | 3 | # When updating this package, make sure that no strings like |
4 | # "PR 12345" are in the commit message. Upstream likes | | 4 | # "PR 12345" are in the commit message. Upstream likes |
5 | # to reference their own PRs this way, but this ends up | | 5 | # to reference their own PRs this way, but this ends up |
6 | # in NetBSD GNATS. | | 6 | # in NetBSD GNATS. |
7 | | | 7 | |
8 | DISTNAME= httpd-2.4.25 | | 8 | DISTNAME= httpd-2.4.25 |
9 | PKGNAME= ${DISTNAME:S/httpd/apache/} | | 9 | PKGNAME= ${DISTNAME:S/httpd/apache/} |
10 | PKGREVISION= 2 | | 10 | PKGREVISION= 2 |
11 | CATEGORIES= www | | 11 | CATEGORIES= www |
12 | MASTER_SITES= ${MASTER_SITE_APACHE:=httpd/} | | 12 | MASTER_SITES= ${MASTER_SITE_APACHE:=httpd/} |
13 | MASTER_SITES+= http://archive.apache.org/dist/httpd/ | | 13 | MASTER_SITES+= http://archive.apache.org/dist/httpd/ |
14 | MASTER_SITES+= http://archive.eu.apache.org/dist/httpd/ | | 14 | MASTER_SITES+= http://archive.eu.apache.org/dist/httpd/ |
| @@ -125,28 +125,26 @@ SUBST_CLASSES+= apr-lt | | | @@ -125,28 +125,26 @@ SUBST_CLASSES+= apr-lt |
125 | SUBST_STAGE.apr-lt= post-configure | | 125 | SUBST_STAGE.apr-lt= post-configure |
126 | SUBST_MESSAGE.apr-lt= Fixing libtool references. | | 126 | SUBST_MESSAGE.apr-lt= Fixing libtool references. |
127 | SUBST_FILES.apr-lt= build/config_vars.mk | | 127 | SUBST_FILES.apr-lt= build/config_vars.mk |
128 | SUBST_SED.apr-lt= -e 's|^\(LIBTOOL =\) [^ ]*|\1 $$(SHELL) $$(top_builddir)/build/libtool|g' | | 128 | SUBST_SED.apr-lt= -e 's|^\(LIBTOOL =\) [^ ]*|\1 $$(SHELL) $$(top_builddir)/build/libtool|g' |
129 | | | 129 | |
130 | SUBST_CLASSES+= confs | | 130 | SUBST_CLASSES+= confs |
131 | SUBST_STAGE.confs= post-configure | | 131 | SUBST_STAGE.confs= post-configure |
132 | SUBST_MESSAGE.confs= Fixing configuration files. | | 132 | SUBST_MESSAGE.confs= Fixing configuration files. |
133 | SUBST_FILES.confs= docs/conf/httpd.conf | | 133 | SUBST_FILES.confs= docs/conf/httpd.conf |
134 | SUBST_FILES.confs+= docs/conf/extra/httpd-ssl.conf | | 134 | SUBST_FILES.confs+= docs/conf/extra/httpd-ssl.conf |
135 | SUBST_SED.confs= -e "s|${EGDIR}|${PKG_SYSCONFDIR}|g" | | 135 | SUBST_SED.confs= -e "s|${EGDIR}|${PKG_SYSCONFDIR}|g" |
136 | SUBST_SED.confs+= -e "s|${PREFIX}/htdocs|${PREFIX}/share/httpd/htdocs|g" | | 136 | SUBST_SED.confs+= -e "s|${PREFIX}/htdocs|${PREFIX}/share/httpd/htdocs|g" |
137 | SUBST_SED.confs+= -e "s|${PREFIX}/conf|${PKG_SYSCONFDIR}|g" | | 137 | SUBST_SED.confs+= -e "s|${PREFIX}/conf|${PKG_SYSCONFDIR}|g" |
138 | SUBST_SED.confs+= -e "s|logs/|${VARBASE}/log/httpd/|g" | | | |
139 | SUBST_SED.confs+= -e 's|/var/log/httpd/foo\.log|logs/foo.log/|g' | | | |
140 | SUBST_SED.confs+= -e 's|^\(User[ ]\).*|\1${APACHE_USER}|g' | | 138 | SUBST_SED.confs+= -e 's|^\(User[ ]\).*|\1${APACHE_USER}|g' |
141 | SUBST_SED.confs+= -e 's|^\(Group[ ]\).*|\1${APACHE_GROUP}|g' | | 139 | SUBST_SED.confs+= -e 's|^\(Group[ ]\).*|\1${APACHE_GROUP}|g' |
142 | SUBST_SED.confs+= -e 's|^Listen \(.*\)|Listen 0.0.0.0:\1|g' | | 140 | SUBST_SED.confs+= -e 's|^Listen \(.*\)|Listen 0.0.0.0:\1|g' |
143 | | | 141 | |
144 | # abs_srcdir in config_vars.mk is used during install so needs to reference | | 142 | # abs_srcdir in config_vars.mk is used during install so needs to reference |
145 | # the work dir path, and by other packages such as ap2-fastcgi after install, | | 143 | # the work dir path, and by other packages such as ap2-fastcgi after install, |
146 | # so we fix after install to reference the installed path | | 144 | # so we fix after install to reference the installed path |
147 | SUBST_CLASSES+= abs_srcdir | | 145 | SUBST_CLASSES+= abs_srcdir |
148 | SUBST_STAGE.abs_srcdir= post-install | | 146 | SUBST_STAGE.abs_srcdir= post-install |
149 | SUBST_MESSAGE.abs_srcdir= Fixing abs_srcdir | | 147 | SUBST_MESSAGE.abs_srcdir= Fixing abs_srcdir |
150 | SUBST_FILES.abs_srcdir= ${DESTDIR}${PREFIX}/share/httpd/build/config_vars.mk | | 148 | SUBST_FILES.abs_srcdir= ${DESTDIR}${PREFIX}/share/httpd/build/config_vars.mk |
151 | SUBST_SED.abs_srcdir= -e 's|^\(abs_srcdir =\) .*|\1 ${PREFIX}/share/httpd|' | | 149 | SUBST_SED.abs_srcdir= -e 's|^\(abs_srcdir =\) .*|\1 ${PREFIX}/share/httpd|' |
152 | | | 150 | |