/[smecontribs]/rpms/smeserver-rdiff-backup/contribs7/smeserver-rdiff-backup.spec
ViewVC logotype

Annotation of /rpms/smeserver-rdiff-backup/contribs7/smeserver-rdiff-backup.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Tue Nov 25 16:20:29 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
Restore

1 slords 1.2 # $Id: smeserver-rdiff-backup.spec,v 1.1 2008/05/15 15:42:17 slords Exp $
2 slords 1.1 # Authority: gordonr
3     # Name: Gordon Rowell
4    
5     Summary: SME Server rdiff-backup module
6     %define name smeserver-rdiff-backup
7     Name: %{name}
8     %define version 0.0.1
9     %define release 19
10     Version: %{version}
11     Release: %{release}%{?dist}
12     License: GPL
13     Group: SMEServer/addon
14     Source: %{name}-%{version}.tar.gz
15     Patch0: smeserver-rdiff-backup-0.0.1-crontab.patch
16     Patch1: smeserver-rdiff-backup-0.0.1-filelist.patch
17     Patch2: smeserver-rdiff-backup-0.0.1-exitstatus.patch
18     Patch3: smeserver-rdiff-backup-0.0.1-defaults.patch
19     Patch4: smeserver-rdiff-backup-0.0.1-remotebackups.patch
20     Patch5: smeserver-rdiff-backup-0.0.1-backuppathidentityfile.patch
21     Patch6: smeserver-rdiff-backup-0.0.1-removeolder.patch
22     Patch7: smeserver-rdiff-backup-0.0.1-printstatistics.patch
23     Patch8: smeserver-rdiff-backup-0.0.1-backuptime.patch
24     Patch9: smeserver-rdiff-backup-0.0.1-backuppath.patch
25     Patch10: smeserver-rdiff-backup-0.0.1-remoteport.patch
26     Patch11: smeserver-rdiff-backup-0.0.1-remotehost.patch
27     Patch12: smeserver-rdiff-backup-0.0.1-RemoteUser.patch
28     Patch13: smeserver-rdiff-backup-0.0.1-StrictHostKeyChecking.patch
29     Patch14: smeserver-rdiff-backup-0.0.1-backuptime.patch2
30     Patch15: smeserver-rdiff-backup-0.0.1-backupdisk.patch
31     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
32     BuildArchitectures: noarch
33     Requires: rdiff-backup
34     BuildRequires: e-smith-devtools >= 1.13.1-03
35     AutoReqProv: no
36     %description
37     %name is an implementation of rdiff-backup on SME Server
38    
39     %changelog
40     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
41     - Clean up spec so package can be built by koji/plague
42    
43     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
44     - Update to new release naming. No functional changes.
45     - Make Packager generic
46    
47     * Tue Oct 17 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-19
48     - Add [backupdisk] samba share so admin can recover files from
49     the last backup via filesharing
50    
51     * Tue Oct 17 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-18
52     - Revert last change as it fails on first-time setup
53    
54     * Thu Sep 14 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-17
55     - Perform cleanup of old backups prior to starting this one
56    
57     * Wed May 24 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-16
58     - Widen default hour range to 0..6, 19..23
59     - Fix zero migration issue for minute and hour
60    
61     * Fri May 19 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-15
62     - Disable StrictHostKeyChecking to backup host to ease initial setup.
63     TODO: Set to no initially, grab the host key, and then set to yes
64    
65     * Fri May 19 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-14
66     - Add RemoteUser, defaulting to rdiff-backup
67    
68     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-13
69     - Prepend rdiff-backup to host to match /root/.ssh/config
70    
71     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-12
72     - Allow RemotePort specification as well as RemoteHost
73    
74     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-11
75     - Rewrite migrate fragment for BackupPath
76    
77     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-10
78     - Default to a random backup time, early in the morning
79    
80     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-09
81     - Print statistics during backup runs
82     - TODO: This should be configurable
83    
84     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-08
85     - Expand /root/.ssh/config during package install/upgrade
86     - Add RemoveOlderThan default of 6 weeks
87    
88     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-07
89     - Convert BackupPath to LocalPath
90     - Configure a default for RemoteIdentity
91    
92     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-06
93     - Initial support for local and remote backups
94    
95     * Wed Apr 26 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-05
96     - Clean up first-time install
97     - Add rdiff-backup{BackupPath} default
98    
99     * Wed Apr 26 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-04
100     - Use different exit statuses for each error
101    
102     * Wed Apr 26 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-03
103     - Fix path to filelist
104     - Expand templates in post
105    
106     * Tue Apr 25 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-02
107     - Remove stray /etc/crontab file
108    
109     * Tue Apr 25 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-01
110     - Initial
111    
112     %prep
113     %setup
114     %patch0 -p1
115     %patch1 -p1
116     %patch2 -p1
117     %patch3 -p1
118     %patch4 -p1
119     %patch5 -p1
120     %patch6 -p1
121     %patch7 -p1
122     %patch8 -p1
123     %patch9 -p1
124     %patch10 -p1
125     %patch11 -p1
126     %patch12 -p1
127     %patch13 -p1
128     %patch14 -p1
129     %patch15 -p1
130    
131     %build
132     perl createlinks
133     mkdir -p root/home/e-smith/files/rdiff-backup/.ssh
134    
135     %install
136     /bin/rm -rf $RPM_BUILD_ROOT
137     (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
138     /bin/rm -f %{name}-%{version}-filelist
139     /sbin/e-smith/genfilelist \
140     --file '/sbin/e-smith/do_rdiff-backup' 'attr(0700,root,root)' \
141     --dir '/home/e-smith/files/rdiff-backup' 'attr(0700,rdiff-backup,rdiff-backup)' \
142     --dir '/home/e-smith/files/rdiff-backup/.ssh' 'attr(0700,rdiff-backup,rdiff-backup)' \
143     $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist
144    
145     %clean
146     /bin/rm -rf $RPM_BUILD_ROOT
147    
148     %files -f %{name}-%{version}-%{release}-filelist
149    
150     %defattr(-,root,root)
151    
152     %pre
153     /sbin/e-smith/create-system-user rdiff-backup 1010 \
154     'rdiff-backup user' /home/e-smith/files/rdiff-backup /bin/bash
155    
156     %post
157     /etc/e-smith/events/actions/initialize-default-databases
158    
159     /sbin/e-smith/expand-template /etc/crontab
160     /sbin/e-smith/expand-template /root/.ssh/config
161     /sbin/e-smith/expand-template /etc/rdiff-backup.filelist
162     /bin/true

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed