From d11944cf5c3b18bbbe2fa36f951412d10dbb368d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toshio=20=E3=81=8F=E3=82=89=E3=81=A8=E3=81=BF?= Date: Fri, 29 Feb 2008 22:14:12 +0000 Subject: [PATCH] * Fix instructions to include plpython requirement. * Start working on a list of requirements. --- fas/README | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/fas/README b/fas/README index eb1560d..8c3bf20 100644 --- a/fas/README +++ b/fas/README @@ -19,6 +19,18 @@ script. .. _TurboGears: http://www.turbogears.org +---------- +Installing +---------- + +Partial list of prereqs. When we build an rpm we'll nail this down in more +detail: + + * pygpgme + * python-psycopg2 + * python-sqlalchemy >= 0.4 + * TurboGears + * python-genshi ------- Hacking @@ -37,8 +49,17 @@ program. It allows things like the identity provider to work. Next you need to setup a database to work with FAS. At present, this needs to be a postgres database since we use triggers to manage some of the data (like -syncing accounts with bugzilla). So install and configure postgres. Then -create a postgres user to manage the data and import the schema:: +syncing accounts with bugzilla). So install postgres and plpython (the +language that we've written our triggers in):: + # Fedora 8: + sudo yum -y install postgresql-server postgresql-plpython + # RHEL 5: + sudo yum -y install postgresql-server postgresql-pl + +Do any configuration necessary and start up the postgres server. Then make the +plpython language available on new databases, create a postgres user to manage +the data and import the schema:: + sudo -u postgres createlang plpythonu template1 sudo -u postgres createuser --encrypted --pwprompt fedora sudo -u postgres psql < fas2.sql