2010-04-05 20:58:57 +02:00
|
|
|
#
|
|
|
|
# This is the SPEC file for creating binary RPMs for the Dom0.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# The Qubes OS Project, http://www.qubes-os.org
|
|
|
|
#
|
|
|
|
# Copyright (C) 2010 Joanna Rutkowska <joanna@invisiblethingslab.com>
|
|
|
|
# Copyright (C) 2010 Rafal Wojtczuk <rafal@invisiblethingslab.com>
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
|
|
|
%{!?version: %define version %(cat version_dom0)}
|
|
|
|
|
|
|
|
Name: qubes-core-dom0
|
|
|
|
Version: %{version}
|
2011-03-16 19:14:42 +01:00
|
|
|
Release: 1%{dist}
|
2010-04-05 20:58:57 +02:00
|
|
|
Summary: The Qubes core files (Dom0-side)
|
|
|
|
|
|
|
|
Group: Qubes
|
|
|
|
Vendor: Invisible Things Lab
|
|
|
|
License: GPL
|
|
|
|
URL: http://www.qubes-os.org
|
2011-02-09 22:15:00 +01:00
|
|
|
BuildRequires: xen-devel
|
2010-04-05 20:58:57 +02:00
|
|
|
Requires: python, xen-runtime, pciutils, python-inotify, python-daemon, kernel-qubes-dom0
|
2011-02-09 22:15:00 +01:00
|
|
|
Conflicts: qubes-gui-dom0 < 1.1.13
|
2011-06-22 00:44:48 +02:00
|
|
|
Requires: yum-plugin-post-transaction-actions
|
2010-09-17 15:16:01 +02:00
|
|
|
Requires: NetworkManager >= 0.8.1-1
|
2011-06-01 23:44:06 +02:00
|
|
|
Requires: xen >= 4.1.0-2
|
2011-07-16 02:04:56 +02:00
|
|
|
Requires: createrepo
|
2010-04-05 20:58:57 +02:00
|
|
|
%define _builddir %(pwd)/dom0
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Qubes core files for installation on Dom0.
|
|
|
|
|
2010-04-10 13:52:19 +02:00
|
|
|
%build
|
2010-08-30 11:40:19 +02:00
|
|
|
python -m compileall qvm-core qmemman
|
|
|
|
python -O -m compileall qvm-core qmemman
|
2010-06-02 15:50:22 +02:00
|
|
|
make -C restore
|
2011-06-22 00:44:48 +02:00
|
|
|
make -C aux-tools
|
2010-09-03 16:23:09 +02:00
|
|
|
make -C ../common
|
2011-03-08 12:24:47 +01:00
|
|
|
make -C ../vchan
|
|
|
|
make -C ../u2mfn
|
2011-03-24 00:55:35 +01:00
|
|
|
make -C ../qrexec
|
2010-04-10 13:52:19 +02:00
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
%install
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
|
|
|
cp init.d/qubes_core $RPM_BUILD_ROOT/etc/init.d/
|
|
|
|
cp init.d/qubes_netvm $RPM_BUILD_ROOT/etc/init.d/
|
2011-04-08 22:57:11 +02:00
|
|
|
cp init.d/qubes_setupdvm $RPM_BUILD_ROOT/etc/init.d/
|
2010-04-05 20:58:57 +02:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin/
|
|
|
|
cp qvm-tools/qvm-* $RPM_BUILD_ROOT/usr/bin
|
|
|
|
cp clipboard_notifier/qclipd $RPM_BUILD_ROOT/usr/bin
|
2010-06-02 15:50:22 +02:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/xen/scripts
|
|
|
|
cp restore/block.qubes $RPM_BUILD_ROOT/etc/xen/scripts
|
2010-09-06 17:07:42 +02:00
|
|
|
cp ../common/vif-route-qubes $RPM_BUILD_ROOT/etc/xen/scripts
|
2011-02-26 03:42:55 +01:00
|
|
|
cp ../common/block-snapshot $RPM_BUILD_ROOT/etc/xen/scripts
|
|
|
|
ln -s block-snapshot $RPM_BUILD_ROOT/etc/xen/scripts/block-origin
|
2010-04-05 20:58:57 +02:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{python_sitearch}/qubes
|
|
|
|
cp qvm-core/qubes.py $RPM_BUILD_ROOT%{python_sitearch}/qubes
|
2010-04-10 13:52:19 +02:00
|
|
|
cp qvm-core/qubes.py[co] $RPM_BUILD_ROOT%{python_sitearch}/qubes
|
2010-04-05 20:58:57 +02:00
|
|
|
cp qvm-core/__init__.py $RPM_BUILD_ROOT%{python_sitearch}/qubes
|
2010-04-10 13:52:19 +02:00
|
|
|
cp qvm-core/__init__.py[co] $RPM_BUILD_ROOT%{python_sitearch}/qubes
|
2010-08-30 11:40:19 +02:00
|
|
|
cp qmemman/qmemman*py $RPM_BUILD_ROOT%{python_sitearch}/qubes
|
|
|
|
cp qmemman/qmemman*py[co] $RPM_BUILD_ROOT%{python_sitearch}/qubes
|
2010-04-05 20:58:57 +02:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/qubes
|
|
|
|
cp aux-tools/patch_appvm_initramfs.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
|
|
|
cp aux-tools/unbind_pci_device.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
|
|
|
cp aux-tools/unbind_all_network_devices $RPM_BUILD_ROOT/usr/lib/qubes
|
|
|
|
cp aux-tools/convert_apptemplate2vm.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
|
|
|
cp aux-tools/convert_dirtemplate2vm.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
|
|
|
cp aux-tools/create_apps_for_appvm.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
|
|
|
cp aux-tools/remove_appvm_appmenus.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
2010-09-27 16:58:02 +02:00
|
|
|
cp aux-tools/reset_vm_configs.py $RPM_BUILD_ROOT/usr/lib/qubes
|
2011-07-15 12:52:01 +02:00
|
|
|
cp aux-tools/regenerate_initramfs.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
2011-06-22 00:44:48 +02:00
|
|
|
cp aux-tools/sync_rpmdb_updatevm.sh $RPM_BUILD_ROOT/usr/lib/qubes/
|
2010-08-30 11:40:19 +02:00
|
|
|
cp qmemman/server.py $RPM_BUILD_ROOT/usr/lib/qubes/qmemman_daemon.py
|
|
|
|
cp ../common/meminfo-writer $RPM_BUILD_ROOT/usr/lib/qubes/
|
2011-03-04 16:32:58 +01:00
|
|
|
cp ../qrexec/qrexec_daemon $RPM_BUILD_ROOT/usr/lib/qubes/
|
|
|
|
cp ../qrexec/qrexec_client $RPM_BUILD_ROOT/usr/lib/qubes/
|
2011-07-05 18:35:03 +02:00
|
|
|
cp ../qrexec/qrexec_policy $RPM_BUILD_ROOT/usr/lib/qubes/
|
2011-06-22 00:44:48 +02:00
|
|
|
cp aux-tools/qfile-dom0-unpacker $RPM_BUILD_ROOT/usr/lib/qubes/
|
2011-07-06 14:44:40 +02:00
|
|
|
cp aux-tools/qubes-receive-updates $RPM_BUILD_ROOT/usr/lib/qubes/
|
2011-07-16 02:04:56 +02:00
|
|
|
cp aux-tools/qubes-watch-updates.sh $RPM_BUILD_ROOT/usr/lib/qubes/
|
2010-04-05 20:58:57 +02:00
|
|
|
|
2011-07-05 18:35:03 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/qubes_rpc/policy
|
2011-07-06 10:17:58 +02:00
|
|
|
cp ../appvm/qubes.Filecopy.policy $RPM_BUILD_ROOT/etc/qubes_rpc/policy/qubes.Filecopy
|
2011-07-06 12:32:20 +02:00
|
|
|
cp ../appvm/qubes.OpenInVM.policy $RPM_BUILD_ROOT/etc/qubes_rpc/policy/qubes.OpenInVM
|
2011-07-06 14:09:36 +02:00
|
|
|
cp qubes.SyncAppMenus.policy $RPM_BUILD_ROOT/etc/qubes_rpc/policy/qubes.SyncAppMenus
|
|
|
|
cp qubes.SyncAppMenus $RPM_BUILD_ROOT/etc/qubes_rpc/
|
2011-07-06 13:56:57 +02:00
|
|
|
cp ../qrexec/qubes_rpc_multiplexer $RPM_BUILD_ROOT/usr/lib/qubes
|
2011-07-06 14:44:40 +02:00
|
|
|
cp aux-tools/qubes.ReceiveUpdates.policy $RPM_BUILD_ROOT/etc/qubes_rpc/policy/qubes.ReceiveUpdates
|
|
|
|
cp aux-tools/qubes.ReceiveUpdates $RPM_BUILD_ROOT/etc/qubes_rpc/
|
2011-07-09 20:43:27 +02:00
|
|
|
install -D aux-tools/qubes-dom0.modules $RPM_BUILD_ROOT/etc/sysconfig/modules/qubes-dom0.modules
|
2011-07-05 18:35:03 +02:00
|
|
|
|
2011-04-19 01:42:42 +02:00
|
|
|
cp restore/qvm-create-default-dvm $RPM_BUILD_ROOT/usr/bin
|
|
|
|
cp restore/xenstore-watch $RPM_BUILD_ROOT/usr/bin/xenstore-watch-qubes
|
2010-07-22 14:54:34 +02:00
|
|
|
cp restore/qubes_restore restore/xenfreepages $RPM_BUILD_ROOT/usr/lib/qubes
|
2010-07-16 10:26:55 +02:00
|
|
|
cp restore/qubes_prepare_saved_domain.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
2011-07-26 16:36:59 +02:00
|
|
|
cp restore/qubes_update_dispvm_savefile_with_progress.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
2011-03-14 10:43:09 +01:00
|
|
|
cp restore/qfile-daemon-dvm $RPM_BUILD_ROOT/usr/lib/qubes
|
2010-07-16 10:26:55 +02:00
|
|
|
|
2011-06-22 00:44:48 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/yum.real.repos.d
|
|
|
|
cp qubes-cached.repo $RPM_BUILD_ROOT/etc/yum.real.repos.d/
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/yum/post-actions
|
|
|
|
cp misc/qubes_sync_rpmdb_updatevm.action $RPM_BUILD_ROOT/etc/yum/post-actions/
|
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/qubes
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/qubes/vm-templates
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/qubes/appvms
|
2011-03-11 01:38:04 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/qubes/servicevms
|
2011-06-30 01:07:47 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/qubes/vm-kernels
|
2010-04-05 20:58:57 +02:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/qubes/backup
|
2010-07-13 04:32:42 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/qubes/dvmdata
|
2010-04-05 20:58:57 +02:00
|
|
|
|
2011-06-22 00:44:48 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/qubes/updates
|
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/qubes/icons
|
|
|
|
cp icons/*.png $RPM_BUILD_ROOT/usr/share/qubes/icons
|
2011-06-11 23:07:29 +02:00
|
|
|
cp misc/qubes-vm.directory.template $RPM_BUILD_ROOT/usr/share/qubes/
|
|
|
|
cp misc/qubes-templatevm.directory.template $RPM_BUILD_ROOT/usr/share/qubes/
|
2011-07-12 19:46:00 +02:00
|
|
|
cp misc/qubes-appmenu-select.desktop $RPM_BUILD_ROOT/usr/share/qubes/
|
2011-06-23 23:23:45 +02:00
|
|
|
cp misc/vm-template.conf $RPM_BUILD_ROOT/usr/share/qubes/
|
2010-04-05 20:58:57 +02:00
|
|
|
|
2010-05-31 15:23:51 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
2010-07-16 10:26:55 +02:00
|
|
|
cp ../common/qubes_setup_dnat_to_ns $RPM_BUILD_ROOT/usr/lib/qubes
|
2010-09-17 15:16:01 +02:00
|
|
|
cp ../common/qubes_fix_nm_conf.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
2010-05-31 15:23:51 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/dhclient.d
|
2010-07-16 10:26:55 +02:00
|
|
|
ln -s /usr/lib/qubes/qubes_setup_dnat_to_ns $RPM_BUILD_ROOT/etc/dhclient.d/qubes_setup_dnat_to_ns.sh
|
2010-05-31 15:23:51 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/NetworkManager/dispatcher.d/
|
|
|
|
cp ../common/qubes_nmhook $RPM_BUILD_ROOT/etc/NetworkManager/dispatcher.d/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
|
2010-09-06 15:10:01 +02:00
|
|
|
cp ../common/iptables $RPM_BUILD_ROOT/etc/sysconfig
|
2011-06-06 01:42:04 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/security/limits.d
|
|
|
|
cp misc/limits-qubes.conf $RPM_BUILD_ROOT/etc/security/limits.d/99-qubes.conf
|
2010-07-06 16:22:34 +02:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib64/pm-utils/sleep.d
|
|
|
|
cp pm-utils/01qubes-sync-vms-clock $RPM_BUILD_ROOT/usr/lib64/pm-utils/sleep.d/
|
2011-03-29 12:39:01 +02:00
|
|
|
cp pm-utils/01qubes-suspend-netvm $RPM_BUILD_ROOT/usr/lib64/pm-utils/sleep.d/
|
2010-07-08 12:41:29 +02:00
|
|
|
cp pm-utils/02qubes-pause-vms $RPM_BUILD_ROOT/usr/lib64/pm-utils/sleep.d/
|
2010-07-06 16:22:34 +02:00
|
|
|
|
2010-10-06 11:00:52 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/log/qubes
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/run/qubes
|
|
|
|
|
2011-03-08 12:24:47 +01:00
|
|
|
install -D ../vchan/libvchan.so $RPM_BUILD_ROOT/%{_libdir}/libvchan.so
|
|
|
|
install -D ../u2mfn/libu2mfn.so $RPM_BUILD_ROOT/%{_libdir}/libu2mfn.so
|
|
|
|
|
2011-04-05 16:04:09 +02:00
|
|
|
install -d $RPM_BUILD_ROOT/etc/sudoers.d
|
|
|
|
install -m 0440 qubes.sudoers $RPM_BUILD_ROOT/etc/sudoers.d/qubes
|
|
|
|
|
2011-04-07 19:23:23 +02:00
|
|
|
install -d $RPM_BUILD_ROOT/etc/xdg/autostart
|
|
|
|
install -m 0644 qubes-guid.desktop $RPM_BUILD_ROOT/etc/xdg/autostart/
|
2011-07-16 02:04:56 +02:00
|
|
|
install -m 0644 qubes-update-watch.desktop $RPM_BUILD_ROOT/etc/xdg/autostart/
|
2011-04-07 19:23:23 +02:00
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
%post
|
2010-05-31 15:23:51 +02:00
|
|
|
|
2011-02-09 22:15:00 +01:00
|
|
|
# Create NetworkManager configuration if we do not have it
|
|
|
|
if ! [ -e /etc/NetworkManager/NetworkManager.conf ]; then
|
|
|
|
echo '[main]' > /etc/NetworkManager/NetworkManager.conf
|
|
|
|
echo 'plugins = keyfile' >> /etc/NetworkManager/NetworkManager.conf
|
|
|
|
echo '[keyfile]' >> /etc/NetworkManager/NetworkManager.conf
|
|
|
|
fi
|
2010-09-17 15:16:01 +02:00
|
|
|
/usr/lib/qubes/qubes_fix_nm_conf.sh
|
|
|
|
|
2010-06-14 23:52:21 +02:00
|
|
|
sed 's/^net.ipv4.ip_forward.*/net.ipv4.ip_forward = 1/' -i /etc/sysctl.conf
|
|
|
|
|
2011-06-23 14:39:17 +02:00
|
|
|
sed '/^autoballoon=/d;/^lockfile=/d' -i /etc/xen/xl.conf
|
|
|
|
echo 'autoballoon=0' >> /etc/xen/xl.conf
|
|
|
|
echo 'lockfile="/var/run/qubes/xl-lock"' >> /etc/xen/xl.conf
|
|
|
|
|
2011-06-22 00:44:48 +02:00
|
|
|
sed '/^reposdir=/d' -i /etc/yum.conf
|
|
|
|
echo reposdir=/etc/yum.real.repos.d >> /etc/yum.conf
|
|
|
|
|
2011-06-30 01:18:39 +02:00
|
|
|
sed '/^installonlypkgs=/d' -i /etc/yum.conf
|
|
|
|
echo 'installonlypkgs += kernel-qubes-vm' >> /etc/yum.conf
|
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
chkconfig --add qubes_core || echo "WARNING: Cannot add service qubes_core!"
|
|
|
|
chkconfig --add qubes_netvm || echo "WARNING: Cannot add service qubes_netvm!"
|
2011-04-08 22:57:11 +02:00
|
|
|
chkconfig --add qubes_setupdvm || echo "WARNING: Cannot add service qubes_setupdvm!"
|
2010-04-05 20:58:57 +02:00
|
|
|
|
2011-04-11 14:47:02 +02:00
|
|
|
chkconfig --level 5 qubes_core on || echo "WARNING: Cannot enable service qubes_core!"
|
|
|
|
chkconfig --level 5 qubes_netvm on || echo "WARNING: Cannot enable service qubes_netvm!"
|
|
|
|
chkconfig --level 5 qubes_setupdvm on || echo "WARNING: Cannot enable service qubes_setupdvm!"
|
2010-04-05 20:58:57 +02:00
|
|
|
|
2011-06-01 23:44:06 +02:00
|
|
|
# Conflicts with libxl stack, so disable it
|
|
|
|
service xend stop
|
|
|
|
chkconfig --level 5 xend off
|
|
|
|
|
2011-02-09 22:15:00 +01:00
|
|
|
HAD_SYSCONFIG_NETWORK=yes
|
|
|
|
if ! [ -e /etc/sysconfig/network ]; then
|
|
|
|
HAD_SYSCONFIG_NETWORK=no
|
|
|
|
# supplant empty one so NetworkManager init script does not complain
|
|
|
|
touch /etc/sysconfig/network
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Load evtchn module - xenstored needs it
|
|
|
|
modprobe evtchn
|
2011-06-23 20:04:27 +02:00
|
|
|
service xenstored start
|
2011-02-09 22:15:00 +01:00
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
if ! [ -e /var/lib/qubes/qubes.xml ]; then
|
|
|
|
# echo "Initializing Qubes DB..."
|
|
|
|
umask 007; sg qubes -c qvm-init-storage
|
|
|
|
fi
|
|
|
|
for i in /usr/share/qubes/icons/*.png ; do
|
|
|
|
xdg-icon-resource install --novendor --size 48 $i
|
|
|
|
done
|
|
|
|
|
2011-04-06 13:27:01 +02:00
|
|
|
# Because we now have an installer
|
|
|
|
# this script is always executed during upgrade
|
|
|
|
# and we decided not to restart core during upgrade
|
|
|
|
#service qubes_core start
|
|
|
|
|
2011-02-09 22:15:00 +01:00
|
|
|
if [ "x"$HAD_SYSCONFIG_NETWORK = "xno" ]; then
|
|
|
|
rm -f /etc/sysconfig/network
|
|
|
|
fi
|
2010-10-04 14:21:14 +02:00
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%pre
|
|
|
|
if ! grep -q ^qubes: /etc/group ; then
|
|
|
|
groupadd qubes
|
|
|
|
fi
|
|
|
|
|
2011-04-06 15:15:20 +02:00
|
|
|
#if [ "$1" -gt 1 ] ; then
|
2010-10-04 14:21:14 +02:00
|
|
|
# upgrading already installed package...
|
2010-10-04 17:51:01 +02:00
|
|
|
|
2011-04-06 13:27:01 +02:00
|
|
|
# Do not restart core during upgrade
|
|
|
|
# most upgrades only modifies qvm-* tools
|
|
|
|
# and it makes no sense to force all VMs shutdown
|
|
|
|
# /etc/init.d/qubes_core stop
|
2011-04-06 15:15:20 +02:00
|
|
|
#fi
|
2010-10-04 14:21:14 +02:00
|
|
|
|
2010-10-04 15:25:58 +02:00
|
|
|
%triggerin -- xen
|
|
|
|
|
|
|
|
%triggerin -- xen-runtime
|
2010-10-06 13:08:17 +02:00
|
|
|
sed -i 's/\/block /\/block.qubes /' /etc/udev/rules.d/xen-backend.rules
|
2010-10-04 15:25:58 +02:00
|
|
|
|
2010-10-04 14:21:14 +02:00
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
%preun
|
|
|
|
if [ "$1" = 0 ] ; then
|
2010-10-04 14:21:14 +02:00
|
|
|
# no more packages left
|
|
|
|
/etc/init.d/qubes_netvm stop
|
|
|
|
/etc/init.d/qubes_core stop
|
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
for i in /usr/share/qubes/icons/*.png ; do
|
|
|
|
xdg-icon-resource uninstall --novendor --size 48 $i
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
# no more packages left
|
|
|
|
chgrp root /etc/xen
|
|
|
|
chmod 700 /etc/xen
|
|
|
|
groupdel qubes
|
2010-06-02 15:50:22 +02:00
|
|
|
sed -i 's/\/block.qubes /\/block /' /etc/udev/rules.d/xen-backend.rules
|
2010-04-05 20:58:57 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/etc/init.d/qubes_core
|
|
|
|
/etc/init.d/qubes_netvm
|
2011-04-08 22:57:11 +02:00
|
|
|
/etc/init.d/qubes_setupdvm
|
2010-04-05 20:58:57 +02:00
|
|
|
/usr/bin/qvm-*
|
|
|
|
/usr/bin/qclipd
|
|
|
|
%{python_sitearch}/qubes/qubes.py
|
|
|
|
%{python_sitearch}/qubes/qubes.pyc
|
|
|
|
%{python_sitearch}/qubes/qubes.pyo
|
|
|
|
%{python_sitearch}/qubes/__init__.py
|
|
|
|
%{python_sitearch}/qubes/__init__.pyc
|
|
|
|
%{python_sitearch}/qubes/__init__.pyo
|
2010-08-30 11:40:19 +02:00
|
|
|
%{python_sitearch}/qubes/qmemman*.py*
|
2010-04-05 20:58:57 +02:00
|
|
|
/usr/lib/qubes/patch_appvm_initramfs.sh
|
|
|
|
/usr/lib/qubes/unbind_pci_device.sh
|
|
|
|
/usr/lib/qubes/unbind_all_network_devices
|
|
|
|
/usr/lib/qubes/convert_apptemplate2vm.sh
|
|
|
|
/usr/lib/qubes/convert_dirtemplate2vm.sh
|
|
|
|
/usr/lib/qubes/create_apps_for_appvm.sh
|
|
|
|
/usr/lib/qubes/remove_appvm_appmenus.sh
|
2010-09-27 17:41:03 +02:00
|
|
|
/usr/lib/qubes/reset_vm_configs.py*
|
2010-08-30 11:40:19 +02:00
|
|
|
/usr/lib/qubes/qmemman_daemon.py*
|
|
|
|
/usr/lib/qubes/meminfo-writer
|
2011-03-14 10:43:09 +01:00
|
|
|
/usr/lib/qubes/qfile-daemon-dvm*
|
2011-07-15 12:52:01 +02:00
|
|
|
/usr/lib/qubes/regenerate_initramfs.sh
|
2011-06-22 00:44:48 +02:00
|
|
|
/usr/lib/qubes/sync_rpmdb_updatevm.sh
|
2011-07-06 14:44:40 +02:00
|
|
|
/usr/lib/qubes/qubes-receive-updates
|
2011-06-22 00:44:48 +02:00
|
|
|
%attr(4750,root,qubes) /usr/lib/qubes/qfile-dom0-unpacker
|
2011-07-16 02:04:56 +02:00
|
|
|
/usr/lib/qubes/qubes-watch-updates.sh
|
2010-04-05 20:58:57 +02:00
|
|
|
%attr(770,root,qubes) %dir /var/lib/qubes
|
|
|
|
%attr(770,root,qubes) %dir /var/lib/qubes/vm-templates
|
|
|
|
%attr(770,root,qubes) %dir /var/lib/qubes/appvms
|
2011-03-11 01:38:04 +01:00
|
|
|
%attr(770,root,qubes) %dir /var/lib/qubes/servicevms
|
2010-04-05 20:58:57 +02:00
|
|
|
%attr(770,root,qubes) %dir /var/lib/qubes/backup
|
2010-07-13 04:32:42 +02:00
|
|
|
%attr(770,root,qubes) %dir /var/lib/qubes/dvmdata
|
2011-06-22 00:44:48 +02:00
|
|
|
%attr(770,root,qubes) %dir /var/lib/qubes/updates
|
2011-06-30 01:07:47 +02:00
|
|
|
%attr(770,root,qubes) %dir /var/lib/qubes/vm-kernels
|
2010-04-05 20:58:57 +02:00
|
|
|
%dir /usr/share/qubes/icons/*.png
|
2011-06-11 23:07:29 +02:00
|
|
|
/usr/share/qubes/qubes-vm.directory.template
|
|
|
|
/usr/share/qubes/qubes-templatevm.directory.template
|
2011-07-12 19:46:00 +02:00
|
|
|
/usr/share/qubes/qubes-appmenu-select.desktop
|
2011-06-23 23:23:45 +02:00
|
|
|
/usr/share/qubes/vm-template.conf
|
2010-07-16 10:26:55 +02:00
|
|
|
/usr/lib/qubes/qubes_setup_dnat_to_ns
|
2010-09-17 15:16:01 +02:00
|
|
|
/usr/lib/qubes/qubes_fix_nm_conf.sh
|
2010-05-31 15:23:51 +02:00
|
|
|
/etc/dhclient.d/qubes_setup_dnat_to_ns.sh
|
|
|
|
/etc/NetworkManager/dispatcher.d/qubes_nmhook
|
|
|
|
/etc/sysconfig/iptables
|
2011-07-09 20:43:27 +02:00
|
|
|
/etc/sysconfig/modules/qubes-dom0.modules
|
2010-07-06 16:22:34 +02:00
|
|
|
/usr/lib64/pm-utils/sleep.d/01qubes-sync-vms-clock
|
2011-03-29 12:39:01 +02:00
|
|
|
/usr/lib64/pm-utils/sleep.d/01qubes-suspend-netvm
|
2010-07-08 12:41:29 +02:00
|
|
|
/usr/lib64/pm-utils/sleep.d/02qubes-pause-vms
|
2011-04-19 01:38:07 +02:00
|
|
|
/usr/bin/xenstore-watch-qubes
|
2010-07-16 10:26:55 +02:00
|
|
|
/usr/lib/qubes/qubes_restore
|
|
|
|
/usr/lib/qubes/qubes_prepare_saved_domain.sh
|
2011-07-26 16:36:59 +02:00
|
|
|
/usr/lib/qubes/qubes_update_dispvm_savefile_with_progress.sh
|
2010-06-02 15:50:22 +02:00
|
|
|
/etc/xen/scripts/block.qubes
|
2011-02-26 03:42:55 +01:00
|
|
|
/etc/xen/scripts/block-snapshot
|
|
|
|
/etc/xen/scripts/block-origin
|
2010-09-06 17:07:42 +02:00
|
|
|
/etc/xen/scripts/vif-route-qubes
|
2011-03-04 16:32:58 +01:00
|
|
|
/usr/lib/qubes/qrexec_client
|
2011-07-06 13:56:57 +02:00
|
|
|
/usr/lib/qubes/qubes_rpc_multiplexer
|
2011-07-05 18:35:03 +02:00
|
|
|
/usr/lib/qubes/qrexec_policy
|
|
|
|
%dir /etc/qubes_rpc/policy
|
2011-07-06 10:17:58 +02:00
|
|
|
/etc/qubes_rpc/policy/qubes.Filecopy
|
2011-07-06 12:32:20 +02:00
|
|
|
/etc/qubes_rpc/policy/qubes.OpenInVM
|
2011-07-06 14:09:36 +02:00
|
|
|
/etc/qubes_rpc/policy/qubes.SyncAppMenus
|
2011-07-06 16:27:09 +02:00
|
|
|
/etc/qubes_rpc/policy//qubes.ReceiveUpdates
|
2011-07-06 14:09:36 +02:00
|
|
|
/etc/qubes_rpc/qubes.SyncAppMenus
|
2011-07-06 16:27:09 +02:00
|
|
|
/etc/qubes_rpc/qubes.ReceiveUpdates
|
2011-03-04 16:32:58 +01:00
|
|
|
%attr(4750,root,qubes) /usr/lib/qubes/qrexec_daemon
|
2010-07-22 14:54:34 +02:00
|
|
|
%attr(4750,root,qubes) /usr/lib/qubes/xenfreepages
|
2010-10-06 11:00:52 +02:00
|
|
|
%attr(2770,root,qubes) %dir /var/log/qubes
|
|
|
|
%attr(770,root,qubes) %dir /var/run/qubes
|
2011-03-08 12:24:47 +01:00
|
|
|
%{_libdir}/libvchan.so
|
|
|
|
%{_libdir}/libu2mfn.so
|
2011-06-22 00:44:48 +02:00
|
|
|
/etc/yum.real.repos.d/qubes-cached.repo
|
2011-04-05 16:04:09 +02:00
|
|
|
/etc/sudoers.d/qubes
|
2011-04-07 19:23:23 +02:00
|
|
|
/etc/xdg/autostart/qubes-guid.desktop
|
2011-07-16 02:04:56 +02:00
|
|
|
/etc/xdg/autostart/qubes-update-watch.desktop
|
2011-06-06 01:42:04 +02:00
|
|
|
/etc/security/limits.d/99-qubes.conf
|
2011-06-22 00:44:48 +02:00
|
|
|
/etc/yum/post-actions/qubes_sync_rpmdb_updatevm.action
|