1 # 2 # spec file for package SUNWzfs-auto-snapshot 3 # includes module(s): zfs-snapshot 4 # 5 # Copyright 2008 Sun Microsystems, Inc. 6 # This file and all modifications and additions to the pristine 7 # package are under the same license as the package itself. 8 # 9 # Owner: niall 10 # 11 12 %include Solaris.inc 13 # NOTE: If the version is bumped the new tarball must be uploaded to the 14 # Sun Download Center. Contact GNOME RE for assistance. 15 16 Name: SUNWzfs-auto-snapshot 17 Summary: ZFS automatic snapshot service 18 Version: 0.11.3 19 Source: http://dlc.sun.com/osol/jds/downloads/extras/time-slider/zfs-snapshot-%{version}.tar.bz2 20 Patch1: zfs-auto-snapshot-01-zfssnap-role.diff 21 SUNW_BaseDir: / 22 SUNW_Copyright: %{name}.copyright 23 BuildRoot: %{_tmppath}/%{name}-%{version}-build 24 Prereq: /usr/sbin/roleadd 25 26 %include default-depend.inc 27 Requires: SUNWzfsu 28 29 %prep 30 %setup -q -n zfs-snapshot-%{version} 31 %patch1 -p1 32 33 %build 34 35 %install 36 rm -rf $RPM_BUILD_ROOT 37 mkdir -p $RPM_BUILD_ROOT/lib 38 mkdir -p $RPM_BUILD_ROOT/var 39 cp -R src/lib $RPM_BUILD_ROOT 40 cp -R src/var $RPM_BUILD_ROOT 41 42 mkdir -p $RPM_BUILD_ROOT/etc/security 43 echo 'solaris.smf.manage.zfs-auto-snapshot:::Manage the ZFS Automatic Snapshot Service::' > $RPM_BUILD_ROOT/etc/security/auth_attr 44 45 46 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 47 48 %clean 49 rm -rf $RPM_BUILD_ROOT 50 51 %if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1) 52 %iclass manifest -f i.manifest 53 %endif 54 55 %files 56 %defattr (-, root, bin) 57 %dir %attr (0755, root, sys) /var 58 %dir %attr (0755, root, sys) /var/svc 59 %dir %attr (0755, root, sys) /var/svc/manifest 60 %dir %attr (0755, root, sys) /var/svc/manifest/system 61 %dir %attr (0755, root, sys) /var/svc/manifest/system/filesystem 62 %class(manifest) %attr (0444, root, sys) /var/svc/manifest/system/filesystem/*.xml 63 %dir %attr (0755, root, bin) /lib/svc/method 64 %attr (0555, root, bin) /lib/svc/method/zfs-auto-snapshot* 65 %dir %attr (0755, root, sys) /etc 66 %dir %attr (0755, root, sys) /etc/security 67 %config %class (rbac) %attr (0644, root, sys) /etc/security/auth_attr 68 69 %changelog 70 * Fri Jan 09 2008 - niall.power@sun.com 71 - Bump to 0.11.3 72 Removed upstreamed no-swap-dump.diff patch 73 * Mon Nov 10 2008 - niall.power@sun.com 74 - Add patch to disable swap and dump snapshotting 75 * Wed Oct 08 2008 - niall.power@sun.com 76 - Bump to 0.11.1 source tarball to fix SMF import issues. 77 * Tue Sep 23 2008 - niall.power@sun.com 78 - Remove postinstall roleadd as it breaks on live media and LU 79 etc. 80 Add patch -01-zfssnap-role to create it as a SMF service instead 81 * Mon Sep 22 2008 - niall.power@sun.com 82 - Move pre install to post install phase so that 83 authorisation is available before adding role user 84 * Wed Sep 18 2008 - niall.power@sun.com 85 - Initial spec file created. 86