/[smecontribs]/rpms/bacula/contribs8/bacula.spec
ViewVC logotype

Diff of /rpms/bacula/contribs8/bacula.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by slords, Fri Dec 3 17:41:52 2010 UTC Revision 1.2 by slords, Sat Dec 4 16:31:52 2010 UTC
# Line 1  Line 1 
1    # $Id$
2    # Authority: slords
3    # Name: Shad L. Lords
4    
5  %{!?perl_vendorlib:  %define perl_vendorlib  %(eval "`%{__perl} -V:installvendorlib`" ; echo $installvendorlib)}  %{!?perl_vendorlib:  %define perl_vendorlib  %(eval "`%{__perl} -V:installvendorlib`" ; echo $installvendorlib)}
6  %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}  %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
7  %{!?perl_version:    %define perl_version    %(eval "`%{__perl} -V:version`"          ; echo $version)}  %{!?perl_version:    %define perl_version    %(eval "`%{__perl} -V:version`"          ; echo $version)}
# Line 41  Patch20:           %{name}-3.0.2-fd_acl_ Line 45  Patch20:           %{name}-3.0.2-fd_acl_
45  Patch21:           %{name}-5.0.3-clientrunbeforejob.patch  Patch21:           %{name}-5.0.3-clientrunbeforejob.patch
46  URL:               http://www.%{name}.org/  URL:               http://www.%{name}.org/
47  Buildroot:         %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)  Buildroot:         %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Vendor:            The Bacula Team  
48  Requires(pre):     /usr/sbin/groupadd /usr/sbin/useradd  Requires(pre):     /usr/sbin/groupadd /usr/sbin/useradd
49  Requires(post):    /sbin/ldconfig openssl  Requires(post):    /sbin/ldconfig openssl
50  BuildRequires:     gettext httpd mkisofs mtx pkgconfig  BuildRequires:     gettext httpd mkisofs mtx pkgconfig
# Line 49  BuildRequires:     tcp_wrappers tetex-la Line 52  BuildRequires:     tcp_wrappers tetex-la
52  BuildRequires:     libacl-devel libstdc++-devel openssl-devel  BuildRequires:     libacl-devel libstdc++-devel openssl-devel
53  BuildRequires:     mysql-devel postgresql-devel sqlite-devel  BuildRequires:     mysql-devel postgresql-devel sqlite-devel
54  BuildRequires:     python-devel readline-devel libxml2-devel  BuildRequires:     python-devel readline-devel libxml2-devel
55  BuildRequires:     glib2-devel gtk2-devel pango-devel latex2html  BuildRequires:     glib2-devel gtk2-devel pango-devel
56  BuildRequires:     libcap-devel ncurses-devel zlib-devel  BuildRequires:     libcap-devel ncurses-devel zlib-devel
57  BuildRequires:     perl(CGI) perl(DBI) perl(Date::Calc) perl(Expect)  BuildRequires:     perl(CGI) perl(DBI) perl(Date::Calc) perl(Expect)
58  BuildRequires:     perl(GD::Graph) perl(GD) perl(HTML::Template)  BuildRequires:     perl(GD::Graph) perl(GD) perl(HTML::Template)
# Line 171  Requires(post):    /sbin/restorecon %{_s Line 174  Requires(post):    /sbin/restorecon %{_s
174  %description       gui-bweb-selinux  %description       gui-bweb-selinux
175  This package enables %{name}-gui-bweb to work with SELinux.  This package enables %{name}-gui-bweb to work with SELinux.
176    
   
 %package           gui-monitor  
 Summary:           The Bacula tray monitor  
 Group:             Applications/System  
 Requires:          %{name} = %{version}-%{release}  
   
 %description       gui-monitor  
 This package contains the Bacula Monitor service which is the program that  
 allows the administrator or user to watch current status of Bacula Directors  
 (DIR), Bacula File Daemons (FD) and Bacula Storage Daemons (SD). Currently,  
 only a GTK+ version is available, which works with Gnome, KDE, or any window  
 manager that supports the FreeDesktop.org system tray standard.  
   
   
