2012-04-22 21:08:03 +02:00
|
|
|
# $NetBSD: Makefile,v 1.80 2012/04/22 19:08:03 spz Exp $
|
2006-12-09 00:31:52 +01:00
|
|
|
|
Update "apache" package to version 2.2.22. Changes since 2.2.21:
- SECURITY: CVE-2011-3368 (cve.mitre.org)
Reject requests where the request-URI does not match the HTTP
specification, preventing unexpected expansion of target URLs in
some reverse proxy configurations. [Joe Orton]
- SECURITY: CVE-2011-3607 (cve.mitre.org)
Fix integer overflow in ap_pregsub() which, when the mod_setenvif module
is enabled, could allow local users to gain privileges via a .htaccess
file. [Stefan Fritsch, Greg Ames]
- SECURITY: CVE-2011-4317 (cve.mitre.org)
Resolve additional cases of URL rewriting with ProxyPassMatch or
RewriteRule, where particular request-URIs could result in undesired
backend network exposure in some configurations.
[Joe Orton]
- SECURITY: CVE-2012-0021 (cve.mitre.org)
mod_log_config: Fix segfault (crash) when the '%{cookiename}C' log format
string is in use and a client sends a nameless, valueless cookie, causing
a denial of service. The issue existed since version 2.2.17. Bug#52256.
[Rainer Canavan <rainer-apache 7val com>]
- SECURITY: CVE-2012-0031 (cve.mitre.org)
Fix scoreboard issue which could allow an unprivileged child process
could cause the parent to crash at shutdown rather than terminate
cleanly. [Joe Orton]
- SECURITY: CVE-2012-0053 (cve.mitre.org)
Fix an issue in error responses that could expose "httpOnly" cookies
when no custom ErrorDocument is specified for status code 400.
[Eric Covener]
- mod_proxy_ajp: Try to prevent a single long request from marking a worker
in error. [Jean-Frederic Clere]
- config: Update the default mod_ssl configuration: Disable SSLv2, only
allow >= 128bit ciphers, add commented example for speed optimized cipher
list, limit MSIE workaround to MSIE <= 5. [Kaspar Brand]
- core: Fix segfault in ap_send_interim_response(). Bug#52315.
[Stefan Fritsch]
- mod_log_config: Prevent segfault. Bug#50861. [Torsten Foertsch
<torsten.foertsch gmx.net>]
- mod_win32: Invert logic for env var UTF-8 fixing.
Now we exclude a list of vars which we know for sure they dont hold UTF-8
chars; all other vars will be fixed. This has the benefit that now also
all vars from 3rd-party modules will be fixed. Bug#13029 / 34985.
[Guenter Knauf]
- core: Fix hook sorting for Perl modules, a regression introduced in
2.2.21. Bug#45076. [Torsten Foertsch <torsten foertsch gmx net>]
- Fix a regression introduced by the CVE-2011-3192 byterange fix in 2.2.20:
A range of '0-' will now return 206 instead of 200. Bug#51878.
[Jim Jagielski]
- Example configuration: Fix entry for MaxRanges (use "unlimited" instead
of "0"). [Rainer Jung]
- mod_substitute: Fix buffer overrun. [Ruediger Pluem, Rainer Jung]
Please note that all the security fixes had been integrated into
"pkgsrc" as patches previously.
2012-02-01 20:53:21 +01:00
|
|
|
DISTNAME= httpd-2.2.22
|
2012-04-22 21:08:03 +02:00
|
|
|
PKGREVISION= 1
|
2011-09-12 19:18:46 +02:00
|
|
|
|
2008-09-17 17:39:06 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/httpd/apache/}
|
2006-12-09 00:31:52 +01:00
|
|
|
CATEGORIES= www
|
2008-09-17 17:39:06 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=httpd/} \
|
2009-11-11 23:28:51 +01:00
|
|
|
http://archive.apache.org/dist/httpd/ \
|
|
|
|
http://archive.eu.apache.org/dist/httpd/
|
2008-09-17 17:39:06 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2006-12-09 00:31:52 +01:00
|
|
|
|
2008-09-17 17:39:06 +02:00
|
|
|
MAINTAINER= tron@NetBSD.org
|
2006-12-09 00:31:52 +01:00
|
|
|
HOMEPAGE= http://httpd.apache.org/
|
2009-05-22 12:41:24 +02:00
|
|
|
COMMENT= Apache HTTP (Web) server, version 2.2
|
|
|
|
LICENSE= apache-2.0
|
2006-12-09 00:31:52 +01:00
|
|
|
|
2008-08-22 06:36:00 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2007-09-08 00:12:10 +02:00
|
|
|
BUILD_DEFS+= IPV6_READY
|
2006-12-09 00:31:52 +01:00
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= pax perl perl:run pkg-config
|
2006-12-09 00:31:52 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-layout=NetBSD
|
|
|
|
CONFIGURE_ARGS+= --with-port=80
|
|
|
|
CONFIGURE_ARGS+= --enable-so
|
|
|
|
CONFIGURE_ENV+= perlbin=${PERL5:Q}
|
2007-09-08 20:48:18 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_RSYNC=/nonexistent
|
2010-11-01 18:28:49 +01:00
|
|
|
CONFIGURE_ARGS+= CFLAGS=${APACHE_CUSTOM_CFLAGS:M*:Q}
|
2009-02-05 17:39:18 +01:00
|
|
|
|
2010-11-01 18:28:49 +01:00
|
|
|
BUILD_DEFS+= APACHE_CUSTOM_CFLAGS
|
2006-12-09 00:31:52 +01:00
|
|
|
|
|
|
|
# Apache Portable Runtime library configure options
|
|
|
|
CONFIGURE_ARGS+= --with-apr=${BUILDLINK_PREFIX.apr}
|
2007-01-24 20:46:45 +01:00
|
|
|
CONFIGURE_ARGS+= --with-apr-util=${BUILDLINK_PREFIX.apr-util}
|
2006-12-09 00:31:52 +01:00
|
|
|
|
2008-06-18 23:38:00 +02:00
|
|
|
CHECK_INTERPRETER_SKIP+= lib/httpd/httpd.exp
|
2006-12-09 00:31:52 +01:00
|
|
|
CHECK_PORTABILITY_SKIP+= srclib/pcre/* \
|
|
|
|
srclib/apr-util/* \
|
|
|
|
srclib/apr/*
|
|
|
|
|
|
|
|
# the following must be set before bsd.prefs.mk in order to make += work
|
|
|
|
# in mk.conf; however, it isn't expanded until referenced, so we can
|
|
|
|
# define DFLT_APACHE_MODULES later
|
|
|
|
#
|
|
|
|
APACHE_MODULES?= ${DFLT_APACHE_MODULES}
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2007-01-24 20:46:45 +01:00
|
|
|
.include "../../devel/apr/buildlink3.mk"
|
|
|
|
.include "../../devel/apr-util/buildlink3.mk"
|
2006-12-09 00:31:52 +01:00
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
2010-07-24 12:45:38 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2006-12-09 00:31:52 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --disable-include
|
|
|
|
CONFIGURE_ARGS+= --disable-log-config
|
|
|
|
CONFIGURE_ARGS+= --disable-env
|
|
|
|
CONFIGURE_ARGS+= --disable-mime
|
|
|
|
CONFIGURE_ARGS+= --disable-setenvif
|
|
|
|
CONFIGURE_ARGS+= --disable-status
|
|
|
|
CONFIGURE_ARGS+= --disable-autoindex
|
|
|
|
CONFIGURE_ARGS+= --disable-asis
|
|
|
|
CONFIGURE_ARGS+= --disable-cgi
|
|
|
|
CONFIGURE_ARGS+= --disable-negotiation
|
|
|
|
CONFIGURE_ARGS+= --disable-dir
|
|
|
|
CONFIGURE_ARGS+= --disable-actions
|
|
|
|
CONFIGURE_ARGS+= --disable-userdir
|
|
|
|
CONFIGURE_ARGS+= --disable-alias
|
|
|
|
|
|
|
|
DFLT_APACHE_MODULES= all
|
|
|
|
DFLT_APACHE_MODULES+= proxy proxy_connect proxy_ftp proxy_http
|
|
|
|
DFLT_APACHE_MODULES+= ssl deflate access auth authn_alias
|
|
|
|
DFLT_APACHE_MODULES+= include log_config env mime setenvif
|
|
|
|
DFLT_APACHE_MODULES+= status autoindex asis cgi negotiation dir imap
|
|
|
|
DFLT_APACHE_MODULES+= actions userdir alias isapi file_cache
|
|
|
|
DFLT_APACHE_MODULES+= cache disk_cache mem_cache bucketeer echo
|
|
|
|
DFLT_APACHE_MODULES+= example case_filter case_filter_in
|
|
|
|
DFLT_APACHE_MODULES+= charset_lite
|
2008-09-16 03:47:06 +02:00
|
|
|
DFLT_APACHE_MODULES+= cgid dav_lock proxy_ajp proxy_balancer
|
2006-12-09 00:31:52 +01:00
|
|
|
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
|
|
|
|
2009-04-24 13:21:16 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
2006-12-09 00:31:52 +01:00
|
|
|
# LDAP support
|
2009-04-14 20:26:34 +02:00
|
|
|
PLIST_VARS+= ldap
|
2007-01-24 20:46:45 +01:00
|
|
|
.if !empty(PKG_BUILD_OPTIONS.apr-util:Mldap)
|
2007-01-04 14:22:06 +01:00
|
|
|
DFLT_APACHE_MODULES+= ldap authnz_ldap
|
2009-04-24 13:21:16 +02:00
|
|
|
. if !empty(PKG_OPTIONS:Mapache-shared-modules)
|
2009-04-14 20:26:34 +02:00
|
|
|
PLIST.ldap= yes
|
2009-04-24 13:21:16 +02:00
|
|
|
. endif
|
2006-12-09 00:31:52 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
APACHE_USER?= www
|
|
|
|
APACHE_GROUP?= www
|
|
|
|
PKG_GROUPS= ${APACHE_GROUP}
|
|
|
|
PKG_USERS= ${APACHE_USER}:${APACHE_GROUP}
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= APACHE_GROUP
|
|
|
|
PKG_USERS_VARS+= APACHE_USER
|
2006-12-09 00:31:52 +01:00
|
|
|
|
|
|
|
PKG_SYSCONFVAR= apache
|
|
|
|
PKG_SYSCONFSUBDIR?= httpd
|
|
|
|
EGDIR= ${PREFIX}/share/examples/httpd
|
|
|
|
SBINDIR= ${PREFIX}/sbin
|
|
|
|
CONF_FILES+= ${EGDIR}/httpd.conf ${PKG_SYSCONFDIR}/httpd.conf
|
|
|
|
.for f in autoindex dav default info languages manual mpm \
|
|
|
|
multilang-errordoc ssl userdir vhosts
|
|
|
|
CONF_FILES+= ${EGDIR}/extra/httpd-${f}.conf \
|
|
|
|
${PKG_SYSCONFDIR}/httpd-${f}.conf
|
|
|
|
.endfor
|
|
|
|
CONF_FILES+= ${EGDIR}/magic ${PKG_SYSCONFDIR}/magic
|
|
|
|
CONF_FILES+= ${EGDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types
|
|
|
|
RCD_SCRIPTS= apache
|
|
|
|
|
|
|
|
REQD_DIRS= ${PREFIX}/share/httpd
|
|
|
|
REQD_DIRS+= ${PREFIX}/share/httpd/htdocs
|
2010-11-01 18:28:49 +01:00
|
|
|
OWN_DIRS= ${VARBASE}/log/httpd
|
2006-12-09 00:31:52 +01:00
|
|
|
OWN_DIRS+= ${VARBASE}/db/httpd
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/db/httpd/proxy ${APACHE_USER} ${APACHE_GROUP} 0755
|
|
|
|
FIX_PERMS= apachectl apxs dbmmanage envvars-std mkcert
|
|
|
|
FIX_MAN_PERMS= man1/htdbm.1 man1/htpasswd.1 man1/htdigest.1
|
|
|
|
FIX_MAN_PERMS+= man1/dbmmanage.1 man8/httpd.8 man8/suexec.8
|
Update "apache" package to version 2.2.22. Changes since 2.2.21:
- SECURITY: CVE-2011-3368 (cve.mitre.org)
Reject requests where the request-URI does not match the HTTP
specification, preventing unexpected expansion of target URLs in
some reverse proxy configurations. [Joe Orton]
- SECURITY: CVE-2011-3607 (cve.mitre.org)
Fix integer overflow in ap_pregsub() which, when the mod_setenvif module
is enabled, could allow local users to gain privileges via a .htaccess
file. [Stefan Fritsch, Greg Ames]
- SECURITY: CVE-2011-4317 (cve.mitre.org)
Resolve additional cases of URL rewriting with ProxyPassMatch or
RewriteRule, where particular request-URIs could result in undesired
backend network exposure in some configurations.
[Joe Orton]
- SECURITY: CVE-2012-0021 (cve.mitre.org)
mod_log_config: Fix segfault (crash) when the '%{cookiename}C' log format
string is in use and a client sends a nameless, valueless cookie, causing
a denial of service. The issue existed since version 2.2.17. Bug#52256.
[Rainer Canavan <rainer-apache 7val com>]
- SECURITY: CVE-2012-0031 (cve.mitre.org)
Fix scoreboard issue which could allow an unprivileged child process
could cause the parent to crash at shutdown rather than terminate
cleanly. [Joe Orton]
- SECURITY: CVE-2012-0053 (cve.mitre.org)
Fix an issue in error responses that could expose "httpOnly" cookies
when no custom ErrorDocument is specified for status code 400.
[Eric Covener]
- mod_proxy_ajp: Try to prevent a single long request from marking a worker
in error. [Jean-Frederic Clere]
- config: Update the default mod_ssl configuration: Disable SSLv2, only
allow >= 128bit ciphers, add commented example for speed optimized cipher
list, limit MSIE workaround to MSIE <= 5. [Kaspar Brand]
- core: Fix segfault in ap_send_interim_response(). Bug#52315.
[Stefan Fritsch]
- mod_log_config: Prevent segfault. Bug#50861. [Torsten Foertsch
<torsten.foertsch gmx.net>]
- mod_win32: Invert logic for env var UTF-8 fixing.
Now we exclude a list of vars which we know for sure they dont hold UTF-8
chars; all other vars will be fixed. This has the benefit that now also
all vars from 3rd-party modules will be fixed. Bug#13029 / 34985.
[Guenter Knauf]
- core: Fix hook sorting for Perl modules, a regression introduced in
2.2.21. Bug#45076. [Torsten Foertsch <torsten foertsch gmx net>]
- Fix a regression introduced by the CVE-2011-3192 byterange fix in 2.2.20:
A range of '0-' will now return 206 instead of 200. Bug#51878.
[Jim Jagielski]
- Example configuration: Fix entry for MaxRanges (use "unlimited" instead
of "0"). [Rainer Jung]
- mod_substitute: Fix buffer overrun. [Ruediger Pluem, Rainer Jung]
Please note that all the security fixes had been integrated into
"pkgsrc" as patches previously.
2012-02-01 20:53:21 +01:00
|
|
|
FIX_MAN_PERMS+= man8/rotatelogs.8 man1/logresolve.1 man1/apxs.1
|
|
|
|
FIX_MAN_PERMS+= man8/apachectl.8 man1/ab.1 man1/httxt2dbm.1
|
2006-12-09 00:31:52 +01:00
|
|
|
|
|
|
|
# Fix paths in the apache manpages.
|
|
|
|
SUBST_CLASSES+= man
|
|
|
|
SUBST_STAGE.man= post-patch
|
|
|
|
SUBST_FILES.man= docs/man/*.1 docs/man/*.8
|
|
|
|
SUBST_SED.man= -e 's,/usr/local/etc/apache,${PKG_SYSCONFDIR},'
|
|
|
|
SUBST_SED.man+= -e 's,/path/to/apache/etc,${PKG_SYSCONFDIR},'
|
|
|
|
SUBST_SED.man+= -e 's,/usr/local/apache2,${PREFIX}/share/httpd/htdocs,'
|
|
|
|
SUBST_SED.man+= -e 's,/usr/web,${PREFIX}/share/httpd/htdocs,'
|
|
|
|
|
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_STAGE.paths= pre-configure
|
|
|
|
SUBST_FILES.paths= config.layout Makefile.in support/apxs.in
|
|
|
|
SUBST_SED.paths= -e "s|@PREFIX@|${PREFIX}|g"
|
|
|
|
SUBST_SED.paths+= -e "s|@VARBASE@|${VARBASE}|g"
|
|
|
|
SUBST_SED.paths+= -e "s|@SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
|
|
|
|
SUBST_SED.paths+= -e "s|@PAX@|${PAX}|g"
|
|
|
|
SUBST_SED.paths+= -e "s|@LOCALBASE@|${LOCALBASE}|g"
|
|
|
|
SUBST_MESSAGE.paths= Fixing paths.
|
|
|
|
|
|
|
|
SUBST_CLASSES+= apr-lt
|
|
|
|
SUBST_STAGE.apr-lt= post-configure
|
|
|
|
SUBST_FILES.apr-lt= build/config_vars.mk
|
|
|
|
SUBST_SED.apr-lt= -e 's|^\(LIBTOOL =\) [^ ]*|\1 $$(SHELL) $$(top_builddir)/build/libtool|g'
|
|
|
|
SUBST_MESSAGE.apr-lt= Fixing libtool references.
|
|
|
|
|
|
|
|
SUBST_CLASSES+= confs
|
|
|
|
SUBST_STAGE.confs= post-configure
|
|
|
|
SUBST_MESSAGE.confs= Fixing configuration files.
|
|
|
|
SUBST_FILES.confs= docs/conf/httpd.conf
|
|
|
|
SUBST_FILES.confs+= docs/conf/extra/httpd-ssl.conf
|
|
|
|
SUBST_SED.confs= -e "s|${EGDIR}|${PKG_SYSCONFDIR}|g"
|
|
|
|
SUBST_SED.confs+= -e "s|${PREFIX}/htdocs|${PREFIX}/share/httpd/htdocs|g"
|
|
|
|
SUBST_SED.confs+= -e "s|${PREFIX}/conf|${PKG_SYSCONFDIR}|g"
|
|
|
|
SUBST_SED.confs+= -e "s|logs/|${VARBASE}/log/httpd/|g"
|
|
|
|
SUBST_SED.confs+= -e 's|/var/log/httpd/foo\.log|logs/foo.log/|g'
|
|
|
|
SUBST_SED.confs+= -e 's|^\(User[ ]\).*|\1${APACHE_USER}|g'
|
|
|
|
SUBST_SED.confs+= -e 's|^\(Group[ ]\).*|\1${APACHE_GROUP}|g'
|
2011-05-12 09:04:02 +02:00
|
|
|
SUBST_SED.confs+= -e 's|^Listen \(.*\)|Listen 0.0.0.0:\1|g'
|
2006-12-09 00:31:52 +01:00
|
|
|
|
2007-01-04 14:42:39 +01:00
|
|
|
# abs_srcdir in config_vars.mk is used during install so needs to reference
|
|
|
|
# the work dir path, and by other packages such as ap2-fastcgi after install,
|
|
|
|
# so we fix after install to reference the installed path
|
|
|
|
SUBST_CLASSES+= abs_srcdir
|
|
|
|
SUBST_STAGE.abs_srcdir= post-install
|
2008-08-22 06:36:00 +02:00
|
|
|
SUBST_FILES.abs_srcdir= ${DESTDIR}${PREFIX}/share/httpd/build/config_vars.mk
|
2007-01-04 14:42:39 +01:00
|
|
|
SUBST_SED.abs_srcdir= -e 's|^\(abs_srcdir =\) .*|\1 ${PREFIX}/share/httpd|'
|
|
|
|
SUBST_MESSAGE.abs_srcdir= Fixing abs_srcdir
|
|
|
|
|
2007-01-23 16:45:43 +01:00
|
|
|
REPLACE_PERL= docs/cgi-examples/printenv
|
|
|
|
|
2006-12-09 00:31:52 +01:00
|
|
|
# Add dependencies for the modules that will be built. For each module
|
|
|
|
# ap_mod listed in ${APACHE_MODULES}, _AP_DEPENDS.ap_mod is a whitespace
|
|
|
|
# separated list of dependencies or buildlink3.mk files needed to build
|
|
|
|
# ap_mod, and _AP_CFG_ARGS.ap_mod is a whitespace separated list of
|
|
|
|
# configure script options for ap_mod.
|
|
|
|
#
|
|
|
|
AP_DEPENDS.ssl= ../../security/openssl/buildlink3.mk
|
|
|
|
AP_DEPENDS.deflate= ../../devel/zlib/buildlink3.mk
|
|
|
|
|
|
|
|
AP_CFG_ARGS.ssl= --with-ssl=${BUILDLINK_PREFIX.openssl}
|
|
|
|
AP_CFG_ARGS.deflate= --with-z=${BUILDLINK_PREFIX.zlib}
|
|
|
|
|
2008-09-16 03:47:06 +02:00
|
|
|
#.if ${APACHE_MODULES} == "all-shared"
|
|
|
|
.if !empty(PKG_OPTIONS:Mapache-shared-modules)
|
2010-11-01 18:28:49 +01:00
|
|
|
. include "${AP_DEPENDS.ssl}"
|
|
|
|
. include "${AP_DEPENDS.deflate}"
|
2008-08-26 22:42:38 +02:00
|
|
|
CONFIGURE_ARGS+= ${AP_CFG_ARGS.ssl} ${AP_CFG_ARGS.deflate}
|
|
|
|
.else
|
2010-11-01 18:28:49 +01:00
|
|
|
. for ap_mod in ${APACHE_MODULES}
|
|
|
|
. if defined(AP_DEPENDS.${ap_mod}) && !empty(AP_DEPENDS.${ap_mod})
|
|
|
|
. for ap_depend in ${AP_DEPENDS.${ap_mod}}
|
|
|
|
. if exists(${ap_depend})
|
|
|
|
. include "${ap_depend}"
|
|
|
|
. else
|
2006-12-09 00:31:52 +01:00
|
|
|
DEPENDS+= ${ap_depend}
|
2010-11-01 18:28:49 +01:00
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
. endif
|
|
|
|
. if defined(AP_CFG_ARGS.${ap_mod}) && !empty(AP_CFG_ARGS.${ap_mod})
|
2006-12-09 00:31:52 +01:00
|
|
|
CONFIGURE_ARGS+= ${AP_CFG_ARGS.${ap_mod}}
|
2010-11-01 18:28:49 +01:00
|
|
|
. endif
|
|
|
|
. endfor
|
2008-08-26 22:42:38 +02:00
|
|
|
.endif
|
2006-12-09 00:31:52 +01:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${TOUCH} ${WRKSRC}/build/libtool
|
2007-05-30 20:06:38 +02:00
|
|
|
${ECHO} "" >> ${WRKSRC}/docs/conf/extra/httpd-languages.conf.in
|
2006-12-09 00:31:52 +01:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
${SED} "s#@PKG_SYSCONFDIR@#${PKG_SYSCONFDIR}#g" \
|
|
|
|
< ${FILESDIR}/mkcert.sh > ${WRKDIR}/mkcert
|
|
|
|
|
2008-08-22 06:36:00 +02:00
|
|
|
INSTALL_TARGET= install-conf install
|
|
|
|
INSTALL_MAKE_FLAGS+= sysconfdir="${EGDIR}"
|
2006-12-09 00:31:52 +01:00
|
|
|
|
|
|
|
post-install:
|
2008-08-22 06:36:00 +02:00
|
|
|
${LN} -sf ${LOCALBASE}/libexec/apr/libtool ${DESTDIR}${PREFIX}/share/httpd/build
|
|
|
|
${LN} -sf ${SBINDIR}/envvars-std ${DESTDIR}${SBINDIR}/envvars
|
2006-12-09 00:31:52 +01:00
|
|
|
|
2008-08-22 06:36:00 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/mkcert ${DESTDIR}${PREFIX}/sbin
|
2006-12-09 00:31:52 +01:00
|
|
|
|
|
|
|
for file in ${FIX_PERMS}; do \
|
2008-08-22 06:36:00 +02:00
|
|
|
${CHOWN} ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/sbin/$$file && \
|
|
|
|
${CHMOD} ${BINMODE} ${DESTDIR}${PREFIX}/sbin/$$file; \
|
2006-12-09 00:31:52 +01:00
|
|
|
done
|
|
|
|
|
2011-09-14 19:51:51 +02:00
|
|
|
${CHOWN} -h -R ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/share/httpd
|
|
|
|
${CHOWN} -h -R ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/include/httpd
|
|
|
|
${CHOWN} -h -R ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/lib/httpd
|
2008-08-22 06:36:00 +02:00
|
|
|
${CHOWN} ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/libexec/cgi-bin/test-cgi
|
|
|
|
${CHOWN} ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/libexec/cgi-bin/printenv
|
2006-12-09 00:31:52 +01:00
|
|
|
|
|
|
|
for file in ${FIX_MAN_PERMS}; do \
|
2008-08-22 06:36:00 +02:00
|
|
|
${CHOWN} ${MANOWN}:${MANGRP} ${DESTDIR}${PREFIX}/${PKGMANDIR}/$$file; \
|
2006-12-09 00:31:52 +01:00
|
|
|
done
|
|
|
|
|
2008-08-22 06:36:00 +02:00
|
|
|
${CHMOD} -x ${DESTDIR}${PREFIX}/sbin/envvars-std
|
|
|
|
${TEST} ! -f ${DESTDIR}${PREFIX}/sbin/suexec || ${CHMOD} -w ${DESTDIR}${PREFIX}/sbin/suexec
|
2007-09-08 13:02:07 +02:00
|
|
|
|
2010-11-24 13:20:39 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2006-12-09 00:31:52 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|