2018-12-24 04:37:01 +00:00
|
|
|
--- a/ctdb/wscript 2019-01-15 02:07:00.000000000 -0800
|
|
|
|
+++ b/ctdb/wscript 2019-01-20 20:21:08.800187459 -0800
|
|
|
|
@@ -814,7 +814,7 @@
|
2015-03-04 21:46:20 +00:00
|
|
|
for t in etc_subdirs:
|
|
|
|
files = SUBDIR_MODE('%s/%s' % (configdir, t), trim_path=configdir)
|
|
|
|
for fmode in files:
|
|
|
|
- bld.INSTALL_FILES(bld.env.CTDB_ETCDIR, 'config/%s' % fmode[0],
|
|
|
|
+ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % fmode[0],
|
|
|
|
destname=fmode[0], chmod=fmode[1])
|
|
|
|
|
2018-12-24 04:37:01 +00:00
|
|
|
# If this is a direct install and there are no event scripts
|
|
|
|
@@ -852,24 +852,20 @@
|
2015-03-04 21:46:20 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
for t in etc_scripts:
|
|
|
|
- bld.INSTALL_FILES(bld.env.CTDB_ETCDIR, 'config/%s' % t,
|
|
|
|
+ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % t,
|
2018-12-24 04:37:01 +00:00
|
|
|
destname=t, chmod=MODE_755)
|
2015-03-04 21:46:20 +00:00
|
|
|
|
2016-10-16 00:21:06 +01:00
|
|
|
bld.SAMBA_GENERATOR('ctdb-sudoers',
|
|
|
|
source='config/ctdb.sudoers',
|
|
|
|
target='ctdb.sudoers',
|
|
|
|
rule='sed %s ${SRC} > ${TGT}' % (sed_cmdline))
|
|
|
|
- bld.INSTALL_FILES('${SYSCONFDIR}/sudoers.d', 'ctdb.sudoers',
|
|
|
|
+ bld.INSTALL_FILES('${EXEC_PREFIX}${SYSCONFDIR}/sudoers.d', 'ctdb.sudoers',
|
2015-03-04 21:46:20 +00:00
|
|
|
destname='ctdb')
|
|
|
|
|
2018-12-24 04:37:01 +00:00
|
|
|
- bld.INSTALL_FILES('${CTDB_ETCDIR}/events/notification',
|
|
|
|
+ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}/events/notification',
|
|
|
|
'config/notification.README',
|
2015-03-04 21:46:20 +00:00
|
|
|
destname='README')
|
|
|
|
|
2018-12-24 04:37:01 +00:00
|
|
|
- bld.INSTALL_DIR(bld.env.CTDB_LOGDIR)
|
|
|
|
- bld.INSTALL_DIR(bld.env.CTDB_RUNDIR)
|
|
|
|
- bld.INSTALL_DIR(bld.env.CTDB_VARDIR)
|
2016-10-16 00:21:06 +01:00
|
|
|
-
|
2018-12-24 04:37:01 +00:00
|
|
|
for d in ['volatile', 'persistent', 'state']:
|
|
|
|
bld.INSTALL_DIR(os.path.join(bld.env.CTDB_VARDIR, d))
|
|
|
|
|