patch-setup_py 1007 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-setup_py,v 1.2 2016/09/03 16:54:15 giovanni Exp $
  2. --- setup.py.orig Mon Aug 1 17:54:48 2016
  3. +++ setup.py Sat Sep 3 18:45:36 2016
  4. @@ -367,7 +367,7 @@ class install_data(_install_data):
  5. elif os.name == 'nt':
  6. install_sysconfdir = os.path.join(install_dir, 'etc')
  7. else:
  8. - install_sysconfdir = '/etc'
  9. + install_sysconfdir = '${PREFIX}/share/examples'
  10. # Go over all entries in data_files and process it if needed
  11. new_data_files = []
  12. @@ -399,7 +399,7 @@ class install_data(_install_data):
  13. filename = os.path.splitext(filename)[0]
  14. config.write(open(filename, "w"))
  15. # change directory 'fabric' to mysql
  16. - directory = os.path.join(install_sysconfdir, 'mysql')
  17. + directory = os.path.join(install_sysconfdir, 'mysql-utilities')
  18. data_files.append((directory, filename))
  19. new_data_files.extend(data_files)