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

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

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


Revision 1.2 - (hide annotations) (download)
Mon Aug 14 19:38:12 2017 UTC (7 years, 2 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-rdiff-backup-0_0_1-20_el6_sme, HEAD
Changes since 1.1: +5 -2 lines
* Mon Aug 14 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.0.1-20.sme
- first import to sme9 repo

1 unnilennium 1.2 # $Id: smeserver-rdiff-backup.spec,v 1.1 2017/08/14 19:34:11 unnilennium Exp $
2 unnilennium 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 unnilennium 1.2 %define release 20
10 unnilennium 1.1 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 unnilennium 1.2 * Mon Aug 14 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.0.1-20.sme
41     - first import to sme9 repo
42    
43 unnilennium 1.1 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
44     - Clean up spec so package can be built by koji/plague
45    
46     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
47     - Update to new release naming. No functional changes.
48     - Make Packager generic
49    
50     * Tue Oct 17 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-19
51     - Add [backupdisk] samba share so admin can recover files from
52     the last backup via filesharing
53    
54     * Tue Oct 17 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-18
55     - Revert last change as it fails on first-time setup
56    
57     * Thu Sep 14 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-17
58     - Perform cleanup of old backups prior to starting this one
59    
60     * Wed May 24 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-16
61     - Widen default hour range to 0..6, 19..23
62     - Fix zero migration issue for minute and hour
63    
64     * Fri May 19 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-15
65     - Disable StrictHostKeyChecking to backup host to ease initial setup.
66     TODO: Set to no initially, grab the host key, and then set to yes
67    
68     * Fri May 19 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-14
69     - Add RemoteUser, defaulting to rdiff-backup
70    
71     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-13
72     - Prepend rdiff-backup to host to match /root/.ssh/config
73    
74     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-12
75     - Allow RemotePort specification as well as RemoteHost
76    
77     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-11
78     - Rewrite migrate fragment for BackupPath
79    
80     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-10
81     - Default to a random backup time, early in the morning
82    
83     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-09
84     - Print statistics during backup runs
85     - TODO: This should be configurable
86    
87     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-08
88     - Expand /root/.ssh/config during package install/upgrade
89     - Add RemoveOlderThan default of 6 weeks
90    
91     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-07
92     - Convert BackupPath to LocalPath
93     - Configure a default for RemoteIdentity
94    
95     * Thu May 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-06
96     - Initial support for local and remote backups
97    
98     * Wed Apr 26 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-05
99     - Clean up first-time install
100     - Add rdiff-backup{BackupPath} default
101    
102     * Wed Apr 26 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-04
103     - Use different exit statuses for each error
104    
105     * Wed Apr 26 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-03
106     - Fix path to filelist
107     - Expand templates in post
108    
109     * Tue Apr 25 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-02
110     - Remove stray /etc/crontab file
111    
112     * Tue Apr 25 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-01
113     - Initial
114    
115     %prep
116     %setup
117     %patch0 -p1
118     %patch1 -p1
119     %patch2 -p1
120     %patch3 -p1
121     %patch4 -p1
122     %patch5 -p1
123     %patch6 -p1
124     %patch7 -p1
125     %patch8 -p1
126     %patch9 -p1
127     %patch10 -p1
128     %patch11 -p1
129     %patch12 -p1
130     %patch13 -p1
131     %patch14 -p1
132     %patch15 -p1
133    
134     %build
135     perl createlinks
136     mkdir -p root/home/e-smith/files/rdiff-backup/.ssh
137    
138     %install
139     /bin/rm -rf $RPM_BUILD_ROOT
140     (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
141     /bin/rm -f %{name}-%{version}-filelist
142     /sbin/e-smith/genfilelist \
143     --file '/sbin/e-smith/do_rdiff-backup' 'attr(0700,root,root)' \
144     --dir '/home/e-smith/files/rdiff-backup' 'attr(0700,rdiff-backup,rdiff-backup)' \
145     --dir '/home/e-smith/files/rdiff-backup/.ssh' 'attr(0700,rdiff-backup,rdiff-backup)' \
146     $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist
147    
148     %clean
149     /bin/rm -rf $RPM_BUILD_ROOT
150    
151     %files -f %{name}-%{version}-%{release}-filelist
152    
153     %defattr(-,root,root)
154    
155     %pre
156     /sbin/e-smith/create-system-user rdiff-backup 1010 \
157     'rdiff-backup user' /home/e-smith/files/rdiff-backup /bin/bash
158    
159     %post
160     /etc/e-smith/events/actions/initialize-default-databases
161    
162     /sbin/e-smith/expand-template /etc/crontab
163     /sbin/e-smith/expand-template /root/.ssh/config
164     /sbin/e-smith/expand-template /etc/rdiff-backup.filelist
165     /bin/true

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