From owner-freebsd-ports@freebsd.org Mon Aug 15 15:13:22 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8A0ABB9CB0 for ; Mon, 15 Aug 2016 15:13:22 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D45081803 for ; Mon, 15 Aug 2016 15:13:22 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: by mailman.ysv.freebsd.org (Postfix) id CFF5CBB9CAF; Mon, 15 Aug 2016 15:13:22 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF952BB9CAA for ; Mon, 15 Aug 2016 15:13:22 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 93F2D17FE; Mon, 15 Aug 2016 15:13:21 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id EE46828423; Mon, 15 Aug 2016 17:13:17 +0200 (CEST) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id DD6952842B; Mon, 15 Aug 2016 17:13:16 +0200 (CEST) Message-ID: <57B1DC0C.6040304@quip.cz> Date: Mon, 15 Aug 2016 17:13:16 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: Mathieu Arnold , ports@FreeBSD.org Subject: Re: [HEADSUP] extracting LoadModule out of httpd.conf References: <57AB978F.3090800@quip.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2016 15:13:23 -0000 Mathieu Arnold wrote on 08/15/2016 15:56: > +--On 10 août 2016 23:07:27 +0200 Miroslav Lachman <000.fbsd@quip.cz> > wrote: > | So... LoadModule can be extracted from httpd.conf (and nothing else). > | I am not sure if it should be one file for all modules or separate files > | for each module. > > Keeping them all in one file is about the same as not splitting them out of > httpd.conf, the problem is what I wrote in > , quoting here for easier reading: > > For example, say, the user uses the official packages: > > pkg install apache24 > edit httpd.conf to enable a few extensions, like, say, ssl and > socache_shmcb > some updates are done to apache, some more extensions are now built > with it > pkg upgrade > the new extensions are in not in httpd.conf, but they are in > httpd.conf.sample, so, the user will have to go look around in the sample > file (and know it exists) to get the new LoadModule lines into his > httpd.conf. This is not good. > > Other example: > > pkg install mod_php56 > I uncomment the LoadModule line in httpd.conf that mod_php56 magically > added > some time later, after php has been updated > pkg upgrade > the LoadModule php line is gone, or has been commented out, I'm not > happy :-) > > With one LoadModule (it being commented or not) per file, using @sample, > what the user comments or uncomments never gets changed. I am fine with this proposal for LoadModule. Even if it means more work on the first installation and go through all the files containing just one line. I think I will write some script with dialog to simplify this task. But I hope this is the only case where we split something out of httpd.conf. Miroslav Lachman