Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: steve288 on May 16, 2016, 08:18:43 PM

Title: No package smeserver-dansguardian-panel available ??
Post by: steve288 on May 16, 2016, 08:18:43 PM
I tried to run the following contrib for SME 9.1.
It ends by saying, No package smeserver-dansguardian-panel available.

Does this mean that this contrib has not been migraged to 9.1?
Thanks.

-- Error message ----

dansguardian]# yum install smeserver-dansguardian-panel
Loaded plugins: fastestmirror, smeserver
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.mirror.netelligent.ca
 * smeaddons: mirror.canada.pialasse.com
 * smeextras: mirror.canada.pialasse.com
 * smeos: mirror.canada.pialasse.com
 * smeupdates: mirror.canada.pialasse.com
 * updates: centos.mirror.netelligent.ca
base                                                                                                                      | 3.7 kB     00:00
smeaddons                                                                                                                 | 2.9 kB     00:00
smeextras                                                                                                                 | 2.9 kB     00:00
smeos                                                                                                                     | 3.1 kB     00:00
smeupdates                                                                                                                | 2.9 kB     00:00
updates                                                                                                                   | 3.4 kB     00:00
No package smeserver-dansguardian-panel available.
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: Stefano on May 16, 2016, 10:25:49 PM
I sincerely don't remember any smeserver-dansguardian-panel contrib
Please take a look at the wiki
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: janet on May 16, 2016, 10:29:58 PM
steve288

There is no smeserver-dansguardian-panel available in either of the 32 or 64 bit SME9.x repos
ie check
http://mirror.canada.pialasse.com/releases/9.1/smecontribs/i386/RPMS/
http://mirror.canada.pialasse.com/releases/9.1/smecontribs/x86_64/RPMS/

The dungog commercial pkg  that provided a server manager panel for dansguardian is called
dungog-dansguardian
but AFAIK is no longer supported by dungog.
See
http://dungog.net/wiki/index.php?title=Dungog-dansguardian
http://dungog.net/wiki/index.php?title=Purchase

Where did you get that pkg name smeserver-dansguardian-panel from, did you fabricate the name yourself hoping there was one or are you aware of a pkg by that name ?
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: Jean-Philippe Pialasse on May 17, 2016, 04:15:39 AM
janet, Stefano,

Sorry to be more positive in my answer :

The contrib exists

This is an import from dungog-dansguardian.

It is available in smedev for sme8 http://mirror.canada.pialasse.com/releases/8/smedev/i386/RPMS/


I never had the time to finalize it.

There is a lot to do to adapt it still for sme 9 with the new version of dansguardian.

One of these is simply revisit the dansguardian.conf template with the new option, and with a try to avoid the pseudo dynamic template structure.

See http://mirror.canada.pialasse.com/releases/8/smedev/i386/RPMS/

Also
https://bugs.koozali.org/buglist.cgi?component=smeserver-dansguardian-panel&list_id=62037&product=SME%20Contribs&resolution=---

And the wiki: https://wiki.contribs.org/Dansguardian-panel


Steve288,
I have no current installation running dansguardian, hence this is difficult for me to test. If you are eilling to invest some time, we could have it to make it to sme9.

As there is a lot work to import all the contribs, it is easier to import first the one that have some demand and the one where we can have feedback.

So are you in?

Jp
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: janet on May 17, 2016, 06:11:37 AM
Jean-Philippe Pialasse

That is good news. I forgot to look in SME 8 repos.

I use Dansguardian (in command line mode), so I am happy to be involved in testing the server manager panel pkg.
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: Jean-Philippe Pialasse on May 17, 2016, 07:35:53 AM
Jean-Philippe Pialasse

That is good news. I forgot to look in SME 8 repos.

I use Dansguardian (in command line mode), so I am happy to be involved in testing the server manager panel pkg.

Good !
are you willing to test on SME8 or SME9 ( or both?)
I can import shortly a version in smedev for SME9.

Are you able to create a set of  templates from an original configuration file ?
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: janet on May 17, 2016, 07:51:41 AM
Jean-Philippe Pialasse

I can test on both SME8 & SME9

Quote
Are you able to create a set of  templates from an original configuration file ?

I can manipulate existing templates, not sure about creating new ones from scratch, possibly with guidance.
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: Jean-Philippe Pialasse on May 17, 2016, 09:34:15 AM
I can test on both SME8 & SME9

excellent!

I can manipulate existing templates, not sure about creating new ones from scratch, possibly with guidance.

here is a reference : https://wiki.contribs.org/Template_Tutorial

well this is the simplest part.

first step is to take an example conf file from the original dansguardian  rpm.
then you try to cut the content in different files, with file name startint with numbers to order them,
This is an example of breakdown:
10intro
20generalconf
30lists
40exclusions
50antivirus
55alternateantivirus
80other

At this step there is only two things you must pay attention : { and }. They have to be escaped or what is inside will be interpreted by perl : \{ and \}
Having fragment instead of a whole file will help final user to only override a part of the template (ie 50antivirus), and will help to maintain the package with upstream updates.

