Ticket #38961: patch-setup.py.diff
File patch-setup.py.diff, 1.9 KB (added by fclaire@…, 12 years ago) |
---|
-
setup.py
old new 56 56 'server' 57 57 ], 58 58 data_files = [ 59 (' /etc/fail2ban',59 ('@@PREFIX@@/etc/fail2ban', 60 60 glob("config/*.conf") 61 61 ), 62 (' /etc/fail2ban/filter.d',62 ('@@PREFIX@@/etc/fail2ban/filter.d', 63 63 glob("config/filter.d/*.conf") 64 64 ), 65 (' /etc/fail2ban/action.d',65 ('@@PREFIX@@/etc/fail2ban/action.d', 66 66 glob("config/action.d/*.conf") 67 67 ), 68 (' /var/run/fail2ban',68 ('@@PREFIX@@/var/run/fail2ban', 69 69 '' 70 70 ) 71 71 ] … … 75 75 # Search for obsolete files. 76 76 obsoleteFiles = [] 77 77 elements = { 78 " /etc/":78 "@@PREFIX@@/etc/": 79 79 [ 80 80 "fail2ban.conf" 81 81 ], 82 " /usr/bin/":82 "@@PREFIX@@/bin/": 83 83 [ 84 84 "fail2ban.py" 85 85 ], 86 " /usr/lib/fail2ban/firewall/":86 "@@PREFIX@@/lib/fail2ban/firewall/": 87 87 [ 88 88 "iptables.py", 89 89 "ipfwadm.py", 90 90 "ipfw.py" 91 91 ], 92 " /usr/lib/fail2ban/":92 "@@PREFIX@@/lib/fail2ban/": 93 93 [ 94 94 "version.py", 95 95 "protocol.py" … … 112 112 print "\t" + f 113 113 print 114 114 115 if isdir(" /usr/lib/fail2ban"):115 if isdir("@@PREFIX@@/lib/fail2ban"): 116 116 print 117 print "Fail2ban is not installed under /usr/lib anymore. The new " \118 "location is under /usr/share. Please remove the directory " \119 " /usr/lib/fail2ban and everything under this directory."117 print "Fail2ban is not installed under @@PREFIX@@/lib anymore. The new " \ 118 "location is under @@PREFIX@@/share. Please remove the directory " \ 119 "@@PREFIX@@/lib/fail2ban and everything under this directory." 120 120 print 121 121 122 122 # Update config file 123 123 if argv[1] == "install": 124 124 print 125 125 print "Please do not forget to update your configuration files." 126 print "They are in /etc/fail2ban/."126 print "They are in @@PREFIX@@/etc/fail2ban/." 127 127 print