FreeBSD Port: security/denyhosts

David Stanford dthomas53 at gmail.com
Sun Jul 2 08:58:27 UTC 2006


On 6/30/06, Jeremy Chadwick <freebsd at jdc.parodius.com> wrote:
>
> On Fri, Jun 30, 2006 at 10:32:25PM +0200, Anders Troback wrote:
> > Hi there!
> >
> > Just installed the denyhost port but when I fire it up it's complains
> > about the missing config file:
> >
> > # /usr/local/etc/rc.d/denyhosts start
> > Starting denyhosts.
> > Error reading file: /usr/local/etc/denyhosts.conf
> > [Errno 2] No such file or directory: '/usr/local/etc/denyhosts.conf'
> >
> > The config file supplied by the port are denyhosts.cfg!
> >
> > A simple mv did the trick but I just have to tell you:-)
> >
> > Thanks for your time!!!
>
> This was answered in another thread of the exact same type (might be
> worth it if you searched the mailing list first):
>
> >> From: David Stanford <dthomas53 at gmail.com>
> >> To: Andrei Kolu <antik at bsd.ee>
> >> Date: Tue, 27 Jun 2006 04:34:21 -0400
> >> Cc: ports at freebsd.org, janos.mohacsi at bsd.hu
> >> Subject: Re: FreeBSD Port: denyhosts-2.4.b
> >>
> >> On 6/27/06, Andrei Kolu <antik at bsd.ee> wrote:
> >> >
> >> >denyhosts start
> >> >Starting denyhosts.
> >> >Error reading file: /usr/local/etc/denyhosts.conf
> >> >[Errno 2] No such file or directory: '/usr/local/etc/denyhosts.conf'
> >> >
> >>
> >------------------------------------------------------------------------------
> >> >
> >> >I can't find any denyhosts.conf file. Where is it?
> >> >_______________________________________________
> >> >freebsd-ports at freebsd.org mailing list
> >> >http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> >> >To unsubscribe, send any mail to
> >> >"freebsd-ports-unsubscribe at freebsd.org"
> >> >
> >>
> >> # cp /usr/local/share/denyhosts/denyhosts.cfg-dist
> >> /usr/local/etc/denyhosts.cfg
> >>
> >> -David
>
> --
> | Jeremy Chadwick                                 jdc at parodius.com |
> | Parodius Networking                        http://www.parodius.com/ |
> | UNIX Systems Administrator                   Mountain View, CA, USA |
> | Making life hard for others since 1977.               PGP: 4BD6C0CB |
>
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>


The maintainer now installs the config file into /usr/local/etc as of the
most recent updated port (denyhosts-2.5). Just to note a minor fix which
would resolve the OP problem (that I myself had as well):

=============
[root at jonathan /usr/ports/security/denyhosts/files]# diff -ruN
denyhosts.in.orig denyhosts.in
--- denyhosts.in.orig   Sun Jul  2 04:18:04 2006
+++ denyhosts.in        Sun Jul  2 04:18:15 2006
@@ -13,7 +13,7 @@

 command="%%PREFIX%%/bin/denyhosts.py"
 command_interpreter="/usr/local/bin/python"
-command_args="--config %%PREFIX%%/etc/denyhosts.conf --daemon"
+command_args="--config %%PREFIX%%/etc/denyhosts.cfg --daemon"
 pidfile="/var/run/${name}.pid"

 load_rc_config $name
=============

Thanks! :)

-David
-- 
[root at fbsd ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.


More information about the freebsd-ports mailing list