You place all theses files in a folder.
/etc/e-smith/templates/etc/dansguardian/dansguardian.conf

you now have a static template with multiple fragments, congratulation !

Second step is to add some perl magic. This is where you use some {} and call the db values to fill the content. You can get example from the other contribs or from the existing contrib in the smedev repo. I can give a hand there.


Third step is to fill the default db, create migrate fragments, this is more tricky and I can handle this part.
Fourth step is to update the panel to be able to access all our new configurations. This is also a tricky part I can handle.
Finally we package all the modifications with patches or with a new archive and we build a new rpm with the buildsystem ! Again in this part I can handle this, unless you start feeling the developer in you !

Optionally some translation might occurs in pootle... and we add them to the rpm.

of course we need to test at every step, and can do intermediate builds between steps.
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: steve288 on May 17, 2016, 03:45:16 PM
I just installed it based on the wiki. Honestly I didn't make it up :>)
https://wiki.contribs.org/Dansguardian-panel

I would be happy to help in what ever way. With my limited knowledge in this area I think it would be relegated to installing on 9.1?
Regards
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: Jean-Philippe Pialasse on May 17, 2016, 05:17:28 PM
I just installed it based on the wiki. Honestly I didn't make it up :>)
https://wiki.contribs.org/Dansguardian-panel

I would be happy to help in what ever way. With my limited knowledge in this area I think it would be relegated to installing on 9.1?
Regards

on sme 9 I would start with :

# yum install dansguardian --enablerepo=smecontribs

then make a copy of the original conf
cp /etc/dansguardian/dansguardian.conf /etc/dansguardian/dansguardian.conf.original


then you can start as I said in my previous mail.

it is pretty easy to breakdown this big file in multiple files, but time consuming.

Ideally you would do a file per setting or group of setting. But as there is more than 80 settings in that file it could be good to gather them and only do 10 to 25 files.

then send it to me :)

the dansguardian versiona re different on sme8 and sme9 so the work need to be done twice ( the panel version in smedev uses an old version of dansguardian for sme7)
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: steve288 on May 18, 2016, 09:21:02 PM
In other words break it up eg call the following

10webreporting and keep breaking the file up in separate files with names and numbers eg 12somename.

# DansGuardian config file for version 2.10.1.1

# **NOTE** as of version 2.7.5 most of the list files are now in dansguardianf1.conf


# Web Access Denied Reporting (does not affect logging)
#
# -1 = log, but do not block - Stealth mode
#  0 = just say 'Access Denied'
#  1 = report why but not what denied phrase
#  2 = report fully
#  3 = use HTML template file (accessdeniedaddress ignored) - recommended
#
reportinglevel = 3

Title: Re: No package smeserver-dansguardian-panel available ??
Post by: Jean-Philippe Pialasse on May 19, 2016, 07:34:24 AM
In other words break it up eg call the following

you got the idea

I would suggest

01header
Code: [Select]
# DansGuardian config file for version 2.10.1.1

# **NOTE** as of version 2.7.5 most of the list files are now in dansguardianf1.conf


05reportinglevel
Code: [Select]
# Web Access Denied Reporting (does not affect logging)
#
# -1 = log, but do not block - Stealth mode
#  0 = just say 'Access Denied'
#  1 = report why but not what denied phrase
#  2 = report fully
#  3 = use HTML template file (accessdeniedaddress ignored) - recommended
#
reportinglevel = 3

(keep an empty line at the end of each file)

the numbering is only important to keep the same flow as original file. it is good to keep a little space somewhere in case we want to add something without renumbering all. Keep in mind that if you want to break in 80 elements and you increase of 10 for each element you should rather use 3 digit
010header
020reporting
800lastelement

otherwise you will end up with :
100tenth
10fist
20second
70seventh
800lastelement
80eight
90ninth
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: steve288 on May 25, 2016, 03:07:46 PM
I have these files ready from my install 9.1.
Where should I upload them?
Regards
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: Stefano on May 25, 2016, 03:32:46 PM
create a bug in bugzilla e add your fragments..

please report here the bug id, thank you

if bugzilla scares you, read here:
https://wiki.contribs.org/Bugzilla_Help#Bugzilla_is_easy
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: steve288 on May 25, 2016, 07:29:21 PM
I have added my files to Bug 9526.

Fingers Crossed  It meets with you'all's approval.
Regards
 
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: Jean-Philippe Pialasse on May 26, 2016, 10:36:36 AM
Thank you Steve,

the fragments have been integrated with some new perl magic in them.

see the bug you openned.

please take the time to test fucntionnality and report. in the bug if anything goes wrong


see : https://wiki.contribs.org/Bugzilla_Help#Reporting_Bugs
Title: Re: No package smeserver-dansguardian-panel available ??
Post by: brianr on May 26, 2016, 12:29:56 PM
https://bugs.contribs.org/show_bug.cgi?id=9526