pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import /home/bacon/Pkgsrc/pkgsrc-2016Q1/wip/denyhosts DenyHosts-2.6 as wip /denyhosts.
Module Name: pkgsrc-wip
Committed By: Jason Bacon <bacon4000%gmail.com@localhost>
Pushed By: outpaddling
Date: Thu May 12 22:35:46 2016 -0500
Changeset: 938a9817cde6ba16538844929a426808d574022d
Added Files:
denyhosts/DESCR
denyhosts/Makefile
denyhosts/PLIST
denyhosts/TODO
denyhosts/distinfo
Log Message:
Import /home/bacon/Pkgsrc/pkgsrc-2016Q1/wip/denyhosts
DenyHosts-2.6 as wip/denyhosts.
DenyHosts is a script intended to be run by system administrators to help
thwart SSH server attacks (also known as dictionary based attacks and brute
force attacks).
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=938a9817cde6ba16538844929a426808d574022d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
denyhosts/DESCR | 3 +++
denyhosts/Makefile | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++
denyhosts/PLIST | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
denyhosts/TODO | 1 +
denyhosts/distinfo | 6 +++++
5 files changed, 162 insertions(+)
diffs:
diff --git a/denyhosts/DESCR b/denyhosts/DESCR
new file mode 100644
index 0000000..81f4a51
--- /dev/null
+++ b/denyhosts/DESCR
@@ -0,0 +1,3 @@
+DenyHosts is a script intended to be run by system administrators to help
+thwart SSH server attacks (also known as dictionary based attacks and brute
+force attacks).
diff --git a/denyhosts/Makefile b/denyhosts/Makefile
new file mode 100644
index 0000000..b3e4db0
--- /dev/null
+++ b/denyhosts/Makefile
@@ -0,0 +1,74 @@
+# $NetBSD$
+
+DISTNAME= DenyHosts-2.6
+CATEGORIES= security
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=denyhosts/}
+
+MAINTAINER= bacon4000%gmail.com@localhost
+HOMEPAGE= http://downloads.sourceforge.net/project/denyhosts/denyhosts/2.6/
+COMMENT= Block hosts with too many failed login attempts
+LICENSE= gnu-gpl-v2
+
+PYDISTUTILSPKG= yes
+
+SUBST_CLASSES+= setup
+SUBST_STAGE.setup= post-patch
+SUBST_FILES.setup= setup.py \
+ README.txt \
+ daemon-control-dist \
+ denyhosts.cfg-dist
+SUBST_SED.setup= -e "s|/usr/share|${PREFIX}/share|g"
+
+SUBST_CLASSES+= lock
+SUBST_STAGE.lock= post-patch
+SUBST_FILES.lock= README.txt \
+ daemon-control-dist \
+ denyhosts.cfg-dist
+SUBST_SED.lock= -e "s|/var/lock/subsys|/var/run|g"
+
+SUBST_CLASSES+= bin
+SUBST_STAGE.bin= post-patch
+SUBST_FILES.bin= README.txt \
+ daemon-control-dist
+SUBST_SED.bin= -e "s|/usr/bin/denyhosts.py|${PREFIX}/bin/denyhosts.py|g"
+
+SUBST_CLASSES+= python
+SUBST_STAGE.python= post-patch
+SUBST_FILES.python= daemon-control-dist \
+ setup.py \
+ denyhosts.py \
+ plugins/test_deny.py
+SUBST_SED.python= -e "s|/usr/bin/env python|${PYTHONBIN}|g"
+SUBST_SED.python+= -e "s|/usr/bin/python|${PYTHONBIN}|g"
+
+SUBST_CLASSES+= config
+SUBST_STAGE.config= post-patch
+SUBST_FILES.config= denyhosts.cfg-dist
+SUBST_SED.config= -e "s|/etc/hosts.deny|${DENIED_HOSTS_FILE}|g"
+SUBST_SED.config+= -e "s|DAEMON_SLEEP = 30s|DAEMON_SLEEP = 10s|g"
+SUBST_SED.config+= -e "s|\#BLOCK_SERVICE = ALL|BLOCK_SERVICE = ALL|g"
+SUBST_SED.config+= -e "s|BLOCK_SERVICE = sshd|\#BLOCK_SERVICE = sshd|g"
+
+SUBST_CLASSES+= env
+SUBST_STAGE.env= post-patch
+SUBST_FILES.env= scripts/*.py
+SUBST_SED.env= -e 's|/bin/env python|${PYTHONBIN}|g'
+
+DENIED_HOSTS_FILE= ${PREFIX}/etc/hosts.deniedssh
+
+.include "../../mk/bsd.prefs.mk"
+
+post-install:
+ touch ${DENIED_HOSTS_FILE}
+ chmod 600 ${DENIED_HOSTS_FILE}
+.if !exists(${DESTDIR}${PREFIX}/share/denyhosts/denyhosts.cfg)
+ ${INSTALL_DATA} ${DESTDIR}${PREFIX}/share/denyhosts/denyhosts.cfg-dist \
+ ${DESTDIR}${PREFIX}/share/denyhosts/denyhosts.cfg
+.endif
+.if ${OPSYS} == Linux && !exists(/etc/init.d/denyhosts)
+ ${ECHO} "Linux init scripts are in"
+ ${ECHO} ${DESTDIR}${PREFIX}/share/denyhosts/daemon-control-dist
+.endif
+
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/denyhosts/PLIST b/denyhosts/PLIST
new file mode 100644
index 0000000..39f155d
--- /dev/null
+++ b/denyhosts/PLIST
@@ -0,0 +1,78 @@
+@comment $NetBSD$
+bin/denyhosts.py
+${PYSITELIB}/DenyHosts/__init__.py
+${PYSITELIB}/DenyHosts/__init__.pyc
+${PYSITELIB}/DenyHosts/__init__.pyo
+${PYSITELIB}/DenyHosts/allowedhosts.py
+${PYSITELIB}/DenyHosts/allowedhosts.pyc
+${PYSITELIB}/DenyHosts/allowedhosts.pyo
+${PYSITELIB}/DenyHosts/constants.py
+${PYSITELIB}/DenyHosts/constants.pyc
+${PYSITELIB}/DenyHosts/constants.pyo
+${PYSITELIB}/DenyHosts/counter.py
+${PYSITELIB}/DenyHosts/counter.pyc
+${PYSITELIB}/DenyHosts/counter.pyo
+${PYSITELIB}/DenyHosts/daemon.py
+${PYSITELIB}/DenyHosts/daemon.pyc
+${PYSITELIB}/DenyHosts/daemon.pyo
+${PYSITELIB}/DenyHosts/deny_hosts.py
+${PYSITELIB}/DenyHosts/deny_hosts.pyc
+${PYSITELIB}/DenyHosts/deny_hosts.pyo
+${PYSITELIB}/DenyHosts/denyfileutil.py
+${PYSITELIB}/DenyHosts/denyfileutil.pyc
+${PYSITELIB}/DenyHosts/denyfileutil.pyo
+${PYSITELIB}/DenyHosts/filetracker.py
+${PYSITELIB}/DenyHosts/filetracker.pyc
+${PYSITELIB}/DenyHosts/filetracker.pyo
+${PYSITELIB}/DenyHosts/lockfile.py
+${PYSITELIB}/DenyHosts/lockfile.pyc
+${PYSITELIB}/DenyHosts/lockfile.pyo
+${PYSITELIB}/DenyHosts/loginattempt.py
+${PYSITELIB}/DenyHosts/loginattempt.pyc
+${PYSITELIB}/DenyHosts/loginattempt.pyo
+${PYSITELIB}/DenyHosts/old-daemon.py
+${PYSITELIB}/DenyHosts/old-daemon.pyc
+${PYSITELIB}/DenyHosts/old-daemon.pyo
+${PYSITELIB}/DenyHosts/plugin.py
+${PYSITELIB}/DenyHosts/plugin.pyc
+${PYSITELIB}/DenyHosts/plugin.pyo
+${PYSITELIB}/DenyHosts/prefs.py
+${PYSITELIB}/DenyHosts/prefs.pyc
+${PYSITELIB}/DenyHosts/prefs.pyo
+${PYSITELIB}/DenyHosts/purgecounter.py
+${PYSITELIB}/DenyHosts/purgecounter.pyc
+${PYSITELIB}/DenyHosts/purgecounter.pyo
+${PYSITELIB}/DenyHosts/python_version.py
+${PYSITELIB}/DenyHosts/python_version.pyc
+${PYSITELIB}/DenyHosts/python_version.pyo
+${PYSITELIB}/DenyHosts/regex.py
+${PYSITELIB}/DenyHosts/regex.pyc
+${PYSITELIB}/DenyHosts/regex.pyo
+${PYSITELIB}/DenyHosts/report.py
+${PYSITELIB}/DenyHosts/report.pyc
+${PYSITELIB}/DenyHosts/report.pyo
+${PYSITELIB}/DenyHosts/restricted.py
+${PYSITELIB}/DenyHosts/restricted.pyc
+${PYSITELIB}/DenyHosts/restricted.pyo
+${PYSITELIB}/DenyHosts/sync.py
+${PYSITELIB}/DenyHosts/sync.pyc
+${PYSITELIB}/DenyHosts/sync.pyo
+${PYSITELIB}/DenyHosts/util.py
+${PYSITELIB}/DenyHosts/util.pyc
+${PYSITELIB}/DenyHosts/util.pyo
+${PYSITELIB}/DenyHosts/version.py
+${PYSITELIB}/DenyHosts/version.pyc
+${PYSITELIB}/DenyHosts/version.pyo
+share/denyhosts/CHANGELOG.txt
+share/denyhosts/LICENSE.txt
+share/denyhosts/README.txt
+share/denyhosts/daemon-control-dist
+share/denyhosts/denyhosts.cfg
+share/denyhosts/denyhosts.cfg-dist
+share/denyhosts/plugins/README.contrib
+share/denyhosts/plugins/shorewall_allow.sh
+share/denyhosts/plugins/shorewall_deny.sh
+share/denyhosts/plugins/test_deny.py
+share/denyhosts/scripts/restricted_from_invalid.py
+share/denyhosts/scripts/restricted_from_passwd.py
+share/denyhosts/setup.py
diff --git a/denyhosts/TODO b/denyhosts/TODO
new file mode 100644
index 0000000..b687356
--- /dev/null
+++ b/denyhosts/TODO
@@ -0,0 +1 @@
+Clean up and test
diff --git a/denyhosts/distinfo b/denyhosts/distinfo
new file mode 100644
index 0000000..c455814
--- /dev/null
+++ b/denyhosts/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (DenyHosts-2.6.tar.gz) = 02143843cb7c37c986c222b7acc11f7b75eb7373
+RMD160 (DenyHosts-2.6.tar.gz) = cab4206af992f5405ed1c9b302341c7b5649c71a
+SHA512 (DenyHosts-2.6.tar.gz) = 331144348d4930e2fa7a057a779bb7504dfa8ec348660e1a73fcd6a9195258408abb7c77de2bcc96724dfc42afbee918320eebfbc3b380d6ac4ff2d275e89600
+Size (DenyHosts-2.6.tar.gz) = 42667 bytes
Home |
Main Index |
Thread Index |
Old Index