ports/databases/mysql-utilities/patches/patch-setup_py

21 lines
941 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- setup.py.orig Mon Aug 1 17:54:48 2016
+++ setup.py Sat Sep 3 18:45:36 2016
@@ -367,7 +367,7 @@ class install_data(_install_data):
elif os.name == 'nt':
install_sysconfdir = os.path.join(install_dir, 'etc')
else:
- install_sysconfdir = '/etc'
+ install_sysconfdir = '${PREFIX}/share/examples'
# Go over all entries in data_files and process it if needed
new_data_files = []
@@ -399,7 +399,7 @@ class install_data(_install_data):
filename = os.path.splitext(filename)[0]
config.write(open(filename, "w"))
# change directory 'fabric' to mysql
- directory = os.path.join(install_sysconfdir, 'mysql')
+ directory = os.path.join(install_sysconfdir, 'mysql-utilities')
data_files.append((directory, filename))
new_data_files.extend(data_files)