SPECS: backuppc.spec - webapps support (this spec is so ugly so i'...
glen
glen at pld-linux.org
Sun Apr 16 22:34:11 CEST 2006
Author: glen Date: Sun Apr 16 20:34:11 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- webapps support (this spec is so ugly so i'm not going to add any trigger)
---- Files affected:
SPECS:
backuppc.spec (1.62 -> 1.63)
---- Diffs:
================================================================
Index: SPECS/backuppc.spec
diff -u SPECS/backuppc.spec:1.62 SPECS/backuppc.spec:1.63
--- SPECS/backuppc.spec:1.62 Sun Apr 16 22:23:26 2006
+++ SPECS/backuppc.spec Sun Apr 16 22:34:06 2006
@@ -23,8 +23,7 @@
Source0: http://dl.sourceforge.net/backuppc/BackupPC-%{version}.tar.gz
# Source0-md5: 72fc0f09084f44c42ba5d22451cfe29b
Source1: %{name}_apache.conf
-Source2: %{name}_htaccess
-Source3: %{name}-pl.pm
+Source2: %{name}-pl.pm
Patch0: %{name}-%{version}pl0.patch
Patch1: %{name}-usernotexist.patch
Patch2: %{name}-pathtodocs.patch
@@ -33,11 +32,10 @@
BuildRequires: perl-Digest-MD5
BuildRequires: perl-devel >= 1:5.6.0
BuildRequires: rpm-perlprov
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: sed >= 4.0
-Requires: apache >= 2.0
Requires: apache(mod_auth)
-Requires: apache-mod_perl
+Requires: apache(mod_perl)
Requires: par2cmdline
Requires: perl-Archive-Zip
Requires: perl-Compress-Bzip2
@@ -47,12 +45,16 @@
Requires: samba-client
Requires: sperl
Requires: tar > 1.13
+Requires: webapps
Provides: group(%{BPCgroup})
Provides: user(%{BPCuser})
Obsoletes: BackupPC
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _webapps /etc/webapps
+%define _webapp %{name}
+
%description
BackupPC is disk based and not tape based. This particularity allows
features not found in any other backup solution:
@@ -168,10 +170,8 @@
sed -i -e 's/$Conf{SendmailPath} =/#$Conf{SendmailPath} =/' $RPM_BUILD_ROOT%{_var}/lib/%{name}/conf/config.pl
install init.d/linux-backuppc $RPM_BUILD_ROOT/etc/rc.d/init.d/backuppc
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/93_backuppc.conf
-#install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{name}/www/cgi-bin/.htaccess
install backuppc.8 $RPM_BUILD_ROOT%{_mandir}/man8
-install %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/BackupPC/Lang/pl.pm
+install %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/BackupPC/Lang/pl.pm
install doc/* $RPM_BUILD_ROOT%{_datadir}/%{name}/www/html/doc
# Cleanups:
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/www/html/CVS
@@ -196,7 +196,10 @@
cd $RPM_BUILD_ROOT%{_datadir}/%{name}/www/html
ln -sf %{_sysconfdir}/%{name}/BackupPC_stnd.css BackupPC_stnd.css
-touch $RPM_BUILD_ROOT%{_sysconfdir}/backuppc/password
+install -d $RPM_BUILD_ROOT%{_webapps}/%{_webapp}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
+touch $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/htpasswd
%if 0
%pre
@@ -261,11 +264,13 @@
%dir %attr(755,%{BPCuser},%{BPCgroup}) %{_var}/lib/%{name}/conf
%dir %attr(750,%{BPCuser},%{BPCgroup}) %{_var}/log/%{name}
%attr(754,root,root) /etc/rc.d/init.d/backuppc
-%{_sysconfdir}/httpd/httpd.conf/93_backuppc.conf
%dir %{_sysconfdir}/%{name}
-%config(noreplace) %verify(not md5 mtime size) %attr(644,%{BPCuser},%{BPCgroup}) %{_sysconfdir}/%{name}/*
-%config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{_sysconfdir}/backuppc/password
%{_mandir}/man8/backuppc*
+%config(noreplace) %verify(not md5 mtime size) %attr(644,%{BPCuser},%{BPCgroup}) %{_sysconfdir}/%{name}/*
+%dir %attr(750,root,http) %{_webapps}/%{_webapp}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/htpasswd
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -273,6 +278,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.63 2006/04/16 20:34:06 glen
+- webapps support (this spec is so ugly so i'm not going to add any trigger)
+
Revision 1.62 2006/04/16 20:23:26 glen
- killed idiotic code
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/backuppc.spec?r1=1.62&r2=1.63&f=u
More information about the pld-cvs-commit
mailing list