[csw-devel] SF.net SVN: opencsw:[471] catalog_signatures
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Thu Jul 21 05:24:50 CEST 2011
Revision: 471
http://opencsw.svn.sourceforge.net/opencsw/?rev=471&view=rev
Author: bdwalton
Date: 2011-07-21 03:24:50 +0000 (Thu, 21 Jul 2011)
Log Message:
-----------
move most shell variables to a shell-sourcable config file in etc (signing_daemon.conf)
Signed-off-by: Ben Walton <bwalton at opencsw.org>
Modified Paths:
--------------
catalog_signatures/bin/signing_daemon
Added Paths:
-----------
catalog_signatures/etc/signing_daemon.conf
Modified: catalog_signatures/bin/signing_daemon
===================================================================
--- catalog_signatures/bin/signing_daemon 2011-07-21 03:24:24 UTC (rev 470)
+++ catalog_signatures/bin/signing_daemon 2011-07-21 03:24:50 UTC (rev 471)
@@ -6,14 +6,9 @@
MYPATH="$(readlink -f $(dirname $0))"
APP_HOME="${MYPATH/bin/}"
-APP_BIN="${APP_HOME}/bin"
-APP_DAEMON="${APP_BIN}/http_gpg_daemon"
-APP_GPG="${APP_HOME}/etc/gpg"
-APP_TMP="${APP_HOME}/tmp"
-APP_GPG_ENV="${APP_TMP}/gpg-agent-env.conf"
+APP_ETC="${APP_HOME}etc"
+source "${APP_ETC}/signing_daemon.conf"
-export APP_HOME APP_BIN APP_GPG APP_TMP APP_GPG_ENV APP_DAEMON
-
rm -f ${APP_GPG_ENV}
gpg-agent --log-file "${APP_TMP}/gpg-agent.log" --daemon --homedir "${APP_GPG}" --write-env-file "${APP_GPG_ENV}" screen -c "${APP_HOME}/etc/screenrc" -p 0
Added: catalog_signatures/etc/signing_daemon.conf
===================================================================
--- catalog_signatures/etc/signing_daemon.conf (rev 0)
+++ catalog_signatures/etc/signing_daemon.conf 2011-07-21 03:24:50 UTC (rev 471)
@@ -0,0 +1,7 @@
+APP_BIN="${APP_HOME}/bin"
+APP_DAEMON="${APP_BIN}/http_gpg_daemon"
+APP_GPG="${APP_HOME}/etc/gpg"
+APP_TMP="${APP_HOME}/tmp"
+APP_GPG_ENV="${APP_TMP}/gpg-agent-env.conf"
+
+export APP_HOME APP_BIN APP_GPG APP_TMP APP_GPG_ENV APP_DAEMON
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list