2005-07-06 23:10:26 +00:00
|
|
|
# quick dirty hack to avoid reading documentation for cdbs where
|
|
|
|
# install target involved only if using autotools
|
|
|
|
DESTDIR=debian/fail2ban
|
|
|
|
|
2005-07-07 03:06:56 +00:00
|
|
|
all:: fail2ban fail2ban.1x
|
|
|
|
|
|
|
|
|
|
|
|
fail2ban.1x: fail2ban fail2ban.h2m
|
|
|
|
help2man --include fail2ban.h2m --section=1x --no-info --output $@ ./fail2ban
|
|
|
|
|
|
|
|
fail2ban: fail2ban.py
|
2005-07-06 23:10:26 +00:00
|
|
|
cp fail2ban.py fail2ban
|
2005-07-07 03:06:56 +00:00
|
|
|
|
2005-07-06 23:10:26 +00:00
|
|
|
|
|
|
|
install:: all
|
|
|
|
mkdir -p $(DESTDIR)/etc/default
|
2005-07-07 01:47:23 +00:00
|
|
|
python setup.py install --root=debian/fail2ban/
|
2005-07-06 23:10:26 +00:00
|
|
|
cp config/fail2ban.conf.default $(DESTDIR)/etc/fail2ban.conf
|
|
|
|
cp config/gentoo-confd $(DESTDIR)/etc/default/fail2ban
|
|
|
|
mkdir -p $(DESTDIR)/usr/lib/fail2ban/
|
|
|
|
cp log4py.py $(DESTDIR)/usr/lib/fail2ban/
|
|
|
|
|
|
|
|
clean::
|
2005-07-07 03:06:56 +00:00
|
|
|
rm -rf changelog.gz fail2ban{,.1x} build* `find -iname '*.pyc' `
|