2001-12-02 07:56:38 +01:00
|
|
|
# $NetBSD: Makefile,v 1.85 2001/12/02 06:56:45 jlam Exp $
|
1998-03-05 09:02:22 +01:00
|
|
|
#
|
1998-12-03 18:23:51 +01:00
|
|
|
# This pkg does not compile in mod_ssl, only the `mod_ssl EAPI' (a set of
|
|
|
|
# code hooks that allow mod_ssl to be compiled separately later, if desired).
|
|
|
|
|
Update apache to 1.3.22. Relevant changes from version 1.3.20 include
using the pkgsrc expat library instead of the builtin one (this is to
avoid conflicts between expat libraries when an expat XML parser is loaded
by either mod_perl or mod_php), and:
Security vulnerabilities
* A vulnerability was found in the split-logfile support program. A
request with a specially crafted Host: header could allow any file
with a .log extension on the system to be written to.
* A vulnerability was found when Multiviews are used to negotiate
the directory index. In some configurations, requesting a URI with
a QUERY_STRING of M=D could return a directory listing rather than
the expected index page.
General bug fixes and improvements
* Bug fixes
* The supplied icons are now also distributed in PNG format
* New directives have been added to the mod_usertrack module, The
first, CookieDomain, can be used to customise the Domain
attribute.
* A new directive, AcceptMutex, allows run-time configuration of the
mutex type used for accept serialization.
* mod_auth has been enhanced to allow access to a document to be
controlled based on the owner of the file being served.
* A new directive, AcceptFilter, has been added to control BSD
accept filters at run-time. The functionality can postpone the
requirement for a child process to handle a new connection until
an HTTP request has arrived, therefore increasing the number of
connections that a given number of child processes can handle
2001-10-17 21:17:00 +02:00
|
|
|
DISTNAME= apache_1.3.22
|
|
|
|
PKGNAME= apache-1.3.22
|
1998-12-03 18:23:51 +01:00
|
|
|
CATEGORIES= www
|
2001-04-14 21:50:04 +02:00
|
|
|
MASTER_SITES= http://httpd.apache.org/dist/httpd/ \
|
|
|
|
http://www.apache.de/dist/httpd/ \
|
1998-12-03 18:23:51 +01:00
|
|
|
http://www.netbsd.org/images/logos/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
sitedrivenby.gif
|
1998-03-05 09:02:22 +01:00
|
|
|
|
2001-04-29 23:21:13 +02:00
|
|
|
MASTER_SITES+= http://www.modssl.org/source/ \
|
|
|
|
ftp://ftp.uni-trier.de/pub/unix/security/mod_ssl/source/
|
|
|
|
DISTFILES+= ${MODSSL_DISTNAME}${EXTRACT_SUFX}
|
Update apache to 1.3.22. Relevant changes from version 1.3.20 include
using the pkgsrc expat library instead of the builtin one (this is to
avoid conflicts between expat libraries when an expat XML parser is loaded
by either mod_perl or mod_php), and:
Security vulnerabilities
* A vulnerability was found in the split-logfile support program. A
request with a specially crafted Host: header could allow any file
with a .log extension on the system to be written to.
* A vulnerability was found when Multiviews are used to negotiate
the directory index. In some configurations, requesting a URI with
a QUERY_STRING of M=D could return a directory listing rather than
the expected index page.
General bug fixes and improvements
* Bug fixes
* The supplied icons are now also distributed in PNG format
* New directives have been added to the mod_usertrack module, The
first, CookieDomain, can be used to customise the Domain
attribute.
* A new directive, AcceptMutex, allows run-time configuration of the
mutex type used for accept serialization.
* mod_auth has been enhanced to allow access to a document to be
controlled based on the owner of the file being served.
* A new directive, AcceptFilter, has been added to control BSD
accept filters at run-time. The functionality can postpone the
requirement for a child process to handle a new connection until
an HTTP request has arrived, therefore increasing the number of
connections that a given number of child processes can handle
2001-10-17 21:17:00 +02:00
|
|
|
MODSSL_DISTNAME= mod_ssl-2.8.5-1.3.22
|
2001-04-29 23:21:13 +02:00
|
|
|
MODSSL_SRC= ${WRKDIR}/${MODSSL_DISTNAME}
|
|
|
|
|
2000-09-12 16:17:31 +02:00
|
|
|
MAINTAINER= jlam@netbsd.org
|
2001-02-02 17:39:56 +01:00
|
|
|
HOMEPAGE= http://httpd.apache.org/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= HTTP (Web) server
|
1998-03-05 09:02:22 +01:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS= apache-*modssl-[0-9]* apache6-[0-9]*
|
1998-03-05 09:02:22 +01:00
|
|
|
|
1998-12-03 18:23:51 +01:00
|
|
|
EXTRACT_ONLY= ${DISTFILES:N*.gif}
|
Update apache to 1.3.22. Relevant changes from version 1.3.20 include
using the pkgsrc expat library instead of the builtin one (this is to
avoid conflicts between expat libraries when an expat XML parser is loaded
by either mod_perl or mod_php), and:
Security vulnerabilities
* A vulnerability was found in the split-logfile support program. A
request with a specially crafted Host: header could allow any file
with a .log extension on the system to be written to.
* A vulnerability was found when Multiviews are used to negotiate
the directory index. In some configurations, requesting a URI with
a QUERY_STRING of M=D could return a directory listing rather than
the expected index page.
General bug fixes and improvements
* Bug fixes
* The supplied icons are now also distributed in PNG format
* New directives have been added to the mod_usertrack module, The
first, CookieDomain, can be used to customise the Domain
attribute.
* A new directive, AcceptMutex, allows run-time configuration of the
mutex type used for accept serialization.
* mod_auth has been enhanced to allow access to a document to be
controlled based on the owner of the file being served.
* A new directive, AcceptFilter, has been added to control BSD
accept filters at run-time. The functionality can postpone the
requirement for a child process to handle a new connection until
an HTTP request has arrived, therefore increasing the number of
connections that a given number of child processes can handle
2001-10-17 21:17:00 +02:00
|
|
|
USE_BUILDLINK_ONLY= YES
|
|
|
|
HAS_CONFIGURE= YES
|
2001-03-13 21:52:26 +01:00
|
|
|
CONFIGURE_ARGS+= --with-layout="${WRKDIR}/config.layout:pkgsrc"
|
|
|
|
CONFIGURE_ARGS+= --enable-module=most \
|
2001-02-02 17:39:56 +01:00
|
|
|
--enable-module=auth_db \
|
2000-09-06 08:17:55 +02:00
|
|
|
--disable-module=auth_dbm
|
2001-03-13 21:52:26 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-rule=EAPI \
|
|
|
|
--disable-module=ssl
|
2000-09-06 08:17:55 +02:00
|
|
|
CONFIGURE_ARGS+= --with-perl=${PERL5}
|
2001-02-02 17:39:56 +01:00
|
|
|
CONFIGURE_ARGS+= --with-port=80
|
2001-05-18 08:01:35 +02:00
|
|
|
CONFIGURE_ENV+= OPTIM="${APACHE_CUSTOM_CFLAGS}"
|
1998-10-03 23:01:14 +02:00
|
|
|
|
1999-05-11 18:04:03 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2001-11-25 19:59:45 +01:00
|
|
|
PKG_SYSCONFSUBDIR?= httpd
|
2001-04-14 21:42:53 +02:00
|
|
|
|
1999-05-11 18:04:03 +02:00
|
|
|
.if defined(APACHE_SUEXEC) && ${APACHE_SUEXEC} == YES
|
2000-12-11 01:03:07 +01:00
|
|
|
APACHE_USER?= www
|
2001-05-08 19:28:08 +02:00
|
|
|
APACHE_SUEXEC_DOCROOT?= ${LOCALBASE}/share/httpd/htdocs
|
2000-09-06 08:17:55 +02:00
|
|
|
SUEXEC_PATH= /bin:/usr/bin:${PREFIX}/bin:/usr/local/bin
|
2001-02-02 17:39:56 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-suexec \
|
|
|
|
--suexec-caller=${APACHE_USER} \
|
2001-05-08 19:28:08 +02:00
|
|
|
--suexec-safepath='${SUEXEC_PATH}' \
|
|
|
|
--suexec-docroot=${APACHE_SUEXEC_DOCROOT}
|
2000-09-06 08:17:55 +02:00
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST.suexec
|
2001-05-08 19:28:08 +02:00
|
|
|
BUILD_DEFS+= APACHE_USER APACHE_SUEXEC_DOCROOT
|
1998-10-03 23:01:14 +02:00
|
|
|
.endif
|
|
|
|
|
Update apache to 1.3.20. Relevant changes from version 1.3.19 include:
NetBSD Packages Collection (pkgsrc) changes:
* Modify French page in same way as the English page. Translation
provided by Remi Zara <remi_zara@mac.com> in private e-mail.
* Use EAPI patches from mod_ssl-2.8.4-1.3.20.
* Unify repeated SED replacement info for config.layout, apache.sh,
DEINSTALL, and INSTALL into one location, FILES_SUBST.
* Modify patch to apxs to use 0:0 instead of root:wheel, as some
non-NetBSD systems don't have a wheel group.
The general bug fixes:
* Eliminate a potential segfault if an invalid floating point value
is passed to the ap_snprintf() function, on platforms supporting
isnan() and isinf().
* Fix a possible segfault at startup in the detection of a default
ServerName or IP string when no ServerName was specified.
* Fixed mod_proxy to retain empty headers, as allowed by RFC2068.
* Properly resolve the location of ndbm on Linux and some glibc2
builds, where ndbm.h is in the nonstandard db1/ subdir.
The main new features include:
* Enhanced rotatelogs to allow a UTC offset to be specified, and
the format logfile names with human-readable date/time stamps.
* Added the NOESCAPE (NS) flag to RewriteRule, to disable *all*
normal URI escaping. Note incautious use can give unexpected
results or introduce security risks.
* Added the '\' character to RewriteRule to allow escaping of
special characters. Allows embedding of both the '$' and '%'
characters in the results, so 'foo\$1' translates to 'foo$1'
rather than 'foo\<value of $1>'.
* Added the -V flag to suexec, to display the compile-time settings
with which it was built. (Only valid for root or the HTTPD_USER
username.)
* Introduced EBCDIC conversion configuration options, controlling the
conversion based on MIME type or file suffix.
2001-06-09 08:36:42 +02:00
|
|
|
# Note that there is NO static compile module hook here. This is intentional.
|
|
|
|
# Under Apache 1.3, modules can be compiled to link dynamically to the server
|
|
|
|
# using the "apxs" program. See apxs(8).
|
|
|
|
|
2000-09-06 08:17:55 +02:00
|
|
|
.if !defined(NOPIC)
|
2000-09-12 16:17:31 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-module=so # requires dlopen()
|
|
|
|
CONFIGURE_ARGS+= --enable-shared=proxy
|
2001-03-13 21:52:26 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-shared=define # from mod_ssl pkg.addon
|
2000-09-06 08:17:55 +02:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.shared
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-module=proxy
|
2001-03-13 21:52:26 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-shared=define
|
2000-09-06 08:17:55 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
|
|
|
|
2001-05-18 08:01:35 +02:00
|
|
|
APACHE_CUSTOM_CFLAGS?= # empty
|
|
|
|
|
1998-10-03 23:01:14 +02:00
|
|
|
.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
|
2001-05-18 08:01:35 +02:00
|
|
|
APACHE_CUSTOM_CFLAGS+= -DBUFFERED_LOGS
|
|
|
|
APACHE_CUSTOM_CFLAGS+= -O6 -fomit-frame-pointer -fexpensive-optimizations
|
1998-10-03 23:01:14 +02:00
|
|
|
.endif
|
1998-03-05 09:02:22 +01:00
|
|
|
|
2001-10-20 19:46:50 +02:00
|
|
|
# On NetBSD ELF platforms, we need to link libgcc.a whole-archive so that
|
|
|
|
# certain symbols from the C++ implementation (__get_eh_context, etc.)
|
|
|
|
# referenced by DSOs written in C++ will resolve correctly.
|
2001-10-16 06:11:06 +02:00
|
|
|
#
|
2001-10-20 19:46:50 +02:00
|
|
|
.if (${OPSYS} == "NetBSD") && (${OBJECT_FMT} == "ELF")
|
2001-10-16 06:11:06 +02:00
|
|
|
LINK_LIBGCC_LDFLAGS= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive
|
|
|
|
MAKE_ENV+= LINK_LIBGCC_LDFLAGS="${LINK_LIBGCC_LDFLAGS}"
|
|
|
|
.endif
|
|
|
|
|
2000-02-22 18:38:16 +01:00
|
|
|
.if (${OPSYS} == "SunOS")
|
Update apache to 1.3.22. Relevant changes from version 1.3.20 include
using the pkgsrc expat library instead of the builtin one (this is to
avoid conflicts between expat libraries when an expat XML parser is loaded
by either mod_perl or mod_php), and:
Security vulnerabilities
* A vulnerability was found in the split-logfile support program. A
request with a specially crafted Host: header could allow any file
with a .log extension on the system to be written to.
* A vulnerability was found when Multiviews are used to negotiate
the directory index. In some configurations, requesting a URI with
a QUERY_STRING of M=D could return a directory listing rather than
the expected index page.
General bug fixes and improvements
* Bug fixes
* The supplied icons are now also distributed in PNG format
* New directives have been added to the mod_usertrack module, The
first, CookieDomain, can be used to customise the Domain
attribute.
* A new directive, AcceptMutex, allows run-time configuration of the
mutex type used for accept serialization.
* mod_auth has been enhanced to allow access to a document to be
controlled based on the owner of the file being served.
* A new directive, AcceptFilter, has been added to control BSD
accept filters at run-time. The functionality can postpone the
requirement for a child process to handle a new connection until
an HTTP request has arrived, therefore increasing the number of
connections that a given number of child processes can handle
2001-10-17 21:17:00 +02:00
|
|
|
LDFLAGS+= -Wl,-R/usr/ucblib -L/usr/ucblib
|
|
|
|
CONFIGURE_ENV+= INCLUDES="-I${BUILDLINK_DIR}/include/db2"
|
2000-02-22 18:38:16 +01:00
|
|
|
CONFIGURE_ENV+= LIBS="-ldbm -ldb2"
|
Update apache to 1.3.22. Relevant changes from version 1.3.20 include
using the pkgsrc expat library instead of the builtin one (this is to
avoid conflicts between expat libraries when an expat XML parser is loaded
by either mod_perl or mod_php), and:
Security vulnerabilities
* A vulnerability was found in the split-logfile support program. A
request with a specially crafted Host: header could allow any file
with a .log extension on the system to be written to.
* A vulnerability was found when Multiviews are used to negotiate
the directory index. In some configurations, requesting a URI with
a QUERY_STRING of M=D could return a directory listing rather than
the expected index page.
General bug fixes and improvements
* Bug fixes
* The supplied icons are now also distributed in PNG format
* New directives have been added to the mod_usertrack module, The
first, CookieDomain, can be used to customise the Domain
attribute.
* A new directive, AcceptMutex, allows run-time configuration of the
mutex type used for accept serialization.
* mod_auth has been enhanced to allow access to a document to be
controlled based on the owner of the file being served.
* A new directive, AcceptFilter, has been added to control BSD
accept filters at run-time. The functionality can postpone the
requirement for a child process to handle a new connection until
an HTTP request has arrived, therefore increasing the number of
connections that a given number of child processes can handle
2001-10-17 21:17:00 +02:00
|
|
|
BUILDLINK_DEPENDS.db= db>=2.7.7
|
|
|
|
.include "../../databases/db/buildlink.mk"
|
2000-02-22 18:38:16 +01:00
|
|
|
.endif
|
|
|
|
|
2001-05-18 08:01:35 +02:00
|
|
|
BUILD_DEFS+= APACHE_CUSTOM_CFLAGS
|
|
|
|
BUILD_DEFS+= APACHE_PERF_TUNING
|
|
|
|
BUILD_DEFS+= APACHE_SUEXEC
|
1999-08-18 10:28:09 +02:00
|
|
|
|
2001-11-19 17:23:08 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/httpd
|
2000-12-22 20:41:52 +01:00
|
|
|
|
2001-11-25 19:59:45 +01:00
|
|
|
CONF_FILES= ${EGDIR}/httpd.conf.default ${PKG_SYSCONFDIR}/httpd.conf
|
|
|
|
SUPPORT_FILES= ${EGDIR}/magic.default ${PKG_SYSCONFDIR}/magic
|
|
|
|
SUPPORT_FILES+= ${EGDIR}/mime.types.default ${PKG_SYSCONFDIR}/mime.types
|
2001-11-21 16:44:22 +01:00
|
|
|
RCD_SCRIPTS= apache
|
2001-11-19 17:23:08 +01:00
|
|
|
|
2001-11-25 19:59:45 +01:00
|
|
|
OWN_DIRS= ${PKG_SYSCONFDIR}/ssl.crl
|
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/ssl.crt
|
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/ssl.csr
|
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/ssl.key
|
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/ssl.prm
|
2001-11-19 17:23:08 +01:00
|
|
|
OWN_DIRS+= /var/log/httpd
|
|
|
|
OWN_DIRS+= /var/spool/httpd
|
|
|
|
OWN_DIRS_PERMS+= /var/spool/httpd/proxy nobody nobody 0755
|
1998-06-03 16:01:11 +02:00
|
|
|
|
1998-12-03 18:23:51 +01:00
|
|
|
post-extract:
|
2000-09-06 08:17:55 +02:00
|
|
|
${CP} ${FILESDIR}/ap_include_extern.h ${WRKSRC}/src/include
|
2001-03-13 21:52:26 +01:00
|
|
|
${CP} ${MODSSL_SRC}/pkg.addon/*.c ${WRKSRC}/src/modules/extra
|
|
|
|
${CP} ${MODSSL_SRC}/pkg.addon/*.html ${WRKSRC}/htdocs/manual/mod
|
|
|
|
${CP} ${MODSSL_SRC}/pkg.eapi/*.c ${WRKSRC}/src/ap
|
|
|
|
${CP} ${MODSSL_SRC}/pkg.eapi/*.h ${WRKSRC}/src/include
|
1998-12-03 18:23:51 +01:00
|
|
|
|
|
|
|
pre-patch:
|
2001-02-02 17:39:56 +01:00
|
|
|
cd ${WRKSRC} && ${CAT} \
|
2001-03-13 21:52:26 +01:00
|
|
|
${MODSSL_SRC}/pkg.addon/addon.patch \
|
|
|
|
${MODSSL_SRC}/pkg.eapi/eapi.patch \
|
|
|
|
${MODSSL_SRC}/pkg.sslcfg/sslcfg.patch \
|
|
|
|
${MODSSL_SRC}/pkg.sslmod/sslmod.patch \
|
|
|
|
${MODSSL_SRC}/pkg.sslsup/sslsup.patch \
|
1998-12-03 18:23:51 +01:00
|
|
|
| ${PATCH} ${PATCH_ARGS}
|
Update apache to 1.3.20. Relevant changes from version 1.3.19 include:
NetBSD Packages Collection (pkgsrc) changes:
* Modify French page in same way as the English page. Translation
provided by Remi Zara <remi_zara@mac.com> in private e-mail.
* Use EAPI patches from mod_ssl-2.8.4-1.3.20.
* Unify repeated SED replacement info for config.layout, apache.sh,
DEINSTALL, and INSTALL into one location, FILES_SUBST.
* Modify patch to apxs to use 0:0 instead of root:wheel, as some
non-NetBSD systems don't have a wheel group.
The general bug fixes:
* Eliminate a potential segfault if an invalid floating point value
is passed to the ap_snprintf() function, on platforms supporting
isnan() and isinf().
* Fix a possible segfault at startup in the detection of a default
ServerName or IP string when no ServerName was specified.
* Fixed mod_proxy to retain empty headers, as allowed by RFC2068.
* Properly resolve the location of ndbm on Linux and some glibc2
builds, where ndbm.h is in the nonstandard db1/ subdir.
The main new features include:
* Enhanced rotatelogs to allow a UTC offset to be specified, and
the format logfile names with human-readable date/time stamps.
* Added the NOESCAPE (NS) flag to RewriteRule, to disable *all*
normal URI escaping. Note incautious use can give unexpected
results or introduce security risks.
* Added the '\' character to RewriteRule to allow escaping of
special characters. Allows embedding of both the '$' and '%'
characters in the results, so 'foo\$1' translates to 'foo$1'
rather than 'foo\<value of $1>'.
* Added the -V flag to suexec, to display the compile-time settings
with which it was built. (Only valid for root or the HTTPD_USER
username.)
* Introduced EBCDIC conversion configuration options, controlling the
conversion based on MIME type or file suffix.
2001-06-09 08:36:42 +02:00
|
|
|
cd ${WRKSRC} && ${TAIL} +160 \
|
2001-03-13 21:52:26 +01:00
|
|
|
${MODSSL_SRC}/pkg.ssldoc/ssldoc.patch \
|
1999-04-30 19:05:19 +02:00
|
|
|
| ${PATCH} ${PATCH_ARGS}
|
2001-07-09 04:45:09 +02:00
|
|
|
${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
|
1998-10-03 23:01:14 +02:00
|
|
|
|
2001-10-19 11:52:22 +02:00
|
|
|
post-patch:
|
2001-10-22 20:02:51 +02:00
|
|
|
cd ${WRKSRC}/src/support; \
|
|
|
|
${SED} -e "s|@INSTALL@|"`${TYPE} ${INSTALL} | ${AWK} '{ print $$NF }'`" -c -o ${LIBOWN} -g ${LIBGRP}|" \
|
|
|
|
apxs.pl > apxs.pl.sed; \
|
|
|
|
${MV} apxs.pl.sed apxs.pl
|
2001-10-19 11:52:22 +02:00
|
|
|
|
2001-03-13 21:52:26 +01:00
|
|
|
pre-configure:
|
Update apache to 1.3.20. Relevant changes from version 1.3.19 include:
NetBSD Packages Collection (pkgsrc) changes:
* Modify French page in same way as the English page. Translation
provided by Remi Zara <remi_zara@mac.com> in private e-mail.
* Use EAPI patches from mod_ssl-2.8.4-1.3.20.
* Unify repeated SED replacement info for config.layout, apache.sh,
DEINSTALL, and INSTALL into one location, FILES_SUBST.
* Modify patch to apxs to use 0:0 instead of root:wheel, as some
non-NetBSD systems don't have a wheel group.
The general bug fixes:
* Eliminate a potential segfault if an invalid floating point value
is passed to the ap_snprintf() function, on platforms supporting
isnan() and isinf().
* Fix a possible segfault at startup in the detection of a default
ServerName or IP string when no ServerName was specified.
* Fixed mod_proxy to retain empty headers, as allowed by RFC2068.
* Properly resolve the location of ndbm on Linux and some glibc2
builds, where ndbm.h is in the nonstandard db1/ subdir.
The main new features include:
* Enhanced rotatelogs to allow a UTC offset to be specified, and
the format logfile names with human-readable date/time stamps.
* Added the NOESCAPE (NS) flag to RewriteRule, to disable *all*
normal URI escaping. Note incautious use can give unexpected
results or introduce security risks.
* Added the '\' character to RewriteRule to allow escaping of
special characters. Allows embedding of both the '$' and '%'
characters in the results, so 'foo\$1' translates to 'foo$1'
rather than 'foo\<value of $1>'.
* Added the -V flag to suexec, to display the compile-time settings
with which it was built. (Only valid for root or the HTTPD_USER
username.)
* Introduced EBCDIC conversion configuration options, controlling the
conversion based on MIME type or file suffix.
2001-06-09 08:36:42 +02:00
|
|
|
${SED} ${FILES_SUBST_SED} \
|
2001-03-13 21:52:26 +01:00
|
|
|
${FILESDIR}/config.layout > ${WRKDIR}/config.layout
|
|
|
|
|
2000-10-13 23:46:45 +02:00
|
|
|
pre-install:
|
2001-07-09 04:45:09 +02:00
|
|
|
${FIND} ${WRKSRC}/htdocs -name '*.orig' -print | ${XARGS} ${RM} -f
|
Update apache to 1.3.20. Relevant changes from version 1.3.19 include:
NetBSD Packages Collection (pkgsrc) changes:
* Modify French page in same way as the English page. Translation
provided by Remi Zara <remi_zara@mac.com> in private e-mail.
* Use EAPI patches from mod_ssl-2.8.4-1.3.20.
* Unify repeated SED replacement info for config.layout, apache.sh,
DEINSTALL, and INSTALL into one location, FILES_SUBST.
* Modify patch to apxs to use 0:0 instead of root:wheel, as some
non-NetBSD systems don't have a wheel group.
The general bug fixes:
* Eliminate a potential segfault if an invalid floating point value
is passed to the ap_snprintf() function, on platforms supporting
isnan() and isinf().
* Fix a possible segfault at startup in the detection of a default
ServerName or IP string when no ServerName was specified.
* Fixed mod_proxy to retain empty headers, as allowed by RFC2068.
* Properly resolve the location of ndbm on Linux and some glibc2
builds, where ndbm.h is in the nonstandard db1/ subdir.
The main new features include:
* Enhanced rotatelogs to allow a UTC offset to be specified, and
the format logfile names with human-readable date/time stamps.
* Added the NOESCAPE (NS) flag to RewriteRule, to disable *all*
normal URI escaping. Note incautious use can give unexpected
results or introduce security risks.
* Added the '\' character to RewriteRule to allow escaping of
special characters. Allows embedding of both the '$' and '%'
characters in the results, so 'foo\$1' translates to 'foo$1'
rather than 'foo\<value of $1>'.
* Added the -V flag to suexec, to display the compile-time settings
with which it was built. (Only valid for root or the HTTPD_USER
username.)
* Introduced EBCDIC conversion configuration options, controlling the
conversion based on MIME type or file suffix.
2001-06-09 08:36:42 +02:00
|
|
|
${SED} ${FILES_SUBST_SED} ${FILESDIR}/apache.sh > ${WRKDIR}/apache.sh
|
2000-10-13 23:46:45 +02:00
|
|
|
|
1998-07-21 23:34:09 +02:00
|
|
|
post-install:
|
2000-09-06 08:17:55 +02:00
|
|
|
.if !defined(NOPIC)
|
|
|
|
cd ${PREFIX}/lib/httpd; ${MV} libproxy.so mod_proxy.so
|
|
|
|
.endif
|
2001-04-14 21:42:53 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/httpd
|
Update apache to 1.3.20. Relevant changes from version 1.3.19 include:
NetBSD Packages Collection (pkgsrc) changes:
* Modify French page in same way as the English page. Translation
provided by Remi Zara <remi_zara@mac.com> in private e-mail.
* Use EAPI patches from mod_ssl-2.8.4-1.3.20.
* Unify repeated SED replacement info for config.layout, apache.sh,
DEINSTALL, and INSTALL into one location, FILES_SUBST.
* Modify patch to apxs to use 0:0 instead of root:wheel, as some
non-NetBSD systems don't have a wheel group.
The general bug fixes:
* Eliminate a potential segfault if an invalid floating point value
is passed to the ap_snprintf() function, on platforms supporting
isnan() and isinf().
* Fix a possible segfault at startup in the detection of a default
ServerName or IP string when no ServerName was specified.
* Fixed mod_proxy to retain empty headers, as allowed by RFC2068.
* Properly resolve the location of ndbm on Linux and some glibc2
builds, where ndbm.h is in the nonstandard db1/ subdir.
The main new features include:
* Enhanced rotatelogs to allow a UTC offset to be specified, and
the format logfile names with human-readable date/time stamps.
* Added the NOESCAPE (NS) flag to RewriteRule, to disable *all*
normal URI escaping. Note incautious use can give unexpected
results or introduce security risks.
* Added the '\' character to RewriteRule to allow escaping of
special characters. Allows embedding of both the '$' and '%'
characters in the results, so 'foo\$1' translates to 'foo$1'
rather than 'foo\<value of $1>'.
* Added the -V flag to suexec, to display the compile-time settings
with which it was built. (Only valid for root or the HTTPD_USER
username.)
* Introduced EBCDIC conversion configuration options, controlling the
conversion based on MIME type or file suffix.
2001-06-09 08:36:42 +02:00
|
|
|
for file in httpd.conf magic mime.types; do \
|
2001-11-25 19:59:45 +01:00
|
|
|
${INSTALL_DATA} ${PKG_SYSCONFDIR}/$${file}.default \
|
2001-04-14 21:42:53 +02:00
|
|
|
${PREFIX}/share/examples/httpd; \
|
2001-11-25 19:59:45 +01:00
|
|
|
${RM} -f ${PKG_SYSCONFDIR}/$${file}.default; \
|
2001-04-14 21:42:53 +02:00
|
|
|
done
|
2000-09-06 08:17:55 +02:00
|
|
|
${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/httpd/htdocs
|
2000-09-20 07:14:10 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/apache.sh ${PREFIX}/etc/rc.d/apache
|
2001-10-22 20:02:51 +02:00
|
|
|
${CHOWN} -R ${DOCOWN}:${DOCGRP} ${PREFIX}/share/httpd
|
1998-07-21 23:34:09 +02:00
|
|
|
|
Update apache to 1.3.22. Relevant changes from version 1.3.20 include
using the pkgsrc expat library instead of the builtin one (this is to
avoid conflicts between expat libraries when an expat XML parser is loaded
by either mod_perl or mod_php), and:
Security vulnerabilities
* A vulnerability was found in the split-logfile support program. A
request with a specially crafted Host: header could allow any file
with a .log extension on the system to be written to.
* A vulnerability was found when Multiviews are used to negotiate
the directory index. In some configurations, requesting a URI with
a QUERY_STRING of M=D could return a directory listing rather than
the expected index page.
General bug fixes and improvements
* Bug fixes
* The supplied icons are now also distributed in PNG format
* New directives have been added to the mod_usertrack module, The
first, CookieDomain, can be used to customise the Domain
attribute.
* A new directive, AcceptMutex, allows run-time configuration of the
mutex type used for accept serialization.
* mod_auth has been enhanced to allow access to a document to be
controlled based on the owner of the file being served.
* A new directive, AcceptFilter, has been added to control BSD
accept filters at run-time. The functionality can postpone the
requirement for a child process to handle a new connection until
an HTTP request has arrived, therefore increasing the number of
connections that a given number of child processes can handle
2001-10-17 21:17:00 +02:00
|
|
|
.include "../../textproc/expat/buildlink.mk"
|
2001-11-19 17:23:08 +01:00
|
|
|
.include "../../mk/bsd.pkg.install.mk"
|
1998-06-04 21:38:36 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|