featureserver-py _unstable_ port information

Info2: <<
Package: featureserver-py%type_pkg[python]
Type: python (2.5)
Version: 1.12
Revision: 1
Distribution: 10.5
Depends: python%type_pkg[python], simplejson-py%type_pkg[python], gdal-py%type_pkg[python], paste-py%type_pkg[python], cheetah-py%type_pkg[python], psycopg2-py%type_pkg[python]

#psycopg-py%type_pkg[python] # can I make this use psycopg2?

Source: http://featureserver.org/featureserver-%v.tar.gz
Source-MD5: 6081e2bee7273d239515e017565218de

DocFiles: LICENSE.txt doc

CompileScript: echo Skipping compile stage

InstallScript: <<
#! /bin/bash -ev
%p/bin/python%type_raw[python] setup.py install --root=%d

mkdir -p %i/lib/cgi-bin
mv %i/bin/featureserver.cgi %i/lib/cgi-bin/featureserver.cgi%type_raw[python]
mv %i/bin/featureserver.fcgi %i/lib/cgi-bin/featureserver.fcgi%type_raw[python]
mv %i/bin/featureserver_http_server.py %i/bin/featureserver_http_server%type_raw[python]
mv %i/bin/featureserver_install_config.py %i/bin/featureserver_install_config.py%type_raw[python]

mkdir -p %i/share/doc/%n
mv %i/FeatureServer/featureserver.cfg %i/share/doc/%n/
rmdir %i/FeatureServer
<<
# Thought about this, but instead putting it in as an example and leaving it to the
# local admin to configure how they want to setup their system for cgi.
#ConfFiles: %p/etc/featureserver-py%type_pkg[python]/featureserver.cfg

# based on ipython info file
PostInstScript: <<

update-alternatives --install %p/lib/cgi-bin/featureserver.cgi featureserver.cgi %p/lib/cgi-bin/featureserver.cgi%type_raw[python] %type_pkg[python]
update-alternatives --install %p/lib/cgi-bin/featureserver.fcgi featureserver.fcgi %p/lib/cgi-bin/featureserver.fcgi%type_raw[python] %type_pkg[python]
update-alternatives --install %p/bin/featureserver_http_server featureserver_http_server %p/bin/featureserver_http_server%type_raw[python] %type_pkg[python]
update-alternatives --install %p/bin/featureserver_install_config.py featureserver_install_config.py %p/bin/featureserver_install_config.py%type_raw[python] %type_pkg[python]

echo ""
echo "The scripts 'featureserver.cgi', 'featureserver.fcgi', 'featureserver_http_server' "
echo "and 'featureserver_install_config.py installed in %p/bin/ and %p/lib/cgi-bin"
echo "are symlinks automatically updated by the update-alternatives utility."
echo "If you install multiple flavours of the featureserver package, the symlinks"
echo "will point to the higher flavour by default."
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove featureserver.cgi %p/lib/cgi-bin/featureserver.cgi%type_raw[python]
update-alternatives --remove featureserver.fcgi %p/lib/cgi-bin/featureserver.fcgi%type_raw[python]
update-alternatives --remove featureserver_http_server %p/bin/featureserver_http_server%type_raw[python]
update-alternatives --remove featureserver_install_config.py %p/bin/featureserver_install_config.py%type_raw[python]
fi
<<

DescPort: <<
Putting CGIs in %i/lib/cgi-bin to match apache2.

Avoiding ConfFiles for now to allow admins total control of the cgi
without surprises of the default cfg going in %p/etc/%n or similiar
location.
<<

Description: Python RESTful Geographic Feature Service
DescDetail: <<
FeatureServer is an implementation of a RESTful Geographic Feature
Service. Using standard HTTP methods, you can fetch a representation
of a feature or a collection of features, add new data to the service,
or delete data from the service. Use it as an aggregator -- post your
GeoRSS feeds to it, and then browse them using WFS. Use it as a
translator: use the OGR DataSource to load a shapefile and open it in
Google Earth.
<<

DescUsage: <<
You need to create a config file for featureserver and setup the cgi
before this works. A sample config file:

%p/share/doc/%n/featureserver.cfg
<<
Maintainer: Kurt Schwehr
Homepage: http://featureserver.org/
LICENSE: BSD

# Info2:
<<