/[smecontribs]/rpms/smeserver-rsyncd/contribs10/smeserver-rsyncd.spec
ViewVC logotype

Annotation of /rpms/smeserver-rsyncd/contribs10/smeserver-rsyncd.spec

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


Revision 1.1 - (hide annotations) (download)
Sat Apr 3 05:04:54 2021 UTC (3 years, 2 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-rsyncd-1_0-1, HEAD
* Sat Apr 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-1.sme
- initial build for SME 10

1 jpp 1.1 %define name smeserver-rsyncd
2     %define version 1.0
3     %define release 1
4     Summary: SMEserver rpm for rsyncd
5     Name: %{name}
6     Version: %{version}
7     Release: %{release}
8     License: GNU GPL version 2
9     URL: http://www.contribs.org
10     Distribution: SME Server
11     Group: SMEServer/addon
12     Source: %{name}-%{version}.tar.gz
13    
14     Packager: Jean-Philippe Pialasse <tests@pialasse.com>
15     BuildRoot: /var/tmp/%{name}-%{version}
16     BuildArchitectures: noarch
17     BuildRequires: e-smith-devtools
18     Requires: e-smith-release >= 10
19     AutoReqProv: no
20    
21    
22     %description
23     SMEserver rpm for setting up rsyncd
24    
25     %changelog
26     * Sat Apr 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-1.sme
27     - initial build for SME 10
28    
29    
30     %prep
31     %setup
32     #%patch1 -p1
33    
34     %build
35     perl createlinks
36    
37    
38     %install
39     rm -rf $RPM_BUILD_ROOT
40     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
41     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
42     echo "%doc " >> %{name}-%{version}-filelist
43    
44     %clean
45     cd ..
46     rm -rf %{name}-%{version}
47    
48     %pre
49     %preun
50     %post
51     #new installs
52     if [ $1 = 1 ] ; then
53     /bin/touch /home/e-smith/db/dungog
54    
55     # DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
56     # for db in $DBS ; do
57     # /sbin/e-smith/db $db set dungog-rsync panel Description "Rsync" DescriptionWeight 4863 Heading "dungog.net" HeadingWeight 4000 2>/dev/null
58     # done
59     fi
60    
61     /bin/chmod 644 /etc/crontab
62     /etc/e-smith/events/actions/initialize-default-databases
63    
64     echo ''
65     echo 'Remote server syntax changed for secure transfers from dungog-rsync-1.2-4'
66     echo 'you now need to enter the user as well as the server'
67     echo 'this removes the requirement of having the same user on both servers'
68     echo 'but you may need to update your existing rules'
69     echo ''
70    
71    
72     %postun
73     #uninstalls
74     if [ $1 = 0 ] ; then
75     /sbin/e-smith/expand-template /etc/crontab
76    
77     /bin/rm -rf /usr/bin/dungogrsync-?????
78    
79     # DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
80     # for db in $DBS ; do
81     # /sbin/e-smith/db $db delete dungog-rsync 2>/dev/null
82     # done
83    
84     fi
85    
86     #&upgrades
87    
88    
89     %files -f %{name}-%{version}-filelist
90     %defattr(-,root,root)

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