Configuration Tool

Discuss all artwork and development - Suggestions needed

Moderator: Moderators

Would you like to have a general control center?

Yes, would be really great
77
81%
Maybe not so bad
10
11%
No, what for?... I love my f****** config files
8
8%
 
Total votes: 95

xlnagla
Sagely Hen
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Configuration Tool

Post by xlnagla » Wed Aug 27, 2008 4:17

I'm not sure if you guys are still watching this thread, but I've got drakconf kinda-ish working in Sabayon, if you're interested.

~xlnagla

sjieke
Technological Hen
Posts: 321
Joined: Thu Mar 01, 2007 10:46
Location: Maldegem, Belgium

Re: Configuration Tool

Post by sjieke » Wed Aug 27, 2008 8:05

I'm still watching :D

We already started from scratch. I don't know the opinions of the other developpers, but I think we will continue working on that...
If you haven't read it previously, it is on sourceforge now: Sabayon Control Center. If you browse the svn you will find a design document under trunk/doc. The first code for the base framework is under trunk/src/ModuleManager. If your interested you can have a look. If you are a developper and want to join, let it know and we will add you...

I do wanna know how much and what you needed to modify to get drakconf to work. I thought that drakeconf was some kind of app that just starts different smaller configuration tools (our tool will support standalone and embedded modules)? So do you need to modify all those tools too?

User avatar
Fitzcarraldo
Sagely Hen
Posts: 8116
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: Configuration Tool

Post by Fitzcarraldo » Wed Aug 27, 2008 16:01

xlnagla wrote:I'm not sure if you guys are still watching this thread, but I've got drakconf kinda-ish working in Sabayon, if you're interested.

~xlnagla
I am very much interested, as I like drakconf and think it would be useful for newcomers to SL.

xlnagla
Sagely Hen
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Configuration Tool

Post by xlnagla » Wed Aug 27, 2008 18:12

I would indeed love to step up to help with the coding

starting from scratch is probably the best method, as it'll be way easier to maintain and to update without having to re-port stuff, so as long as everyone's for it that's the way to go. Drakconf is a collection of many perl modules, and uses them to deal with configurations - thankfully to actually edit the configuration files themselves. Most of what was needed to get Drakconf up can be summarized as port the mandriva perl libraries - blessedly simple, as most of the libraries aren't compiled and those that are don't complain as long as you've got ocaml installed (there's some ocaml). It launches, and if I edit some cross-distro compliant configs with it it does something, which is very promising. Of course it's almost without function for most of the configs, but at least it's a start. The tools themselves don't complain as long as you've got their libraries set, they just won't find configs sometimes. Shouldn't be too hard to fix.

~xlnagla

xlnagla
Sagely Hen
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Configuration Tool

Post by xlnagla » Wed Aug 27, 2008 18:15

only hangup:

Code: Select all

package read_t;

use lib '../..';
use MDK::Common;

sub read_t {
    my ($file) = @_;

    my @tests;
    my ($column_width, $line_number, @lines, @logs);
    foreach (cat_($file), "\n") {
        if (/^$/) {
            push @tests, { line_number => $line_number, lines => [ @lines ], log                                                                            s => [ @logs ] } if @lines;
            @lines = @logs = ();
        } else {
            $column_width ||= length(first(/(.{20}\s+)/));
            my ($line, $log) = $column_width > 25 && /(.{$column_width})(.*)/ ?                                                                             (chomp_($1) . "\n", $2) : ($_, '');
            $line =~ s/[ \t]*$//;
            push @lines, $line;
            push @logs, $log;
        }
        $line_number++;
    }
    @tests;
}

1;
Undefined subroutine &read_t::cat_ called at test/read_t.pm line 11.

I don't see how that's undefined....

~xlnagla

User avatar
Fitzcarraldo
Sagely Hen
Posts: 8116
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: Configuration Tool

Post by Fitzcarraldo » Wed Aug 27, 2008 18:39

It's grumbling about the line:

Code: Select all

foreach (cat_($file), "\n") {
isn't it? What does cat_($file) resolve to?

xlnagla
Sagely Hen
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Configuration Tool

Post by xlnagla » Thu Aug 28, 2008 4:14

it's a cat function, I've used it before with common.pm and it's worked fine. It's a loop that just concatinates all the members of an array, one entry per line.

~xlnagla

sjieke
Technological Hen
Posts: 321
Joined: Thu Mar 01, 2007 10:46
Location: Maldegem, Belgium

Re: Configuration Tool

Post by sjieke » Thu Aug 28, 2008 8:04

I have no experience with perl, so I won't be able to help...

If you want to join the development of the "Sabayon Control Center", all we need is your sourceforge username... You can post it here or PM me.

xlnagla
Sagely Hen
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Configuration Tool

Post by xlnagla » Mon Sep 01, 2008 1:39

same as always, xlnagla

sjieke
Technological Hen
Posts: 321
Joined: Thu Mar 01, 2007 10:46
Location: Maldegem, Belgium

Re: Configuration Tool

Post by sjieke » Mon Sep 01, 2008 12:39

xlnagla wrote:same as always, xlnagla
Ok, I've added you to the developpers...

Post Reply