From 1eccbb55cdfd50bb860bcaf2b23a367abf9b3cfa Mon Sep 17 00:00:00 2001
From: Martin Wilke <miwi@FreeBSD.org>
Date: Fri, 29 Jun 2007 12:11:11 +0000
Subject: - Update message file to display rc.conf - Use SUB_FILES

PR:		113944
Submitted by:	Janos Mohacsi <janos.mohacsi@bsd.hu> (maintainer)
---
 security/denyhosts/Makefile             |  1 +
 security/denyhosts/files/pkg-message.in | 19 +++++++++++++++++++
 security/denyhosts/pkg-message          | 15 ---------------
 3 files changed, 20 insertions(+), 15 deletions(-)
 create mode 100644 security/denyhosts/files/pkg-message.in
 delete mode 100644 security/denyhosts/pkg-message

diff --git a/security/denyhosts/Makefile b/security/denyhosts/Makefile
index 328840e3f1d3..7c94d9a5423a 100644
--- a/security/denyhosts/Makefile
+++ b/security/denyhosts/Makefile
@@ -20,6 +20,7 @@ USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 
 USE_RC_SUBR=	denyhosts
+SUB_FILES=	pkg-message
 
 PORTDOCS=	CHANGELOG.txt LICENSE.txt README.txt
 
diff --git a/security/denyhosts/files/pkg-message.in b/security/denyhosts/files/pkg-message.in
new file mode 100644
index 000000000000..8dc823129bab
--- /dev/null
+++ b/security/denyhosts/files/pkg-message.in
@@ -0,0 +1,19 @@
+-------------------------------------------------------------------------------
+To run denyhosts from startup, add denyhosts_enable="YES"
+in your /etc/rc.conf.
+Configiration options can be found in %%PREFIX%%/etc/denyhosts.conf
+-------------------------------------------------------------------------------
+In order to proper working of denyhosts
+1. edit your /etc/hosts.allow file and add:
+sshd : /etc/hosts.deniedssh : deny
+sshd : ALL : allow
+2. issue the following command if /etc/hosts.deniedssh does not exist yet
+touch /etc/hosts.deniedssh 
+-------------------------------------------------------------------------------
+Warning:
+
+syslogd should ideally be run with the -c option; this will ensure that
+denyhosts notices multiple repeated login attempts.
+
+To do this, add syslogd_flags="-c" to /etc/rc.conf
+-------------------------------------------------------------------------------
diff --git a/security/denyhosts/pkg-message b/security/denyhosts/pkg-message
deleted file mode 100644
index 30c4c595caee..000000000000
--- a/security/denyhosts/pkg-message
+++ /dev/null
@@ -1,15 +0,0 @@
--------------------------------------------------------------------------------
-In order to proper working of denyhosts
-1. edit your /etc/hosts.allow file and add:
-sshd : /etc/hosts.deniedssh : deny
-sshd : ALL : allow
-2. issue the following command if /etc/hosts.deniedssh does not exist yet
-touch /etc/hosts.deniedssh 
--------------------------------------------------------------------------------
-Warning:
-
-syslogd should ideally be run with the -c option; this will ensure that
-denyhosts notices multiple repeated login attempts.
-
-To do this, add syslogd_flags="-c" to /etc/rc.conf
--------------------------------------------------------------------------------
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0