From 8be174935e637647c20cd721b8b0ad231e57bba5 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Mon, 23 May 2011 14:25:18 +0200 Subject: [PATCH] Online Money Management (omoma) package --- pkgbuild/omoma/PKGBUILD | 29 +++++++++++++++++++++++++++++ pkgbuild/omoma/omoma.install | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 pkgbuild/omoma/PKGBUILD create mode 100644 pkgbuild/omoma/omoma.install diff --git a/pkgbuild/omoma/PKGBUILD b/pkgbuild/omoma/PKGBUILD new file mode 100644 index 0000000..ee25237 --- /dev/null +++ b/pkgbuild/omoma/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Cedric Girard +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: diff --git a/pkgbuild/omoma/omoma.install b/pkgbuild/omoma/omoma.install new file mode 100644 index 0000000..940c9c2 --- /dev/null +++ b/pkgbuild/omoma/omoma.install @@ -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: