Compare commits

...
Sign in to create a new pull request.

165 commits

Author SHA1 Message Date
Fedora Release Engineering
c7f5ecc282 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-15 17:32:05 +00:00
Fedora Release Engineering
6e70bbdca3 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 06:22:02 +00:00
Fedora Release Engineering
33097a061f Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 02:27:57 +00:00
Fedora Release Engineering
8621a37579 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 15:41:39 +00:00
8419cc70b8 Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
2025-02-11 14:36:18 +01:00
Fedora Release Engineering
edbec1d7f2 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-20 07:21:05 +00:00
Fedora Release Engineering
6abe186d5b Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 08:24:48 +00:00
Miroslav Suchý
b03f2170da convert GPLv2+ license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-25 23:05:25 +02:00
Fedora Release Engineering
edbff7c7b1 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 14:43:54 +00:00
Orion Poplawski
41bc11d5f4 Create and own /etc/BackupPC/pc 2024-03-25 14:02:08 -06:00
Fedora Release Engineering
d257177f62 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 20:44:40 +00:00
Fedora Release Engineering
3839f77cdb Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 09:13:51 +00:00
Fedora Release Engineering
4e955ebfa2 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-18 12:07:52 +00:00
Fedora Release Engineering
025d9faadb Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 10:58:14 +00:00
Fedora Release Engineering
43fac9c218 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 19:38:09 +00:00
Richard Shaw
fe45fbc0f8 Add patch to fix #2091514 where saving a configuration change in the web UI
would replace {} with () in the config file.
2022-08-23 06:46:53 -05:00
Fedora Release Engineering
afef48ff47 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 18:27:08 +00:00
Fedora Release Engineering
20e0cabd4b - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-19 19:13:35 +00:00
Fedora Release Engineering
0e930ee80f - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 15:39:09 +00:00
Fedora Release Engineering
156586b036 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 10:44:47 +00:00
c0368369de Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:14:08 +01:00
Fedora Release Engineering
c3e6e7525e - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-25 22:16:18 +00:00
Tom Stellard
ce09e637c8 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2020-12-17 02:42:01 +00:00
Richard Shaw
8ecf3398eb Add requires on webserver and recommends httpd to allow other webservers to be used. 2020-10-04 09:07:19 -05:00
Fedora Release Engineering
71e1101463 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 10:13:18 +00:00
Richard Shaw
4190d34fe2 Update patches for new release. 2020-06-21 14:12:42 -05:00
Richard Shaw
84f13cfba5 Update to 4.4.0. 2020-06-21 14:04:43 -05:00
Jitka Plesnikova
0fd33e52c0 Add perl dependencies needed for build; Remove duplicities from run-requires 2020-03-25 10:34:22 +01:00
Richard Shaw
8b08ce47fa Add patch to allow prevention of backups being deleted.
Add apache.users config file to control permissions and update related SETUP
  documentation.
