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