From bb8d718b481d94fedc1d223cf66763f02885adba Mon Sep 17 00:00:00 2001 From: rettenbe Date: Thu, 3 Jan 2008 07:40:01 +0000 Subject: [PATCH] DBsqlite and GosaSupportDaemon moved to namespace GOSA::DBsqlite and GOSA::GosaSupportDaemon git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8186 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-client | 2 +- gosa-si/gosa-si-server | 9 +++++---- gosa-si/modules/DBsqlite.pm | 2 +- gosa-si/modules/GosaPackages.pm | 6 +++--- gosa-si/modules/GosaSupportDaemon.pm | 2 +- gosa-si/modules/ServerPackages.pm | 2 +- 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index d45e64bc3..141aa3e1d 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -35,7 +35,7 @@ use Data::Dumper; use Sys::Syslog qw( :DEFAULT setlogsock); use File::Spec; use Cwd; -use GosaSupportDaemon; +use GOSA::GosaSupportDaemon; my ($cfg_file, %cfg_defaults, $foreground, $verbose, $pid_file, $procid, $pid, $log_file); diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 9ce9b088c..c3e79fb3e 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -38,10 +38,11 @@ use Cwd; use File::Spec; use IPC::Shareable qw( :lock); IPC::Shareable->clean_up_all; -use GosaSupportDaemon; +use GOSA::GosaSupportDaemon; +use GOSA::DBsqlite; -use lib "/etc/gosa-si/modules"; -my $modules_path = "/etc/gosa-si/modules"; +my $modules_path = "/usr/lib/gosa-si/modules"; +use lib "/usr/lib/gosa-si/modules"; my (%cfg_defaults, $foreground, $verbose, $ping_timeout); my ($bus, $msg_to_bus, $bus_cipher); @@ -967,7 +968,7 @@ close( LOCK_FILE ); # check wether all modules are gosa-si valid passwd check # connect to gosa-si job queue -my $job_db = DBsqlite->new($job_queue_file_name); +my $job_db = GOSA::DBsqlite->new($job_queue_file_name); # create reading and writing vectors my $rbits = my $wbits = my $ebits = ""; diff --git a/gosa-si/modules/DBsqlite.pm b/gosa-si/modules/DBsqlite.pm index f82a0d973..46d13beaa 100644 --- a/gosa-si/modules/DBsqlite.pm +++ b/gosa-si/modules/DBsqlite.pm @@ -1,4 +1,4 @@ -package DBsqlite; +package GOSA::DBsqlite; use strict; diff --git a/gosa-si/modules/GosaPackages.pm b/gosa-si/modules/GosaPackages.pm index a326fdba5..d6eb36525 100644 --- a/gosa-si/modules/GosaPackages.pm +++ b/gosa-si/modules/GosaPackages.pm @@ -5,11 +5,11 @@ use Exporter; use strict; use warnings; -use GosaSupportDaemon; +use GOSA::GosaSupportDaemon; use IO::Socket::INET; use XML::Simple; use File::Spec; -use DBsqlite; +use GOSA::DBsqlite; BEGIN{} END{} @@ -87,7 +87,7 @@ if ($gosa_activ eq "on") { my @col_names = ("id", "timestamp", "status", "result", "header", "target", "xml", "mac"); my $table_name = "jobs"; -my $sqlite = DBsqlite->new($job_queue_file_name); +my $sqlite = GOSA::DBsqlite->new($job_queue_file_name); $sqlite->create_table($table_name, \@col_names); diff --git a/gosa-si/modules/GosaSupportDaemon.pm b/gosa-si/modules/GosaSupportDaemon.pm index 37da24aa9..35ba608f2 100644 --- a/gosa-si/modules/GosaSupportDaemon.pm +++ b/gosa-si/modules/GosaSupportDaemon.pm @@ -1,4 +1,4 @@ -package GosaSupportDaemon; +package GOSA::GosaSupportDaemon; use Exporter; @ISA = qw(Exporter); diff --git a/gosa-si/modules/ServerPackages.pm b/gosa-si/modules/ServerPackages.pm index 874aaa472..7dba3b8c7 100644 --- a/gosa-si/modules/ServerPackages.pm +++ b/gosa-si/modules/ServerPackages.pm @@ -8,7 +8,7 @@ use Exporter; use strict; use warnings; -use GosaSupportDaemon; +use GOSA::GosaSupportDaemon; use IO::Socket::INET; use XML::Simple; -- 2.30.2