Fix PID file to be created in /run instead of /var/run.
2020-03-12 14:52:38 -05:00
Richard Shaw
05fc0b3af7 Add httpd config file to packaging to manage permissions. 2020-03-02 16:14:54 -06:00
Richard Shaw
de902f4a5f Update to 4.3.2.
Update SELinux permissions, fixes RHBZ#1791369.
2020-02-18 15:47:44 -06:00
Fedora Release Engineering
886b144c01 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 09:11:41 +00:00
Richard Shaw
4a778563c8 Add selinux context for /var/lib/BackupPC to stop AVCs with LOCK files. 2019-10-12 10:26:10 -05:00
Fedora Release Engineering
79a36d960a - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 15:40:39 +00:00
Richard Shaw
b8a09119d9 Update to 4.3.1. 2019-07-14 16:50:00 -05:00
Fedora Release Engineering
3266827f88 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 11:23:17 +00:00
Richard Shaw
ff2b495762 Fix changlog that rpmdev-bumpspec borked. 2018-11-27 07:53:44 -06:00
Richard Shaw
1bafcacc6f Update to 4.3.0. 2018-11-26 09:43:17 -06:00
Richard Shaw
0518db57b1 Update to 4.3.0. 2018-11-26 08:08:51 -06:00
Orion Poplawski
95a8aba408 Add reload support to systemd service file 2018-11-05 11:35:25 -07:00
Richard Shaw
a6a783b7df Revert accidental change to log dir permissions.
Don't package /run dir when using tmpfiles.
2018-10-11 11:45:06 -05:00
Fedora Release Engineering
0d452fee1c - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 18:55:22 +00:00
Richard Shaw
ba734567b4 Update to 4.2.1. 2018-05-07 13:34:45 -05:00
Richard Shaw
45c52b7a20 Update to 4.2.0. 2018-04-16 14:42:45 -05:00
Richard Shaw
c9b2794567 SystemD macro specfile cleanup. 2018-02-18 11:20:47 -06:00
Richard Shaw
ddb6f910d0 Add BuildRequires for gcc per https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires 2018-02-18 11:15:46 -06:00
Fedora Release Engineering
92450a5c29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 00:25:36 +00:00
Richard Shaw
0d10f0c368 Change user to root for /var/log/BackupPC, fixes #1531696. 2018-01-08 11:00:47 -06:00
Richard Shaw
64461b0c6f Update to latest upstream release. 2017-12-04 07:36:11 -06:00
Richard Shaw
3f0c5b110a Update to latest upstream release. 2017-11-27 12:44:59 -06:00
Fedora Release Engineering
30e2a22b78 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-02 16:48:21 +00:00
Fedora Release Engineering
e06bd5db04 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 01:39:41 +00:00
Richard Shaw
0775d2d775 Change requirement from the sendmail package to the sendmail binary
which is also provided by the default MTA, postfix.
2017-07-05 07:21:59 -05:00
Richard Shaw
9814010ebe Fix patch name. 2017-06-05 12:57:13 -05:00
Richard Shaw
fbea894e34 Update to latest upstream release. 2017-06-05 12:47:24 -05:00
Richard Shaw
339fcd70b8 Update to latest upstream release, 4.1.2. 2017-05-02 07:39:42 -05:00
Richard Shaw
d51543eef9 Update to latest upstream release, 4.1.1. 2017-04-04 19:23:21 -05:00
Ville Skyttä
eb44428796 Move tmpfiles.d config to %{_tmpfilesdir}, install LICENSE as %license 2017-03-01 10:04:51 +02:00
Fedora Release Engineering
78ee0b17c7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 04:59:47 +00:00
Benjamin Lefoul
6901d6f37f BZ 1259481 - Perl unescaped braces fixed 2016-12-22 14:57:17 +01:00
Benjamin Lefoul
6917caa911 Some IPv6 support (BZ 1385630) 2016-10-18 08:59:00 +02:00
Benjamin Lefoul
f8e95280d0 Backup of pre-deprecation file. 2016-07-15 10:48:26 +02:00
Benjamin Lefoul
fea361207d Deprecation of defined(@array) in Perl. 2016-07-15 10:43:20 +02:00
Benjamin Lefoul
6902942aa4 Support for systemd and tmpfiles in RHEL7. 2016-06-29 16:49:44 +02:00
Petr Písař
24945718cb Mandatory Perl build-requires added <https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl> 2016-06-24 10:37:47 +02:00
Dennis Gilmore
6ebede0b31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-03 15:19:41 +00:00
Dennis Gilmore
40b5b6c427 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-16 22:42:02 +00:00
Bernard Johnson
7c8cedb487 v 3.3.1 2015-03-14 21:14:05 -06:00
Bernard Johnson
27fbd0faa3 v 3.3.1 2015-03-14 21:13:24 -06:00
df10f9dab3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-15 18:13:02 +00:00
Dennis Gilmore
dd0e33e809 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-06 17:23:49 -05:00
Bernard Johnson
b45016b6e6 add local-fs.target and remote-fs.target to startup dependency (bz #959309) 2014-02-22 16:41:12 -07:00
Bernard Johnson
03b31624d0 - add patch that causes getpwnam to return only uid to fix selinux denials
(bz #827854)
2014-02-21 22:54:13 -07:00
Bernard Johnson
dc0e62db4d fixup dates to be chronological 2014-02-21 22:35:35 -07:00
Bernard Johnson
7f5e2c7639 v 3.3.0 2014-02-21 22:35:01 -07:00
Bernard Johnson
03bacb0a07 enable PIE build (bz #965523) 2014-02-21 22:25:53 -07:00
Bernard Johnson
6ba0a17052 fix typo in README.RHEL 2014-02-21 22:21:14 -07:00
Bernard Johnson
afceebfac0 add patch provided by Johan Cwiklinski https://bugzilla.redhat.com/show_bug.cgi?id=957393 2014-02-21 22:18:47 -07:00
Bernard Johnson
efcae7d060 fix typo 2014-02-21 22:06:01 -07:00
Dennis Gilmore
b1256db9fd - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-02 17:28:42 -05:00
Petr Písař
2fec4fcf1a Perl 5.18 rebuild 2013-07-17 10:29:48 +02:00
Ville Skyttä
0c2b5fb8d0 Add build dependency on Pod::Usage (#913855).
- Fix bogus dates in %changelog.
2013-03-31 22:42:57 +03:00
Dennis Gilmore
bf152341f9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-13 08:50:38 -06:00
Bernard Johnson
7a0175bb8a Missing backuppc.service file after upgrade to 3.2.1-10 causes service to
exit at start (bz #896626)
2013-01-20 12:23:26 -07:00
Bernard Johnson
e77bfb305d BuildRoot required for RHEL5 2012-12-25 18:40:32 -07:00
Bernard Johnson
e8aea83640 Merge branch 'master' into el5 2012-12-24 16:55:24 -07:00
Bernard Johnson
1166e6406e Broken configuration for httpd 2.4 (bz #871353) 2012-12-24 16:42:24 -07:00
Bernard Johnson
fea7b0ed15 fix deprecated qw messages (partial fix for bz #755076) 2012-12-24 16:26:38 -07:00
Bernard Johnson
86a19c173b CVE-2011-5081 BackupPC: XSS flaw in RestoreFile.pm
(bz #795017, #795018, #795019)
2012-12-24 16:25:27 -07:00
Bernard Johnson
234f1cbfaa cleanup build macros for Fedora 2012-12-24 13:42:18 -07:00
Peter Robinson
f0cb08889a Fix FTBFS on F-18+ 2012-12-09 22:21:45 +00:00
Dennis Gilmore
d46ad1e0bb - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-18 07:53:18 -05:00
Bernard Johnson
5489925971 Merge branch 'master' into el5 2012-01-22 20:03:27 -07:00
Bernard Johnson
b41886aef2 - add perl(Digest::MD5) to list of build and install dependencies 2012-01-22 19:13:24 -07:00
Bernard Johnson
1acf8427cc - change %%{_sharedstatedir} to %%{_localstatedir}/lib as these expand
differently on EL (bz #767719)
- fix XSS vulnerability (bz #749846, bz #749847, bz #749848) CVE-2011-3361
- additional documentation about enabling correct channels in RHEL to resolve
  all dependencies (bz #749627)
- fix bug with missing tmpfiles.d directory
2012-01-22 18:52:42 -07:00
Dennis Gilmore
ba2bd4e270 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-12 14:12:54 -06:00
Bernard Johnson
49e88355e3 Merge branch 'master' into el5 2011-09-26 16:35:17 -06:00
Bernard Johnson
39950154b2 add dir read to selinux context 2011-09-21 23:24:17 -06:00
Bernard Johnson
69ab8a06dc change selinux context on log files to httpd_log_t (bz #730704) 2011-09-20 09:07:42 -06:00
Bernard Johnson
edd69b6cb6 - fix postun scriptlet error (bz #736946)
- make postun scriptlet more coherent
2011-09-19 21:02:42 -06:00
Bernard Johnson
66b314d7dc fix release 2011-08-24 17:31:58 -06:00
Bernard Johnson
e34dc440e3 bump rel 2011-08-19 16:07:49 -06:00
Bernard Johnson
61bd6ff306 wrong order in file 2011-08-19 16:01:31 -06:00
Bernard Johnson
cbb6886607 break %_with_tmpfilesd out of %_with_systemd macro in %files section 2011-08-12 22:11:52 -06:00
Bernard Johnson
c6ae0fc8f7 - change macro conditionals to include tmpfiles.d support starting at
Fedora 15 (bz #730053)
- change install lines to preserve timestamps
2011-08-12 21:58:21 -06:00
Bernard Johnson
9848779e1c update sources to current version 2011-07-29 17:40:41 -06:00
Bernard Johnson
60d8776890 Merge branch 'master' into el5
Conflicts:
	.gitignore
	BackupPC.spec
	sources
2011-07-29 17:39:50 -06:00
Bernard Johnson
7f050ba03a fix syntax error 2011-07-12 09:58:38 -06:00
Bernard Johnson
5b92a36264 fix selinux contexts for /var/run socket 2011-07-11 21:23:00 -06:00
Bernard Johnson
091e785f0c fix syntax error in scriptlet 2011-07-11 09:40:56 -06:00
Bernard Johnson
f7b478582c fix typos and update date in changelog 2011-07-08 23:47:01 -06:00
Bernard Johnson
9dc89db56e fix missing macro begin 2011-07-08 23:37:03 -06:00
Bernard Johnson
75f77c0f20 change tmpfiles conf file to upper and lower case based on %name 2011-07-08 23:27:49 -06:00
Bernard Johnson
7e21ac5118 cleanup of spec and change case of tmpfiles config file 2011-07-08 23:21:32 -06:00
Bernard Johnson
e66c69aaf2 add support for tmpfiles.d & minor cleanup 2011-07-08 23:15:38 -06:00
Bernard Johnson
7e26821ff8 resolve conflicts 2011-07-08 23:00:00 -06:00
Bernard Johnson
bb0d1c134c resolve conflicts 2011-07-08 22:58:37 -06:00
Bernard Johnson
ede6d414c8 add underscore in front of without_selinux macro name 2011-07-08 22:57:21 -06:00
Bernard Johnson
50e54edcf8 patch to move pid dir under /var/run 2011-07-08 21:16:51 -06:00
Bernard Johnson
519f21a0bf create directory under /var/run for BackupPC socket 2011-07-08 21:08:33 -06:00
Bernard Johnson
c9b7abdccc typo 2011-07-08 21:03:39 -06:00
Bernard Johnson
617ec7e4da spec cleanup 2011-07-08 20:56:37 -06:00
Bernard Johnson
b8e7c84153 add support for systemd starting at F16 (bz #699441) 2011-07-08 20:49:21 -06:00
Bernard Johnson
0128b7f004 update to 3.2.1 sources 2011-07-08 00:05:06 -06:00
Bernard Johnson
d7abe116d5 move sockets to /var/run (bz #719499) 2011-07-07 22:30:05 -06:00
Bernard Johnson
bbae64c8dc attempt to make sure $Conf{TopDir} is listed in updatedb PRUNEPATHS,
otherwise at least generate a warning on statup (bz #554491)
2011-07-07 22:16:49 -06:00
Bernard Johnson
2fc22852e0 remove old patch 2011-07-06 22:17:55 -06:00
Bernard Johnson
692236909e - unbundle perl(Net::FTP::AutoReconnect) and perl(Net::FTP::RetrHandle)
- remove old patch that is no longer needed
2011-07-06 22:01:49 -06:00
Bernard Johnson
17a4f91ecf make samba dependency on actual files required to EL5 can use samba-client or
samba3x-client (bz #667479)
2011-07-06 21:40:59 -06:00
Bernard Johnson
822391ab0a add missing popd 2011-07-06 20:54:08 -06:00
Bernard Johnson
10e8106a89 v 3.2.1 2011-07-06 19:46:01 -06:00
Bernard Johnson
33549dd05b remove x bit from documentation files 2011-07-06 19:43:19 -06:00
Bernard Johnson
5b6c88c713 minor spec cleanup 2011-07-06 19:42:07 -06:00
Bernard Johnson
f2059c0ca5 add Mac OS X as a backup client to description 2011-07-06 19:37:51 -06:00
Bernard Johnson
88946138eb cleanup selinux macros 2011-07-06 19:32:55 -06:00
Bernard Johnson
508f63bea4 add lower case ScriptAlias for typing impaired 2011-07-06 11:46:25 -06:00
Dennis Gilmore
38fd618129 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-07 17:00:29 -06:00
trasher
7dd2c1901b Debuginfo with no sources, fix bug #620257 2010-08-02 23:15:09 +02:00
trasher
b21075d8dc perl-suidperl is no longer available (fix bug #611009) 2010-07-31 22:30:20 +02:00
Fedora Release Engineering
a997b2d213 dist-git conversion 2010-07-28 08:46:21 +00:00
Fedora Release Engineering
12092b056e dist-git conversion 2010-07-28 08:46:19 +00:00
Mike McGrath
8eda94e9f3 Rebuilding to fix broken perl-suidperl dep 2010-07-09 15:57:29 +00:00
Johan Cwiklinski
2f843d5e8a Fix for bug #592762 2010-05-17 18:25:44 +00:00
Johan Cwiklinski
68702f36c6 Fix for bug #592762 2010-05-17 17:59:06 +00:00
Johan Cwiklinski
11ec7659d2 Fix a typo in apache config file and add ::1 to default allowed hosts 2010-02-28 17:26:02 +00:00
Johan Cwiklinski
5d96aa5d5d Bug #525948 was not fixed 2010-01-17 13:58:33 +00:00
Johan Cwiklinski
f168dc7561 Bug #525948 was not fixed 2010-01-17 13:34:17 +00:00
Johan Cwiklinski
f4235b86d5 Backpoorting latest changes made for Fedora 2010-01-15 21:08:19 +00:00
Johan Cwiklinski
7c145bd44c Do not relabel backup directory: fix for bug #525948 2010-01-15 20:26:47 +00:00
Bill Nottingham
a5d608f1c1 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 00:16:23 +00:00
Bill Nottingham
486083ab6e Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:43:22 +00:00
Johan Cwiklinski
dd6317ef87 Remove ClientNameAlias directive from CgiUserConfigEdit list to avoid
security hole (bug #518412)
2009-09-25 14:10:13 +00:00
Johan Cwiklinski
54258a7ae7 Resolve bug #524630 2009-09-23 16:07:49 +00:00
Johan Cwiklinski
8e631e1951 Fix SELinux rules (bug #512035) 2009-09-18 21:09:41 +00:00
Jesse Keating
c990f3a7a2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-24 14:59:58 +00:00
Johan Cwiklinski
3c519ef9e0 Patch has been forgotten 2009-04-11 19:32:52 +00:00
Johan Cwiklinski
98c33e1412 Fix TopDir change (bug #473944) 2009-04-11 19:31:55 +00:00
Johan Cwiklinski
8391b9da4b Fix TopDir change (bug #473944) 2009-04-10 16:04:54 +00:00
Jesse Keating
9348856571 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-23 20:01:26 +00:00
Johan Cwiklinski
74068babae Correction "poor" summary 2008-11-22 19:56:46 +00:00
Johan Cwiklinski
919f15b875 Put the correct nologin path and fix SELinux issue 2008-08-23 09:46:47 +00:00
Toshio くらとみ
7ce60bba0b Initialize branch EL-5 for BackupPC 2008-08-23 03:27:56 +00:00
Johan Cwiklinski
a62932f3cd Avoiding "broken pipe" errors on update 2008-08-11 16:11:39 +00:00
Johan Cwiklinski
d178a4ccf2 New upstream release 2007-11-29 07:12:59 +00:00
Johan Cwiklinski
ebab704fb9 Upgrade to 3.0.0 2007-09-22 12:07:23 +00:00
15 changed files with 785 additions and 187 deletions

View file

@ -1 +0,0 @@
BackupPC-3.1.0.tar.gz

14
.gitignore vendored Normal file
View file

@ -0,0 +1,14 @@
BackupPC-3.1.2.tar.gz
/BackupPC-3.3.0.tar.gz
/BackupPC-3.3.1.tar.gz
/BackupPC-4.1.1.tar.gz
/BackupPC-4.1.2.tar.gz
/BackupPC-4.1.3.tar.gz
/BackupPC-4.1.4.tar.gz
/BackupPC-4.1.5.tar.gz
/BackupPC-4.2.0.tar.gz
/BackupPC-4.2.1.tar.gz
/BackupPC-4.3.0.tar.gz
/BackupPC-4.3.1.tar.gz
/BackupPC-4.3.2.tar.gz
/BackupPC-4.4.0.tar.gz

View file

@ -0,0 +1,45 @@
From 2c9270b9b849b2c86ae6301dd722c97757bc9256 Mon Sep 17 00:00:00 2001
From: Craig Barratt <19445341+craigbarratt@users.noreply.github.com>
Date: Fri, 15 Apr 2022 11:45:57 -0700
Subject: [PATCH] remove erroneous 2nd argument to Data::Dumper; see #466
---
configure.pl | 2 +-
lib/BackupPC/Storage/Text.pm | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.pl b/configure.pl
index 6826ebcd..d5deef58 100755
--- a/configure.pl
+++ b/configure.pl
@@ -668,7 +668,7 @@
if ( defined($Conf{CgiUserConfigEdit}{$p}) );
}
$Conf{CgiUserConfigEdit} = $new;
- my $d = Data::Dumper->new([$new], [*value]);
+ my $d = Data::Dumper->new([$new]);
$d->Indent(1);
$d->Terse(1);
$d->Sortkeys(1);
diff --git a/lib/BackupPC/Storage/Text.pm b/lib/BackupPC/Storage/Text.pm
index e9df664f..09fcb246 100644
--- a/lib/BackupPC/Storage/Text.pm
+++ b/lib/BackupPC/Storage/Text.pm
@@ -422,7 +422,7 @@ sub ConfigFileMerge
my $var = $1;
$skipExpr = "\$fakeVar = $2\n";
if ( exists($newConf->{$var}) ) {
- my $d = Data::Dumper->new([$newConf->{$var}], [*value]);
+ my $d = Data::Dumper->new([$newConf->{$var}]);
$d->Indent(1);
$d->Terse(1);
$d->Sortkeys(1);
@@ -454,7 +454,7 @@ sub ConfigFileMerge
#
foreach my $var ( sort(keys(%$newConf)) ) {
next if ( $done->{$var} );
- my $d = Data::Dumper->new([$newConf->{$var}], [*value]);
+ my $d = Data::Dumper->new([$newConf->{$var}]);
$d->Indent(1);
$d->Terse(1);
$d->Sortkeys(1);

View file

@ -0,0 +1,43 @@
Index: BackupPC-4.4.0/configure.pl
===================================================================
--- BackupPC-4.4.0.orig/configure.pl
+++ BackupPC-4.4.0/configure.pl
@@ -946,7 +946,7 @@ sub DoInstall
# Create install directories
#
foreach my $dir ( qw(bin
- share share/doc share/doc/BackupPC
+ doc
lib lib/BackupPC
lib/BackupPC/CGI
lib/BackupPC/Config
@@ -1074,13 +1074,13 @@ sub DoInstall
print("Making Apache configuration file for suid-perl\n");
InstallFile("httpd/src/BackupPC.conf", "httpd/BackupPC.conf", 0644);
- print("Installing docs in $DestDir$Conf{InstallDir}/share/doc/BackupPC\n");
+ print("Installing docs in $DestDir$Conf{InstallDir}/doc\n");
foreach my $doc ( qw(BackupPC.pod BackupPC.html) ) {
- InstallFile("doc/$doc", "$DestDir$Conf{InstallDir}/share/doc/BackupPC/$doc", 0444);
+ InstallFile("doc/$doc", "$DestDir$Conf{InstallDir}/doc/$doc", 0444);
#
# clean up files from old directory
#
- unlink("$DestDir$Conf{InstallDir}/doc/$doc") if ( -f "$DestDir$Conf{InstallDir}/doc/$doc" );
+ #unlink("$DestDir$Conf{InstallDir}/doc/$doc") if ( -f "$DestDir$Conf{InstallDir}/doc/$doc" );
}
#
# clean up old directory (ok if it quietly fails if there are other files in that directory)
Index: BackupPC-4.4.0/lib/BackupPC/CGI/View.pm
===================================================================
--- BackupPC-4.4.0.orig/lib/BackupPC/CGI/View.pm
+++ BackupPC-4.4.0/lib/BackupPC/CGI/View.pm
@@ -104,7 +104,7 @@ sub action
$file = $bpc->ConfDir() . "/hosts";
$linkHosts = 1;
} elsif ( $type eq "docs" ) {
- $file = $bpc->InstallDir() . "/share/doc/BackupPC/BackupPC.html";
+ $file = $bpc->InstallDir() . "/doc/BackupPC.html";
} elsif ( $host ne "" ) {
if ( !defined($In{num}) ) {

View file

@ -1,15 +0,0 @@
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)

View file

@ -1,4 +1,4 @@
<Directory /usr/share/BackupPC/sbin/> <DirectoryMatch /usr/(share|libexec)/BackupPC/>
# BackupPC requires valid authentication in order for the web interface to # BackupPC requires valid authentication in order for the web interface to
# function properly. One can view the web interface without authentication # function properly. One can view the web interface without authentication
# though all functionality is disabled. # though all functionality is disabled.
@ -6,17 +6,31 @@
# htpasswd -c /etc/BackupPC/apache.users yourusername # htpasswd -c /etc/BackupPC/apache.users yourusername
# #
order deny,allow
deny from all
allow from 127.0.0.1
AuthType Basic AuthType Basic
AuthUserFile /etc/BackupPC/apache.users AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC AuthName "BackupPC"
require valid-user <IfModule mod_authz_core.c>
# Apache 2.4
<RequireAll>
Require valid-user
<RequireAny>
Require local
</RequireAny>
</RequireAll>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
order deny,allow
deny from all
allow from 127.0.0.1
allow from ::1
require valid-user
</IfModule>
</Directory> </DirectoryMatch>
Alias /BackupPC/images /usr/share/BackupPC/html/ Alias /BackupPC/images /usr/share/BackupPC/html/
ScriptAlias /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin ScriptAlias /BackupPC /usr/libexec/BackupPC/BackupPC_Admin
ScriptAlias /backuppc /usr/libexec/BackupPC/BackupPC_Admin

View file

@ -1,227 +1,662 @@
%if %{?fedora}%{?rhel} >= 5 %global _hardened_build 1
%define useselinux 1
%else # tmpfiles.d & systemd not supported in RHEL < 7
%define useselinux 0 %if 0%{?fedora} || 0%{?rhel} >= 7
%global _with_tmpfilesd 1
%global _with_systemd 1
%endif %endif
%global _updatedb_conf /etc/updatedb.conf
Name: BackupPC Name: BackupPC
Version: 3.1.0 Version: 4.4.0
Release: 2%{?dist} Release: 23%{?dist}
Summary: BackupPC - high-performance backup system Summary: High-performance backup system
Group: Applications/System # Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPLv2+ License: GPL-2.0-or-later
URL: http://backuppc.sourceforge.net/ URL: http://backuppc.github.io/backuppc/index.html
Source0: http://dl.sourceforge.net/backuppc/%{name}-%{version}.tar.gz Source0: https://github.com/backuppc/backuppc/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: BackupPC.htaccess Source1: BackupPC.htaccess
Source2: BackupPC.logrotate Source2: BackupPC.logrotate
Source3: BackupPC-README.fedora Source3: README.setup
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #A C wrapper to use since perl-suidperl is no longer provided
BuildArch: noarch Source4: BackupPC_Admin.c
Source5: backuppc.service
Source6: BackupPC.tmpfiles
Source7: README.RHEL
Source8: apache.users
BuildRequires: /bin/cat Patch0: BackupPC-4.1.3-docfix.patch
BuildRequires: /bin/df # Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2091514
BuildRequires: /bin/gtar Patch1: https://github.com/backuppc/backuppc/commit/2c9270b9b849b2c86ae6301dd722c97757bc9256.patch
BuildRequires: %{_bindir}/nmblookup
BuildRequires: %{_bindir}/rsync BuildRequires: gcc
BuildRequires: %{_sbindir}/sendmail BuildRequires: perl-generators
BuildRequires: %{_bindir}/smbclient BuildRequires: perl(BackupPC::XS) >= 0.53
BuildRequires: %{_bindir}/split BuildRequires: perl(CGI)
BuildRequires: %{_bindir}/ssh
BuildRequires: perl(Compress::Zlib) BuildRequires: perl(Compress::Zlib)
BuildRequires: perl(Data::Dumper)
Requires: httpd BuildRequires: perl(Digest::MD5)
Requires: perl-suidperl BuildRequires: perl(Encode)
Requires: perl(File::RsyncP) BuildRequires: perl(File::Copy)
Requires: perl(Compress::Zlib) BuildRequires: perl(File::Listing)
Requires: perl(Archive::Zip) BuildRequires: perl(File::Path)
Requires: perl-Time-modules BuildRequires: perl(File::Spec)
Requires: perl(XML::RSS) BuildRequires: perl(Getopt::Long)
Requires: rsync BuildRequires: perl(Getopt::Std)
Requires: samba-client BuildRequires: perl(lib)
Requires(pre): %{_sbindir}/useradd BuildRequires: perl(Pod::Usage)
Requires(preun): initscripts, chkconfig BuildRequires: perl(Socket)
Requires(post): initscripts, chkconfig, %{_sbindir}/usermod BuildRequires: perl(strict)
Requires(postun): initscripts BuildRequires: perl(utf8)
%if %{useselinux} BuildRequires: perl(vars)
Requires: policycoreutils BuildRequires: perl(version)
BuildRequires: selinux-policy-devel, checkpolicy %if 0%{?_with_systemd}
BuildRequires: systemd
%endif %endif
Provides: backuppc = %{version}
# Unbundled libraries
Requires: perl(Net::FTP::AutoReconnect)
Requires: perl(Net::FTP::RetrHandle)
Requires: bzip2
%if 0%{?fedora} || 0%{?rhel} >= 8
Requires: webserver
Recommends: httpd
%else
Requires: httpd
%endif
Requires: iputils
Requires: openssh-clients
%if ! 0%{?el6}
Requires: par2cmdline
%endif
Requires: rrdtool
Requires: rsync-bpc >= 3.0.9.6
Requires: perl(BackupPC::XS) >= 0.53
Requires: perl-Time-modules
Requires: samba-client
Requires: %{_sbindir}/sendmail
%if 0%{?_with_systemd}
Requires(post): shadow-utils
%{?systemd_requires}
%else
Requires(preun): initscripts chkconfig
Requires(post): initscripts chkconfig shadow-utils
Requires(postun): initscripts
%endif
Requires: policycoreutils
BuildRequires: selinux-policy-devel checkpolicy
BuildRequires: make
Provides: backuppc = %{version}-%{release}
%description %description
BackupPC is a high-performance, enterprise-grade system for backing up Linux BackupPC is a high-performance, enterprise-grade system for backing up Linux
and WinXX PCs and laptops to a server's disk. BackupPC is highly configurable and WinXX and Mac OS X PCs and laptops to a server's disk. BackupPC is highly
and easy to install and maintain. configurable and easy to install and maintain.
NOTE: Proper configuration is required after install, see README.setup for more
information.
%prep %prep
%setup -q %autosetup -p1
sed -i "s|\"backuppc\"|\"$LOGNAME\"|g" configure.pl
iconv -f ISO-8859-1 -t UTF-8 ChangeLog > ChangeLog.utf && mv ChangeLog.utf ChangeLog
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} for f in ChangeLog; do
%{__mkdir} selinux iconv -f ISO-8859-1 -t UTF-8 $f > $f.utf && mv $f.utf $f
done
cp %{SOURCE3} .
cp %{SOURCE7} .
cp %{SOURCE4} .
mkdir selinux
pushd selinux pushd selinux
cat >%{name}.te <<EOF cat >%{name}.te <<EOF
policy_module(%{name},0.0.3) policy_module(%{name},0.0.6)
require { require {
type var_log_t; type httpd_t, var_lib_t, var_log_t;
type httpd_t; class sock_file { write };
class sock_file write; type unconfined_service_t;
type initrc_t; class unix_stream_socket { connectto };
class unix_stream_socket connectto; type ssh_exec_t, ping_exec_t, sendmail_exec_t;
type ssh_exec_t; class file { getattr };
type ping_exec_t; type var_run_t;
type sendmail_exec_t; class sock_file { getattr };
class file getattr; type httpd_log_t;
type httpd_sys_content_t; class file { open };
class sock_file getattr; class dir { read };
} }
allow httpd_t httpd_sys_content_t:sock_file write; allow httpd_t var_run_t:sock_file write;
allow httpd_t initrc_t:unix_stream_socket connectto; allow httpd_t var_lib_t:file write;
allow httpd_t unconfined_service_t:unix_stream_socket connectto;
allow httpd_t ping_exec_t:file getattr; allow httpd_t ping_exec_t:file getattr;
allow httpd_t sendmail_exec_t:file getattr; allow httpd_t sendmail_exec_t:file getattr;
allow httpd_t ssh_exec_t:file getattr; allow httpd_t ssh_exec_t:file getattr;
allow httpd_t httpd_sys_content_t:sock_file getattr; allow httpd_t var_run_t:sock_file getattr;
allow httpd_t httpd_log_t:file open;
allow httpd_t httpd_log_t:dir read;
EOF EOF
cat >%{name}.fc <<EOF cat >%{name}.fc <<EOF
%{_sysconfdir}/%{name} system_u:object_r:httpd_sys_content_t:s0 %{_sysconfdir}/%{name}(/.*)? gen_context(system_u:object_r:httpd_sys_script_rw_t,s0)
%{_sysconfdir}/%{name}/pc system_u:object_r:httpd_sys_script_rw_t:s0 %{_sysconfdir}/%{name}/LOCK gen_context(system_u:object_r:httpd_lock_t,s0)
%{_sysconfdir}/%{name}/config.pl system_u:object_r:httpd_sys_content_t:s0 %{_localstatedir}/run/%{name}(/.*)? gen_context(system_u:object_r:var_run_t,s0)
%{_sysconfdir}/%{name}/hosts system_u:object_r:httpd_sys_content_t:s0 %{_localstatedir}/lib/%{name}(/.*)? gen_context(system_u:object_r:httpd_var_lib_t,s0)
%{_localstatedir}/log/%{name} system_u:object_r:httpd_sys_content_t:s0 %{_localstatedir}/log/%{name}(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
EOF EOF
%endif popd
# attempt to unbundle as much as possible
for m in Net/FTP; do
rm -rf lib/$m
sed -i "\@lib/$m@d" configure.pl
done
# Create a sysusers.d config file
cat >backuppc.sysusers.conf <<EOF
u backuppc - - %{_localstatedir}/lib/%{name} -
EOF
%build %build
%if %{useselinux} # Build C wrapper
# SElinux gcc -o BackupPC_Admin BackupPC_Admin.c %{optflags}
pushd selinux
make -f %{_datadir}/selinux/devel/Makefile
popd
%endif
# SElinux
pushd selinux
make -f %{_datadir}/selinux/devel/Makefile
popd
%install %install
rm -rf $RPM_BUILD_ROOT %{__perl} configure.pl \
perl configure.pl \
--batch \ --batch \
--dest-dir $RPM_BUILD_ROOT \ --backuppc-user=backuppc \
--dest-dir %{buildroot} \
--config-dir %{_sysconfdir}/%{name}/ \ --config-dir %{_sysconfdir}/%{name}/ \
--cgi-dir %{_datadir}/%{name}/sbin/ \ --config-override CgiURL=\"http://localhost/%{name}\" \
--config-override ClientNameAlias=undef \
--config-override NmbLookupPath=\"%{_bindir}/nmblookup\" \
--config-override ParPath=\"%{_bindir}/par2\" \
--config-override PingPath=\"%{_bindir}/ping\" \
--config-override Ping6Path=\"%{_sbindir}/ping6\" \
--config-override RrdToolPath=\"%{_bindir}/rrdtool\" \
--config-override RsyncBackupPCPath=\"%{_bindir}/rsync_bpc\" \
--config-override RsyncClientPath=\"%{_bindir}/rsync\" \
--config-override SendmailPath=\"%{_sbindir}/sendmail\" \
--config-override SmbClientPath=\"%{_bindir}/smbclient\" \
--config-override SshPath=\"%{_bindir}/ssh\" \
--config-override TarClientPath=\"%{_bindir}/gtar\" \
--config-override XferMethod=\"rsync\" \
--cgi-dir %{_libexecdir}/%{name} \
--data-dir %{_localstatedir}/lib/%{name}/ \ --data-dir %{_localstatedir}/lib/%{name}/ \
--hostname localhost \
--html-dir %{_datadir}/%{name}/html/ \ --html-dir %{_datadir}/%{name}/html/ \
--html-dir-url /%{name}/images \ --html-dir-url /%{name}/images \
--log-dir %{_localstatedir}/log/%{name} \
--install-dir %{_datadir}/%{name} \ --install-dir %{_datadir}/%{name} \
--hostname localhost \ --log-dir %{_localstatedir}/log/%{name} \
--no-set-perms \
--uid-ignore --uid-ignore
for f in `find $RPM_BUILD_ROOT` # Make bin files executable
do chmod +x %{buildroot}%{_datadir}/%{name}/bin/*
if [ -f $f ]
then
sed -i s,$LOGNAME,backuppc,g $f
fi
done
sed -i s,$LOGNAME,backuppc,g init.d/linux-backuppc
%{__mkdir} -p $RPM_BUILD_ROOT%{_initrddir} %if 0%{?_with_tmpfilesd}
%{__mkdir} -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ mkdir -p %{buildroot}%{_tmpfilesdir}
%{__mkdir} -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ install -p -m 0644 %{SOURCE6} %{buildroot}%{_tmpfilesdir}/%{name}.conf
%{__mkdir} -p $RPM_BUILD_ROOT%{_localstatedir}/log/%{name} %else
%{__mkdir} -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/pc mkdir -p %{buildroot}%{_localstatedir}/run/%{name}
%{__cp} init.d/linux-backuppc $RPM_BUILD_ROOT%{_initrddir}/backuppc
%{__cp} %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf
%{__cp} %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}
%{__chmod} 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/bin/*
%{__chmod} 755 $RPM_BUILD_ROOT%{_initrddir}/backuppc
sed -i 's/^\$Conf{XferMethod}\ =.*/$Conf{XferMethod} = "rsync";/' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config.pl
sed -i 's|^\$Conf{CgiURL}\ =.*|$Conf{CgiURL} = "http://localhost/BackupPC";|' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config.pl
%if %{useselinux}
# SElinux
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/selinux/packages/%{name}
%{__install} -m644 selinux/%{name}.pp $RPM_BUILD_ROOT%{_datadir}/selinux/packages/%{name}/%{name}.pp
%endif %endif
%if 0%{?_with_systemd}
mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/
%else
mkdir -p %{buildroot}%{_initrddir}
install -p -m 0755 systemd/src/init.d/linux-backuppc %{buildroot}%{_initrddir}/backuppc
%endif
%clean mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/
rm -rf $RPM_BUILD_ROOT mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/pc
install -p -m 0644 %{SOURCE1} \
%{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
install -p -m 0644 %{SOURCE2} \
%{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -p -m 0644 %{SOURCE8} \
%{buildroot}%{_sysconfdir}/%{name}/
# perl-suidperl is no longer avaialable, we use a C wrapper
mkdir -p %{buildroot}%{_datadir}/%{name}/sbin
mv %{buildroot}%{_libexecdir}/%{name}/BackupPC_Admin \
%{buildroot}%{_datadir}/%{name}/sbin/BackupPC_Admin
install -pm 0755 BackupPC_Admin %{buildroot}%{_libexecdir}/%{name}/
# SElinux
mkdir -p %{buildroot}%{_datadir}/selinux/packages/%{name}
install -m 0644 selinux/%{name}.pp %{buildroot}%{_datadir}/selinux/packages/%{name}/%{name}.pp
install -m0644 -D backuppc.sysusers.conf %{buildroot}%{_sysusersdir}/backuppc.conf
%pre
%{_sbindir}/useradd -d %{_localstatedir}/lib/%{name} -r -s /sbin/nologin backuppc 2> /dev/null || :
%preun %preun
%if 0%{?_with_systemd}
%systemd_preun backuppc.service
%else
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
service backuppc stop > /dev/null 2>&1 || : # Package removal, not upgrade
chkconfig --del backuppc || : service backuppc stop > /dev/null 2>&1 || :
chkconfig --del backuppc || :
fi fi
%endif
%post %post
%if %{useselinux} (
# Install/update Selinux policy # Install/update Selinux policy
semodule -i %{_datadir}/selinux/packages/%{name}/%{name}.pp semodule -i %{_datadir}/selinux/packages/%{name}/%{name}.pp
# files owned by RPM
fixfiles -R %{name} restore
# files created by app # files created by app
restorecon -R %{_sysconfdir}/%{name} restorecon -R %{_sysconfdir}/%{name}
restorecon -R %{_localstatedir}/lib/%{name}
restorecon -R %{_localstatedir}/log/%{name} restorecon -R %{_localstatedir}/log/%{name}
%endif ) &>/dev/null
chkconfig --add backuppc || :
service httpd condrestart > /dev/null 2>&1 || :
%{_sbindir}/usermod -a -G backuppc apache || :
%if 0%{?_with_systemd}
%systemd_post backuppc.service
%else
if [ $1 -eq 1 ]; then
# initial installation
chkconfig --add backuppc || :
fi
%{_sbindir}/usermod -a -G backuppc apache || :
%endif
# add BackupPC backup directories to PRUNEPATHS in locate database
if [ -w %{_updatedb_conf} ]; then
grep ^PRUNEPATHS %{_updatedb_conf} | grep %{_localstatedir}/lib/%{name} > /dev/null
if [ $? -eq 1 ]; then
sed -i '\@PRUNEPATHS@s@"$@ '%{_localstatedir}/lib/%{name}'"@' %{_updatedb_conf}
fi
fi
:
%postun %postun
# clear out any BackupPC configuration in apache
service httpd condrestart > /dev/null 2>&1 || : service httpd condrestart > /dev/null 2>&1 || :
%if %{useselinux}
if [ "$1" -eq "0" ]; then if [ $1 -eq 0 ]; then
# Remove the SElinux policy. # uninstall
semodule -r %{name} || : # Remove the SElinux policy.
semodule -r %{name} &> /dev/null || :
# remove BackupPC backup directories from PRUNEPATHS in locate database
if [ -w %{_updatedb_conf} ]; then
sed -i '\@PRUNEPATHS@s@[ ]*'%{_localstatedir}/lib/%{name}'@@' %{_updatedb_conf} || :
fi
fi fi
%endif
%systemd_postun_with_restart backuppc.service
%files %files
%defattr(-,root,root,-) %doc README.md README.setup README.RHEL ChangeLog doc/*
%doc README README.fedora ChangeLog LICENSE doc/ %license LICENSE
%dir %attr(-,backuppc,backuppc) %{_localstatedir}/log/%{name} %dir %attr(-,backuppc,backuppc) %{_localstatedir}/log/%{name}
%dir %attr(-,backuppc,backuppc) %{_sysconfdir}/%{name}/ %dir %attr(-,backuppc,apache) %{_sysconfdir}/%{name}/
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%config(noreplace) %attr(-,backuppc,backuppc) %{_sysconfdir}/%{name}/* %config(noreplace) %attr(-,backuppc,apache) %{_sysconfdir}/%{name}/*
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/sbin %dir %{_datadir}/%{name}/sbin
%{_datadir}/%{name}/[^s]* %{_datadir}/%{name}/[^s]*
%{_initrddir}/backuppc %attr(750,backuppc,apache) %{_datadir}/%{name}/sbin/BackupPC_Admin
%attr(4750,backuppc,apache) %{_datadir}/%{name}/sbin/BackupPC_Admin %if 0%{?_with_tmpfilesd}
%attr(-,backuppc,root) %{_localstatedir}/lib/%{name}/ %{_tmpfilesdir}/%{name}.conf
%else
%if %{useselinux} %dir %attr(0775,root,backuppc) %{_localstatedir}/run/%{name}
%{_datadir}/selinux/packages/%{name}/%{name}.pp
%endif %endif
%if 0%{?_with_systemd}
%{_unitdir}/backuppc.service
%else
%attr(0755,root,root) %{_initrddir}/backuppc
%endif
%attr(4750,backuppc,apache) %{_libexecdir}/%{name}/BackupPC_Admin
%attr(-,backuppc,root) %{_localstatedir}/lib/%{name}/
%{_datadir}/selinux/packages/%{name}/%{name}.pp
%{_sysusersdir}/backuppc.conf
%changelog %changelog
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.4.0-19
- Add sysusers.d config file to allow rpm to create users/groups automatically
* Mon Jan 20 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jul 25 2024 Miroslav Suchý <msuchy@redhat.com> - 4.4.0-16
- convert license to SPDX
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Mar 25 2024 Orion Poplawski <orion@nwra.com> - 4.4.0-14
- Create and own /etc/BackupPC/pc
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jan 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Aug 23 2022 Richard Shaw <hobbes1069@gmail.com> - 4.4.0-8
- Add patch to fix #2091514 where saving a configuration change in the web UI
would replace {} with () in the config file.
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.4.0-4
- Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun Jun 21 2020 Richard Shaw <hobbes1069@gmail.com> - 4.4.0-1
- Update to 4.4.0.
* Wed Mar 25 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.3.2-3
- Add perl dependencies needed for build
- Remove duplicities from run-requires
* Thu Mar 12 2020 Richard Shaw <hobbes1069@gmail.com> - 4.3.2-2
- Add patch to allow prevention of backups being deleted.
- Add apache.users config file to control permissions and update related SETUP
documentation.
- Fix PID file to be created in /run instead of /var/run.
* Tue Feb 18 2020 Richard Shaw <hobbes1069@gmail.com> - 4.3.2-1
- Update to 4.3.2.
- Update SELinux permissions, fixes RHBZ#1791369.
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Oct 12 2019 Richard Shaw <hobbes1069@gmail.com> - 4.3.1-3
- Add selinux context for /var/lib/BackupPC to stop AVCs with LOCK files.
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Jul 14 2019 Richard Shaw <hobbes1069@gmail.com> - 4.3.1-1
- Update to 4.3.1.
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Nov 26 2018 Richard Shaw <hobbes1069@gmail.com> - 4.3.0-1
- Update to 4.3.0.
* Mon Nov 05 2018 Orion Poplawski <orion@nwra.com> - 4.2.1-4
- Add reload support to systemd service file
* Thu Oct 11 2018 Richard Shaw <hobbes1069@gmail.com> - 4.2.1-3
- Revert accidental change to log dir permissions.
- Don't package /run dir when using tmpfiles.
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon May 07 2018 Richard Shaw <hobbes1069@gmail.com> - 4.2.1-1
- Update to 4.2.1.
* Mon Apr 9 2018 Richard Shaw <hobbes1069@gmail.com> - 4.2.0-1
- Update to 4.2.0.
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Dec 4 2017 Richard Shaw <hobbes1069@gmail.com> - 4.1.5-1
- Update to latest upstream release.
* Sat Nov 25 2017 Richard Shaw <hobbes1069@gmail.com> - 4.1.4-1
- Update to latest upstream release.
* Thu Nov 09 2017 Richard Shaw <hobbes1069@gmail.com> - 4.1.3-4.1
- Add patch to set lib location correctly in BackupPC_zipCreate.pl
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Tue Jul 4 2017 Richard Shaw <hobbes1069@gmail.com> - 4.1.3-2
- Change requirement from the sendmail package to the sendmail binary
which is also provided by the default MTA, postfix.
* Sun Jun 4 2017 Richard Shaw <hobbes1069@gmail.com> - 4.1.3-1
- Update to latest upstream release.
* Sun May 28 2017 Richard Shaw <hobbes1069@gmail.com> - 4.1.2-2
- Change permissions on config files to be in the apache group.
- Update systemd service file to start httpd automatically.
* Tue May 2 2017 Richard Shaw <hobbes1069@gmail.com> - 4.1.2-1
- Update to latest upstream release, 4.1.2.
* Thu Mar 30 2017 Richard Shaw <hobbes1069@gmail.com> - 4.1.1-1
- Update to latest upstream release, 4.1.1.
* Sat Mar 25 2017 Richard Shaw <hobbes1069@gmail.com> - 4.1.0-1
- Update to latest upstream release, 4.1.0.
* Thu Mar 9 2017 Richard Shaw <hobbes1069@gmail.com> - 4.0.0-1
- Update to latest upstream release, 4.0.0.
* Wed Mar 1 2017 Ville Skyttä <ville.skytta@iki.fi> - 3.3.1-9
- Move tmpfiles.d config to %%{_tmpfilesdir}
- Install LICENSE as %%license
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Dec 22 2016 Benjamin Lefoul <lef@fedoraproject.org> - 3.3.1-7
- Perl unescaped braces (BZ 1259481)
* Tue Oct 18 2016 Benjamin Lefoul <lef@fedoraproject.org> - 3.3.1-6
- Some IPv6 support (BZ 1385630)
* Fri Jul 15 2016 Benjamin Lefoul <lef@fedoraproject.org> - 3.3.1-5
- Deprecation of defined(@array) in perl
* Wed Jun 29 2016 Benjamin Lefoul <lef@fedoraproject.org> - 3.3.1-4
- Support for systemd and tmpfiles for RHEL >= 7
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Mar 14 2015 Bernard Johnson <bjohnson@symetrix.com> - 3.3.1-1
- v 3.3.1
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri Feb 21 2014 Bernard Johnson <bjohnson@symetrix.com> 3.3.0-2
- fix typo in README.RHEL
- enable PIE build (bz #965523)
- add patch that causes getpwnam to return only uid to fix selinux denials
(bz #827854)
- add local-fs.target and remote-fs.target to startup dependency (bz #959309)
* Fri Feb 21 2014 Johan Cwiklinski <johan AT x-tnd DOT be> 3.3.0-1
- Last upstream release
- Remove no longer needeed patches
- Fix incorrect-fsf-address to reduce rpmlint output
* Fri Feb 21 2014 Bernard Johnson <bjohnson@symetrix.com> - 3.3.0-1
- v 3.3.0
- fixed typos
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 3.2.1-14
- Perl 5.18 rebuild
* Sun Mar 31 2013 Ville Skyttä <ville.skytta@iki.fi> - 3.2.1-13
- Add build dependency on Pod::Usage (#913855).
- Fix bogus dates in %%changelog.
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sun Jan 20 2013 Bernard Johnson <bjohnson@symetrix.com> 3.2.1-11
- Missing backuppc.service file after upgrade to 3.2.1-10 causes service to
exit at start (bz #896626)
* Mon Dec 24 2012 Bernard Johnson <bjohnson@symetrix.com> 3.2.1-10
- cleanup build macros for Fedora
- fix deprecated qw messages (partial fix for bz #755076)
- CVE-2011-5081 BackupPC: XSS flaw in RestoreFile.pm
(bz #795017, #795018, #795019)
- Broken configuration for httpd 2.4 (bz #871353)
* Sun Dec 9 2012 Peter Robinson <pbrobinson@fedoraproject.org> 3.2.1-9
- Fix FTBFS on F-18+
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sun Jan 22 2012 Bernard Johnson <bjohnson@symetrix.com> - 3.2.1-7
- change %%{_sharedstatedir} to %%{_localstatedir}/lib as these expand
differently on EL (bz #767719)
- fix XSS vulnerability (bz #749846, bz #749847, bz #749848) CVE-2011-3361
- additional documentation about enabling correct channels in RHEL to resolve
all dependencies (bz #749627)
- fix bug with missing tmpfiles.d directory
- add perl(Digest::MD5) to list of build and install dependencies
* Wed Sep 21 2011 Bernard Johnson <bjohnson@symetrix.com> - 3.2.1-6
- fix postun scriptlet error (bz #736946)
- make postun scriptlet more coherent
- change selinux context on log files to httpd_log_t and allow access
to them (bz #730704)
* Fri Aug 12 2011 Bernard Johnson <bjohnson@symetrix.com> - 3.2.1-4
- change macro conditionals to include tmpfiles.d support starting at
Fedora 15 (bz #730053)
- change install lines to preserve timestamps
* Fri Jul 08 2011 Bernard Johnson <bjohnson@symetrix.com> - 3.2.1-1
- v 3.2.1
- add lower case script URL alias for typing impaired
- cleanup selinux macros
- spec cleanup
- make samba dependency on actual files required to EL5 can use samba-client
or samba3x-client (bz #667479)
- unbundle perl(Net::FTP::AutoReconnect) and perl(Net::FTP::RetrHandle)
- remove old patch that is no longer needed
- attempt to make sure $Conf{TopDir} is listed in updatedb PRUNEPATHS,
otherwise at least generate a warning on statup (bz #554491)
- move sockets to /var/run (bz #719499)
- add support for systemd starting at F16 (bz #699441)
- patch to move pid dir under /var/run
- unbundle Net::FTP::*
- add support for tmpfiles.d
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Aug 02 2010 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-16
- perl-suidperl is no longer available (fix bug #611009)
* Fri Jul 09 2010 Mike McGrath <mmcgrath@redhat.com> 3.1.0-14.1
- Rebuilding to fix perl-suidperl broken dep
* Mon May 17 2010 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-14
- Fix for bug #592762
* Sun Feb 28 2010 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-12
- Add "::1" to the apache config file for default allowed adresses
- Fix a typo in the apache config file
* Sun Jan 17 2010 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-11
- Really fix selinux labelling backup directory (bug #525948)
* Fri Jan 15 2010 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-10
- Fix selinux labelling backup directory (bug #525948)
* Fri Sep 25 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-9
- Fix security bug (bug #518412)
* Wed Sep 23 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-8
- Rebuild with latest SELinux policy (bug #524630)
* Fri Sep 18 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-7
- Fix SELinux policy module for UserEmailInfo.pl file
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Fri Apr 10 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-5
- Fix TopDir change (bug #473944)
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Mon Aug 11 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-3
- using /dev/null with SELinux policy to avoid broken pipe errors (bug #432149)
* Sat Apr 05 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-2 * Sat Apr 05 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-2
- correcting nologin path - correcting nologin path
@ -240,7 +675,7 @@ fi
* Tue Jan 30 2007 Johan Cwiklinski <johan AT x-tnd DOT be> 3.0.0-1 * Tue Jan 30 2007 Johan Cwiklinski <johan AT x-tnd DOT be> 3.0.0-1
- Rebuild RPM for v 3.0.0 - Rebuild RPM for v 3.0.0
* Sat Aug 16 2006 Mike McGrath <imlinux@gmail.com> 2.1.2-7 * Sat Aug 26 2006 Mike McGrath <imlinux@gmail.com> 2.1.2-7
- Release bump for rebuild - Release bump for rebuild
* Tue Jul 25 2006 Mike McGrath <imlinux@gmail.com> 2.1.2-6 * Tue Jul 25 2006 Mike McGrath <imlinux@gmail.com> 2.1.2-6

1
BackupPC.tmpfiles Normal file
View file

@ -0,0 +1 @@
D /run/BackupPC 0775 root backuppc -

12
BackupPC_Admin.c Normal file
View file

@ -0,0 +1,12 @@
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
int main( int argc, char ** argv, char ** envp )
{
if( setgid(getegid()) ) perror( "setgid" );
if( setuid(geteuid()) ) perror( "setuid" );
execv( "/usr/share/BackupPC/sbin/BackupPC_Admin", argv );
perror( argv[0] );
return errno;
}

View file

@ -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)

22
README.RHEL Normal file
View file

@ -0,0 +1,22 @@
If you are installing this software on a Red Hat Enterprise Linux (RHEL)
server, you will have to subscribe to the "RHEL Server Optional" before
attempting to install this component. If you do not enable this channel, you
will receive an error that looks similar to this:
--> Finished Dependency Resolution
Error: Package: BackupPC-3.2.1-1.el6.x86_64 (epel)
Requires: perl(Archive::Zip)
Error: Package: BackupPC-3.2.1-1.el6.x86_64 (epel)
Requires: perl(XML::RSS)
Error: Package: BackupPC-3.2.1-1.el6.x86_64 (epel)
Requires: perl-Time-modules
Error: Package: BackupPC-3.2.1-1.el6.x86_64 (epel)
Requires: perl(Time::ParseDate)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
References:
http://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F
https://access.redhat.com/kb/docs/DOC-11313
https://bugzilla.redhat.com/show_bug.cgi?id=749627

33
README.setup Normal file
View file

@ -0,0 +1,33 @@
BackupPC's README file for Fedora & EPEL
## 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 :
Permanent:
usermod -s /bin/bash backuppc
or
Temporary:
su -s /bin/bash -l backuppc
Do not forget to create an SSH key (ssk-keygen) as the backuppc user and copy
it to remote computers if you plan to use tar/rsync over SSH backup method.
The easiest way to do this (after logging in as the backuppc user) is to use ssh-copy-id
ssh-copy-id <user>@<host>
## 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 /etc/BackupPC/apache.users <username>
Once complete, add that user as an admin in config.pl:
$Conf{BackupPCUser} = '<username>'

2
apache.users Normal file
View file

@ -0,0 +1,2 @@
# You will need to create at least one user to be able to login
# htpasswd /etc/BackupPC/apache.users <username>

14
backuppc.service Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description= BackupPC server
After=syslog.target local-fs.target remote-fs.target
[Service]
Type=simple
User=backuppc
Group=backuppc
ExecStart=/usr/share/BackupPC/bin/BackupPC
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/run/BackupPC/BackupPC.pid
[Install]
WantedBy=multi-user.target

View file

@ -1 +1 @@
84b4471852ef910768eae9963ef932d2 BackupPC-3.1.0.tar.gz SHA512 (BackupPC-4.4.0.tar.gz) = 0c88447ab000c4a452034d5d8a074cd56801c7b38b0886e686e446c73ecfd0a40f0aa08703f76d16c31b24aec85c10c4ed1815d0cb67be5a1d66e5caeb3de418