152 lines
3.8 KiB
RPMSpec
152 lines
3.8 KiB
RPMSpec
![]() |
%define name smeserver-rsync
|
||
|
%define version 1.3
|
||
|
%define release 5
|
||
|
Summary: SMEserver rpm for rsync
|
||
|
Name: %{name}
|
||
|
Version: %{version}
|
||
|
Release: %{release}
|
||
|
License: GNU GPL version 2
|
||
|
URL: http://www.contribs.org
|
||
|
Distribution: SME Server
|
||
|
Group: SMEServer/addon
|
||
|
Source: %{name}-%{version}.tar.xz
|
||
|
Packager: Stephen Noble <stephen@dungog.net>
|
||
|
BuildRoot: /var/tmp/%{name}-%{version}
|
||
|
BuildArchitectures: noarch
|
||
|
BuildRequires: e-smith-devtools
|
||
|
Requires: e-smith-release >= 9
|
||
|
AutoReqProv: no
|
||
|
|
||
|
|
||
|
%description
|
||
|
SMEserver rpm for setting up rsync jobs with a server panel
|
||
|
|
||
|
%changelog
|
||
|
* Thu Oct 09 2025 cvs2git.sh aka Brian Read <brianr@koozali.org> 1.3-5.sme
|
||
|
- Roll up patches and move to git repo [SME: 12338]
|
||
|
|
||
|
* Thu Oct 09 2025 BogusDateBot
|
||
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
||
|
by assuming the date is correct and changing the weekday.
|
||
|
Thu Apr 17 2018 --> Thu Apr 12 2018 or Tue Apr 17 2018 or Thu Apr 19 2018 or ....
|
||
|
|
||
|
* Fri Sep 06 2024 Terry Fage <terry@fage.id.au> 1.3-4.sme
|
||
|
- add locale 2024-03-21.patch
|
||
|
|
||
|
* Mon Dec 28 2020 Brian Read <brianr@bjsystems.co.uk> 1.3-3.sme
|
||
|
- Initial import to SME10 [SME: ]
|
||
|
|
||
|
* Tue Apr 17 2018 John Crisp <jcrisp@safeandsoundit.co.uk>
|
||
|
Thu Apr 17 2018 --> Thu Apr 12 2018 or Tue Apr 17 2018 or Thu Apr 19 2018 or ....
|
||
|
- Set default Options to test
|
||
|
- Fix spelling 'recieve'
|
||
|
- Set default status to Test
|
||
|
- Modify wording [SME:9684]
|
||
|
- [1.3-2]
|
||
|
|
||
|
* Thu Apr 21 2016 John Crisp <jcrisp@safeandsounit.co.uk>
|
||
|
- First import to smecontribs
|
||
|
|
||
|
* Thu Jun 8 2006 Stephen Noble <support@dungog.net>
|
||
|
- db option to allow overlaps, db dungog setprop rsync overlap allow
|
||
|
- suggestion added to automate with dungog-cron
|
||
|
- panel simplified, instructions moved to help
|
||
|
- [1.2-7]
|
||
|
|
||
|
* Tue Jun 6 2006 Stephen Noble <support@dungog.net>
|
||
|
- terminate new jobs if rsync is already running
|
||
|
- [1.2-6]
|
||
|
|
||
|
* Wed Apr 5 2006 Stephen Noble <support@dungog.net>
|
||
|
- add include and exclude directories for 'rsync to self'
|
||
|
- [1.2-5]
|
||
|
|
||
|
* Mon Mar 27 2006 Stephen Noble <support@dungog.net>
|
||
|
- expand crontab on saves
|
||
|
- remote is now user@server.net not just server.net
|
||
|
- [1.2-4]
|
||
|
|
||
|
* Tue Mar 14 2006 Stephen Noble <support@dungog.net>
|
||
|
- fixed incorrect crontab permissions
|
||
|
- [1.2-3]
|
||
|
|
||
|
* Mon Oct 24 2005 Stephen Noble <support@dungog.net>
|
||
|
- more bandwidth options
|
||
|
- help, Advanced options
|
||
|
- [1.2-2]
|
||
|
|
||
|
* Thu Sep 15 2005 Stephen Noble <support@dungog.net>
|
||
|
- option to run every 2,4,8,12 hours
|
||
|
- [1.2-1]
|
||
|
|
||
|
* Thu Aug 11 2005 Stephen Noble <support@dungog.net>
|
||
|
- sme 7 version
|
||
|
- [1.0-7]
|
||
|
|
||
|
* Thu Aug 29 2002 Stephen Noble <stephen@dungog.net>
|
||
|
- initial release
|
||
|
- [0.1-1]
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup
|
||
|
|
||
|
|
||
|
%build
|
||
|
perl createlinks
|
||
|
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
||
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
|
||
|
echo "%doc " >> %{name}-%{version}-filelist
|
||
|
|
||
|
%clean
|
||
|
cd ..
|
||
|
rm -rf %{name}-%{version}
|
||
|
|
||
|
%pre
|
||
|
%preun
|
||
|
%post
|
||
|
#new installs
|
||
|
if [ $1 = 1 ] ; then
|
||
|
/bin/touch /home/e-smith/db/dungog
|
||
|
|
||
|
# DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
|
||
|
# for db in $DBS ; do
|
||
|
# /sbin/e-smith/db $db set dungog-rsync panel Description "Rsync" DescriptionWeight 4863 Heading "dungog.net" HeadingWeight 4000 2>/dev/null
|
||
|
# done
|
||
|
fi
|
||
|
|
||
|
/bin/chmod 644 /etc/crontab
|
||
|
/etc/e-smith/events/actions/initialize-default-databases
|
||
|
|
||
|
echo ''
|
||
|
echo 'Remote server syntax changed for secure transfers from dungog-rsync-1.2-4'
|
||
|
echo 'you now need to enter the user as well as the server'
|
||
|
echo 'this removes the requirement of having the same user on both servers'
|
||
|
echo 'but you may need to update your existing rules'
|
||
|
echo ''
|
||
|
|
||
|
|
||
|
%postun
|
||
|
#uninstalls
|
||
|
if [ $1 = 0 ] ; then
|
||
|
/sbin/e-smith/expand-template /etc/crontab
|
||
|
|
||
|
/bin/rm -rf /usr/bin/dungogrsync-?????
|
||
|
|
||
|
# DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
|
||
|
# for db in $DBS ; do
|
||
|
# /sbin/e-smith/db $db delete dungog-rsync 2>/dev/null
|
||
|
# done
|
||
|
|
||
|
fi
|
||
|
|
||
|
#&upgrades
|
||
|
|
||
|
|
||
|
%files -f %{name}-%{version}-filelist
|
||
|
%defattr(-,root,root)
|