Ticket #38961: patch-setup.py.diff

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

    old new  
    5656                                        'server'
    5757                                ],
    5858        data_files =    [
    59                                                 ('/etc/fail2ban',
     59                                                ('@@PREFIX@@/etc/fail2ban',
    6060                                                        glob("config/*.conf")
    6161                                                ),
    62                                                 ('/etc/fail2ban/filter.d',
     62                                                ('@@PREFIX@@/etc/fail2ban/filter.d',
    6363                                                        glob("config/filter.d/*.conf")
    6464                                                ),
    65                                                 ('/etc/fail2ban/action.d',
     65                                                ('@@PREFIX@@/etc/fail2ban/action.d',
    6666                                                        glob("config/action.d/*.conf")
    6767                                                ),
    68                                                 ('/var/run/fail2ban',
     68                                                ('@@PREFIX@@/var/run/fail2ban',
    6969                                                        ''
    7070                                                )
    7171                                        ]
     
    7575# Search for obsolete files.
    7676obsoleteFiles = []
    7777elements =      {
    78                                 "/etc/":
     78                                "@@PREFIX@@/etc/":
    7979                                        [
    8080                                                "fail2ban.conf"
    8181                                        ],
    82                                 "/usr/bin/":
     82                                "@@PREFIX@@/bin/":
    8383                                        [
    8484                                                "fail2ban.py"
    8585                                        ],
    86                                 "/usr/lib/fail2ban/firewall/":
     86                                "@@PREFIX@@/lib/fail2ban/firewall/":
    8787                                        [
    8888                                                "iptables.py",
    8989                                                "ipfwadm.py",
    9090                                                "ipfw.py"
    9191                                        ],
    92                                 "/usr/lib/fail2ban/":
     92                                "@@PREFIX@@/lib/fail2ban/":
    9393                                        [
    9494                                                "version.py",
    9595                                                "protocol.py"
     
    112112                print "\t" + f
    113113        print
    114114
    115 if isdir("/usr/lib/fail2ban"):
     115if isdir("@@PREFIX@@/lib/fail2ban"):
    116116        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."
    120120        print
    121121
    122122# Update config file
    123123if argv[1] == "install":
    124124        print
    125125        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/."
    127127        print