Ok folks, a review of what i have done and noticed trying to get squidguard 1.4 working.
as i said before, i am not even a qualified person on compiling and/or running squidGuard, just somebody getting trying to get it working.
in no particular order
i reinstalled a successful running of squidGuard off a fresh sme8beta6 about 5 times to make sure the scripts above worked.
compiling did not seem to be an issue, although some how i got two different sized files of squidGuard on my test machines and that was beyond me.
i did all kinds of stuff over the last week and lost track of what i had done but in the end came up with the above scripts.
i believe one file came from a download site off the internet.
the size i got with the down load from squidguard.com with then command
wget '
http://www.squidguard.org/Downloads/squidGuard-1.4.tar.gz'
and after compiling produced a squidGuard size of 278101 that is now my running program.
the only two things i needed to install was the compiler gcc and db4-devel to create and run the squidGuard file.
i think db4-devel is not even needed after a successful compile, because i removed it "yum -y remove db4-devel" in a test situation.
i used as much code as i could find from this forum and the internet and also tried to keep some standards that he sme server is built on.
which means custom templates.
on the squidGuard website, you might see where if you are using squid version 2.6 to use new words that are different in the squid.conf file than previous versions, or at least that is what i am reading into it
see
http://squidguard.org/Doc/verify.html at the bottom of the page
redirect_program /usr/bin/squidGuard -c /etc/squid/squidguard.conf
redirect_children 5
would become
url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidguard.conf
url_rewrite_children 5
this might work but old wording is working now and i have been through enough testing for now.
i had some other problems too.
in an effort to produce fragments of the custom template squidguard.conf in the directory of /etc/e-smith/templates-custom/etc/squd/squidguard.conf.
i had not put in an so called escape character before special characters.
i thought by using the command "expand-template /etc/squid/squidguard.conf" that the program building squidguard.conf in the /etc/squid directory would have just read my lines as they where, line for line. But that was not the case. Whatever program reads the file fragments from the template-custom directory does not treat all characters the same.
With this in mind, it might prove better to create a perl script to read the template-custom files and create the /etc/squid/squidguard.conf. That way one could create a squidguard.conf file from files other than just unix text files.
so from the standard sme way of doing things, watch your special character handling in those fragment files and do not put special characters that you do not have to into custom template files where expand-template is being used.
using of db files,
i do not know what is going on here but all i know is that when i created and made use of the db files, it caused squidGuard not to work. This is only taking into consideration the installing of squidGuard setup that is from the above script
once i deleted the db files, squidGuard worked. When i created them, squidGuard did not work.
so i was following other internet howtos on using the command "squidGuard -C all" to create db files. inside the squidguard log fil "/var/log/squidguard/squidGuard.log", after using the command, all seemed ok, but it stopped squidGuard from becoming active and i also though it even broke squid from running proper or not at all.
well buddy, i can tell you, i am taking baby steps and if i can use squidGuard now without using those db files, that is what i am going to do. i am sure in time with using squidGuard that i will want to use db files, but now know if it is causing my setup not to work.
key words
there may also be a possible problem concerning key words inside the squidguard.conf file such as dest and acl, and other like keywords. i thought i broke the loading of squidGuard by not having some of these key works left justified and it squidGuard is that picky about formatting. the program may be more picky about how many spaces are used and where the curve brackets are placed and other such formatting. like i said above in the custom template building, do not place no more special characters in these files other than alphanumeric if can do so.
the squidguard.conf file in the /etc/squid/ directory
i also found out that signal-event post-upgrade command does not create the /etc/squid/squidguard.conf automatically. i do not know if it ever did.
signal-event post-upgrade did not erase the /etc/squid/squidguard.conf file either.
in order to create the file squidguard.conf in the /etc/squid directory, you either need to copy a squidguard.conf file you have created or place fragments of the file in /etc/e-smith/templates-customer/etc/squid/squidguard.conf directory and use the command "expand-template /etc/squid/squidguard.conf" to create the file from fragments or a single file in the /etc/e-smith/templates-custom/etc/squid/squidguard.conf/ directory.