Package fail2ban: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | Name: fail2ban Version: 0.10.3.1 Release: alt1 Summary: Fail2Ban is an intrusion prevention framework License: GPL v2 Group: Development/Python Url: http://www.fail2ban.org # Source-url: https://github.com/fail2ban/fail2ban/archive/%version.tar.gz Source: %name-%version.tar Source1: alt-initd Source2: fail2ban.service Source3: fail2ban-logrotate Source4: paths-altlinux.conf BuildArch: noarch BuildPreReq: help2man python-module-json %setup_python_module %name %py_requires json %description Fail2Ban is an intrusion prevention framework written in the Python programming language. It is able to run on POSIX systems that have an interface to a packet-control system or firewall installed locally (for example, iptables or TCP Wrapper). %prep %setup %__subst "s|paths-debian.conf|paths-altlinux.conf|g" config/jail.conf %build %python_build export PYTHONPATH=$PWD cd man ./generate-man %install mkdir -p %buildroot%_man1dir/ cp man/*.1 %buildroot%_man1dir/ mkdir -p %buildroot%_man5dir/ cp man/*.5 %buildroot%_man5dir/ install -d %buildroot%_var/run/fail2ban install -pD -m 744 %SOURCE1 %buildroot%_initdir/fail2ban install -pD -m 644 %SOURCE2 %buildroot%_unitdir/%name.service install -pD -m 644 %SOURCE3 %buildroot%_logrotatedir/fail2ban install -pD -m 644 %SOURCE4 %buildroot%_sysconfdir/%name/paths-altlinux.conf mkdir -p %buildroot%_tmpfilesdir/ echo "d /var/run/fail2ban 0755 root root -" >%buildroot%_tmpfilesdir/%name.conf %python_install --optimize=2 rm -rf %buildroot/%_docdir/%name/ rm -f %buildroot%_sysconfdir/%name/paths-{debian,fedora,freebsd,osx,opensuse}.conf mkdir -p %buildroot%_var/lib/fail2ban/ %post %post_service %name %preun %preun_service %name %files %doc ChangeLog README.md THANKS TODO %python_sitelibdir/%name/ %python_sitelibdir/%{name}*.egg-info/ #%_datadir/%name/ %_bindir/%name-python %_bindir/%name-client %_bindir/%name-server %_bindir/%name-regex %_bindir/%name-testcases %dir %_sysconfdir/%name/ %dir %_sysconfdir/%name/*.d %dir %_sysconfdir/%name/filter.d/ignorecommands %config(noreplace) %_sysconfdir/%name/*.conf %config(noreplace) %_sysconfdir/%name/*.d/*.conf %config(noreplace) %_sysconfdir/%name/*.d/*.py %config(noreplace) %_sysconfdir/%name/filter.d/ignorecommands/* %_var/run/fail2ban/ %_var/lib/fail2ban/ %_initdir/fail2ban %_unitdir/%name.service %_man1dir/* %_man5dir/* %_tmpfilesdir/%name.conf %_logrotatedir/%name %changelog * Wed Oct 03 2018 Anton Farygin <rider@altlinux.ru> 0.10.3.1-alt1 - 0.10.3.1 * Wed Apr 12 2017 Anton Farygin <rider@altlinux.ru> 0.9.6-alt1 - new version * Mon Dec 05 2016 Anton Farygin <rider@altlinux.ru> 0.9.5-alt2 - removed iptables requires - added requires to python-module-systemd (closes: #32592) * Sat Oct 22 2016 Anton Farygin <rider@altlinux.ru> 0.9.5-alt1 - new version * Thu Dec 03 2015 Vitaly Lipatov <lav@altlinux.ru> 0.9.3-alt3 - add post/preun_service - add condreload/condrestart - drop /usr/share/fail2ban link * Wed Dec 02 2015 Vitaly Lipatov <lav@altlinux.ru> 0.9.3-alt2 - fix paths, drop rm -rf from pre script - create directory for persistent database * Tue Nov 17 2015 Vitaly Lipatov <lav@altlinux.ru> 0.9.3-alt1 - new version 0.9.3 (with rpmrb script) * Tue Nov 17 2015 Vitaly Lipatov <lav@altlinux.ru> 0.9.2-alt5 - use pid file, fix start/stop logic (ALT bug #29756) - add logrotate config (ALT bug #29756) * Wed Jul 08 2015 Eugeny A. Rostovtsev <real at altlinux.org> 0.9.2-alt4 - Fixed for i586 (ALT #31119) * Thu Jun 04 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.2-alt3 - Fixed install (ALT #31047) * Mon Jun 01 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.2-alt2 - Avoid requirement on systemd (ALT #31041) * Sat May 30 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.2-alt1 - Version 0.9.2 * Wed Jul 16 2014 Vitaly Lipatov <lav@altlinux.ru> 0.8.13-alt3 - cleanup spec, fix config file permissions * Tue Jul 15 2014 Vitaly Lipatov <lav@altlinux.ru> 0.8.13-alt2 - add missed systemd server script, man jail.conf, tmpfiles file (ALT bug #29469) * Fri May 30 2014 Anton Farygin <rider@altlinux.ru> 0.8.13-alt1 - new version * Sat Aug 03 2013 Vitaly Lipatov <lav@altlinux.ru> 0.8.10-alt2 - implement reload method for service fail2ban * Thu Jun 20 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.10-alt1 - Version 0.8.10 * Mon Nov 12 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.7.1-alt1 - Version 0.8.7.1 (ALT #27951) * Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.8.4-alt4.1.1 - Rebuild with Python-2.7 * Tue Aug 02 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.4-alt4.1 - Fixed interaction with %name and iptables (ALT #25921) * Wed Aug 25 2010 Denis Klimov <zver@altlinux.org> 0.8.4-alt4 - fix inherit with alt gear repo * Wed Aug 25 2010 Denis Klimov <zver@altlinux.org> 0.8.4-alt3 - add man files to package (Closes: #23948) * Mon Nov 23 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.4-alt2.1 - Rebuilt with python 2.6 * Mon Nov 16 2009 Denis Klimov <zver@altlinux.org> 0.8.4-alt2 - add /var/run/fail2ban dir to package - add initd script - user rpm build python macros - reduce Summary * Fri Nov 13 2009 Denis Klimov <zver@altlinux.org> 0.8.4-alt1 - Initial build for ALT Linux |