diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/BackupPC-README.fedora b/BackupPC-README.fedora new file mode 100644 index 0000000..2eb08a0 --- /dev/null +++ b/BackupPC-README.fedora @@ -0,0 +1,15 @@ +BackupPC's README file for Fedora + +## BackupPC's user +For security reasons, backuppc user cannot log in. If you want to start manual backup (ie for debugging), you'll need to set it a shell : +usermod -s /bin/bash + +Do not forget to create an SSH key (ssk-keygen) and copy it to remote computers if you plan to use tar/rsynv over SSH backup method. + +## BackupPC's web interface +The CGI web interface is located at : +http://localhost/BackupPC + +You will need to create users in /etc/BackupPC/apache.users : +htpasswd -c /etc/BackupPC/apache.users username +(Note that the '-c' flag is only necessary to create the file) diff --git a/BackupPC.spec b/BackupPC.spec index 99067bf..c7b9f60 100644 --- a/BackupPC.spec +++ b/BackupPC.spec @@ -5,7 +5,7 @@ %endif Name: BackupPC -Version: 3.0.0 +Version: 3.1.0 Release: 3%{?dist} Summary: BackupPC - high-performance backup system @@ -15,6 +15,7 @@ URL: http://backuppc.sourceforge.net/ Source0: http://dl.sourceforge.net/backuppc/%{name}-%{version}.tar.gz Source1: BackupPC.htaccess Source2: BackupPC.logrotate +Source3: BackupPC-README.fedora BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -37,6 +38,7 @@ Requires: perl(Archive::Zip) Requires: perl-Time-modules Requires: perl(XML::RSS) Requires: rsync +Requires: samba-client Requires(pre): %{_sbindir}/useradd Requires(preun): initscripts, chkconfig Requires(post): initscripts, chkconfig, %{_sbindir}/usermod @@ -60,6 +62,7 @@ pushd doc iconv -f ISO-8859-1 -t UTF-8 BackupPC.pod > BackupPC.pod.utf && mv BackupPC.pod.utf BackupPC.pod iconv -f ISO-8859-1 -t UTF-8 BackupPC.html > BackupPC.html.utf && mv BackupPC.html.utf BackupPC.html popd +cp %{SOURCE3} README.fedora %if %{useselinux} %{__mkdir} selinux @@ -68,17 +71,17 @@ pushd selinux cat >%{name}.te <%{name}.fc < /dev/null || : +%{_sbindir}/useradd -d %{_localstatedir}/lib/%{name} -r -s /sbin/nologin backuppc 2> /dev/null || : %preun @@ -170,6 +174,7 @@ fi %post %if %{useselinux} +( # Install/update Selinux policy semodule -i %{_datadir}/selinux/packages/%{name}/%{name}.pp # files owned by RPM @@ -178,6 +183,7 @@ fi restorecon -R %{_sysconfdir}/%{name} restorecon -R %{_localstatedir}/lib/%{name} restorecon -R %{_localstatedir}/log/%{name} +) &>/dev/null %endif chkconfig --add backuppc || : service httpd condrestart > /dev/null 2>&1 || : @@ -188,15 +194,17 @@ service httpd condrestart > /dev/null 2>&1 || : service httpd condrestart > /dev/null 2>&1 || : %if %{useselinux} if [ "$1" -eq "0" ]; then + ( # Remove the SElinux policy. semodule -r %{name} || : + )&>/dev/null fi %endif %files %defattr(-,root,root,-) -%doc README ChangeLog LICENSE doc/ +%doc README README.fedora ChangeLog LICENSE doc/ %dir %attr(-,backuppc,backuppc) %{_localstatedir}/log/%{name} %dir %attr(-,backuppc,backuppc) %{_sysconfdir}/%{name}/ @@ -218,7 +226,19 @@ fi %endif %changelog -* Fri Sep 21 2007 Johan Cwiklinski 3.0.0-3 +* Mon Aug 11 2008 Johan Cwiklinski 3.1.0-3 +- using /dev/null with SELinux policy to avoid broken pipe errors (bug #432149) + +* Sat Apr 05 2008 Johan Cwiklinski 3.1.0-2 +- correcting nologin path + +* Thu Nov 29 2007 Johan Cwiklinski 3.1.0-1 +- New upstream version +- Added samba-client as a dependency +- Added readme.fedora +- Changed CGI admin path in default config file + +* Fri Sep 21 2007 Johan Cwiklinski 3.0.0-3 - Fixed SELinux policy module * Wed Sep 12 2007 Johan Cwiklinski 3.0.0-2 diff --git a/Makefile b/Makefile deleted file mode 100644 index a107c41..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: BackupPC -# $Id$ -NAME := BackupPC -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/sources b/sources index 6edc6ab..91ff97a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -dc37728c1dc9225354523f279045f3f3 BackupPC-3.0.0.tar.gz +84b4471852ef910768eae9963ef932d2 BackupPC-3.1.0.tar.gz