From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16168 invoked by uid 1002); 10 Jun 2003 14:26:00 -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 4463 invoked from network); 10 Jun 2003 14:25:59 -0000 Message-ID: <3EE5EA76.7090805@komcept.com> Date: Tue, 10 Jun 2003 15:25:58 +0100 From: MAL Organization: Komcept Solutions Ltd. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030523 X-Accept-Language: en-gb, en MIME-Version: 1.0 To: gentoo-dev@gentoo.org X-Enigmail-Version: 0.74.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [gentoo-dev] ebuild question X-Archives-Salt: bd3a7c9d-6f53-4a30-8dc4-3949eb129464 X-Archives-Hash: f02509e869140fc51b4b771bf68983ee I'm writing an ebuild for ZoneMinder, and I have a few problems/queries.. The program is a bunch of php and a few cgi apps. After configuring, the package asks you to run a perl script which interactively asks you for initial configuration, then updates the .php files with this info. 'make install' then installs the .php files into your document root, (and the cgi into your cgi-bin dir). Now, I don't want to break the non-interactivity of portage, but I can't just leave an 'einfo' message to the user after install, asking them to run the perl script, because this must be done before install. So, do I either: * Use expect to answer the perl script's questions with some sensible defaults, then leave a message to the user on how to change these defaults after install, (in which case, should I add expect to the DEPEND line?) * Re-package the software entirely, (there is a compiled part and a non-compiled php part.. maybe separate the php part out). I'm kinda loathed to do this, as it seems like unnecessary maintenance. * Modify the perl script to automatically set certain defaults. Additionally, what do I do about the location of apache, and the user/group to set the php files as? :) I noticed the recent eclass submission, but I'm assuming I can't use that just yet, so /home/httpd/htdocs and apache:apache ? Cheers, MAL -- gentoo-dev@gentoo.org mailing list