Re: PEAR Installer messages

From: Date: Sun, 29 Jul 2001 21:42:07 +0000
Subject: Re: PEAR Installer messages
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1135@lists.php.net to get a copy of this message
Jon Parise wrote: > > I was thinking it might be a good idea to add support in both > package.xml and the PEAR installer for optional pre- and post- > installation notes that could be displayed to the administrator > installing the package. > > These notes could inform the administrator about additional > configuration steps or warm them about possible insecure misuse > of the package. > > I believe the RPM format has similar capabilities. I'm all for adding pre/post-install notes, as well as pre/post install/uninstall scripts. Since the packages are supposed to be installable on windows too, they need to be written in PHP. Examples: <Package Version="1"> <Name>Money_Fast</Name> <Summary>Make money fast with this package!</Summary> <Maintainer> ... </Maintainer> <Release> <Version>1.2</Version> <Date>2001-04-15</Date> <Notes>...</Notes> <PostInstallScript><![CDATA[ $fp = fopen("/etc/php/pear/money_fast.ini", "w"); ]]></PostInstallScript> <PostInstallNote>Good luck with your fast money making!</PostInstallNote> </Release> </Package> New elements (as sub-elements of either Release or Package): PreInstallNote PreInstallScript PostInstallNote PostInstallScript PreUninstallNote PreUninstallScript PostUninstallNote PostUninstallScript - Stig

« previous php.pear.dev (#1135) next »