Index: trunk/packages/sipb-xen-remctl-auto/debian/changelog
===================================================================
--- trunk/packages/sipb-xen-remctl-auto/debian/changelog	(revision 890)
+++ trunk/packages/sipb-xen-remctl-auto/debian/changelog	(revision 891)
@@ -1,2 +1,8 @@
+sipb-xen-remctl-auto (1.0.20) unstable; urgency=low
+
+  * generate config files using mako
+
+ -- Yang Zhang <y_z@mit.edu>  Thu, 14 Aug 2008 15:18:46 -0400
+
 sipb-xen-remctl-auto (1.0.19) unstable; urgency=low
 
Index: trunk/packages/sipb-xen-remctl-auto/debian/sipb-xen-remctl-auto.init
===================================================================
--- trunk/packages/sipb-xen-remctl-auto/debian/sipb-xen-remctl-auto.init	(revision 890)
+++ trunk/packages/sipb-xen-remctl-auto/debian/sipb-xen-remctl-auto.init	(revision 891)
@@ -16,6 +16,7 @@
 gen_config()
 {
-    echo "host/$(invirt-getconf remote.hostname)@$(invirt-getconf authn.0.realm)" \
-        > /etc/remctl/acl/remote
+    for i in /etc/remctl/acl/remote
+    do mako-render $i.mako > $i
+    done
 }
 
Index: trunk/packages/sipb-xen-remctl-auto/files/etc/remctl/acl/remote.mako
===================================================================
--- trunk/packages/sipb-xen-remctl-auto/files/etc/remctl/acl/remote.mako	(revision 891)
+++ trunk/packages/sipb-xen-remctl-auto/files/etc/remctl/acl/remote.mako	(revision 891)
@@ -0,0 +1,2 @@
+<% from invirt.config import structs as cfg %>\
+host/${cfg.remote.hostname}@${cfg.authn[0].realm}
