[svn] commit: r1534 - in /trunk/src/bin: bindctl/Makefile.am cmdctl/Makefile.am

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Mar 18 20:14:47 UTC 2010


Author: jreed
Date: Thu Mar 18 20:14:46 2010
New Revision: 1534

Log:
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.

Modified:
    trunk/src/bin/bindctl/Makefile.am
    trunk/src/bin/cmdctl/Makefile.am

Modified: trunk/src/bin/bindctl/Makefile.am
==============================================================================
--- trunk/src/bin/bindctl/Makefile.am (original)
+++ trunk/src/bin/bindctl/Makefile.am Thu Mar 18 20:14:46 2010
@@ -24,3 +24,11 @@
 	       -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
+

Modified: trunk/src/bin/cmdctl/Makefile.am
==============================================================================
--- trunk/src/bin/cmdctl/Makefile.am (original)
+++ trunk/src/bin/cmdctl/Makefile.am Thu Mar 18 20:14:46 2010
@@ -8,7 +8,10 @@
 # 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 @@
 	$(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
 




More information about the bind10-changes mailing list