From fa61bdc8bcd74209c3d7bd2f22e548bb5bc4a090 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sat, 4 Aug 2007 13:56:06 +0000 Subject: [PATCH] * fixed prewikka by providing an own siteconfig.py git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21922 10447126-35f2-4685-b0cf-6dd780d3921f --- security/prewikka/prewikka.conf | 10 +++++++++- security/prewikka/setup_py.patch | 26 ++++++++++++++++++++++++++ security/prewikka/siteconfig.py.in | 19 +++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 security/prewikka/setup_py.patch create mode 100644 security/prewikka/siteconfig.py.in diff --git a/security/prewikka/prewikka.conf b/security/prewikka/prewikka.conf index c6c07de0f..7ddbf5fd3 100644 --- a/security/prewikka/prewikka.conf +++ b/security/prewikka/prewikka.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # 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 # # More information can be found in the files COPYING and README. @@ -21,3 +21,11 @@ if [ $prefix_auto = 1 ] ; then fi set_confopt 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" diff --git a/security/prewikka/setup_py.patch b/security/prewikka/setup_py.patch new file mode 100644 index 000000000..4e179ef26 --- /dev/null +++ b/security/prewikka/setup_py.patch @@ -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 ("/", diff --git a/security/prewikka/siteconfig.py.in b/security/prewikka/siteconfig.py.in new file mode 100644 index 000000000..d2d9c4d9c --- /dev/null +++ b/security/prewikka/siteconfig.py.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@@'