Hi. Thanks for this contrib, I was looking for something like this. But I've a problem when I install it:
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
smeserver-denyhosts noarch 2.6-0.2 smeserver-denyhosts-2.6-0.2.noarch.rpm 391 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 391 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
smeserver trap pre-install: smeserver-denyhosts
cp: ne peut �valuer `/etc/hosts.evil': Aucun fichier ou r�pertoire de ce type
error: %pre(smeserver-denyhosts-2.6-0.2.noarch) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping smeserver-denyhosts-2.6-0.2
Migrating existing database backups
Migrating existing database yum_updates
Migrating existing database yum_repositories
Migrating existing database spamassassin
Migrating existing database mailpatterns
Migrating existing database accounts
Migrating existing database yum_available
Migrating existing database hosts
Migrating existing database domains
Migrating existing database yum_installed
Migrating existing database networks
Migrating existing database configuration
smeserver trap post-install: smeserver-denyhosts
Installed: smeserver-denyhosts.noarch 0:2.6-0.2
Complete!
================================================================
No new rpms were installed. No additional commands are required.
================================================================
The problem comes from the spec file, line 68:
if [ /etc/hosts.evil ]
It should be
if [ -e /etc/hosts.evil ]
Another problem I see in the spec file is this line, if we upgrade the rpm:
rm -rf /etc/e-smith/templates-custom/etc/host.allow
Why are you deleting custom templates here? You should, at least tell the user their custom templates will be ereased (and better, not delete it in the scriplet, just print a message like "you should delete your custom templates for the file /etc/hosts.allow" if it's really necessary)
Anyway, thanks for your work. I'll test it further and report any other problem. Have you opened a new bug for this contrib?