From owner-freebsd-isp@FreeBSD.ORG Wed May 27 23:17:51 2009 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC6D310656D7; Wed, 27 May 2009 23:17:51 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 88FE78FC17; Wed, 27 May 2009 23:17:51 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 7BF1619E044; Thu, 28 May 2009 00:58:35 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 1142819E043; Thu, 28 May 2009 00:58:33 +0200 (CEST) Message-ID: <4A1DC599.6010704@quip.cz> Date: Thu, 28 May 2009 00:58:33 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Doug Barton References: <4A166B29.1070202@interazioni.it> <4A1809E2.8020608@neely.cx> <4A1D5856.2040404@interazioni.it> <4A1D6691.9070006@FreeBSD.org> In-Reply-To: <4A1D6691.9070006@FreeBSD.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-isp@freebsd.org Subject: Re: Avoiding source code on production servers X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2009 23:17:52 -0000 Doug Barton wrote: [...] > I've submitted a proposal to the Foundation twice to extend portmaster > with similar functionality, but I haven't made the cut yet. I am still > interested in obtaining funding for this project, and this looks like > as good an opportunity as any to put that idea in front of new > eyeballs. Please take a look at the URL below, and anyone who has > ideas on how I might go about obtaining funding for this project feel > please let me know. > > > Regards, > > Doug > > http://dougbarton.us/portmaster-proposal.html As I am one of the users waiting for the feature: "H. Add support for shutdown and startup of services." I am suggesting more general interface for deinstall/preinstall/postinstall action hooks. Not just stop & start services, but allow users to define any shell command(s) to be executed in given [de|pre|post]install stage. Similar to BEFOREDEINSTALL, AFTERINSTALL... in pkgtools.conf of portupgrade, where one can define for example: 'security/courier-authlib*' => proc { |origin| cmd_real_restart_rc(origin) + '; chmod 0755 /var/run/authdaemond' }, It will be useful to define any commands, for example some logging patterns, e-mail alerts to operators, or shutdown another depending services (one may want to stop Apache, Postfix etc. if those services depends on MySQL and MySQL is the deinstalled package) I was trying to hack it on my own few month ago, but end up with ENOTIME (+ ENOSKILLS) :o) This is #1 on my wish list for improvements of portmaster. (#2 is support of binary packages) I hope you will succeed with funding. Thank you for your work on portmaster! (my primary ports tool) Miroslav Lachman