From d449d751622f4c020a79fff78dcec8e311acc222 Mon Sep 17 00:00:00 2001 From: Olivier MEDOC Date: Tue, 12 Jul 2016 11:20:12 +0200 Subject: [PATCH] archlinux: Setup default package repository --- archlinux/PKGBUILD | 12 ++++++++++-- archlinux/PKGBUILD-qubes-repo-3.1.conf | 2 ++ archlinux/PKGBUILD-qubes-repo-3.2.conf | 2 ++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 archlinux/PKGBUILD-qubes-repo-3.1.conf create mode 100644 archlinux/PKGBUILD-qubes-repo-3.2.conf diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD index bbfa3c1..2109df8 100644 --- a/archlinux/PKGBUILD +++ b/archlinux/PKGBUILD @@ -6,7 +6,7 @@ # Maintainer: Olivier Medoc pkgname=qubes-vm-core pkgver=`cat version` -pkgrel=8 +pkgrel=9 epoch= pkgdesc="The Qubes core files for installation inside a Qubes VM." arch=("x86_64") @@ -27,14 +27,17 @@ changelog= source=( PKGBUILD.qubes-ensure-lib-modules.service PKGBUILD.qubes-update-desktop-icons.hook PKGBUILD-qubes-noupgrade.conf + PKGBUILD-qubes-repo-3.1.conf + PKGBUILD-qubes-repo-3.2.conf ) noextract=() md5sums=( '88f4b3d5b156888a9d38f5bc28702ab8' 'bbfb946d6d2787e5abf8e2236502a3d4' 'c1c1b86eed48cc0f943f21b9a1df8b8e' + '36bf82df048e81250e7ba80b3224bddc' + 'd5898def7bad7fd92ea60f0bf48174e3' ) - build() { for source in autostart-dropins qubes-rpc qrexec misc Makefile vm-init.d vm-systemd network ; do @@ -90,6 +93,11 @@ package() { mkdir -p ${pkgdir}/etc/pacman.d install -m 644 $srcdir/PKGBUILD-qubes-noupgrade.conf ${pkgdir}/etc/pacman.d/qubes-noupgrade.conf + # Install pacman repository + release=`echo $pkgver | cut -d '.' -f 1,2` + echo "Installing repository for release ${release}" + install -m 644 $srcdir/PKGBUILD-qubes-repo-${release}.conf ${pkgdir}/etc/pacman.d/99-qubes-repository-${release}.conf + # Archlinux specific: enable autologin on tty1 mkdir -p $pkgdir/etc/systemd/system/getty@tty1.service.d/ cat < $pkgdir/etc/systemd/system/getty@tty1.service.d/autologin.conf diff --git a/archlinux/PKGBUILD-qubes-repo-3.1.conf b/archlinux/PKGBUILD-qubes-repo-3.1.conf new file mode 100644 index 0000000..df5834c --- /dev/null +++ b/archlinux/PKGBUILD-qubes-repo-3.1.conf @@ -0,0 +1,2 @@ +[qubes-r3.1] +Server = http://olivier.medoc.free.fr/archlinux/$repo diff --git a/archlinux/PKGBUILD-qubes-repo-3.2.conf b/archlinux/PKGBUILD-qubes-repo-3.2.conf new file mode 100644 index 0000000..6f7c53d --- /dev/null +++ b/archlinux/PKGBUILD-qubes-repo-3.2.conf @@ -0,0 +1,2 @@ +[qubes-r3.2] +Server = http://olivier.medoc.free.fr/archlinux/$repo \ No newline at end of file