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