summaryrefslogtreecommitdiff
path: root/setup.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2182 from orlitzky/openrc-improvementsSergey G. Brester2022-01-101-18/+21
|\ | | | | OpenRC service script improvements
| * files/fail2ban-openrc.init: replace @BINDIR@ at build-time.Michael Orlitzky2021-05-141-18/+21
| | | | | | | | | | | | | | | | | | This commit renames fail2ban-openrc.init to fail2ban-openrc.init.in, and replaces the hard-coded value "/usr/bin" with "@BINDIR@" therein. At build-time, setup.py will replace that string with the correct value, and rename the file (without the ".in" suffix). This mimics the procedure done for "fail2ban-service.in" entirely.
* | fix gh-3098: build fails with error in fail2ban setup command: use_2to3 is ↵sebres2021-09-191-15/+1
| | | | | | | | invalid (setuptools 58+)
* | remove 2to3 in setup (should be called outside before setup)Sergey G. Brester2021-09-191-8/+0
| |
* | setup.py: cherry-pick from 0.11 (option --without-tests)sebres2020-11-231-5/+24
|/
* no root option if testing within virtualenv (fixed now).sebres2017-11-241-2/+4
|
* Fix scripts-root within `fail2ban.service` (relative install root-base ↵sebres2017-11-241-2/+8
| | | | | | | directory). This is amend for e3b061e94b54067525c5e7f2ac716d1c838c9f20. Closes gh-1964
* - `files/fail2ban.service` renamed as template to `files/fail2ban.service.in`;sebres2017-08-231-6/+41
| | | | | | - setup process generates `build/fail2ban.service` from `files/fail2ban.service.in` using distribution related bin-path; - bug-fixing by running setup with option `--dry-run` (note: specify option `--dry-run` before `install`, like `python setup.py --dry-run install`); - test cases extended to cover dry-run.
* setup fix for python3, bypass directories (__pycache__) created after ignore ↵sebres2016-10-051-1/+1
| | | | command was tested
* amend to 2e530fcf72c9e9bae321b37b625728bf9f88f71b: setuptools compatibility ↵sebres2016-08-121-1/+2
| | | | fix - just to be sure if install_scripts will be incompatible tomorrow
* setuptools compatibility fixsebres2016-08-121-1/+3
|
* better handling of setup in test-cases (prevent execution of 2to3 twice, ↵sebres2016-08-121-8/+31
| | | | full logging in heavydebug, etc.)
* Merge branch 'master' into 0.10 (resolve conflicts and cleaning tree points ↵sebres2016-08-121-5/+15
|\ | | | | | | after back-porting gh-1508 0.10 -> 0.9)
| * BF: prefer sys.argv[0] by retrieving of root resp. bin path: __file__ seems ↵sebres2016-08-121-1/+5
| | | | | | | | to be overwritten sometimes on some python versions (e.g. bug of 2.6 by running under cProfile, etc.)
| * compatibility fix (virtualenv, running test cases in py3)sebres2016-08-121-14/+4
| | | | | | | | | | # Conflicts: # MANIFEST
| * introduces new command "fail2ban-python", as automatically created symlink ↵sebres2016-08-121-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | to python executable, where fail2ban currently installed (resp. its modules are located); fixed pythonic filters and test scripts (running via "fail2ban-python" now); fixed test case "testSetupInstallRoot" not for default python (also using direct call, out of virtualenv); # Conflicts: # config/filter.d/ignorecommands/apache-fakegooglebot # fail2ban/tests/files/config/apache-auth/digest.py # fail2ban/tests/files/ignorecommand.py # fail2ban/tests/misctestcase.py
| * BF: install doc files only under Linuxes and other GNU systems (Closes ↵Yaroslav Halchenko2016-08-091-5/+15
| | | | | | | | #1233) (#1503)
* | BF: prefer sys.argv[0] by retrieving of root resp. bin path: __file__ seems ↵sebres2016-08-121-1/+5
| | | | | | | | to be overwritten sometimes on some python versions (e.g. bug of 2.6 by running under cProfile, etc.)
* | compatibility fix (virtualenv, running test cases in py3)sebres2016-08-111-14/+4
| |
* | introduces new command "fail2ban-python", as automatically created symlink ↵sebres2016-08-111-1/+39
| | | | | | | | | | | | | | to python executable, where fail2ban currently installed (resp. its modules are located); fixed pythonic filters and test scripts (running via "fail2ban-python" now); fixed test case "testSetupInstallRoot" not for default python (also using direct call, out of virtualenv);
* | no hardcoded python interpreter pathAlexander Koeppe2016-05-151-1/+1
|/
* BF: realpath for /var/run/fail2ban Closes #1142Yaroslav Halchenko2015-07-311-3/+4
|
* Merge pull request #1068 from yarikoptic/enh/var-run-fail2banLee Clemens2015-07-071-1/+7
|\ | | | | BF: 'create' /var/run/fail2ban on systems with /var/run
| * BF: 'create' /var/run/fail2ban on systems with /var/runYaroslav Halchenko2015-06-111-1/+7
| | | | | | | | Should overcome problems of some users installing using setup.py install
* | Fix pep8 E401 multiple imports on one lineLee Clemens2015-06-261-1/+2
|/
* Add trailing comma back to listLee Clemens2015-02-021-1/+1
|
* New jail: apache-fakegooglebotLee Clemens2015-02-021-1/+4
| | | | Detects fake googlebot user agents in apache access log
* Clean up setup.pyDeyuan Deng2014-04-041-65/+65
|
* BF: Remove unused imports and variables.Steven Hiscocks2014-03-161-3/+1
| | | | All highlighted by using pyflakes.
* BF: Remove "/var/run/fail2ban" from setup.pySteven Hiscocks2014-03-161-3/+0
| | | | | | | As the contents of /var/run are lost on reboot, it doesn't make sense to install it. This is already patched out in some distros (gentoo, arch, debian, gentoo, …) as causes a headache with package managment tracking installed files.
* BF: include test dataDaniel Black2014-03-151-0/+6
|
* PKG: Documentation filesDaniel Black2014-03-141-1/+2
|
* ENH: Change logging levels and make info more verboseSteven Hiscocks2014-02-201-1/+1
|
* TST+BF: Add tests for python actions, including test for smtp.pySteven Hiscocks2014-01-201-0/+1
| | | | Also fix bug when specifying multiple recipients for smtp.py action
* RF: Refactor actions further, include removing server proxy interfaceSteven Hiscocks2014-01-031-1/+2
| | | | | This allows direct setting of action properties and calling of methods from the fail2ban-client if so required.
* ENH: Python based actionsSteven Hiscocks2013-12-311-1/+1
| | | | | | | | | | | | | | | | | Python actions are imported from action.d config folder, which have .py file extension. This imports and creates an instance of the Action class (Action can be a variable that points to a class of another name). fail2ban.server.action.ActionBase is a base class which can be inherited from or as a minimum has a subclass hook which is used to ensure any imported actions implements the methods required. All calls to the execAction are also wrapped in a try except such that any errors won't cripple the jail. Action is renamed CommandAction, to clearly distinguish it from other actions. Include is an example smtp.py python action for sending emails via smtp. This is work in progress, as looking to add the <matches> and whois elements, and also SSL/TLS support.
* ENH: Add fail2ban persistent data storageSteven Hiscocks2013-12-071-0/+3
|
* MRG: merge from masterDaniel Black2013-09-081-0/+6
|\
| * Install empty /etc/fail2ban/fail2ban.d directoryOrion Poplawski2013-08-281-0/+3
| |
| * Install empty /etc/fail2ban/jail.d directoryOrion Poplawski2013-08-091-0/+3
| |
| * BF: testcases is a package that needs to be installed. Thanks to Michael ↵Daniel Black2013-07-291-1/+2
| | | | | | | | Danko on irc
* | BF: setup.py build now includes sample log files for testsSteven Hiscocks2013-07-161-2/+5
| |
* | Merge branch 'master' into 0.9Yaroslav Halchenko2013-05-021-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: ENH: "is None" instead of "== None" + tune ups in headers BF: log error only if there were missed config files that couldn't be read DOC: missing cinfo tags are ok. Log error for self referencing definitions DOC: s/defination/definition/g learn to spell Changelog entry for the previous commit and some untabify BF: pyinotify backend should also handle IN_MOVED_TO events ENH: remove stats of config files and use results of SafeConfigParserWithIncludes.read to facilitate meaningful error messages DOC: credits for gh-70 fix BF: ensure dates in email are in the C locale. Thanks iGeorgeX DOC: ChangeLog for recursive tag substition ENH: allow recursive tag substitution in action files. DOC: document <br> tag DOC: ChangeLog for named-refused entry ENH: Account for views in named filter. By Romain Riviere in gentoo bug #259458 DOC: release documentation and distributor contacts DOC: changelog entry for enhanced ssh filter BF: Rename mentioning of README to README.md (Fixes #187) updated README.md to hyperlink, add travis and coversall Moving README into a markup README.md for github's goodnesses Conflicts: DEVELOP README.md fail2ban/client/configreader.py fail2ban/server/datedetector.py
| * BF: Rename mentioning of README to README.md (Fixes #187)Yaroslav Halchenko2013-04-261-1/+1
| |
* | ENH: Reimplement warning suppression of setup.py test --quietSteven Hiscocks2013-04-211-1/+3
| |
* | BF: Remove warnings handler which breaks setup.py python2<2.7 and python3<3.2Steven Hiscocks2013-04-211-1/+0
| |
* | ENH: use os.path.join for consistency -- add "Contributors" to authorsYaroslav Halchenko2013-04-201-4/+4
| |
* | RF: setup.py now imports version number againSteven Hiscocks2013-04-211-1/+7
| |
* | TST+RF: Add ability to execute test from setup.py with setuptoolsSteven Hiscocks2013-04-201-4/+35
| | | | | | | | | | Note that the fail2ban version can no longer be imported from "fail2ban.version", as this breaks 2to3 conversion for tests
* | DOC: Revert setup.py messages to use print statementSteven Hiscocks2013-04-141-17/+16
| |