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
-
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.
-
I sincerely don't remember any smeserver-dansguardian-panel contrib
Please take a look at the wiki
-
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 ?
-
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
-
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.
-
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 ?
-
Jean-Philippe Pialasse
I can test on both SME8 & SME9
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.
-
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.
-
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
-
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)
-
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
-
In other words break it up eg call the following
you got the idea
I would suggest
01header
# 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
# 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
-
I have these files ready from my install 9.1.
Where should I upload them?
Regards
-
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
-
I have added my files to Bug 9526.
Fingers Crossed It meets with you'all's approval.
Regards
-
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
-
https://bugs.contribs.org/show_bug.cgi?id=9526