From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 185 invoked by uid 1002); 8 Jun 2003 10:12:34 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 353 invoked from network); 8 Jun 2003 10:12:34 -0000 From: Ned Ludd Reply-To: solar@gentoo.org To: gentoo-dev@gentoo.org Content-Type: multipart/mixed; boundary="=-pvVSty600Rr6EgDKzn+v" Organization: Gentoo Linux (Hardened) Message-Id: <1055067141.13370.109.camel@simple> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2- Date: 08 Jun 2003 06:12:21 -0400 Subject: [gentoo-dev] apache.eclass proposed X-Archives-Salt: e09bddc6-f77e-49d2-8079-ae41b8f83260 X-Archives-Hash: 461dbee30da6b8a41be94daa60ae77b5 --=-pvVSty600Rr6EgDKzn+v Content-Type: text/plain Content-Transfer-Encoding: 7bit After writing a net-www/ ebuild it seemed apparent to me that we are going to need an apache.eclass. A quick find in portage reveals quite a few independent ebuilds all needing the basic functionality that could be provided by an apache.eclass syntactically perfect the idea is what matters.. I have attached an apache.eclass that I welcome your input/feedback on. While it may not be syntactically perfect for the apache2 part its the idea that we get this out there and start talking about one that matters. my portage # find . -name '*.ebuild' | xargs grep HTTPD_USER= | wc 22 96 1904 my portage # find . -name '*.ebuild' | xargs grep HTTPD_GROUP= | wc 21 123 2081 my portage # find . -name '*.ebuild' | xargs grep HTTPD_ROOT= | wc 50 299 5154 -- Ned Ludd Gentoo Linux (Hardened) --=-pvVSty600Rr6EgDKzn+v Content-Disposition: attachment; filename=apache.eclass Content-Type: text/plain; name=apache.eclass; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ # # Author: Ned Ludd # # This eclass is designed to allow easier installation of web applications, # modules, and their counterparts incorporation into the Gentoo Linux system. # #set -x ECLASS=apache INHERITED="${INHERITED} ${ECLASS}" IUSE="apache2 ${IUSE}" DESCRIPTION="Based on the ${ECLASS} eclass" newdepend virtual/glibc sys-apps/gawk sys-apps/grep # apache2? ( >=net-www/apache-2.0.43-r1 ) \ # !apache2? ( !=net-www/apache-2'` ]; then # If user has apache 1 & 2 installed and use # `use apache2` was not set then we should pref apache1 if [ `has_version '