ccnx-trace: making daemon run as ccnx user
diff --git a/net/ccnx-trace/Portfile b/net/ccnx-trace/Portfile
index aa1b4d5..63d30df 100644
--- a/net/ccnx-trace/Portfile
+++ b/net/ccnx-trace/Portfile
@@ -45,9 +45,12 @@
destroot {
xinstall ${worksrcpath}/source/trace ${destroot}${prefix}/bin/ccntrace
xinstall ${worksrcpath}/source/ccn_traced ${destroot}${prefix}/bin/ccn_traced
+
+ system "echo \"su - ccnx -c '${prefix}/bin/ccn_traced'\" > \"${destroot}${prefix}/bin/ccn_traced-wrapper\""
+ file attributes "${destroot}${prefix}/bin/ccn_traced-wrapper" -permissions 0755
}
-startupitem.executable "${prefix}/bin/ccn_traced"
+startupitem.executable "${prefix}/bin/ccn_traced-wrapper"
startupitem.create yes
startupitem.name ${name}