#
# spec file for package SUNWtime-slider
#
# includes module(s): time-slider
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
#
# NOTE: If the version is bumped the new tarball must be uploaded to the
# Sun Download Center. Contact GNOME RE for assistance.
SUNW_BaseDir: %{_basedir}
Requires: SUNWpython26-notify
SUNW_BaseDir: /
%prep
# replace the old translations
echo 'zfssnap::::type=role;auths=solaris.smf.manage.zfs-auto-snapshot;profiles=ZFS File System Management' > $RPM_BUILD_ROOT/etc/user_attr.d/desktop-time-slider
echo 'solaris.smf.manage.zfs-auto-snapshot:::Manage the ZFS Automatic Snapshot Service::' > $RPM_BUILD_ROOT/etc/security/auth_attr.d/desktop-time-slider
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
%if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1)
%post
user ftpuser=false gcos-field="ZFS Automatic Snapshots Reserved UID" group=daemon login-shell=/usr/bin/pfsh password=NP uid=51 username=zfssnap
%{_bindir}/*
# '/etc' directory already declared above as "%{_sysconfdir}"
%config %ips_tag(restart_fmri=svc:/system/rbac:default) %attr (0444, root, sys) /etc/security/auth_attr.d/*