177  %package           gui-web  %package           gui-web
178  Summary:           The Bacula web utility  Summary:           The Bacula web utility
179  Group:             Applications/Internet  Group:             Applications/Internet
# Line 324  BuildApp() { Line 313  BuildApp() {
313          --with-plugindir=%{_libdir}/%{name}              \          --with-plugindir=%{_libdir}/%{name}              \
314          --with-archivedir=/tmp                           \          --with-archivedir=/tmp                           \
315          --disable-bat                                    \          --disable-bat                                    \
316          --enable-tray-monitor                            \          --disable-tray-monitor                           \
317          --disable-bwx-console                            \          --disable-bwx-console                            \
318          --enable-lockmgr                                 \          --enable-lockmgr                                 \
319          --enable-ipv6                                    \          --enable-ipv6                                    \
# Line 468  touch                ${RPM_BUILD_ROOT}%{ Line 457  touch                ${RPM_BUILD_ROOT}%{
457  # Installed but unpackaged files  # Installed but unpackaged files
458  %{__rm}      -rf     ${RPM_BUILD_ROOT}%{_mandir}/man1/bat.1*  %{__rm}      -rf     ${RPM_BUILD_ROOT}%{_mandir}/man1/bat.1*
459  %{__rm}      -rf     ${RPM_BUILD_ROOT}%{_mandir}/man1/bacula-bwxconsole.1*  %{__rm}      -rf     ${RPM_BUILD_ROOT}%{_mandir}/man1/bacula-bwxconsole.1*
460    %{__rm}      -rf     ${RPM_BUILD_ROOT}%{_mandir}/man1/bacula-tray-monitor.1*
461    
462  # Install DB update scripts  # Install DB update scripts
463  %{__install} -m 0644 updatedb/README   ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/updatedb  %{__install} -m 0644 updatedb/README   ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/updatedb
# Line 482  touch                ${RPM_BUILD_ROOT}%{ Line 472  touch                ${RPM_BUILD_ROOT}%{
472  %{__install} -m 0644 scripts/logwatch/services.%{name}.conf       \  %{__install} -m 0644 scripts/logwatch/services.%{name}.conf       \
473          ${RPM_BUILD_ROOT}%{_sysconfdir}/log.d/conf/services/%{name}.conf          ${RPM_BUILD_ROOT}%{_sysconfdir}/log.d/conf/services/%{name}.conf
474    
 # Install GUI addons  
 %{__install} -m 0644 src/tray-monitor/generic.xpm                 \  
         ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/%{name}-tray-monitor.xpm  
 %{__install} -m 0644 scripts/%{name}-tray-monitor.desktop         \  
         ${RPM_BUILD_ROOT}%{_datadir}/applications  
   
475  pushd %{name}-gui-%{bacula_ver}  pushd %{name}-gui-%{bacula_ver}
476  pushd bimagemgr  pushd bimagemgr
477  %{__make} \  %{__make} \
# Line 630  if /usr/sbin/selinuxenabled && [ -e /sel Line 614  if /usr/sbin/selinuxenabled && [ -e /sel
614    /sbin/restorecon -R %{_localstatedir}/cache/bweb    /sbin/restorecon -R %{_localstatedir}/cache/bweb
615  fi  fi
616    
 %post gui-monitor  
 # Update config  
 for STRING in HOSTNAME DIR_MON_PASS FD_MON_PASS SD_MON_PASS; do  
   REPLACE="`%{__grep} ${STRING} %{_sysconfdir}/%{name}/support.pkg 2>/dev/null | cut -d= -f2`"  
   
   if [ -n "${REPLACE}" ]; then  
     %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/tray-monitor.conf  
   fi  
 done  
   
617  %post server-sqlite  %post server-sqlite
618  # Update config  # Update config
619  for STRING in HOSTNAME DIR_PASS FD_PASS SD_PASS DIR_MON_PASS SD_MON_PASS; do  for STRING in HOSTNAME DIR_PASS FD_PASS SD_PASS DIR_MON_PASS SD_MON_PASS; do
# Line 871  fi Line 845  fi
845  %files gui-bweb-selinux  %files gui-bweb-selinux
846  %defattr(-,root,root)  %defattr(-,root,root)
847    
 %files gui-monitor  
 %defattr(-,root,root)  
 %attr(644,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/tray-monitor.conf  
 %attr(755,root,%{name}) %{_bindir}/bacula-tray-monitor  
 %{_mandir}/man1/bacula-tray-monitor.1*  
 %{_datadir}/applications/bacula-tray-monitor.desktop  
 %{_datadir}/pixmaps/bacula-tray-monitor.xpm  
   
848  %files gui-web  %files gui-web
849  %defattr(-,root,root)  %defattr(-,root,root)
850  %doc %{name}-gui-%{version}/%{name}-web/{CONTACT,COPYING,ChangeLog,README,TODO}  %doc %{name}-gui-%{version}/%{name}-web/{CONTACT,COPYING,ChangeLog,README,TODO}


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed