From owner-freebsd-apache@FreeBSD.ORG Mon May 30 11:00:50 2005 Return-Path: X-Original-To: apache@freebsd.org Delivered-To: freebsd-apache@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7363B16A41C for ; Mon, 30 May 2005 11:00:50 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5017E43D48 for ; Mon, 30 May 2005 11:00:50 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4UB0o3K029155 for ; Mon, 30 May 2005 11:00:50 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4UB0nv8029150 for apache@freebsd.org; Mon, 30 May 2005 11:00:49 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 30 May 2005 11:00:49 GMT Message-Id: <200505301100.j4UB0nv8029150@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: apache@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 11:00:50 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/02/11] ports/77391 apache Apache 2.x Modules depending on wrong Apa 1 problem total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/12/09] ports/74907 apache [PATCH] www/mod_perl: cleanups o [2005/05/18] ports/81183 apache apache13-modperl can not compile with por o [2005/05/25] ports/81459 apache [PATCH] www/mod_webapp: upbreak port 3 problems total. From owner-freebsd-apache@FreeBSD.ORG Tue May 31 02:19:07 2005 Return-Path: X-Original-To: apache@FreeBSD.org Delivered-To: freebsd-apache@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B88316A41C for ; Tue, 31 May 2005 02:19:07 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1ED343D1F for ; Tue, 31 May 2005 02:19:06 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 34A785148D; Mon, 30 May 2005 19:19:06 -0700 (PDT) Date: Mon, 30 May 2005 19:19:06 -0700 From: Kris Kennaway To: apache@FreeBSD.org Message-ID: <20050531021906.GF393@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8JPrznbw0YAQ/KXy" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: [kris@FreeBSD.org: cvs commit: ports/www/mod_snake Makefile] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 02:19:07 -0000 --8JPrznbw0YAQ/KXy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable FYI; see http://pointyhat.freebsd.org and previous email notifications. Kris ----- Forwarded message from Kris Kennaway ----- X-Original-To: kkenn@localhost Delivered-To: kkenn@localhost.obsecurity.org Delivered-To: kris@freebsd.org Delivered-To: ports-committers@freebsd.org From: Kris Kennaway Date: Sat, 21 May 2005 17:27:03 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: ports/www/mod_snake Makefile X-FreeBSD-CVS-Branch: HEAD Precedence: bulk X-Loop: FreeBSD.ORG X-UIDL: 3GI"!D7G!!hU,!!iJ1"! X-Bogosity: No, tests=3Dbogofilter, spamicity=3D0.000000, version=3D0.92.8 kris 2005-05-21 17:27:03 UTC FreeBSD ports repository Modified files: www/mod_snake Makefile=20 Log: BROKEN on amd64 and ia64: Does not compile =20 Revision Changes Path 1.11 +7 -1 ports/www/mod_snake/Makefile http://cvsweb.FreeBSD.org/ports/www/mod_snake/Makefile.diff?r1=3D1.10&r2=3D= 1.11 | =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D | RCS file: /usr/local/www/cvsroot/FreeBSD/ports/www/mod_snake/Makefile,v | retrieving revision 1.10 | retrieving revision 1.11 | diff -u -p -r1.10 -r1.11 | --- ports/www/mod_snake/Makefile 2005/04/10 21:08:20 1.10 | +++ ports/www/mod_snake/Makefile 2005/05/21 17:27:03 1.11 | @@ -2,7 +2,7 @@ | # Date created: 10 April 2001 | # Whom: will | # | -# $FreeBSD: /usr/local/www/cvsroot/FreeBSD/ports/www/mod_snake/Makefile,= v 1.10 2005/04/10 21:08:20 kris Exp $ | +# $FreeBSD: /usr/local/www/cvsroot/FreeBSD/ports/www/mod_snake/Makefile,= v 1.11 2005/05/21 17:27:03 kris Exp $ | # | =20 | PORTNAME=3D mod_snake | @@ -25,4 +25,10 @@ GNU_CONFIGURE=3D yes | CONFIGURE_ARGS=3D --with-apxs=3D"${APXS}" | USE_GMAKE=3D yes | =20 | -.include | +.include | + | +.if ${ARCH} =3D=3D "amd64" || ${ARCH} =3D=3D "ia64" | +BROKEN=3D "Does not compile on amd64 or ia64" | +.endif | + | +.include ----- End forwarded message ----- --8JPrznbw0YAQ/KXy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCm8mZWry0BWjoQKURAg0UAJ96+OReJMgzfG00C7tU5JmcuPxRtwCgpnCI Aq7htlHz262uSk61nbkUqTk= =IN7O -----END PGP SIGNATURE----- --8JPrznbw0YAQ/KXy-- From owner-freebsd-apache@FreeBSD.ORG Tue May 31 21:26:09 2005 Return-Path: X-Original-To: apache@FreeBSD.org Delivered-To: freebsd-apache@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3860D16A41C; Tue, 31 May 2005 21:26:09 +0000 (GMT) (envelope-from jmund@miqs.com) Received: from mx.cbeyond.com (mx.cbeyond.net [66.180.96.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FF1143D53; Tue, 31 May 2005 21:26:08 +0000 (GMT) (envelope-from jmund@miqs.com) Received: from [69.15.179.234] (port=59127 helo=[192.82.156.24]) by mx.cbeyond.com with asmtp (Exim 4.34) id 1DdEFS-0000Ve-SQ; Tue, 31 May 2005 17:26:07 -0400 Message-ID: <429CD6E1.10004@miqs.com> Date: Tue, 31 May 2005 15:28:01 -0600 From: John Mund User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en To: apache@FreeBSD.org Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ports@FreeBSD.org Subject: FreeBSD Port: mod_bandwidth-2.0.6 X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 21:26:09 -0000 Hello. I was wondering if you guys have looked into adding bw_mod (apache2 mod_bandwidth port) to your apache collection? [1] http://www.ivn.cl/apache/#bandwidth I hate to offer more work for the volunteers :) but it would be helpful. J References 1. http://www.ivn.cl/apache/#bandwidth From owner-freebsd-apache@FreeBSD.ORG Wed Jun 1 07:38:42 2005 Return-Path: X-Original-To: apache@FreeBSD.org Delivered-To: freebsd-apache@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37EDF16A41C for ; Wed, 1 Jun 2005 07:38:42 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: from goofy.cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with SMTP id 1C57F43D54 for ; Wed, 1 Jun 2005 07:38:40 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 21428 invoked by uid 1000); 1 Jun 2005 09:38:38 +0200 Date: Wed, 1 Jun 2005 09:38:38 +0200 From: Clement Laforet To: John Mund Message-ID: <20050601073838.GB86348@goofy.cultdeadsheep.org> References: <429CD6E1.10004@miqs.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZfOjI3PrQbgiZnxM" Content-Disposition: inline In-Reply-To: <429CD6E1.10004@miqs.com> User-Agent: Mutt/1.5.6i Cc: ports@FreeBSD.org, apache@FreeBSD.org Subject: Re: FreeBSD Port: mod_bandwidth-2.0.6 X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 07:38:42 -0000 --ZfOjI3PrQbgiZnxM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 31, 2005 at 03:28:01PM -0600, John Mund wrote: Hi John, > I was wondering if you guys have looked into adding bw_mod > (apache2 mod_bandwidth port) to your apache collection? > [1] > http://www.ivn.cl/apache/#bandwidth > I hate to offer more work for the volunteers :) but it would be > helpful. > J It's planned. BTW, you can port it yourself. There's some macros which=20 make apache modules porting easy. clem --ZfOjI3PrQbgiZnxM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCnWX+sRhfjwcjuh0RAh9vAJ9dFlZgV+0+G3WAZ3zj3YzUrOSeCgCgjUnr rqeI8AbpIF8E+UxgMaKUvLE= =Kkwa -----END PGP SIGNATURE----- --ZfOjI3PrQbgiZnxM-- From owner-freebsd-apache@FreeBSD.ORG Wed Jun 1 08:57:47 2005 Return-Path: X-Original-To: apache@FreeBSD.org Delivered-To: freebsd-apache@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97A0116A41C for ; Wed, 1 Jun 2005 08:57:47 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: from goofy.cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with SMTP id 7864F43D49 for ; Wed, 1 Jun 2005 08:57:45 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 43305 invoked by uid 1000); 1 Jun 2005 10:57:44 +0200 Date: Wed, 1 Jun 2005 10:57:44 +0200 From: Clement Laforet To: apache@FreeBSD.org Message-ID: <20050601085744.GC86348@goofy.cultdeadsheep.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="R+My9LyyhiUvIEro" Content-Disposition: inline User-Agent: Mutt/1.5.6i Cc: Subject: [Call for testers] support for multiple apache2 instances in startup script X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 08:57:47 -0000 --R+My9LyyhiUvIEro Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, This script allows you to run multiple apache2 instances. It works=20 like profiles in /etc/rc.d/jail. How install it: 1. fetch the script from: http://people.freebsd.org/~clement/apache/download/ports/devel/apache.sh and put it in ${PORTSDIR}/www/apache2/files. 2. install the script: # cp ${PREFIX}/etc/rc.d/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh.old=20 # cd ${PORTSDIR}/www/apache2/ # make install-startup-script=20 3. Configure your apache2 4. Configure rc.conf - set your profiles : apache2_profiles=3D"apache1 apache2" - define your configuration files apache2_apache1_configfile=3D"/path/to/config/file1" apache2_apache2_configfile=3D"/path/to/config/file2" All apache2*_* variables can be overridden. It looks like: apache2*_${profile_name}_*. apache2_${profile_name}_enable is set=20 to "YES" by default. 5. Dealing with profiles: ${PREFIX}/etc/rc.d/apache2.sh [profile] If no profile is defined, action is performed on all profiles. Notes: - When using profiles, PidFile directive is OVERRIDDEN. - script doesn't exit on error. Please share your opinion about=20 default behavior. - apache2_${profile_name}_configfile is mandatory Enjoy! clem --R+My9LyyhiUvIEro Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCnXiIsRhfjwcjuh0RAmSDAKCDalXpLUo7NO0Jm7xkvUYP9yJhKgCfQKzN 1kUbdDnbofNygnngmKzs4tE= =jOd5 -----END PGP SIGNATURE----- --R+My9LyyhiUvIEro-- From owner-freebsd-apache@FreeBSD.ORG Thu Jun 2 21:56:47 2005 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 352C616A41C for ; Thu, 2 Jun 2005 21:56:47 +0000 (GMT) (envelope-from sean.hafeez@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id D263943D48 for ; Thu, 2 Jun 2005 21:56:46 +0000 (GMT) (envelope-from sean.hafeez@gmail.com) Received: by zproxy.gmail.com with SMTP id 12so672598nzp for ; Thu, 02 Jun 2005 14:56:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=ZcKQMxE0/5j9uwfqMn0gpn/mKb3RS7i0lzgg5T65XjxFdV3s4lfBU/e15V6/GwZv9fe0nX+SNs17xqzMHZegWX2bayG4tHRc5BO7AZdnahpDZQrBbwBcJH1RFjWu2DW1FC5zI58iF1wg5wHvy1uYMYMAPi0V2V6di4JUYC3KMks= Received: by 10.36.222.54 with SMTP id u54mr868911nzg; Thu, 02 Jun 2005 14:56:45 -0700 (PDT) Received: from ?192.168.0.105? ([67.109.14.227]) by mx.gmail.com with ESMTP id 14sm1389445nzp.2005.06.02.14.56.44; Thu, 02 Jun 2005 14:56:45 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v730) Content-Transfer-Encoding: 7bit Message-Id: <575D128C-D453-4A54-92D2-8EB8AD42C91D@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-apache@freebsd.org From: Sean Hafeez Date: Thu, 2 Jun 2005 14:56:38 -0700 X-Mailer: Apple Mail (2.730) Subject: Performance of Apache 2 on FBSD 5.3/4 vs. Linux 2.6.x X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2005 21:56:47 -0000 I am looking for some performance test of Apache 2 preforked on FBSD 5.3/4 vs Linux 2.6.x. Anyone? Thru-put and speed would be great. Thanks! From owner-freebsd-apache@FreeBSD.ORG Sat Jun 4 17:31:56 2005 Return-Path: X-Original-To: apache@FreeBSD.org Delivered-To: freebsd-apache@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C597516A41C for ; Sat, 4 Jun 2005 17:31:56 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: from goofy.cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with SMTP id 04FE343D48 for ; Sat, 4 Jun 2005 17:31:54 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 87553 invoked by uid 1000); 4 Jun 2005 19:31:52 +0200 Date: Sat, 4 Jun 2005 19:31:52 +0200 From: Clement Laforet To: apache@FreeBSD.org Message-ID: <20050604173152.GC42661@goofy.cultdeadsheep.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HnQK338I3UIa/qiP" Content-Disposition: inline User-Agent: Mutt/1.5.6i Cc: Subject: ${PORTSDIR}/Mk/bsd.apache.mk available for review X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 17:31:56 -0000 --HnQK338I3UIa/qiP Content-Type: multipart/mixed; boundary="Ycz6tD7Th1CMF4v7" Content-Disposition: inline --Ycz6tD7Th1CMF4v7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I finally wrote bsd.apache.mk, it was pending on my todo list for so=20 long, and now it's nearly ready for wide spread. So please test it :) There's few changes from ports/www/apache2/Makefile.modules.3rd. We now support "and superior" version scheme, you can now define 1.3/1.3+/2.0/2.0+/2.1/2.1+. USE_APACHE =3D apr will be functionnal soon, I didn't have time to write it. bsd.apache.mk should be used in all apache related ports, modules and servers. USE_APACHE=3D common{13,20,21} is designed for apache servers. - allows you to build apache and its modules staticly or dynamically linked. you still need to define modules/categories lists. It disables all default modules too. - suExec support for all versions. TODO: add server specific targets. USE_APACHE=3D is designed for apache modules. - Find version of apache installed, check if modules is supported by installed version, or prefered version via APACHE_PORTS - AP_FAST_BUILD is still present - PLIST_SUB stuff is set Not done: USE_APACHE=3D apr is designed for ports depending on apr. It will allow you to select apr from devel ports or apache ports for your applications. and maybe more... Of course, it's fully backward compatible. USE_APACHE=3DYES and WITH_APACHE2=3DYES will be deprecated as soon as it is committed. How to test: # cd /usr/ports # fetch http://people.freebsd.org/~clement/ports/Mk/bsd.apache.mk.diff # patch -p0 < bsd.apache.mk.diff And patch your favorite makefiles ;-) It's not intended to be perfect or bug free. If you have suggestions, ideas, feel free to contact me (please Cc: -apache@ too, since it have to be discussed) clem --Ycz6tD7Th1CMF4v7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="bsd.apache.mk.diff" Content-Transfer-Encoding: quoted-printable Index: Mk/bsd.apache.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: Mk/bsd.apache.mk diff -N Mk/bsd.apache.mk --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Mk/bsd.apache.mk 4 Jun 2005 16:58:40 -0000 @@ -0,0 +1,364 @@ +#-*- mode: makefile; tab-width: 4; -*- +# ex:ts=3D4 +# +# $FreeBSD$ +# +# bsd.apache.mk - Apache related macros. +# Author: Clement Laforet +# +# Please view me with 4 column tabs! + +# This file includes several functionnalities: +# - automatic detection of installed apache version and/or set correct +# dependencies +# - semi-automatic target to make module porting easier +# - modules selection for apache server ports +# + +########################################################################## +# +# Variables definition +# USE_APACHE: Call this script. Values can be: +# : 1.3/13/2.0/20/2.1/1.3+/2.0+/2.1+ +# common*: common13, common20 and common21 +# apr: deal with apr stuff ;-) +# +# APXS: +# APACHE_PORT: + +# Print warnings +_ERROR_MSG=3D : Error from bsd.apache.mk. +APACHE_SUPPORTED_VERSION=3D 13 20 21 +.if ${USE_APACHE:Mcommon*} !=3D "" +AP_PORT_IS_SERVER=3D YES +.elif ${USE_APACHE:L} =3D=3D apr +APR_DEPS=3D YES +.elif ${USE_APACHE:C/\.//:C/\+//:M[12][310]} !=3D "" +AP_PORT_IS_MODULE=3D YES + +#### for backward compatibility +.elif ${USE_APACHE:L} =3D=3D yes +APXS=3D ${LOCALBASE}/sbin/apxs +. if defined(WITH_APACHE2) +APACHE_PORT?=3D www/apache20 +. else +APACHE_PORT?=3D www/apache13 +. endif +APXS?=3D ${LOCALBASE}/sbin/apxs +BUILD_DEPENDS+=3D ${APXS}:${PORTSDIR}/${APACHE_PORT} +RUN_DEPENDS+=3D ${APXS}:${PORTSDIR}/${APACHE_PORT} +#### End of backward compatibility + +.else +IGNORE=3D ${_ERROR_MSG} Illegal use of USE_APACHE +.endif + +.if defined(AP_PORT_IS_SERVER) +# For slave ports: +.if defined(SLAVE_DESIGNED_FOR) && ${PORTVERSION} !=3D ${SLAVE_DESIGNED_FO= R} +IGNORE=3D "Sorry, ${SLAVENAME} and ${PORTNAME} versions are out of sync" +.endif + +.if defined(SLAVE_PORT_MODULES) +DEFAULT_MODULES_CATEGORIES+=3D SLAVE_PORT +ALL_MODULES_CATEGORIES+=3D SLAVE_PORT +.endif + +# Module selection +.for category in ${DEFAULT_MODULES_CATEGORIES} +DEFAULT_MODULES+=3D ${${category}_MODULES} +WITH_${category}_MODULES=3D YES +.endfor + +.for category in ${ALL_MODULES_CATEGORIES} +AVAILABLE_MODULES+=3D ${${category}_MODULES} +.endfor + +# Setting "@comment " as default. +.for module in ${AVAILABLE_MODULES} +${module}_PLIST_SUB=3D "@comment " +.endfor + +# Configure +# dirty hacks to make sure all modules are disabled before we select them +.if ${USE_APACHE} =3D=3D common13 +CONFIGURE_ARGS+=3D --disable-module=3D"all" +.elif ${USE_APACHE} =3D=3D common20 +CONFIGURE_ARGS+=3D --disable-access --disable-auth \ + --disable-charset-lite --disable-include \ + --disable-log-config --disable-env --disable-setenvif \ + --disable-mime --disable-status --disable-autoindex \ + --disable-asis --disable-cgid --disable-cgi \ + --disable-negotiation --disable-dir --disable-imap \ + --disable-actions --disable-userdir --disable-alias +.elif ${USE_APACHE} =3D=3D common21 +CONFIGURE_ARGS+=3D --disable-authn-file --disable-authn-default \ + --disable-authz-host --disable-authz-groupfile \ + --disable-authz-user --disable-authz-default \ + --disable-auth-basic --disable-charset-lite \ + --disable-include --disable-log-config --disable-env \ + --disable-setenvif --disable-mime --disable-status \ + --disable-autoindex --disable-asis --disable-cgid \ + --disable-cgi --disable-negotiation --disable-dir \ + --disable-imap --disable-actions --disable-userdir \ + --disable-alias +.endif + +.if defined(WITH_MODULES) +_APACHE_MODULES+=3D ${WITH_MODULES} +.else +.for category in ${ALL_MODULES_CATEGORIES} +.if defined (WITHOUT_${category}_MODULES) || defined (WITH_CUSTOM_${catego= ry}) +. if defined(WITH_${category}_MODULES}) +. undef WITH_${category}_MODULES +. endif +. if defined (WITH_CUSTOM_${category}) +_APACHE_MODULES+=3D ${WITH_CUSTOM_${category}} +. endif +.elif defined(WITH_${category}_MODULES) +_APACHE_MODULES+=3D ${${category}_MODULES} +.endif +.endfor +. if defined(WITH_EXTRA_MODULES) +_APACHE_MODULES+=3D ${WITH_EXTRA_MODULES} +. endif +.endif + +.if !defined(WITH_STATIC_APACHE) +. if ${USE_APACHE:Mcommon2*} !=3D "" +# FYI +#DYNAMIC_MODULES=3D so +CONFIGURE_ARGS+=3D --enable-so +. endif +.else +. if ${USE_APACHE:Mcommon2*} !=3D "" +CONFIGURE_ARGS+=3D --disable-so +. endif +WITH_ALL_STATIC_MODULES=3D YES +.endif + +.if defined(WITH_SUEXEC) || defined(WITH_SUEXEC_MODULES) +.if ${USE_APACHE} =3D=3D common13 +SUEXEC_CONFARGS=3D suexec +CONFIGURE_ARGS+=3D --enable-suexec +.elif ${USE_APACHE:Mcommon2*} !=3D "" +SUEXEC_CONFARGS=3D with-suexec +.endif + +# From now we're defaulting to apache 2.* +SUEXEC_DOCROOT?=3D ${PREFIX}/www/data +SUEXEC_USERDIR?=3D public_html +SUEXEC_SAFEPATH?=3D ${PREFIX}/bin:${LOCALBASE}/bin:/usr/bin:/bin +SUEXEC_LOGFILE?=3D /var/log/httpd-suexec.log +SUEXEC_UIDMIN?=3D 1000 +SUEXEC_GIDMIN?=3D 1000 +SUEXEC_CALLER?=3D ${WWWOWN} +_APACHE_MODULES+=3D ${SUEXEC_MODULES} +CONFIGURE_ARGS+=3D --${SUEXEC_CONFARGS}-caller=3D${SUEXEC_CALLER} \ + --${SUEXEC_CONFARGS}-uidmin=3D${SUEXEC_UIDMIN} \ + --${SUEXEC_CONFARGS}-gidmin=3D${SUEXEC_GIDMIN} \ + --${SUEXEC_CONFARGS}-userdir=3D"${SUEXEC_USERDIR}" \ + --${SUEXEC_CONFARGS}-docroot=3D"${SUEXEC_DOCROOT}" \ + --${SUEXEC_CONFARGS}-safepath=3D"${SUEXEC_SAFEPATH}" \ + --${SUEXEC_CONFARGS}-logfile=3D"${SUEXEC_LOGFILE}" \ + --${SUEXEC_CONFARGS}-bin=3D"${PREFIX}/sbin/suexec" +. if defined(WITH_SUEXEC_UMASK) +CONFIGURE_ARGS+=3D --${SUEXEC_CONFARGS}-umask=3D${WITH_SUEXEC_UMASK} +. endif +.endif + +.if !defined(WITHOUT_MODULES) +APACHE_MODULES=3D ${_APACHE_MODULES} +.else +APACHE_MODULES!=3D \ + for module in ${_APACHE_MODULES}; do \ + ${ECHO_CMD} ${WITHOUT_MODULES} | ${GREP} -wq $${module} 2> /dev/null |= | \ + ${ECHO_CMD} $${module}; \ + done +.endif + +.if defined(WITH_STATIC_MODULES) +. if ${USE_APACHE} =3D=3D common13 +STATIC_MODULE_CONFARG=3D --enable-module=3D$${module} +DSO_MODULE_CONFARG=3D --enable-module=3D$${module} --enable-shared=3D$${m= odule} +. else +STATIC_MODULE_CONFARG=3D --enable-$${module} +DSO_MODULE_CONFARG=3D --enable-$${module}=3Dshared +.endif +_CONFIGURE_ARGS!=3D \ + for module in ${APACHE_MODULES} ; do \ + ${ECHO_CMD} ${WITH_STATIC_MODULES} | \ + ${GREP} -wq $${module} 2> /dev/null ; \ + if [ "$${?}" =3D "0" ] ; then \ + ${ECHO_CMD} "${STATIC_MODULE_CONFARG}"; \ + else \ + ${ECHO_CMD} "${DSO_MODULE_CONFARG}"; \ + fi; done +CONFIGURE_ARGS+=3D ${_CONFIGURE_ARGS} +.elif defined(WITH_STATIC_APACHE) || defined(WITH_ALL_STATIC_MODULES) +WITH_STATIC_MODULES=3D ${APACHE_MODULES} +. if ${USE_APACHE} =3D=3D common13 +. for module in ${APACHE_MODULES} +CONFIGURE_ARGS+=3D --enable-module=3D${module} +. endfor +. else +CONFIGURE_ARGS+=3D --enable-modules=3D"${APACHE_MODULES}" +. endif +.else +. if ${USE_APACHE} =3D=3D common13 +. for module in ${APACHE_MODULES} +CONFIGURE_ARGS+=3D --enable-module=3D${module} --enable-shared=3D${module} +. endfor +. else +CONFIGURE_ARGS+=3D --enable-mods-shared=3D"${APACHE_MODULES}" +. endif +.endif + +.if defined(WITH_STATIC_MODULES) +_SHARED_MODULES!=3D \ + for module in ${APACHE_MODULES} ; do \ + ${ECHO_CMD} ${WITH_STATIC_MODULES} | ${GREP} -wq $${module} 2> /dev/nu= ll || \ + ${ECHO_CMD} $${module}; \ + done +SHARED_MODULES=3D ${_SHARED_MODULES} +.elif !defined(WITH_ALL_STATIC_MODULES) +SHARED_MODULES=3D ${APACHE_MODULES} +.endif + +. for module in ${SHARED_MODULES} +${module}_PLIST_SUB=3D "" +. endfor + +.for module in ${AVAILABLE_MODULES} +PLIST_SUB+=3D MOD_${module:U}=3D${${module}_PLIST_SUB} +.endfor +####End of PORT_IS_SERVER #### + +.elif defined(APR_DEPS) +IGNORE=3D ${_ERROR_MSG} apr support is not yet implemented +#### XXX End of APR_DEPS #### + +.elif defined(AP_PORT_IS_MODULE) +#### XXX Start of PORT IS MODULE #### +AP_VERSION=3D ${USE_APACHE:C/\.//} + +APXS?=3D ${LOCALBASE}/sbin/apxs +HTTPD?=3D ${LOCALBASE}/sbin/httpd + +MODULENAME?=3D ${PORTNAME} +SHORTMODNAME?=3D ${MODULENAME:S/mod_//} +SRC_FILE?=3D ${MODULENAME}.c +OVERRIDABLE_VARS=3D SRC_FILE MODULENAME SHORTMODNAME WRKSRC \ + PKGNAMESUFFIX + +.if exists(${HTTPD}) +AP_CUR_VERSION!=3D ${HTTPD} -V | ${SED} -ne 's/^Server version: Apache\/\(= [0-9]\)\.\([0-9]*\).*/\1\2/p' +. if ${AP_CUR_VERSION} > 13 +APACHE_MPM!=3D ${APXS} -q MPM_NAME +. endif =09 +.elif defined(APACHE_PORT) +AP_CUR_VERSION!=3D ${ECHO_CMD} ${APACHE_PORT} | ${SED} -ne 's,.*/apache\([= 0-9]*\).*,\1,p' +.endif + +.if defined(AP_CUR_VERSION) +VERSION_CHECK!=3D eval `${ECHO_CMD} "[ ${AP_VERSION} -eq ${AP_CUR_VERSION= } ]" | ${SED} -e 's/- -eq/ -ge/ ; s/+ -eq/ -le/' ` ; ${ECHO_CMD} $${?} +. if ${VERSION_CHECK} =3D=3D 1 +IGNORE=3D ${_ERROR_MSG} apache${AP_CUR_VERSION} is installed (or APACHE_P= ORT is defined) and port requires ${USE_APACHE} +. endif +APACHE_VERSION=3D ${AP_CUR_VERSION} +.else +AP_CUR_VERSION=3D none +. if defined(${APACHE_PORT}) +#Fallback to smallest version... +APACHE_VERSION=3D ${AP_VERSION:C/\+//} +. endif +.endif + +.if exists(${APXS}) +APXS_PREFIX!=3D ${APXS} -q prefix 2> /dev/null || echo NULL +. if ${APXS_PREFIX} =3D=3D NULL +IGNORE=3D : Your apache does not support DSO modules +. endif +. if defined(AP_GENPLIST) && ${APXS_PREFIX} !=3D ${PREFIX} +IGNORE?=3D PREFIX must be egal to APXS_PREFIX. +. endif +.endif + +.if ${APACHE_VERSION} =3D=3D "20" +AP_BUILDEXT=3D la +PLIST_SUB+=3D APACHEMODDIR=3D"libexec/apache2" \ + APACHEINCLUDEDIR=3D"include/apache2" +APACHE_PORT=3D www/apache${APACHE_VERSION} +.elif ${APACHE_VERSION} =3D=3D "21" +AP_BUILDEXT=3D la +PLIST_SUB+=3D APACHEMODDIR=3D"libexec/apache${APACHE_VERSION}" \ + APACHEINCLUDEDIR=3D"include/apache${APACHE_VERSION}" +APACHE_PORT=3D www/apache${APACHE_VERSION} +.else +AP_BUILDEXT=3D so +PLIST_SUB+=3D APACHEMODDIR=3D"libexec/apache" \ + APACHEINCLUDEDIR=3D"include/apache" +APACHE_PORT?=3D www/apache13 +.endif +.for VAR in ${OVERRIDABLE_VARS} +. if defined(AP${APACHE_VERSION}_${VAR}) +${VAR} =3D${AP${APACHE_VERSION}_${VAR}} +. endif +.endfor + +BUILD_DEPENDS+=3D ${APXS}:${PORTSDIR}/${APACHE_PORT} +RUN_DEPENDS+=3D ${APXS}:${PORTSDIR}/${APACHE_PORT} +PLIST_SUB+=3D AP_NAME=3D"${SHORTMODNAME}" +PLIST_SUB+=3D AP_MODULE=3D"${MODULENAME}.so" + +.if defined(AP_GENPLIST) +PLIST?=3D ${WRKDIR}/ap-plist +.endif + +.if defined(AP_INC) +AP_EXTRAS+=3D -I ${AP_INC} +.endif +.if defined(AP_LIB) +AP_EXTRAS+=3D -L ${AP_LIB} +.endif + +#### XXX End of PORT IS MODULE #### +.endif + +### XXX TARGETS ### +.if defined(AP_PORT_IS_SERVER) +#### XXX Start of PORT IS SERVER #### +#### XXX End of PORT IS SERVER #### +.elif defined(AP_PORT_IS_MODULE) +#### XXX Start of PORT IS MODULE #### + +.if defined(AP_FAST_BUILD) +.if !target(ap-gen-plist) +ap-gen-plist: +.if defined(AP_GENPLIST) +. if !exists(${PLIST}) + @${ECHO} "=3D=3D=3D> Generating apache plist" + @${ECHO} "@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%%APACHEMODDIR%%/%= %AP_MODULE%%" > ${PLIST} + @${ECHO} "%%APACHEMODDIR%%/%%AP_MODULE%%" >> ${PLIST} + @${ECHO} "@exec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%F" >> ${PLIST} + @${ECHO} "@unexec echo \"Don't forget to remove all ${MODULENAME}-related= directives in your httpd.conf\"">> ${PLIST} +. endif +.else + @${DO_NADA} +.endif +.endif + +.if !target(do-build) +do-build: ap-gen-plist + @cd ${WRKSRC} && ${APXS} -c ${AP_EXTRAS} -o ${MODULENAME}.${AP_BUILDEXT} = ${SRC_FILE} +.endif + +.if !target(do-install) +do-install: + @${APXS} -i -A -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.${AP_BUILDEXT} +.endif + +.endif + +#### XXX End of PORT IS MODULE #### +.endif Index: Mk/bsd.port.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.511 diff -u -r1.511 bsd.port.mk --- Mk/bsd.port.mk 17 Mar 2005 23:22:07 -0000 1.511 +++ Mk/bsd.port.mk 4 Jun 2005 16:51:54 -0000 @@ -1769,6 +1769,10 @@ .include "${PORTSDIR}/Mk/bsd.python.mk" .endif =20 +.if defined(USE_APACHE) +.include "${PORTSDIR}/Mk/bsd.apache.mk" +.endif + .if exists(${PORTSDIR}/../Makefile.inc) .include "${PORTSDIR}/../Makefile.inc" USE_SUBMAKE=3D yes --Ycz6tD7Th1CMF4v7-- --HnQK338I3UIa/qiP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCoeWIsRhfjwcjuh0RApH2AJ4mlp2feYQ5+K57IeXvVx4rxKX8uQCfS1/X u0yC0MDKVib2d2qjW/Fi14c= =THq3 -----END PGP SIGNATURE----- --HnQK338I3UIa/qiP--