diff --git a/common/qubes.repo b/common/qubes.repo new file mode 100644 index 00000000..baf18424 --- /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 7ff2a1c0..bf02b5f7 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-dom0.spec b/rpm_spec/core-dom0.spec index a90119b3..221d8f2b 100644 --- a/rpm_spec/core-dom0.spec +++ b/rpm_spec/core-dom0.spec @@ -83,6 +83,8 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/qubes/backup mkdir -p $RPM_BUILD_ROOT/usr/share/qubes/icons cp icons/*.png $RPM_BUILD_ROOT/usr/share/qubes/icons +mkdir -p $RPM_BUILD_ROOT/etc/yum.repos.d +cp ../common/qubes.repo $RPM_BUILD_ROOT/etc/yum.repos.d %post if [ "$1" != 1 ] ; then @@ -160,3 +162,4 @@ fi %attr(770,root,qubes) %dir /var/lib/qubes/appvms %attr(770,root,qubes) %dir /var/lib/qubes/backup %dir /usr/share/qubes/icons/*.png +/etc/yum.repos.d/qubes.repo diff --git a/rpm_spec/core-netvm.spec b/rpm_spec/core-netvm.spec index 99404df2..7ee2fa80 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