2011-07-02 12:34:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2011-09-22 11:15:28 +00:00
|
|
|
SRC_ROOT=../..
|
|
|
|
[ -n "$1" ] && SRC_ROOT=$1
|
|
|
|
|
2011-09-24 09:58:14 +00:00
|
|
|
: DIST=fc14
|
|
|
|
|
2011-07-02 12:34:17 +00:00
|
|
|
rm -fr rpms_to_install/*
|
2012-06-08 14:48:38 +00:00
|
|
|
pushd rpms_to_install
|
2012-06-08 14:51:14 +00:00
|
|
|
# FIXME: rel hardcoded
|
|
|
|
VERSION_CORE=$(cat $SRC_ROOT/core/version_vm)-1.$DIST.x86_64
|
2012-06-25 11:15:15 +00:00
|
|
|
ln -s $SRC_ROOT/core/rpm/x86_64/qubes-core-vm-$VERSION_CORE.rpm qubes-core-vm.rpm
|
|
|
|
ln -s $SRC_ROOT/core/rpm/x86_64/qubes-core-vm-libs-$VERSION_CORE.rpm qubes-core-vm-libs.rpm
|
2012-01-15 15:26:42 +00:00
|
|
|
if [ "${DIST/fc/}" -ge 15 ]; then
|
2012-06-25 11:15:15 +00:00
|
|
|
ln -s $SRC_ROOT/core/rpm/x86_64/qubes-core-vm-systemd-$VERSION_CORE.rpm qubes-core-vm-init.rpm
|
2012-01-15 15:26:42 +00:00
|
|
|
else
|
2012-06-25 11:15:15 +00:00
|
|
|
ln -s $SRC_ROOT/core/rpm/x86_64/qubes-core-vm-sysvinit-$VERSION_CORE.rpm qubes-core-vm-init.rpm
|
2012-01-15 15:26:42 +00:00
|
|
|
fi
|
2011-07-02 12:34:17 +00:00
|
|
|
|
2012-06-08 14:51:14 +00:00
|
|
|
# FIXME: rel hardcoded
|
|
|
|
VERSION_GUI=$(cat $SRC_ROOT/gui/version)-1.$DIST.x86_64
|
2012-06-25 11:15:15 +00:00
|
|
|
ln -s $SRC_ROOT/gui/rpm/x86_64/qubes-gui-vm-$VERSION_GUI.rpm qubes-gui-vm.rpm
|
2011-07-02 12:34:17 +00:00
|
|
|
|
2012-06-08 14:51:14 +00:00
|
|
|
VERSION_XEN=$(cat $SRC_ROOT/xen/version)-$(cat $SRC_ROOT/xen/rel).qubes.x86_64
|
2012-06-25 11:15:15 +00:00
|
|
|
ln -s $SRC_ROOT/xen/rpm/x86_64/xen-libs-$VERSION_XEN.rpm xen-libs.rpm
|
|
|
|
ln -s $SRC_ROOT/xen/rpm/x86_64/xen-licenses-$VERSION_XEN.rpm xen-licenses.rpm
|
|
|
|
ln -s $SRC_ROOT/xen/rpm/x86_64/xen-qubes-vm-essentials-$VERSION_XEN.rpm xen-qubes-vm-essentials.rpm
|
2011-12-18 12:42:57 +00:00
|
|
|
|
|
|
|
# Install also addons
|
2012-06-08 14:51:14 +00:00
|
|
|
# FIXME: rel hardcoded
|
|
|
|
VERSION_TB=$(cat $SRC_ROOT/addons/thunderbird-qubes/version)-1.$DIST.x86_64
|
2012-06-25 11:15:15 +00:00
|
|
|
ln -s $SRC_ROOT/addons/rpm/x86_64/thunderbird-qubes-$VERSION_TB.rpm thunderbird-qubes.rpm
|
2012-06-08 14:51:14 +00:00
|
|
|
# FIXME: rel hardcoded
|
|
|
|
VERSION_GPG=$(cat $SRC_ROOT/addons/gpg-split/version)-1.$DIST.x86_64
|
2012-06-25 11:15:15 +00:00
|
|
|
ln -s $SRC_ROOT/addons/rpm/x86_64/qubes-gpg-split-$VERSION_GPG.rpm qubes-gpg-split.rpm
|
2012-06-08 14:48:38 +00:00
|
|
|
|
|
|
|
popd
|