diff --git a/backup-light.patch b/backup-light.patch new file mode 100644 index 0000000..a81f73e --- /dev/null +++ b/backup-light.patch @@ -0,0 +1,19 @@ +--- backup-light-0.4/backuplight.sh.orig 2010-01-02 01:01:34.583000823 +0100 ++++ backup-light-0.4/backuplight.sh 2010-01-02 17:39:48.831010683 +0100 +@@ -26,11 +26,11 @@ + # Otherwise, specify an output device (another disk, a removable). + + #check to see if backup-light is already ready running by testing for a PID +-proccessid=`pgrep backup-light` #get any possible PID of backup-light +-if [ "$proccessid" != '' ] ; then +- echo "Error: Backup-light is already running, running it again would be pointless" +- exit 1 +-fi ++#proccessid=`pgrep backup-light` #get any possible PID of backup-light ++#if [ "$proccessid" != " " ] ; then ++# echo "Error: Backup-light is already running, running it again would be pointless" ++# exit 1 ++#fi + + if [ ! -d ~/.backup-light ] ; then #This will make the ~/.backup-light directory to hold the timestamp and log files needed for backup-light to work + if [ -f ~/.backup-light ] ; then #If an older version of backup-light was used, I.E. 0.3, then the log file is renamed so a directory can be made with the same name. diff --git a/backup-light.spec b/backup-light.spec index 6b8bcff..a5bd2dc 100644 --- a/backup-light.spec +++ b/backup-light.spec @@ -1,15 +1,17 @@ Name: backup-light Version: 0.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A small backup bash utility Group: Applications/Archiving License: GPLv2+ URL: http://code.google.com/p/backup-light/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.gz +Patch0: backup-light.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +Requires: procps %description Backup-light is a small, lightweight utility written for the bash shell @@ -22,14 +24,17 @@ backup archives for added security. %prep %setup -q +%patch0 -p1 +mv backuplight.sh %{name}.sh %build +#nothing to build %install rm -rf %{buildroot} -install -Dp -m 0755 backuplight.sh %{buildroot}%{_bindir}/%{name} +install -Dp -m 0755 %{name}.sh %{buildroot}%{_bindir}/%{name} install -Dp -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 @@ -45,6 +50,11 @@ rm -rf %{buildroot} %changelog +* Wed Dec 30 2009 Fabian Affolter - 0.4-4 +- Changed script name +- Added patch for the deactivation of the test for a running instance +- Added requirement + * Fri Jul 24 2009 Fedora Release Engineering - 0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild diff --git a/import.log b/import.log index 26c962b..794f7e3 100644 --- a/import.log +++ b/import.log @@ -1 +1,2 @@ backup-light-0_4-2_fc10:HEAD:backup-light-0.4-2.fc10.src.rpm:1237722985 +backup-light-0_4-4_fc12:HEAD:backup-light-0.4-4.fc12.src.rpm:1262450723