Commit d1ae5b15 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[master] Fix cmdctl pem and csv file installation

They were installed twice (to /etc and to /share, removed the latter)
Also, the generated .pem files were included in the tarball, while they should be generated during the build process
parent 8eb3dbe5
......@@ -11,17 +11,12 @@ pylogmessagedir = $(pyexecdir)/isc/log_messages/
b10_cmdctldir = $(pkgdatadir)
# NOTE: this will overwrite on install
# So these generic copies are placed in share/bind10 instead of to etc
# Admin or packageer will need to put into place manually.
USERSFILES = cmdctl-accounts.csv
CERTFILES = cmdctl-keyfile.pem cmdctl-certfile.pem
CMDCTL_CONFIGURATIONS = cmdctl-accounts.csv
CMDCTL_CONFIGURATIONS += cmdctl-keyfile.pem cmdctl-certfile.pem
b10_cmdctl_DATA = cmdctl.spec
b10_cmdctl_DATA += cmdctl.spec
CLEANFILES= b10-cmdctl cmdctl.pyc cmdctl.spec
......@@ -55,7 +50,7 @@ $(PYTHON_LOGMSGPKG_DIR)/work/ : cmdctl_messages.mes
-d $(PYTHON_LOGMSGPKG_DIR)/work -p $(srcdir)/cmdctl_messages.mes
# this is done here since AC_OUTPUT doesn't expand exec_prefix
b10-cmdctl: $(PYTHON_LOGMSGPKG_DIR)/work/
b10-cmdctl: $(PYTHON_LOGMSGPKG_DIR)/work/ $(CERTFILES)
$(SED) "s|@@PYTHONPATH@@|@pyexecdir@|" >$@
chmod a+x $@
......@@ -76,7 +71,7 @@ if INSTALL_CONFIGURATIONS
# because these file will contain sensitive information.
$(mkinstalldirs) $(DESTDIR)/@sysconfdir@/@PACKAGE@
for f in $(CMDCTL_CONFIGURATIONS) ; do \
for f in $(USERSFILES) $(CERTFILES) ; do \
if test ! -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f; then \
${INSTALL} -m 640 $(srcdir)/$$f $(DESTDIR)$(sysconfdir)/@PACKAGE@/ ; \
fi ; \
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment