Summary
To install Nexista via PHP PEAR:
pear channel-discover pear.nexista.org pear install channel://pear.nexista.org/nexista-0.2.4
Creating the PEAR Package (Developer Stuff)
These are my notes on building the PEAR package. The Nexista PEAR-ification process is going along great. I updated all the class names with the package (Nexista) string, so "Init" becomes "Nexista_Init". It was a decent sized job but didn't take too long.
I am still planning to setup a channel server for the PEAR package, but first I want to merge the version 2.0 to the trunk.
Pfm to the rescue!
PEAR Packaging
You basically just have to run pfm and it will prompt you for all the info it needs. To get pfm, install PEAR_PackageFileManager_Cli.
I did this:
pear install channel://pear.php.net/PEAR_PackageFileManager_Cli-0.3.0
In the same directory as the nexista folder:
albertlash@dev-48:/var/www/dev$ pfm PEAR Package File Manager Command Line Tool Please enter the location of your package [.]*: nexista
Usually I have to edit the version, then regenerate the contents. If it goes well, then I run:
pear package nexista/package.xml
PEAR Server
I use the Chiara Quartet pear channel management system, its installed on svn-steel, but uses the pear.nexista.org hostname, so to use it I have to edit /etc/hosts. I upload the tgz file, and it takes care of the rest, almost. I have to sync it with the public servers:
'''svn-steel''':
rsync --exclude index.php . franky:/var/www/virtual/pear.nexista.org/public/ -av
'''dev-101''':
sh /var/www/scripts/rsync_virtual.sh