aboutsummaryrefslogtreecommitdiff
path: root/security/denyhosts/files
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2006-05-19 23:47:45 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2006-05-19 23:47:45 +0000
commit9f61df9dc95341f9da7e2aa9efc657c35e238d0a (patch)
tree8a1075a6ce9748e5c669b2bc54d448a17f4d1156 /security/denyhosts/files
parent4eb353afb716cfbb457ae6a13c71aeff16efda81 (diff)
Notes
Diffstat (limited to 'security/denyhosts/files')
-rw-r--r--security/denyhosts/files/denyhosts.in23
-rw-r--r--security/denyhosts/files/patch-denyhosts.cfg-dist26
2 files changed, 39 insertions, 10 deletions
diff --git a/security/denyhosts/files/denyhosts.in b/security/denyhosts/files/denyhosts.in
new file mode 100644
index 000000000000..1524c48ef328
--- /dev/null
+++ b/security/denyhosts/files/denyhosts.in
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: denyhosts
+# REQUIRE: DAEMON
+#
+
+. %%RC_SUBR%%
+
+name="denyhosts"
+rcvar=${name}_enable
+
+command="%%PREFIX%%/bin/denyhosts.py"
+command_interpreter="/usr/local/bin/python"
+command_args="--config %%PREFIX%%/etc/denyhosts.conf --daemon"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config $name
+
+: ${denyhosts_enable="NO"}
+
+run_rc_command "$1"
diff --git a/security/denyhosts/files/patch-denyhosts.cfg-dist b/security/denyhosts/files/patch-denyhosts.cfg-dist
index 5505eb82602b..ab162d6a66ab 100644
--- a/security/denyhosts/files/patch-denyhosts.cfg-dist
+++ b/security/denyhosts/files/patch-denyhosts.cfg-dist
@@ -1,8 +1,5 @@
-
-$FreeBSD$
-
---- denyhosts.cfg-dist.orig
-+++ denyhosts.cfg-dist
+--- denyhosts.cfg-dist.orig Sun Apr 9 14:37:46 2006
++++ denyhosts.cfg-dist Fri May 5 11:37:13 2006
@@ -9,10 +9,10 @@
# argument
#
@@ -16,7 +13,16 @@ $FreeBSD$
#
# SuSE:
#SECURE_LOG = /var/log/messages
-@@ -23,7 +23,7 @@
+@@ -22,7 +22,7 @@
+ #SECURE_LOG = /private/var/log/asl.log
+ #
+ # Mac OS X (v10.3 or earlier):
+-SECURE_LOG=/private/var/log/system.log
++#SECURE_LOG=/private/var/log/system.log
+ #
+ ########################################################################
+
+@@ -31,7 +31,7 @@
# HOSTS_DENY: the file which contains restricted host access information
#
# Most operating systems:
@@ -25,7 +31,7 @@ $FreeBSD$
#
# Some BSD (FreeBSD) Unixes:
#HOSTS_DENY = /etc/hosts.allow
-@@ -66,7 +66,7 @@
+@@ -90,7 +90,7 @@
# To block all services for the offending host:
#BLOCK_SERVICE = ALL
# To block only sshd:
@@ -34,7 +40,7 @@ $FreeBSD$
# To only record the offending host and nothing else (if using
# an auxilary file to list the hosts). Refer to:
# http://denyhosts.sourceforge.net/faq.html#aux
-@@ -126,7 +126,7 @@
+@@ -150,7 +150,7 @@
# Note: it is recommended that you use an absolute pathname
# for this value (eg. /home/foo/denyhosts/data)
#
@@ -43,7 +49,7 @@ $FreeBSD$
#
#######################################################################
-@@ -152,7 +152,7 @@
+@@ -176,7 +176,7 @@
# the corresponding hostname will be looked up and reported as well
# (if available).
#
@@ -52,7 +58,7 @@ $FreeBSD$
#
######################################################################
-@@ -168,10 +168,10 @@
+@@ -192,10 +192,10 @@
# running at a time.
#
# Redhat/Fedora: