Skip to content

Commit

Permalink
import form NetBSD-current pkgsrc/www/apache6
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Sep 1, 1999
1 parent 7977a29 commit d604c76
Show file tree
Hide file tree
Showing 16 changed files with 705 additions and 573 deletions.
150 changes: 100 additions & 50 deletions netbsd/pkgsrc/www/apache13/Makefile
@@ -1,71 +1,121 @@
# New ports collection makefile for: apache HTTPD # $NetBSD: Makefile,v 1.5 1999/09/01 07:41:01 itojun Exp $
# Version required: 1.3*
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: ache@nagual.pp.ru
# #
# $Id: Makefile,v 1.1.1.2 1999/08/10 09:14:59 itojun Exp $ # The fourth number in the PKGNAME version indicates a NetBSD pkg revision
# (to indicate changes in the shipped third party patches such as the mod_ssl
# EAPI when there has been no change to the Apache version number).
#
# This package does not compile in mod_ssl support hooks, as it conflicts
# with IPv6 enable patch.
# IPv6 enable patch conflicts with third-party modules anyway, due to
# sanity fixes in apache module API (for example, avoid u_long for IPv4 addrs)
# #


DISTNAME= apache_1.3.6 DISTNAME= apache_1.3.9
PKGNAME= apache-1.3.6 PKGNAME= apache6-1.3.9
CATEGORIES= www CATEGORIES= www
MASTER_SITES= ftp://www.apache.org/dist/ MASTER_SITES= http://www.apache.org/dist/ \
ftp://ftp.modssl.org/source/ \
http://www.netbsd.org/images/logos/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
sitedrivenby.gif
# ${SSL_DISTNAME}${EXTRACT_SUFX}


PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/ \ PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
ftp://ftp.v6.kame.net/pub/kame/misc/ PATCHFILES= apache-139-v6-19990901a.diff.gz
PATCHFILES= apache-136-v6-19990724.diff.gz
PATCH_DIST_STRIP= -p1 PATCH_DIST_STRIP= -p1


MAINTAINER= itojun@kame.net MAINTAINER= itojun@itojun.org
HOMEPAGE= http://www.apache.org/


# CONFLICTS= apache-*modssl-* apache-*
# Set APACHE_PERF_TUNING env. variable to YES to get maximum performance
# SSL_DISTNAME= mod_ssl-2.2.8-1.3.6


HAS_CONFIGURE= yes EXTRACT_ONLY= ${DISTFILES:N*.gif}
HAS_CONFIGURE= YES
CONFIGURE_ARGS+= --prefix=${PREFIX} --libexecdir=${PREFIX}/lib/httpd \
--runtimedir=/var/run --datadir=${PREFIX}/share/httpd \
--logfiledir=/var/log/httpd --sysconfdir=${PREFIX}/etc/httpd \
--proxycachedir=/var/spool/httpd/proxy \
--includedir=${PREFIX}/include/httpd \
--sbindir=${PREFIX}/sbin \
--enable-module=most \
--enable-module=auth_db \
--disable-module=auth_dbm \
--with-perl=${PREFIX}/bin/perl
# --enable-rule=EAPI --disable-module=ssl
CONFIGURE_SCRIPT= configure.v6 CONFIGURE_SCRIPT= configure.v6
CONFIGURE_ARGS= \ CONFIGURE_ENV+= OPTIM="${OPTIM}"
--prefix=${PREFIX} \
--sbindir=${PREFIX}/sbin \ .include "../../mk/bsd.prefs.mk"
--sysconfdir=${PREFIX}/etc/apache \
--includedir=${PREFIX}/include/apache \ CHMOD?= chmod
--logfiledir=/var/log \
--runtimedir=/var/run \ #.if !defined(USE_INET6)
--datadir=${PREFIX}/www \ #BROKEN= "IPv6 only build"
--proxycachedir=${PREFIX}/www/proxy \ #.endif
--libexecdir=${PREFIX}/libexec/apache \
--without-confadjust \ .if defined(APACHE_SUEXEC) && ${APACHE_SUEXEC} == YES
--enable-shared=remain \ CONFIGURE_ARGS+= --enable-suexec --suexec-caller=www \
--enable-module=most \ --suexec-safepath='/bin:/usr/bin:${PREFIX}/bin:/usr/local/bin'
--enable-module=auth_db \ .endif
--disable-module=auth_dbm

