From 940cae99d63bd653a374ad87309fb316621ddd19 Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Thu, 20 May 2010 12:54:05 +0200 Subject: [PATCH] Add qubes.repo to all qubes-core-* rpms. --- common/qubes.repo | 6 ++++++ rpm_spec/core-appvm.spec | 4 ++++ rpm_spec/core-netvm.spec | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 common/qubes.repo diff --git a/common/qubes.repo b/common/qubes.repo new file mode 100644 index 0000000..baf1842 --- /dev/null +++ b/common/qubes.repo @@ -0,0 +1,6 @@ +[qubes] +name = Qubes OS Repository +baseurl = http://qubes-os.org/yum/rpm +gpgkey = http://qubes-os.org/keys/qubes-release-1-signing-key.asc +gpgcheck = 1 + diff --git a/rpm_spec/core-appvm.spec b/rpm_spec/core-appvm.spec index 7ff2a1c..bf02b5f 100644 --- a/rpm_spec/core-appvm.spec +++ b/rpm_spec/core-appvm.spec @@ -67,6 +67,9 @@ cp iptables $RPM_BUILD_ROOT/etc/sysconfig/ mkdir -p $RPM_BUILD_ROOT/mnt/incoming mkdir -p $RPM_BUILD_ROOT/mnt/outgoing mkdir -p $RPM_BUILD_ROOT/mnt/removable +mkdir -p $RPM_BUILD_ROOT/etc/yum.repos.d +cp ../common/qubes.repo $RPM_BUILD_ROOT/etc/yum.repos.d + %post @@ -162,3 +165,4 @@ rm -rf $RPM_BUILD_ROOT %dir /mnt/incoming %dir /mnt/outgoing %dir /mnt/removable +/etc/yum.repos.d/qubes.repo diff --git a/rpm_spec/core-netvm.spec b/rpm_spec/core-netvm.spec index 99404df..7ee2fa8 100644 --- a/rpm_spec/core-netvm.spec +++ b/rpm_spec/core-netvm.spec @@ -61,6 +61,9 @@ mkdir -p $RPM_BUILD_ROOT/etc/dhclient.d ln -s /usr/bin/qubes_setup_dnat_to_ns $RPM_BUILD_ROOT/etc/dhclient.d/qubes_setup_dnat_to_ns.sh mkdir -p $RPM_BUILD_ROOT/etc/NetworkManager/dispatcher.d/ cp qubes_nmhook $RPM_BUILD_ROOT/etc/NetworkManager/dispatcher.d/ +mkdir -p $RPM_BUILD_ROOT/etc/yum.repos.d +cp ../common/qubes.repo $RPM_BUILD_ROOT/etc/yum.repos.d + %post sed 's/^net.ipv4.ip_forward.*/net.ipv4.ip_forward = 1/' -i /etc/sysctl.conf @@ -155,3 +158,4 @@ rm -rf $RPM_BUILD_ROOT /usr/bin/qubes_setup_dnat_to_ns /etc/dhclient.d/qubes_setup_dnat_to_ns.sh /etc/NetworkManager/dispatcher.d/qubes_nmhook +/etc/yum.repos.d/qubes.repo