Hi, This patch is a modification to spec-files-other/core/SUNWgnome-time-slider.spec that removes the postinstallation and presinstallation operations that automatically enable the service. I'm removing these sections so that the service doesn't get enabled by default.
See http://monaco.sfbay.sun.com/detail.jsf?cr=6758254 for the rationale behind this. Thanks, Niall. Spec file diff: niall at silliussodus:>svn diff|more Index: core/SUNWgnome-time-slider.spec =================================================================== --- core/SUNWgnome-time-slider.spec (revision 415) +++ core/SUNWgnome-time-slider.spec (working copy) @@ -17,7 +17,6 @@ Summary: Time Slider ZFS snapshot management for GNOME Version: 0.1.1 Source: http://dlc.sun.com/osol/jds/downloads/e xtras/time-slider/time-slider-%{version}.tar.bz2 -# date:2008-10-02 owner:fujiwara type:bug bugster:6755169 SUNW_BaseDir: %{_basedir} SUNW_Copyright: %{name}.copyright BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -55,60 +54,9 @@ %iclass manifest -f i.manifest %endif -%pre root -#!/bin/sh -# -# Copyright 2008 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# - -# Presence of this temp file will tell postinstall script -# that the time-slider service is already installed, in which case -# the current service state will be preserved, be it enabled -# or disabled. -rm -f $PKG_INSTALL_ROOT/var/time-slider_installed.tmp > /dev/null 2>&1 - -if [ -f $PKG_INSTALL_ROOT/var/svc/manifest/application/time-slider.xml ]; then - touch $PKG_INSTALL_ROOT/var/time-slider_installed.tmp -fi - -exit 0 - %post %include icon-cache.script -%post root -#!/bin/sh -# -# Copyright 2008 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# - -# Preinstall script will create this file if time-slider service was -# already installed, in which case we preserve current service state, -# be it enabled or disabled. -if [ -f $PKG_INSTALL_ROOT/var/time-slider_installed.tmp ]; then - rm -f $PKG_INSTALL_ROOT/var/time-slider_installed.tmp -else - # enable time-slider: - # - PKG_INSTALL_ROOT is / or empty when installing onto a live system - # and we can invoke svcadm directly; - # - otherwise it's upgrade, so we append to the upgrade script - if [ "${PKG_INSTALL_ROOT:-/}" = "/" ]; then - if [ `/sbin/zonename` = global ]; then - /usr/sbin/svcadm enable -r svc:/application/time-slider: default - fi - else - cat >> ${PKG_INSTALL_ROOT}/var/svc/profile/upgrade <<-EOF - if [ \`/sbin/zonename\` = global ]; then - /usr/sbin/svcadm enable -r svc:/application/time-slider: default - fi -EOF - fi -fi - -exit 0 - %files %defattr (-, root, bin) %{_bindir}/* @@ -152,6 +100,8 @@ %attr (0555, root, bin) /lib/svc/method/time-slider %changelog +* Fri Oct 10 2008 - niall.power at sun.com +- disable auto SMF enabelment in post install * Wed Oct 08 2008 - niall.power at sun.com - Bump to 0.1.1 Drop upstreamed g11n-i18n.diff * Thu Oct 02 2008 - takao.fujiwara at su.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: SUNWgnome-time-slider.spec.diff URL: <http://mail.opensolaris.org/pipermail/jds-review/attachments/20081010/f28886b2/attachment.ksh>