# Currently perl version don't matter
# --with-perl=${PERL5}

OPTIM=-DHARD_SERVER_LIMIT=512 \
-DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
-DDEFAULT_PATH=\\"/bin:/usr/bin:${PREFIX}/bin\\"


.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES .if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
OPTIM+= -DBUFFERED_LOGS CONFIGURE_ARGS+= --disable-rule=STATUS
CFLAGS+= -O6 -fomit-frame-pointer OPTIM+= -DBUFFERED_LOGS
CFLAGS+= -O6 -fomit-frame-pointer -fexpensive-optimizations
.endif .endif


CONFIGURE_ENV= OPTIM='${OPTIM}' PLIST_SRC= ${WRKDIR}/PLIST

BUILD_DEFS+= APACHE_PERF_TUNING APACHE_SUEXEC USE_INET6

# 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).

#post-extract:
# @${CP} ${FILESDIR}/ap_include_extern.h ${WRKSRC}/src/include/
# @${CP} ${WRKDIR}/${SSL_DISTNAME}/pkg.eapi/*.c ${WRKSRC}/src/ap/
# @${CP} ${WRKDIR}/${SSL_DISTNAME}/pkg.eapi/*.h ${WRKSRC}/src/include/


MAN1= htdigest.1 htpasswd.1 #pre-patch:
MAN8= apachectl.8 ab.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 # @cd ${WRKSRC} && ${CAT} \
# ../${SSL_DISTNAME}/pkg.eapi/eapi.patch \
# ../${SSL_DISTNAME}/pkg.sslcfg/sslcfg.patch \
# ../${SSL_DISTNAME}/pkg.sslmod/sslmod.patch \
# ../${SSL_DISTNAME}/pkg.sslsup/sslsup.patch \
# | ${PATCH} ${PATCH_ARGS}
# @cd ${WRKSRC} && tail +129 \
# ../${SSL_DISTNAME}/pkg.ssldoc/ssldoc.patch \
# | ${PATCH} ${PATCH_ARGS}


post-patch: post-patch:
chmod +x ${WRKSRC}/${CONFIGURE_SCRIPT} @find ${WRKSRC}/htdocs -name '*.orig' | xargs ${RM}
@${CHMOD} +x ${WRKSRC}/${CONFIGURE_SCRIPT}

