From owner-freebsd-apache@FreeBSD.ORG Fri Apr 15 03:43:52 2011 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CED51065673 for ; Fri, 15 Apr 2011 03:43:52 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from EXHUB015-4.exch015.msoutlookonline.net (exhub015-4.exch015.msoutlookonline.net [207.5.72.96]) by mx1.freebsd.org (Postfix) with ESMTP id 396BC8FC15 for ; Fri, 15 Apr 2011 03:43:52 +0000 (UTC) Received: from [192.168.1.2] (173.66.131.189) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.2.254.0; Thu, 14 Apr 2011 20:33:49 -0700 Message-ID: <4DA7BC9D.8050907@p6m7g8.com> Date: Thu, 14 Apr 2011 23:33:49 -0400 From: "Philip M. Gollucci" Organization: P6M7G8 Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: References: <4DA1DB8E.40702@FreeBSD.org> In-Reply-To: <4DA1DB8E.40702@FreeBSD.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: freebsd-apache@freebsd.org Subject: Re: How to make www/apache22-worker-mpm a dependency? 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: Fri, 15 Apr 2011 03:43:52 -0000 Are you sure about this? APACHE_PORT=www/apache22-worker-mpm should work too in /etc/make.conf On 4/10/2011 12:32 PM, Olli Hauer wrote: > On 2011-04-08 15:20, rainer@ultra-secure.de wrote: >> Hi, >> >> I would like to make www/apache22-worker-mpm the "default" apache, instead >> of 1.3 (or 2.2). >> The reason is that I build my ports in a tinderbox and even if I change >> the USE_APACHE=1.3+ to USE_APACHE=2.2+ in e.g. the mod_fastcgi >> ports-Makefile, it still installs the "normal" prefork-apache22. >> Thus, upon installing the package, I have to de-install the wrong >> apache-package first, then install the worker-mpm-apache and then pkgdb -F >> the pkg-database. >> >> Anybody have a solution for that? >> >> >> Regards, >> Rainer > > Hi Rainer, > > the only way to build apache22 with mpm-worker in tinderbox is to > set WITH_MPM=worker in "$tb/scripts/etc/env/build.$buildname" > or in a "/etc/make.conf" of the tinderbox jail which can be injected > with the postBuildExtract hook. > > > The disadvantage is that the latest link and pkg-desc > does not reflect this setting but you can fix this with this patch > > # diff -u apache22/Makefile.modules.orig apache22/Makefile.modules > --- apache22/Makefile.modules.orig 2011-03-31 19:00:36.000000000 +0200 > +++ apache22/Makefile.modules 2011-04-10 18:21:23.000000000 +0200 > @@ -60,6 +60,8 @@ > . endif > . if ${WITH_MPM:L} == "worker" > PLIST_SUB+= PREFORK="@comment " WORKER="" EVENT="@comment " > +LATEST_LINK= apache22-worker-mpm > +DESCR= ${.CURDIR}/../apache22-worker-mpm/pkg-descr > . elif ${WITH_MPM:L} == "event" > PLIST_SUB+= PREFORK="@comment " WORKER="@comment " EVENT="" > . elif ${WITH_MPM:L} == "itk" > > > If you want to go the tinderbox hook way ... > Snippet from my tinderbox postBuildExtract hook, place the script into > ${TB}/scripts and install with > $> ./tc updateHookCmd -h postBuildExtract -c hook_postBuildExtract > > #====================================================================== > # hook_postBuildExtract > # > # no make.conf for this build > if [ "${BUILD}" = "7.4-porter" ]; then > return 0 > fi > > MAKE_CONF=${PB}/jails/make.conf > [ ${RC} -eq 0 ] || _diag > [ -z ${BUILD} ] && echo "not running from tnderbox" && return 1 > [ -z ${DESTDIR} ] && echo "not running from tnderbox" && return 1 > [ -z ${JAIL} ] && echo "not running from tnderbox" && return 1 > [ -r ${MAKE_CONF} ] && cp -v ${MAKE_CONF} ${DESTDIR}/etc/make.conf > _ret=$? > > if [ -z $_ret ]; then > # make.conf was not found > return 2 > fi > > return 0 > > > Save the following lines as ${TB}/jails/make.conf > #====================================================================== > .if ${.CURDIR:M*/www/apache22} > #WITH_MPM=prefork > # mpm_worker breaks php5 postgresql module > #WITH_MPM=worker > .endif > #====================================================================== > > > // olli > _______________________________________________ > freebsd-apache@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-apache > To unsubscribe, send any mail to "freebsd-apache-unsubscribe@freebsd.org" > -- ------------------------------------------------------------------------ 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354 Member, Apache Software Foundation Committer, FreeBSD Foundation Consultant, P6M7G8 Inc. Sr. System Admin, Ridecharge Inc. Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.