diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1477418 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +forbidhosts (1.0-1) precise; urgency=low + + * Initial release + + -- Pierre Schweitzer Thu, 4 Sep 2014 14:18:08 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f4a3be1 --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: forbidhosts +Maintainer: Pierre Schweitzer +Section: net +Priority: extra +Standards-Version: 3.9.3 +Build-Depends: debhelper (>= 9), autotools-dev, libtool, autoconf, automake, dh-autoreconf + +Package: forbidhosts +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tool for checking IPv4 and IPv6 SSH failed connections + ForbidHosts is a tool that has been designed to run with DenyHosts on IPv6 enabled systems. While DenyHosts will catch IPv4 connections on SSH, ForbidHosts only focuses on IPv6 connections. + . + Its behaviour is simple. Once too many connections attempts have been detected, it simply adds the IP in /etc/hosts.deny and mails root. + . + ForbidHosts does not take any argument. Run it, it will fork in background. Kill it with signals. + . + This has been specifically designed for the ReactOS Foundation infrastructure, but we are open to suggestions and patches :-). + . + Starting on the 26-Aug-2014, support for IPv4 was added (optional though) because Ubuntu dropped DenyHosts in Ubuntu 14.04 LTS. The features for IPv4 and IPv6 are exactly the same. +Homepage: https://www.reactos.org diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..80dd2a5 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,20 @@ +This package was debianized by Pierre Schweitzer on +Thu, 4 Sep 2014 14:18:08 +0200. + +It was downloaded from https://github.com/HeisSpiter/forbidhosts.git + +Current Maintaines: Pierre Schweitzer + +Upstream Author: Pierre Schweitzer (pierre@reactos.org) + +Copyright (c) 2014-2014 Pierre Schweitzer (pierre@reactos.org) + +License: + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL. diff --git a/debian/forbidhosts.init b/debian/forbidhosts.init new file mode 100755 index 0000000..a22e5de --- /dev/null +++ b/debian/forbidhosts.init @@ -0,0 +1,50 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: forbidhosts +# Required-Start: $syslog $local_fs $remote_fs $time +# Required-Stop: $syslog $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: forbidhosts +# Description: SSH IPv4 and IPv6 connections check +### END INIT INFO + +. /lib/lsb/init-functions + +[ -f /etc/default/rcS ] && . /etc/default/rcS +PATH=/bin:/usr/bin:/sbin:/usr/sbin +PROGRAM=/usr/sbin/ForbidHosts + +test -x $PROGRAM || exit 0 + +case "$1" in + start) + COUNT=`pgrep -c ForbidHosts` + [ "x$COUNT" != "x0" ] && exit 0 + $PROGRAM + exit 0 + ;; + stop) + pkill -15 ForbidHosts + exit 0 + ;; + force-reload|restart) + $0 stop + $0 start + ;; + status) + COUNT=`pgrep -c ForbidHosts` + if [ "x$COUNT" != "x0" ]; then + echo "Running" + else + echo "Not running" + fi + exit 0 + ;; + *) + echo "Usage: /etc/init.d/forbidhosts {start|stop|restart|force-reload|status}" + exit 1 +esac + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..4214de7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ --with autoreconf + +override_dh_autoreconf: + dh_autoreconf ./autogen.sh + +override_dh_auto_configure: + dh_auto_configure -- --enable-ipv4 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)