From owner-freebsd-apache@freebsd.org Wed Oct 18 00:16:51 2017 Return-Path: Delivered-To: freebsd-apache@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 2DA2EE4B5A8 for ; Wed, 18 Oct 2017 00:16:51 +0000 (UTC) (envelope-from SRS0=iyxb=BR=quip.cz=000.fbsd@elsa.codelab.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 189E263549 for ; Wed, 18 Oct 2017 00:16:51 +0000 (UTC) (envelope-from SRS0=iyxb=BR=quip.cz=000.fbsd@elsa.codelab.cz) Received: by mailman.ysv.freebsd.org (Postfix) id 1508EE4B5A6; Wed, 18 Oct 2017 00:16:51 +0000 (UTC) Delivered-To: apache@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 14820E4B5A5; Wed, 18 Oct 2017 00:16:51 +0000 (UTC) (envelope-from SRS0=iyxb=BR=quip.cz=000.fbsd@elsa.codelab.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 CF17163548; Wed, 18 Oct 2017 00:16:47 +0000 (UTC) (envelope-from SRS0=iyxb=BR=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 41C0228422; Wed, 18 Oct 2017 02:16:39 +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 351C82840C; Wed, 18 Oct 2017 02:16:38 +0200 (CEST) To: apache@FreeBSD.org, FreeBSD Ports From: Miroslav Lachman <000.fbsd@quip.cz> Subject: requesting policy for Apache module installation (LoadModule manipulation) Message-ID: <59E69D65.6020802@quip.cz> Date: Wed, 18 Oct 2017 02:16:37 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2017 00:16:51 -0000 Hello, I would like to ask some changes in how Apache modules are installed. There are many maintainers and many different sources for Apache modules. Some modules are installing sample files, some are modifying httpd.conf (LoadModule line) after each install / deinstall. The modification after each deinstall is really a mess. If I installed mod_xsendfile, enabled it in httpd.conf and later will use pkg upgrade it will modify my httpd.conf in unwanted way - the mod_xsendfile will be disabled. Same applies to many other modules. Some modules (mod_php) is installed and enabled by default. (different behaviour for different modules? Why?) Can this behaviour be changed (unified) for all Apache modules to not touch these lines (modules enabled by user)? If some port install some config file and user did some changes, this file must not be deleted by deinstalling the port so why Apache modules can remove / comment out lines touched by users? Broken Apache webserver after each pkg upgrade is really annoying. Making all ports use the same script post-install / post-deinstall would be nice too. For example mod_php uses "scripts":{ "post-install":"/usr/local/sbin/apxs -e -a -n php5 libphp5.so", "pre-deinstall":"/usr/local/sbin/apxs -e -A -n php5 libphp5.so" }, mod_xsendfile uses "scripts":{ "post-install":"/usr/local/sbin/apxs -e -A -n xsendfile /usr/local/libexec/apache24/mod_xsendfile.so", "post-deinstall":"/usr/bin/sed -i '' -E '/LoadModule[[:blank:]]+xsendfile_module/d' /usr/local/etc/apache24/httpd.conf\necho \"Don't forget to remove all mod_xsendfile-related directives in your httpd.conf\"" } to achieve the same results (broken httpd.conf) mod_php uses pre-deinstall mod_xsendfile uses post-deinstall mod_php enables mod_php on installation by apxs -e -a mod_xsendfile adds commented line by apxs -e -A This is just example of two modules. I looked at more modules and they are almost unique - each using different targets, different apxs options etc. I am proposing not touching httpd.conf on deinstall at all and just printing the warning that the corresponding LoadModule line should be removed if it is no longer necessary. (by running apxs command?) Also use "apxs -e -A -n moduleName" on install only if there is no LoadModule line for this module: "post-install":"/usr/bin/grep -E '^#?LoadModule.*php5_module' /usr/local/etc/apache24/httpd.conf || /usr/local/sbin/apxs -e -A -n php5 libphp5.so" Another way to achieve this can be separate file in apache24/modules.d/ installed as sample and if user wants to enable it, just rename it to moduleName.conf. Then it will not be touched by pkg upgrade / deinstall phase. Miroslav Lachman From owner-freebsd-apache@freebsd.org Thu Oct 19 14:18:44 2017 Return-Path: Delivered-To: freebsd-apache@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 B8C2BE3CE77 for ; Thu, 19 Oct 2017 14:18:44 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 945526BC64 for ; Thu, 19 Oct 2017 14:18:44 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 908B9E3CE76; Thu, 19 Oct 2017 14:18:44 +0000 (UTC) Delivered-To: apache@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 8D620E3CE75 for ; Thu, 19 Oct 2017 14:18:44 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 20FC46BC63 for ; Thu, 19 Oct 2017 14:18:44 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id u138so16866661wmu.4 for ; Thu, 19 Oct 2017 07:18:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=kHePgVpU0uxposvxzyjOfHk5Xvx3SoTQVM2aKABfX84=; b=C1PYi8OM8QNjGZYMLsSqIs9asqHQfhWxSDzunEuq1vsz6bCqdMvN6QhtswJVUX1URo p8oiciiqTRbo/+vm26HtxId4xAef6EMwA6vWoHqt8O8fb4jvDEWeE6VLB1baCktHZTlj 7+Q1GoMJNKVPdln2PSqqglaVJ4btOKpuzP/7mRAbRfLVcUhs5HLGHMBMQTt7sdF9CapO 4w5Jh5/0JMbjfereRGTqBXDPlfdWtPaq6cuDnQ6ehUjLvmq7/8+6jBYsNZKgKVauUW4a kuhQo2BBIAgqZuNE4prGGl4MPPVHDFR0OO3OibGnneNgloI0jwie5QqPJqodJ/y8NKJt V0FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=kHePgVpU0uxposvxzyjOfHk5Xvx3SoTQVM2aKABfX84=; b=PsTKZCdtsvKOy6FdlAJx7S5x7MbGi4PpwLqdNt2m0X1Onrpf1qCLbLrrtOfiLUorGe MDpCEelEL51ME5qwpp8Kp3pwlvwjgVLc0RkA4M0nBT0CX6RsKdS52gFzdishiAhPpoXe etqlTk0Y2gmmoW/1MLeIUclyzfDL0z/waHn9hxOby/gRssKZl03vBoNAhXPOBtoEqCU0 aZESXWMu6vFIoivzvb0a/bzo3b67sENe6Am/sEPTIWwioN444U043MlcpJTRF980ONRH 2CUVzK6f2lpyBxjq84+4eq/NUYJwT8bVzjZw0G2pkYBxzye+gtviu0DQ/yvDMK8GmXq3 ZteA== X-Gm-Message-State: AMCzsaXLfyoFi4xCEby7iqH+35/hVrqLgpxmCAAxD9xZ+HBD6Iuo1CDC mChJAkcdwdO/GN8GAt8k+eJFOtUF X-Google-Smtp-Source: ABhQp+RmJpvYRAjdwVUU9AX5fhlO8B1SNJuWvEoS34DIVyHQQrFI5S43EkLUoqc2pTugcwZFhXPKLQ== X-Received: by 10.28.130.131 with SMTP id e125mr2040747wmd.125.1508422722241; Thu, 19 Oct 2017 07:18:42 -0700 (PDT) Received: from bens-mac.home (LFbn-MAR-1-445-220.w2-15.abo.wanadoo.fr. [2.15.38.220]) by smtp.gmail.com with ESMTPSA id q4sm1438538wmd.19.2017.10.19.07.18.40 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Oct 2017 07:18:41 -0700 (PDT) Content-Type: text/plain; charset=us-ascii; delsp=yes; format=flowed Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: FreeBSD Port: www/apache24 From: Ben RUBSON In-Reply-To: <1C3B816A-25F3-4340-9C51-26CF982EC701@gmail.com> Date: Thu, 19 Oct 2017 16:18:39 +0200 Content-Transfer-Encoding: 7bit Message-Id: References: <1C3B816A-25F3-4340-9C51-26CF982EC701@gmail.com> To: apache@FreeBSD.org X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2017 14:18:44 -0000 Hi Apache QA team, May I ask you to review this PR please ? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222814 I'm really waiting for the 2.4.28 package :) Thank you very much ! Ben On 03 Oct 2017 18:25, Ben RUBSON wrote: > Hi FreeBSD Apache team, > > Just a quick question, when do you plan > to release port of Apache 2.4.28 ? > > Thank you very much ! > > Best, > > Ben