Ticket #34229: patch-setup.py.diff

File patch-setup.py.diff, 1.3 KB (added by fclaire@…, 12 years ago)
  • setup.py

    old new  
    6262                                        'server'
    6363                                ],
    6464        data_files =    [
    65                                                 ('/etc/fail2ban',
     65                                                ('@@PREFIX@@/etc/fail2ban',
    6666                                                        glob("config/*.conf")
    6767                                                ),
    68                                                 ('/etc/fail2ban/filter.d',
     68                                                ('@@PREFIX@@/etc/fail2ban/filter.d',
    6969                                                        glob("config/filter.d/*.conf")
    7070                                                ),
    71                                                 ('/etc/fail2ban/action.d',
     71                                                ('@@PREFIX@@/etc/fail2ban/action.d',
    7272                                                        glob("config/action.d/*.conf")
    7373                                                ),
    74                                                 ('/var/run/fail2ban',
     74                                                ('@@PREFIX@@/var/run/fail2ban',
    7575                                                        ''
    7676                                                )
    7777                                        ]
     
    8181# Search for obsolete files.
    8282obsoleteFiles = []
    8383elements =      {
    84                                 "/etc/":
     84                                "@@PREFIX@@/etc/":
    8585                                        [
    8686                                                "fail2ban.conf"
    8787                                        ],
    88                                 "/usr/bin/":
     88                                "@@PREFIX@@/bin/":
    8989                                        [
    9090                                                "fail2ban.py"
    9191                                        ],
    92                                 "/usr/lib/fail2ban/firewall/":
     92                                "@@PREFIX@@/lib/fail2ban/firewall/":
    9393                                        [
    9494                                                "iptables.py",
    9595                                                "ipfwadm.py",
    9696                                                "ipfw.py"
    9797                                        ],
    98                                 "/usr/lib/fail2ban/":
     98                                "@@PREFIX@@/lib/fail2ban/":
    9999                                        [
    100100                                                "version.py",
    101101                                                "protocol.py"
     
    129129if argv[1] == "install":
    130130        print
    131131        print "Please do not forget to update your configuration files."
    132         print "They are in /etc/fail2ban/."
     132        print "They are in @@PREFIX@@/etc/fail2ban/."
    133133        print