* fixed prewikka by providing an own siteconfig.py
git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21922 10447126-35f2-4685-b0cf-6dd780d3921f
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||||
#
|
#
|
||||||
# Filename: package/.../prewikka/prewikka.conf
|
# Filename: package/.../prewikka/prewikka.conf
|
||||||
# Copyright (C) 2006 The OpenSDE Project
|
# Copyright (C) 2006 - 2007 The OpenSDE Project
|
||||||
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
||||||
#
|
#
|
||||||
# More information can be found in the files COPYING and README.
|
# More information can be found in the files COPYING and README.
|
||||||
@@ -21,3 +21,11 @@ if [ $prefix_auto = 1 ] ; then
|
|||||||
fi
|
fi
|
||||||
set_confopt
|
set_confopt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pkg_prewikka_premake() {
|
||||||
|
sed -e "s,\@\@VERSION\@\@,$ver,g" \
|
||||||
|
-e "s,\@\@PREFIX\@\@,\/$prefix,g" \
|
||||||
|
-e "s,\@\@SYSCONFDIR\@\@,$sysconfdir,g" \
|
||||||
|
$confdir/siteconfig.py.in > $builddir/$pkg-$ver/$pkg/siteconfig.py
|
||||||
|
}
|
||||||
|
hook_add premake 3 "pkg_prewikka_premake"
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||||
|
#
|
||||||
|
# Filename: package/.../prewikka/setup_py.patch
|
||||||
|
# Copyright (C) 2007 The OpenSDE Project
|
||||||
|
#
|
||||||
|
# More information can be found in the files COPYING and README.
|
||||||
|
#
|
||||||
|
# This patch file is dual-licensed. It is available under the license the
|
||||||
|
# patched project is licensed under, as long as it is an OpenSource license
|
||||||
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||||||
|
# of the GNU General Public License as published by the Free Software
|
||||||
|
# Foundation; either version 2 of the License, or (at your option) any later
|
||||||
|
# version.
|
||||||
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
||||||
|
|
||||||
|
--- ./setup.py.orig 2007-08-04 01:02:10.000000000 +0200
|
||||||
|
+++ ./setup.py 2007-08-04 01:02:55.000000000 +0200
|
||||||
|
@@ -183,7 +183,6 @@
|
||||||
|
def run(self):
|
||||||
|
os.umask(022)
|
||||||
|
self.install_conf()
|
||||||
|
- self.init_siteconfig()
|
||||||
|
install.run(self)
|
||||||
|
|
||||||
|
for dir in ("/",
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||||
|
#
|
||||||
|
# Filename: package/.../prewikka/siteconfig.py.in
|
||||||
|
# Copyright (C) 2007 The OpenSDE Project
|
||||||
|
#
|
||||||
|
# More information can be found in the files COPYING and README.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
||||||
|
# GNU General Public License can be found in the file COPYING.
|
||||||
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
||||||
|
|
||||||
|
htdocs_dir = '@@PREFIX@@/share/prewikka/htdocs'
|
||||||
|
database_dir = '@@PREFIX@@/share/prewikka/database'
|
||||||
|
locale_dir = '@@PREFIX@@/share/locale/'
|
||||||
|
conf_dir = '@@SYSCONFDIR@@/prewikka'
|
||||||
|
version = '@@VERSION@@'
|
||||||
Reference in New Issue
Block a user