Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 133975 Details for
Bug 195771
webapp-config patch to make it work with prefixed portage
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch to webapp-config 1.50.16 itself to work with the prefixed portage
webapp-config-1.50.16-prefixportage.patch (text/plain), 4.55 KB, created by
Dirk Tilger
on 2007-10-20 18:12:21 UTC
(
hide
)
Description:
Updated patch to webapp-config 1.50.16 itself to work with the prefixed portage
Filename:
MIME Type:
Creator:
Dirk Tilger
Created:
2007-10-20 18:12:21 UTC
Size:
4.55 KB
patch
obsolete
>diff -ur /Gentoo/var/tmp/portage/app-admin/webapp-config-1.50.16-r2/work/webapp-config-1.50.16/WebappConfig/config.py WebappConfig/config.py >--- /Gentoo/var/tmp/portage/app-admin/webapp-config-1.50.16-r2/work/webapp-config-1.50.16/WebappConfig/config.py 2006-12-30 22:38:36 +0400 >+++ WebappConfig/config.py 2007-10-13 19:12:53 +0400 >@@ -206,7 +206,7 @@ > self.__d = { > 'config_protect' : wrapper.config_protect, > # Necessary to load the config file >- 'my_etcconfig' : '/etc/vhosts/webapp-config', >+ 'my_etcconfig' : '@GENTOO_PORTAGE_EPREFIX@/etc/vhosts/webapp-config', > 'my_dotconfig' : '.webapp', > 'my_version' : WCVERSION, > 'my_conf_version' : '7', >@@ -248,7 +248,7 @@ > # -- wrobel > 'vhost_server_uid' : 'root', > 'vhost_server_gid' : 'root', >- 'vhost_root' : '/var/www/%(vhost_hostname)s', >+ 'vhost_root' : '@GENTOO_PORTAGE_EPREFIX@/var/www/%(vhost_hostname)s', > 'g_htdocsdir' : '%(vhost_root)s/%(my_htdocsbase)s', > 'my_appdir' : '%(my_approot)s/%(my_appsuffix)s', > 'my_htdocsdir' : '%(my_appdir)s/htdocs', >@@ -257,9 +257,9 @@ > 'my_cgibindir' : '%(my_hostrootdir)s/%(my_cgibinbase)s', > 'my_iconsdir' : '%(my_hostrootdir)s/%(my_iconsbase)s', > 'my_errorsdir' : '%(my_hostrootdir)s/%(my_errorsbase)s', >- 'my_approot' : '/usr/share/webapps', >+ 'my_approot' : '@GENTOO_PORTAGE_EPREFIX@/usr/share/webapps', > 'my_appsuffix' : '%(pn)s/%(pvr)s', >- 'my_persistroot' : '/var/db/webapps', >+ 'my_persistroot' : '@GENTOO_PORTAGE_EPREFIX@/var/db/webapps', > 'my_hostrootbase' : 'hostroot', > 'my_cgibinbase' : 'cgi-bin', > 'my_iconsbase' : 'icons', >diff -ur /Gentoo/var/tmp/portage/app-admin/webapp-config-1.50.16-r2/work/webapp-config-1.50.16/WebappConfig/db.py WebappConfig/db.py >--- /Gentoo/var/tmp/portage/app-admin/webapp-config-1.50.16-r2/work/webapp-config-1.50.16/WebappConfig/db.py 2006-12-30 22:38:35 +0400 >+++ WebappConfig/db.py 2007-10-13 15:58:27 +0400 >@@ -461,7 +461,7 @@ > ''' > > def __init__(self, >- root = '/usr/share/webapps', >+ root = '@GENTOO_PORTAGE_EPREFIX@/usr/share/webapps', > package = '', > version = '', > installed = 'installed_by_webapp_eclass'): >diff -ur /Gentoo/var/tmp/portage/app-admin/webapp-config-1.50.16-r2/work/webapp-config-1.50.16/WebappConfig/sandbox.py WebappConfig/sandbox.py >--- /Gentoo/var/tmp/portage/app-admin/webapp-config-1.50.16-r2/work/webapp-config-1.50.16/WebappConfig/sandbox.py 2006-12-30 22:38:36 +0400 >+++ WebappConfig/sandbox.py 2007-10-13 20:55:05 +0400 >@@ -40,7 +40,7 @@ > > self.config = config > self.__path = [config_libdir + '/libsandbox.so', >- '/usr/lib/libsandbox.so', '/lib/libsandbox.so'] >+ '@GENTOO_PORTAGE_EPREFIX@/usr/lib/libsandbox.so', '@GENTOO_PORTAGE_EPREFIX@/lib/libsandbox.so'] > self.__export = {} > self.__write = ['g_installdir', > 'g_htdocsdir', >diff -ur /Gentoo/var/tmp/portage/app-admin/webapp-config-1.50.16-r2/work/webapp-config-1.50.16/WebappConfig/wrapper.py WebappConfig/wrapper.py >--- WebappConfig/wrapper.py 2006-12-30 22:38:35 +0400 >+++ WebappConfig/wrapper.py 2007-10-13 16:00:34 +0400 >@@ -52,7 +52,7 @@ > # example, if ABI == 'amd64' then read LIBDIR_amd64. This routine should work on > # all arches as it sets '/usr/lib' as a fallback. See bugs #125032 and #125156. > >-config_libdir = '/usr/lib' >+config_libdir = '@GENTOO_PORTAGE_EPREFIX@/usr/lib' > > if 'ABI' in portage.settings.keys(): > config_abi = portage.settings['ABI'] >--- sbin/webapp-cleaner 2007-10-20 19:35:30 +0400 >+++ sbin/webapp-cleaner 2007-10-20 19:37:02 +0400 >@@ -1,4 +1,4 @@ >-#!/bin/bash >+#!@GENTOO_PORTAGE_EPREFIX@/bin/bash > # Distributed under the terms of the GNU General Public License v2 > # $Header: $ > >@@ -8,10 +8,10 @@ > PRETEND= > > CMD="emerge -Cav" >-WEBAPP_DIR="/usr/share/webapps" >+WEBAPP_DIR="@GENTOO_PORTAGE_EPREFIX@/usr/share/webapps" > WEBAPP_CONFIG= > >-[[ -z ${RC_GOT_FUNCTIONS} ]] && source /etc/init.d/functions.sh >+[[ -z ${RC_GOT_FUNCTIONS} ]] && source @GENTOO_PORTAGE_EPREFIX@/etc/init.d/functions.sh > > function help() { > echo "Remove obsolete and unused versions of web applications"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 195771
:
133383
|
133384
| 133975 |
133976
|
133977