From 1236e1fc514dff9221b53e3e4e2d2126fe6bb960 Mon Sep 17 00:00:00 2001 From: HougeLangley Date: Sun, 11 Jul 2021 16:02:32 +0800 Subject: [PATCH] dev-util/arch-install-scripts: Fix arch-install-scripts not working and bump to v24 --- app-crypt/archlinux-keyring/Manifest | 1 + .../archlinux-keyring-20210616.ebuild | 34 ++++++++ app-crypt/archlinux-keyring/metadata.xml | 8 ++ dev-util/arch-install-scripts/Manifest | 2 +- ....ebuild => arch-install-scripts-24.ebuild} | 4 +- dev-util/arch-install-scripts/metadata.xml | 4 +- sys-apps/pacman-mirrorlist/Manifest | 1 + sys-apps/pacman-mirrorlist/metadata.xml | 8 ++ .../pacman-mirrorlist-20210509.ebuild | 29 +++++++ sys-apps/pacman/Manifest | 1 + sys-apps/pacman/metadata.xml | 20 +++++ sys-apps/pacman/pacman-6.0.0.ebuild | 85 +++++++++++++++++++ 12 files changed, 193 insertions(+), 4 deletions(-) create mode 100644 app-crypt/archlinux-keyring/Manifest create mode 100644 app-crypt/archlinux-keyring/archlinux-keyring-20210616.ebuild create mode 100644 app-crypt/archlinux-keyring/metadata.xml rename dev-util/arch-install-scripts/{arch-install-scripts-20.ebuild => arch-install-scripts-24.ebuild} (72%) create mode 100644 sys-apps/pacman-mirrorlist/Manifest create mode 100644 sys-apps/pacman-mirrorlist/metadata.xml create mode 100644 sys-apps/pacman-mirrorlist/pacman-mirrorlist-20210509.ebuild create mode 100644 sys-apps/pacman/Manifest create mode 100644 sys-apps/pacman/metadata.xml create mode 100644 sys-apps/pacman/pacman-6.0.0.ebuild diff --git a/app-crypt/archlinux-keyring/Manifest b/app-crypt/archlinux-keyring/Manifest new file mode 100644 index 0000000000..ef537c7cb5 --- /dev/null +++ b/app-crypt/archlinux-keyring/Manifest @@ -0,0 +1 @@ +DIST archlinux-keyring-20210616.tar.gz 1004639 BLAKE2B 7211b56b9ea714ae5ad56e5eaa1804abfc94edd629fbb9e74ac885547b9de3fc975d792576a15f583c266b318b617733d97be7a4b0ea4e844651547115e08225 SHA512 0f314136232183cc00cda53f9987148b8d40643bfd686643bd2085a20c405754ebc4f2912866b576937e8759358df4f571885137aa9548bbbdb82adb70eb6268 diff --git a/app-crypt/archlinux-keyring/archlinux-keyring-20210616.ebuild b/app-crypt/archlinux-keyring/archlinux-keyring-20210616.ebuild new file mode 100644 index 0000000000..7ad01de8a6 --- /dev/null +++ b/app-crypt/archlinux-keyring/archlinux-keyring-20210616.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="GnuPG keyring of Archlinux developer keys" +HOMEPAGE="https://gitlab.archlinux.org/archlinux/archlinux-keyring" +SRC_URI="https://sources.archlinux.org/other/${PN}/${P}.tar.gz" +LICENSE="GPL-2" # "GPL" for the Arch linux package +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + # bluntly remove the makefile. + rm -f Makefile || die "Couldn't remove Makefile" + + default +} + +src_install() { + # Take the directory of sys-apps/pacman to have a sane default of + # upstream respectivly Archlinux. + insinto /usr/share/pacman/keyrings/ + doins archlinux{.gpg,-trusted,-revoked} +} + +pkg_postinst() { + einfo "" + einfo "This package only installs the keyring files while sys-apps/pacman" + einfo "initializes these keyrings to actually use it. This is a different" + einfo "behaviour from Archlinux, but is necessary to avoid circular deps." + einfo "" +} diff --git a/app-crypt/archlinux-keyring/metadata.xml b/app-crypt/archlinux-keyring/metadata.xml new file mode 100644 index 0000000000..14d02b204b --- /dev/null +++ b/app-crypt/archlinux-keyring/metadata.xml @@ -0,0 +1,8 @@ + + + + + holgersson@posteo.de + Nils Freydank + + diff --git a/dev-util/arch-install-scripts/Manifest b/dev-util/arch-install-scripts/Manifest index f8ee6fcf7d..4fc1eab7dc 100644 --- a/dev-util/arch-install-scripts/Manifest +++ b/dev-util/arch-install-scripts/Manifest @@ -1 +1 @@ -DIST arch-install-scripts-20.tar.gz 15410 BLAKE2B b8912a592fc418f95fd57a33016ba10010a6b1dc2a23867b6bbcc073c9ebe19ab09d1721b00e8e5704c0c60862f57993f9c3719ecc992f860d58bba086fb0382 +DIST arch-install-scripts-24.tar.gz 17917 BLAKE2B 2d4ab5cce19fed999fa553cad93ed9bf291468338d444662a5ca2ee0c2268abf6c15bf73fc5c3a743487326652b5edd6528a3c614151f6d2b2a7896fbc754ce3 diff --git a/dev-util/arch-install-scripts/arch-install-scripts-20.ebuild b/dev-util/arch-install-scripts/arch-install-scripts-24.ebuild similarity index 72% rename from dev-util/arch-install-scripts/arch-install-scripts-20.ebuild rename to dev-util/arch-install-scripts/arch-install-scripts-24.ebuild index 73f69501a3..d08ddb9c09 100644 --- a/dev-util/arch-install-scripts/arch-install-scripts-20.ebuild +++ b/dev-util/arch-install-scripts/arch-install-scripts-24.ebuild @@ -5,11 +5,11 @@ EAPI=6 DESCRIPTION="Arch Linux install tools (pacstrap, genfstab, arch-chroot)" HOMEPAGE="https://projects.archlinux.org/arch-install-scripts.git/" -SRC_URI="https://projects.archlinux.org/${PN}.git/snapshot/${P}.tar.gz" +SRC_URI="https://github.com/archlinux/arch-install-scripts/archive/refs/tags/v${PV}.tar.gz -> arch-install-scripts-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64" IUSE="" DEPEND="" diff --git a/dev-util/arch-install-scripts/metadata.xml b/dev-util/arch-install-scripts/metadata.xml index 6f49eba8f4..793bb6c72d 100644 --- a/dev-util/arch-install-scripts/metadata.xml +++ b/dev-util/arch-install-scripts/metadata.xml @@ -1,5 +1,7 @@ - + + hougelangley1987@gmail.com + 苏业钦 diff --git a/sys-apps/pacman-mirrorlist/Manifest b/sys-apps/pacman-mirrorlist/Manifest new file mode 100644 index 0000000000..e267b16084 --- /dev/null +++ b/sys-apps/pacman-mirrorlist/Manifest @@ -0,0 +1 @@ +DIST pacman-mirrorlist-20210509 38451 BLAKE2B fa924a08c389803bfb528cc29de03a974df6f75b0ea562fb025fa32e033c58a323600568e8e0665610a8f5a02b7b9e91d0677077e7779276c3af47631aa887c1 SHA512 2a83087870df34d6980177f9891e3317e1f3752e8e73918f74c7745280ecc85d8c6cc32c861de4f26a6bf860c00ba1c4bb98d21f32602cc406c7ef161ab55638 diff --git a/sys-apps/pacman-mirrorlist/metadata.xml b/sys-apps/pacman-mirrorlist/metadata.xml new file mode 100644 index 0000000000..14d02b204b --- /dev/null +++ b/sys-apps/pacman-mirrorlist/metadata.xml @@ -0,0 +1,8 @@ + + + + + holgersson@posteo.de + Nils Freydank + + diff --git a/sys-apps/pacman-mirrorlist/pacman-mirrorlist-20210509.ebuild b/sys-apps/pacman-mirrorlist/pacman-mirrorlist-20210509.ebuild new file mode 100644 index 0000000000..df0b8ce028 --- /dev/null +++ b/sys-apps/pacman-mirrorlist/pacman-mirrorlist-20210509.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +COMMIT_ID="eec6e21194eae9877e73c92ffdf211ebc4b260f3" + +DESCRIPTION="Repository list for Archlinux's binary package manager" +HOMEPAGE="https://archlinux.org/mirrorlist/" +SRC_URI="https://raw.githubusercontent.com/archlinux/svntogit-packages/${COMMIT_ID}/trunk/mirrorlist -> ${P}" +KEYWORDS="~amd64" +LICENSE="GPL-2" +SLOT=0 +S="${WORKDIR}" + +src_unpack() { + cp "${DISTDIR}/${P}" mirrorlist +} + +src_install() { + insinto etc/pacman.d + doins mirrorlist +} + +pkg_postinst() { + einfo + einfo "This packages installs only a plain list of mirrors for sys-apps/pacman." + einfo +} diff --git a/sys-apps/pacman/Manifest b/sys-apps/pacman/Manifest new file mode 100644 index 0000000000..32eda8cfcc --- /dev/null +++ b/sys-apps/pacman/Manifest @@ -0,0 +1 @@ +DIST pacman-6.0.0.tar.xz 860624 BLAKE2B 79443cbee5df7b367267c70da04d570455a42d9cfa2e623333fd30e640d3cd9f01da382134efcd1c84202331499fd134b23dde8788a89f6949f0eb40e0e7a38b SHA512 78fc5b70a2fc356746f8a4580ce7fd01b25b3463db1b9b008f02a97e22c236fdb1d09985769caf6ac675d9b1091ba0f71afa38ec5759cf7911f1b1a33586f563 diff --git a/sys-apps/pacman/metadata.xml b/sys-apps/pacman/metadata.xml new file mode 100644 index 0000000000..3fc6bd2b74 --- /dev/null +++ b/sys-apps/pacman/metadata.xml @@ -0,0 +1,20 @@ + + + + + mailto:pacman-dev@archlinux.org + https://git.archlinux.org/pacman.git/tree/NEWS + https://archlinux.org/pacman/ + + + holgersson@posteo.de + Nils Freydank + + + Reflect major ABI of libalpm.so. + + + Install extended documentation using app-doc/doxygen. (Man pages are included by default.) + Enable GPG signature verification using app-crypt/gpgme + + diff --git a/sys-apps/pacman/pacman-6.0.0.ebuild b/sys-apps/pacman/pacman-6.0.0.ebuild new file mode 100644 index 0000000000..933c57538f --- /dev/null +++ b/sys-apps/pacman/pacman-6.0.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit meson + +DESCRIPTION="Archlinux's binary package manager" +HOMEPAGE="https://archlinux.org/pacman/ https://wiki.archlinux.org/title/Pacman" + +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.archlinux.org/pacman.git" +else + SRC_URI="https://sources.archlinux.org/other/pacman/${P}.tar.xz" + # Do *not* re-add ~x86! + # https://www.archlinux.org/news/phasing-out-i686-support/ + KEYWORDS="-* ~amd64" +fi + +LICENSE="GPL-2" +SLOT="0/10" + +IUSE="curl doc +gpg test" +DEPEND=" + app-crypt/archlinux-keyring + app-arch/libarchive:=[lzma] + gpg? ( >=app-crypt/gpgme-1.13.0:= ) + curl? ( net-misc/curl ) + dev-libs/openssl:0= + virtual/libiconv + virtual/libintl +" +RDEPEND=" + ${DEPEND} + sys-apps/pacman-mirrorlist +" +BDEPEND=" + app-text/asciidoc + doc? ( app-doc/doxygen ) + test? ( + sys-apps/fakeroot + sys-apps/fakechroot + ) +" + +# Plenty tests fail because we're actually not on a archlinux system. +RESTRICT="test" + +src_configure() { + local emesonargs=( + -Dbuildstatic=false + # Help protect Gentoo users from shooting into their feet. + -Droot-dir="${EPREFIX}/var/chroot/archlinux" + # full doc with doxygen + $(meson_feature doc doxygen) + $(meson_feature gpg gpgme) + $(meson_use curl libcurl) + ) + if [[ "${PV}" == *9999 ]]; then + emesonargs+=( -Duse-git-version=true ) + fi + meson_src_configure +} + +pkg_postinst() { + + /usr/bin/pacman-key --init || die + /usr/bin/pacman-key --populate archlinux || die + + einfo + einfo "The default root dir was set to ${EPREFIX}/var/chroot/archlinux" + einfo "to avoid breaking Gentoo systems due to oscitancy." + einfo "If you prefer another directory, take a look at" + einfo "pacman's parameter -r|--root." + einfo + einfo "You will need to setup at least one mirror in" + einfo " /etc/pacman.d/mirrorlist." + einfo "This list is installed by sys-apps/pacman-mirrorlist but can be" + einfo "updated manually by fetching from" + einfo "https://wiki.archlinux.org/index.php/Mirror" + einfo + einfo "With pacman 5.1 contrib packages were moved into a seprate package." + einfo +}