Add qubes.repo to all qubes-core-* rpms.

This commit is contained in:
Rafal Wojtczuk 2010-05-20 12:54:05 +02:00 committed by Joanna Rutkowska
parent 046802948f
commit 940cae99d6
3 changed files with 14 additions and 0 deletions

6
common/qubes.repo Normal file
View File

@ -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

View File

@ -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

View File

@ -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