post-build:
${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/apache.sh \
>${WRKDIR}/apache.sh


post-install: post-install:
@if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ ${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif \
${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \ ${PREFIX}/share/httpd/htdocs
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \ ${INSTALL_SCRIPT} ${WRKDIR}/apache.sh ${PREFIX}/etc/rc.d/apache.sh
${ECHO} "[ -x ${PREFIX}/bin/apachectl ] && ${PREFIX}/bin/apachectl start > /dev/null && echo -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \ @${MV} ${PREFIX}/lib/httpd/libproxy.so \
chmod 751 ${PREFIX}/etc/rc.d/apache.sh; \ ${PREFIX}/lib/httpd/mod_proxy.so 2>/dev/null || \
${MKDIR} ${PREFIX}/lib/httpd
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
.for FILE in man/man8/suexec.8 sbin/suexec
@if [ -e ${PREFIX}/${FILE} ]; then \
${ECHO} ${FILE} >>${PLIST_SRC}; \
fi fi
.endfor


.include "../../mk/bsd.pkg.mk" .include "../../mk/bsd.pkg.mk"

.if !defined(NOPIC)
CONFIGURE_ARGS+= --enable-module=so --enable-shared=proxy
.else
CONFIGURE_ARGS+= --disable-module=proxy
.endif
83 changes: 83 additions & 0 deletions netbsd/pkgsrc/www/apache13/files/ap_include_extern.h
@@ -0,0 +1,83 @@
/* $NetBSD: ap_include_extern.h,v 1.1.1.1 1999/07/23 17:53:29 itojun Exp $ */
/* ====================================================================
* Copyright (c) 1998 The Apache Group. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the Apache Group
* for use in the Apache HTTP server project (http://www.apache.org/)."
*
* 4. The names "Apache Server" and "Apache Group" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the Apache Group
* for use in the Apache HTTP server project (http://www.apache.org/)."
*
* THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Group and was originally based
* on public domain software written at the National Center for
* Supercomputing Applications, University of Illinois, Urbana-Champaign.
* For more information on the Apache Group and the Apache HTTP server
* project, please see <http://www.apache.org/>.
*
*/

#ifndef AP_INCLUDE_EXTERN_H
#define AP_INCLUDE_EXTERN_H

/*
* XSSI extensibility hooks.
*
* This allows other modules to "hook" themselves into the Apache XSSI
* (mod_include) handler list without requiring modification to the
* mod_include source code.
*/

typedef int (*ap_include_extern_func)(FILE *fp, request_rec *r,
const char *error, const char *timefmt);

/* The const char * argument is the command word used to find this hook. */
API_EXPORT(int) ap_include_register_extern(const char *, ap_include_extern_func);

/* Formerly a static "get_tag()" in mod_include.c */
API_EXPORT(char *) ap_include_get_tag(pool *, FILE *, char *, int, int);

/* Formerly a static "parse_string()" in mod_include.c */
API_EXPORT(void) ap_include_parse_string(request_rec *, const char *,
char *, size_t, int);

#endif
10 changes: 10 additions & 0 deletions netbsd/pkgsrc/www/apache13/files/apache.sh
@@ -0,0 +1,10 @@
#!/bin/sh
#
# $NetBSD: apache.sh,v 1.1.1.1 1999/07/23 17:53:29 itojun Exp $
#
if [ -x @PREFIX@/sbin/httpd -a -f @PREFIX@/etc/httpd/httpd.conf ]
then
@PREFIX@/sbin/apachectl start >/dev/null
echo -n ' apache'
fi
exit 0
7 changes: 4 additions & 3 deletions netbsd/pkgsrc/www/apache13/files/md5
@@ -1,4 +1,5 @@
$NetBSD$ $NetBSD: md5,v 1.3 1999/09/01 07:41:02 itojun Exp $


MD5 (apache_1.3.6.tar.gz) = b4114ed78f296bfe424c4ba05dccc643 MD5 (apache_1.3.9.tar.gz) = 880af89251943c67e3614bf2ffb89b32
MD5 (apache-136-v6-19990724.diff.gz) = cab405b60a916219f90bd048a2078616 MD5 (sitedrivenby.gif) = ad0647dceb931d02bfd046e55915f7b1
MD5 (apache-139-v6-19990901a.diff.gz) = 64fea82095fbc58a5367551f9e686483
10 changes: 10 additions & 0 deletions netbsd/pkgsrc/www/apache13/files/patch-sum
@@ -0,0 +1,10 @@
$NetBSD: patch-sum,v 1.3 1999/09/01 07:41:02 itojun Exp $

MD5 (patch-aa) = 7cdc55b80eb5389605960973c6c888ad
MD5 (patch-ab) = 4b835238ed8e929366119786655a0ffc
MD5 (patch-ae) = 2cd742f756f4cf2b9aa420ece607b069
MD5 (patch-ah) = c3e3a232e0c5028a15dea4473bf39955
MD5 (patch-aj) = e4878583ffc2957e50c25d3d22d1d4db
MD5 (patch-ak) = f025ef3f85f08ba8374148f3dcc0eccf
MD5 (patch-al) = 392b4228824401ad7d1676d2054fa1d6
MD5 (patch-am) = 06fcd06d209d53e87b02e94707bdd21c
52 changes: 28 additions & 24 deletions netbsd/pkgsrc/www/apache13/patches/patch-aa
@@ -1,24 +1,28 @@
--- configure.orig Sat Jan 2 05:19:41 1999 $NetBSD: patch-aa,v 1.3 1999/09/01 07:41:03 itojun Exp $
+++ configure Tue Jan 12 06:02:12 1999
@@ -1012,8 +1012,8 @@ --- Makefile.tmpl.orig Thu Aug 12 23:58:18 1999
echo " DEFAULT_PIDLOG: ${runtimedir_relative}${thetarget}.pid" +++ Makefile.tmpl Wed Sep 1 00:08:27 1999
echo " DEFAULT_SCOREBOARD: ${runtimedir_relative}${thetarget}.scoreboard" @@ -450,12 +450,13 @@
echo " DEFAULT_LOCKFILE: ${runtimedir_relative}${thetarget}.lock" find $(root)$(htdocsdir)/ -type d -exec chmod a+rx {} \; ; \
- echo " DEFAULT_XFERLOG: ${logfiledir_relative}access_log" find $(root)$(htdocsdir)/ -type f -exec chmod a+r {} \; ; \
- echo " DEFAULT_ERRORLOG: ${logfiledir_relative}error_log" fi
+ echo " DEFAULT_XFERLOG: ${logfiledir_relative}http-access_log" - -@if [ -f $(root)$(cgidir)/printenv ]; then \
+ echo " DEFAULT_ERRORLOG: ${logfiledir_relative}http-error_log" + -@if false; then \
echo " TYPES_CONFIG_FILE: ${sysconfdir_relative}mime.types" echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(cgidir)/]"; \
echo " SERVER_CONFIG_FILE: ${sysconfdir_relative}${thetarget}.conf" else \
echo " ACCESS_CONFIG_FILE: ${sysconfdir_relative}access.conf" for script in printenv test-cgi; do \
@@ -1091,8 +1091,8 @@ cat $(TOP)/cgi-bin/$${script} |\
echo "echo '-DDEFAULT_PIDLOG=\"${runtimedir_relative}${thetarget}.pid\"'" >>$src/apaci sed -e 's;^#!/.*perl;#!$(PERL);' \
echo "echo '-DDEFAULT_SCOREBOARD=\"${runtimedir_relative}${thetarget}.scoreboard\"'" >>$src/apaci + -e 's;LD_LIBRARY_PATH=.*;LD_LIBRARY_PATH=/usr/lib:$(prefix)/lib:/usr/local/lib;' \
echo "echo '-DDEFAULT_LOCKFILE=\"${runtimedir_relative}${thetarget}.lock\"'" >>$src/apaci > $(TOP)/$(SRC)/.apaci.install.tmp; \
-echo "echo '-DDEFAULT_XFERLOG=\"${logfiledir_relative}access_log\"'" >>$src/apaci echo "$(INSTALL_DATA) $(TOP)/conf/$${script}[*] $(root)$(cgidir)/$${script}"; \
-echo "echo '-DDEFAULT_ERRORLOG=\"${logfiledir_relative}error_log\"'" >>$src/apaci $(INSTALL_DATA) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(cgidir)/$${script}; \
+echo "echo '-DDEFAULT_XFERLOG=\"${logfiledir_relative}http-access_log\"'" >>$src/apaci @@ -472,7 +473,7 @@
+echo "echo '-DDEFAULT_ERRORLOG=\"${logfiledir_relative}http-error_log\"'" >>$src/apaci # and initial config files while preserving existing ones.
echo "echo '-DTYPES_CONFIG_FILE=\"${sysconfdir_relative}mime.types\"'" >>$src/apaci install-config:
echo "echo '-DSERVER_CONFIG_FILE=\"${sysconfdir_relative}${thetarget}.conf\"'" >>$src/apaci @echo "===> [config: Installing Apache configuration files]"
echo "echo '-DACCESS_CONFIG_FILE=\"${sysconfdir_relative}access.conf\"'" >>$src/apaci - -@for conf in httpd.conf access.conf srm.conf; do \
+ -@for conf in httpd.conf; do \
if [ .$$conf = .httpd.conf ]; then \
target_conf="$(TARGET).conf"; \
else \

0 comments on commit d604c76

Please sign in to comment.