Online Money Management (omoma) package

This commit is contained in:
Cedric Girard 2011-05-23 14:25:18 +02:00
parent 1b4b377e9e
commit 8be174935e
2 changed files with 62 additions and 0 deletions

29
pkgbuild/omoma/PKGBUILD Normal file
View file

@ -0,0 +1,29 @@
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
pkgname=omoma
pkgver=0.2
pkgrel=1
pkgdesc="A financial web application"
arch=('any')
url="http://code.google.com/p/omoma/"
license=('GPL3')
depends=('python2' 'django' 'libofx')
source=(http://omoma.googlecode.com/files/$pkgname-$pkgver.zip)
md5sums=('7d9508cb17b7ebf2e927a553c896b9f3')
install=$pkgname.install
package() {
cd "$srcdir/$pkgname-$pkgver"
#clean .svn files
find "$srcdir/$pkgname-$pkgver" -depth -name ".svn" -exec rm -rf {} \;
#python mean python2
sed -i 's!/usr/bin/python!/usr/bin/python2!' $pkgname/manage.py
install -d "$pkgdir/srv/http/$pkgname"
cp -r "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir/srv/http/"
}
# vim:set ts=2 sw=2 et:

View file

@ -0,0 +1,33 @@
post_install() {
echo "
Database
========
You need a database to store Django data. Either PostgreSQL, SQLite, MySQL,
or Oracle. You have to create a database and give Django access to it (with
rights to create tables).
Configuring Omoma
=================
The configuration takes place in local_settings.py (must be copied from local_settings.py.default
You need to configure :
* DEBUG: True of False, it's up to you
* DATABASES: set what applies to your database in "default"
* TIME_ZONE: your timezone
* LANGUAGE_CODE: your language identifier
* SECRET_KEY: any random string
* TEMPLATE_DIRS: that depends on the place where you've installed Omoma
It should reference the "templates" subdir in the Omoma directory
* LOGIN_URL and LOGIN_REDIRECT_URL: you may add a prefix if you serve Omoma
in a subdirectory
Then, from the Omoma directory, execute the following command::
./manage.py syncdb
"
}
# vim:set ts=2 sw=2 et: