# HG changeset patch # User Jie Kang # Date 1482265727 18000 # Node ID 83ded2b9af311ebcf30d38b8e92ddef4050185f4 # Parent f6c48c61e6de74f9bb0bf5a1251a98f2a2c376f3 Symlink thermostat-common and fix syntax error in thermostatrc. Backport of: http://icedtea.classpath.org/hg/thermostat/rev/07db2870b601 PR3238 Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2016-December/021885.html diff -r f6c48c61e6de -r 83ded2b9af31 distribution/packaging/fedora/thermostat.spec --- a/distribution/packaging/fedora/thermostat.spec Tue Dec 20 15:27:55 2016 -0500 +++ b/distribution/packaging/fedora/thermostat.spec Tue Dec 20 15:28:47 2016 -0500 @@ -680,7 +680,7 @@ sed -i 's|^JAVA=.*|JAVA="%{jdk_base}/bin/java"|' distribution/target/image/bin/thermostat-command-channel sed -i 's|^JAVA=.*|JAVA="%{jdk_base}/bin/java"|' distribution/target/image/bin/thermostat # Fix path to tools.jar, replace system thermostatrc -sed 's|__TOOLS_PATH__|%{jdk_base}/lib/tools.jar"|' %{SOURCE4} > distribution/target/image/etc/thermostatrc +sed 's|__TOOLS_PATH__|%{jdk_base}/lib/tools.jar|' %{SOURCE4} > distribution/target/image/etc/thermostatrc sed -i 's|^TOOLS_JAR=.*|TOOLS_JAR="%{jdk_base}/lib/tools.jar"|' distribution/target/image/bin/thermostat-agent-proxy sed -i 's|^TOOLS_JAR=.*|TOOLS_JAR="%{jdk_base}/lib/tools.jar"|' distribution/target/image/bin/thermostat-command-channel sed -i 's|^TOOLS_JAR=.*|TOOLS_JAR="%{jdk_base}/lib/tools.jar"|' distribution/target/image/bin/thermostat @@ -820,11 +820,13 @@ done popd -# Symlink the thermostat script(s) in /usr/bin +# Symlink essential thermostat script(s) in /usr/bin ln -s %{_datarootdir}/%{pkg_name}/bin/thermostat \ %{buildroot}%{_bindir}/thermostat ln -s %{_datarootdir}/%{pkg_name}/bin/thermostat-setup \ %{buildroot}%{_bindir}/thermostat-setup +ln -s %{_datarootdir}/%{pkg_name}/bin/thermostat-common \ + %{buildroot}%{_bindir}/thermostat-common # Move config files to /etc and symlink stuff under # $THERMOSTAT_HOME/etc to it. Put example configs @@ -1069,6 +1071,7 @@ %{_jnidir}/thermostat-*.jar %{_bindir}/thermostat %{_bindir}/thermostat-setup +%{_bindir}/thermostat-common %{_mandir}/man1/%{pkg_name}.1* %if 0%{?with_systemd} %{_unitdir}/%{?scl_prefix}%{pkg_name}-storage.service