Commit 4cfe473a authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

This is for ticket #106.

Install the sample bindctl and cmdctl configurations if they
aren't already in place.

Note that the samples are still always installed to share/data
directory anyways.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1534 e5f2f494-b856-4b98-b285-d166d9295462
parent 917f5c72
......@@ -24,3 +24,11 @@ bindctl: bindctl-source.py
-e "s|@@SYSCONFDIR@@|@sysconfdir@|" \
-e "s|@@LIBEXECDIR@@|$(pkglibexecdir)|" bindctl-source.py >$@
chmod a+x $@
# TODO: permissions handled later
install-data-local:
$(mkinstalldirs) $(DESTDIR)/@sysconfdir@/@PACKAGE@
if test ! -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/bindctl.pem; then \
$(INSTALL_DATA) $(srcdir)/bindctl.pem $(DESTDIR)$(sysconfdir)/@PACKAGE@/ ; \
fi
......@@ -8,7 +8,10 @@ b10_cmdctldir = $(DESTDIR)$(pkgdatadir)
# So these generic copies are placed in share/bind10 instead of to etc
# Admin or packageer will need to put into place manually.
b10_cmdctl_DATA = cmdctl-accounts.csv cmdctl-keyfile.pem cmdctl-certfile.pem
CMDCTL_CONFIGURATIONS = cmdctl-accounts.csv
CMDCTL_CONFIGURATIONS += cmdctl-keyfile.pem cmdctl-certfile.pem
b10_cmdctl_DATA = $(CMDCTL_CONFIGURATIONS)
b10_cmdctl_DATA += cmdctl.spec
EXTRA_DIST = cmdctl-accounts.csv cmdctl-keyfile.pem cmdctl-certfile.pem
......@@ -32,7 +35,12 @@ b10-cmdctl: cmdctl.py
$(SED) "s|@@PYTHONPATH@@|@pyexecdir@|" cmdctl.py >$@
chmod a+x $@
# TODO: permissions handled later
install-data-local:
$(mkinstalldirs) $(DESTDIR)/@sysconfdir@/@PACKAGE@
# TODO: permissions handled later
for f in $(CMDCTL_CONFIGURATIONS) ; do \
if test ! -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f; then \
$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(sysconfdir)/@PACKAGE@/ ; \
fi ; \
done
Markdown is supported
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