clean:
rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
+ rm -f bouncer
+install: bouncer
+ install -d $(DESTDIR)/usr/sbin $(DESTDIR)/etc
+ install -m755 bouncer $(DESTDIR)/usr/sbin/
+ install -m644 config $(DESTDIR)/etc/bouncer
--- /dev/null
+This is Bouncer. More information to come.
+# Configuration of the bouncer daemon
+
Bouncer {
# Socket through which we receive log messages
MaxBanned 1000
# We log all messages to the log stream configured below
-# LogStream syslog
+LogStream syslog
# Names of ipsets we feed the banned addresses to
# (you can omit either to disable processing of IPv4 or IPv6)
--- /dev/null
+[Unit]
+Description=Daemon for Turning Away Mischievous Guests
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/bouncer
+
+[Install]
+Wanted=multi-user.target
--- /dev/null
+bouncer (0.9) unstable; urgency=medium
+
+ * Initial release.
+
+ -- Martin Mares <mj@ucw.cz> Sat, 05 Nov 2016 21:55:11 +0100
--- /dev/null
+Source: bouncer
+Section: net
+Priority: extra
+Maintainer: Martin Mares <mj@ucw.cz>
+Build-Depends: debhelper (>= 9.0), libucw-dev (>= 6.4), libipset-dev
+Standards-Version: 3.9.8
+
+Package: bouncer
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: A daemon for turning away mischievous guests
+ The bouncer daemon monitors authentication logs and maintains an ipset
+ containing IP addresses of frequent sources of unsuccessful password
+ authentication. Usually, this ipset is plugged in iptables to block
+ such offenders.
--- /dev/null
+This work is maintained and packaged for Debian by:
+
+ Martin Mares <mj@ucw.cz>
+
+Copyright:
+
+ (c) 2016 Martin Mares
+
+ Licensed under GPL v2 or newer
--- /dev/null
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+%:
+ dh $@