mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 22:11:39 +02:00
portage: import ebuild for 2.2.18
This is the current stable version from upstream.
This commit is contained in:
parent
2f623f614c
commit
51d04bbe3a
@ -1,42 +1,2 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX README.RESCUE 137 SHA256 69bea0c755eab59b6b4d90838b8551744f0b0c8eeac170b1cd13a71ee83f9ac4 SHA512 dba0f0d6d4cd140e636cc70dfb7bdb298e2f2fb040bc07b0874cac994bdbabd26bfd9361d85a0f8b9a92a185281e4901606b9e4f563afdc8867341bbe6af1cb0 WHIRLPOOL 713fcc790442999d56e13efaf536fec9954dadeda680b3642d0358311332096ddedf8b55697bd1ca620d84f0dc7d025ff7931e086c74c1f5032be72dca2ff8f5
|
||||
DIST portage-2.1.12.2.tar.bz2 868695 SHA256 700cf7118d60aa14a2d759887e50988a3e527e04fe980100f25cc69357ae2437 SHA512 53bfbcad9743b2613501191f4883d0b99d1e99ca6fdff550996121cb47c7b8333837d825f6174cb82f83cc16069ebe66a0aba0cc7b13f86a65a055d961e2c70b WHIRLPOOL 736dcc71a323d83c7fd75aa9f5c047b0fe234c66545a1744a2d69ca1b15af4d9bc60d9dfb2f9e76f1645e4d9c061f86bc56f4beac4e146b5cef970198b9010f6
|
||||
DIST portage-2.1.6.7.patch.bz2 50118 SHA256 5f0605b51a24d23703330b040d2f7154322284db3e0cefa7499002ff1fa733c0 SHA512 dd2acc1d436cad77cfc83c4dec79316763c1fb88d61b7702e8e47e6f31b2b9fe49e8a4cf4a947614a2acd6db2ef080ed8b4ae5fce9d9be29d7e218a0ec1576c0 WHIRLPOOL 050f923249fde7c4774a2a8a944889e4270a89b00441f1923c01ab0be38f107503e018d7ab7a7f42615e7e375f0f6c0eb3bdbf3ff4ce1ce226957238a729b1ee
|
||||
DIST portage-2.1.6.7_p1.patch.bz2 4741 SHA256 ddaae2ad8c01e6477bfe22e23a4da57eb9d079a27a17a08385d56fe2c49eec30 SHA512 39058d815827b340787d813515ed4fb8c52c4fb0caa12ae70c8a9a97b9ba16c2bf4177190cb7d1c508055ce8a7aaa390ba9b31642c7d74bfb4a14d729e720617 WHIRLPOOL 8eab9574ed2e6cabac593d93f8b6ff71465c01376e7eec4cf357c336b5ed3d4f3fb3521991148ba4e34ba00c56bec5534c98311167c03866812277a8d88b0494
|
||||
DIST portage-2.1.6.tar.bz2 518771 SHA256 b1c507445b3858449c861568f477e1cfab8b2326ded906b852c5193fb3839647 SHA512 d035f84601802ecaea3c0edea037a783fec743733bd40895eb5bb8a220449eb24cf1e2623cbca2e378197caba63a833d8cc54f1e49d886266307288b0adcfbdc WHIRLPOOL 25b6a6e3810f428c630ec7a6dc3cf2cfbe6bfdf276553786e1436b2630532ab442186e427bc75f249a224c5171b508a92303ce352b07be1a8a4d805c568ec10f
|
||||
DIST portage-2.2.1.tar.bz2 901964 SHA256 fe75ead9460bae22d66c18e263e3fc71b9e9415c8d5aa737351997fd2a42dde7 SHA512 775544325d3258d958126241c3a6c332eb222da6f3aeb7b4363d1ab76839cf50c8fcce0d3108648045bbcae4470ef2314806ca5ff71abf1bae6d0b51ea3c5803 WHIRLPOOL 6a0b24d7df52e07716e5518f1c31ac52d5d14c0ad5e117c40ba8e852e7aa3c63ecbdf375b83127f1070a0e2a5083820f81799da1b7ec1d18dcd0455e3ed985fd
|
||||
DIST portage-2.2.10.tar.bz2 878039 SHA256 f463a98062f09f41da680ba7d20621b3076de86844a04340725df7d734965fa2 SHA512 4f563a67388b2593f08833281f6da004dd6af3a7e697b89d735ab24b8b9f43e1d1e66202f8607710dcde6423672d6f97c7ad32c7f983f8491a05543e453fedae WHIRLPOOL 0f2fd79ba4117c1cf328c9e08ac35990869b0518ee8eba10453b6c957a351159de4f3c0b7e7242f8b89c2504d4403e7ed36c8c2da010fa2ec75e3f9e67858069
|
||||
DIST portage-2.2.7.tar.bz2 906952 SHA256 005af49dbf9a58425b1f47904ce4d2398eb2155082169ec50215319e876273af SHA512 326623785bdf80e11a05a3c9ed0549a659d4549f1636d4fed2b204a3b751941ea101a12f75323eda86c224f7a7b67638e2fe0572327879a73d1721cfaf5be40b WHIRLPOOL 1c989c016503b1ad189fcdff26fce3e77aa5b0f9c1d4830fd99e5120a49c9dafb1220a30b61cddd84b3db824e738eac993e8944fafed85417fafa0dda6eeedbc
|
||||
DIST portage-2.2.18.tar.bz2 942561 SHA256 e0d54f2fbcdc8b5fce716475183fa6e889b6fa8178c92d65a850df73f1636560 SHA512 be4f95bc04a61cdb371fc66a03d2183961bfd458e9b2b89cf8cab8c9e70bde4119be266177d947e31429627609ed75a75c21abfe4b674ca529632d5728e8e8a6 WHIRLPOOL f334bf5198d2214de557a046ed3217e23d48d8f8d7d64fb0bd2611dd5c8725139eaf7d1e1065f822d8816f3979e86d6a6f8df4d2f4605df0b5c157d6bbf09a6d
|
||||
DIST portage-2.2.8.tar.bz2 874672 SHA256 c1074e01173df5384e003598dbc5f64f09e92f83fd26faab2f88f9f0bc64aa7e SHA512 acc47d94ff8c08e5a7bf2d4c4e600863430dd1e7d0bb8b4254d6477a498933cae663db84debf9487d2243c2cba689629ef8e8b6cf108e10d40e89e8e8d7e1257 WHIRLPOOL d54290ede8d3d85e5211cda7e86ed740178121ef2f47cf0858c27941d8679d29c11445befff962986d40a47ded50d0d4654de19e7d4aef3fdf2546655a0d6fe2
|
||||
DIST portage-man-pl-2.1.2.tar.bz2 53893 SHA256 960eaa7c6f3a2af44bdc665266a8e884628a562373cc477d301597ecc5ef961f SHA512 5f5c8dd1559048546633b1e7291ff8c0f5d637595f1a4c98405424b08c30c089fc9359e0214f78fbe358754f20d327794f4692b9b67639585c29b755975ee853 WHIRLPOOL 756e267b84077501d976f46fa448cda5368cd52aeca6ec43d109c81fe8e2364e0cd0f35630d68a4186c70e3b440b7c870b86ac7ef83cc0afa43e10f9f8e1f422
|
||||
EBUILD portage-2.1.12.2.ebuild 14368 SHA256 96e0b3a645114e95baafabc9abfe1b7debf0e18337d794a1df7fc2bfb319dd89 SHA512 b4eb2563499a4258f9e2464b30c68af2582514bad3b9aa4f6b4e033b6df276d2ef737221a537115eb18fccf321bc6e6ce18fef941f33731b9282ac2a60ae3c22 WHIRLPOOL 273895dd314a8d0ea0afab51d4c849b47c1adcc2124b1c46a75d9c35e6ff89c2bf0ffcd7383c0b6b1b8ea667b43ddb6f1bb259a2b60175a1476d9412ea7756ad
|
||||
EBUILD portage-2.1.6.7_p1.ebuild 8307 SHA256 2b8b33ff1538f26c502e8606044ee18dfe7ff49c36bc6f6051d869f4560c2a95 SHA512 1bcbbb283c971dba5a85f282cc62c73a01b4336ae12869286110c9040abfa9d7567976a49d07bd3eb49b44e4bea4f9f468d74e470a30ecefefd73e3826b28a32 WHIRLPOOL cb02f988008ecc36107b302e0eace21630d6e25459ef09a39222dc7b87a3defb416f472528878cd19204d7fd79af218102dd4feab8d141296c6346b328898b4a
|
||||
EBUILD portage-2.2.1.ebuild 19238 SHA256 4e2e9ccfd1efd3b8965903d77da2c2736d9af1d90dcf883a07ebfbd88357d270 SHA512 c268f45e4e76e4fc46780714dec018fbba66f0b66d068dac6afd50ae8cb8cf335a42aa112716fba9815e516b6ad06eeaa4a967a8c247fac39dc7c3703c214181 WHIRLPOOL de17ddb295aa66b5585ae6957599dec4836ebe56922b70661c024e3a0fcbaffa13c7ace80c428201f82358f068a1bf24b315118aec68d713e28e90619ab8302a
|
||||
EBUILD portage-2.2.10.ebuild 19399 SHA256 2f7eb7e1de38eddf47d149251b86798fdbc2ff428484dc1a9e955cf988bd0474 SHA512 e8ec7297d211de29673036ec98307c69e91535e9099b3ddaf6ded119e8dab3a5e4e6edbf64618b37af8756735e24c677ac2fbd2ea6e3dc5ba7540c58e281ced4 WHIRLPOOL 5cc0ada19a89686ebc8e47cfb5566c93a7b618f591f0d57101c42787af85035d9a194b2ea18521ce17f34b79666ddb9f8be4ce7a332829b7df866e0d292827fd
|
||||
EBUILD portage-2.2.7.ebuild 19244 SHA256 f4f40a7da1d0312dcd3bc2f45e88092458f05e65c8ea3d5b08b86a8a06aa68f5 SHA512 db283aff6267f3990d3750ef6bd1e2e8e4bf3591225f5855f83e6662794b0f2dd58f65bec5d14e216e92ac81df7842d83ed3b56eb05f0f4ccd5466dee722817c WHIRLPOOL a152ba0faa2b853b8ed7244a6aa12971105cc90039adc76cd200d350b69f3ca97ff91613cdcf46e3f8a9157052d9f3161ba85a662b3c6c29a8b79d4b8aa2b9e6
|
||||
EBUILD portage-2.2.8-r1.ebuild 19344 SHA256 35ab2aa38ca4dd77373cebdfe04a47291601790dbef63be5bb2ec74866bf5f1e SHA512 4e6133e4792423bd426fba0fb951d08ba56866ac0942aa572892bbb6654853ab6ba10c22c209ebc4126af99aaf253aab7647342e984ac5cd41ed5e179e129add WHIRLPOOL 10cf3d7c4c5b4c3e19a0ab459d260779e7f82ce9fe81932b65da0f855450dbe83f0a9d87eb4bb1d735aab4d78a50d3df0c4e911bd19e054f5728cd2f2cc067a2
|
||||
EBUILD portage-9999.ebuild 13746 SHA256 92eb019340ef88ada20bd4122b668f4e3b6852343d90509150f30d9abb8a5705 SHA512 f27a9f674a83a59248f36cc71f4f9f8b0cf059efa0ec22c50b75d8c266cfe98a89f0a85d9eb3aa70226ca34193d8df3ea5a6c2076000239e9d87bf7573ec9ac6 WHIRLPOOL 22d087625bf3819a586a2348e93d5cf07bc8e0ddf426dae9724e782692112631ab8318f56a516e5c91fcbfb6661a4e177b8b1754a610b2e6fb5a1b057956840d
|
||||
MISC ChangeLog 56691 SHA256 1c8cf4f798a186ef874cbb82207a1673ddc5c17a9825fbfc40f8120d27734c96 SHA512 f44ec05f553f3ab382bc2145ed5c657d55af8a26467ac97b538a309c57833c0a5631055ee6b9f9d4fa328547fc7d6f61da5f6531f376b624f840c2bb02f378ed WHIRLPOOL 17ab2c40044533b84f7faaf69cc1c8df04224991922ca8618557c2316c2b4da103758185131e4ebec3eb58ed5fff76809faa32c7e088755f8785ddafe825e47c
|
||||
MISC ChangeLog-2012 133873 SHA256 157a7eb13d4cf2e2c94bfcb7e91f218af1ea88f5ff20c24a50546950a9839c94 SHA512 1241f4ccd7b31bdd340649417257b0e95202992feb66e0cd4d41fc2d35bf0baeac19680f34a831d2fefce0c0fec03aa6e7a191f783e59cf9b93aaf266f010a3f WHIRLPOOL b027bdba0f5ccc1b3a2dc18df92d82b473af5e55536816b7177071c1ae1a89e4d50d42c2093fa1bbe28b92a42014fbefbfc9e7daa4e6426ebecbd5bffc3d479f
|
||||
MISC metadata.xml 1170 SHA256 15c6872c40d2c334c6c7bb2d020f5486296e1727c02254257ed5bba0c58af955 SHA512 ca57a95360f6becef6c622d8a5c384d864bd6118776b43d88b7deb1b058dc46b47019813d7e2606b6d4665bd1bed113eae5445ddb948f939954172b5fe859d74 WHIRLPOOL 77e420267361675e733e8364d1fde83d7b2833d6e28823599078f1d771aeb592d0e9146019a45268696b05709e56880e7707e0240f843015e17a82930bac5cf2
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
||||
|
||||
iQJ8BAEBCABmBQJTQYgVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC
|
||||
MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOmmoQAJkLmTH7pSixicHGfH7BqfRr
|
||||
/Xxe8vyWVr/ntzdWW8YYGvG41el8ulF+a51zhhMOX2x7XW+tc4NNZctJ7oL6Rfba
|
||||
85h88J2WEl6vkla+Rz1kA/0M4pwGVHTQiCGiAGsrSmNLqJidgJ+KKswJKjodrvht
|
||||
cqVZp0kLLj4yzeKQZtZs0uApkVxpBVt3w3hCd96HTc0GgUlQBNE5/zloCtUIaDqt
|
||||
fWDFCEEq7np3c5OOThF/ENYnvAAX6FEGazPhZXPWJ1NKTYTS+7HofMNf+YSaSOHO
|
||||
G2hS0m1sQ08pPJzx9VM+PF7FH+uBtKyy/PGBOo3+X6kpgfJgS1D6OhU6ZCPKvx+c
|
||||
/2oio/7ZQesnbQuQAWgfiqJXJXtMaTSWcXcbKczrWID21DV9jd2dr6qT8Bgm25gS
|
||||
A2cQEiAV8x+1lkYIFONS/RV3d+uNVeiviP2i037R/7OpAhtd7o195MrG+gzt6udP
|
||||
cbKnnCD28if6yu0DZ+dshsrSo7EbDrX7fXEU+Jx0FJugtmurNgJ5AlvPj4cb/hms
|
||||
HBc+QLr8sKOb+M8tAblxBG6Lk846lFLH2gIKxA5uyDKvpjtgjcVpBz3wuUmKA6as
|
||||
T67o1b14/ZDDio3y82y3KvjQdSL8rwbYGbopJHqzcrvq2khQdP9hL42FucI+c1SF
|
||||
NcOs2Y/oiZyZzwQnYcSu
|
||||
=uDHx
|
||||
-----END PGP SIGNATURE-----
|
||||
|
352
sdk_container/src/third_party/coreos-overlay/sys-apps/portage/portage-2.2.18.ebuild
vendored
Normal file
352
sdk_container/src/third_party/coreos-overlay/sys-apps/portage/portage-2.2.18.ebuild
vendored
Normal file
@ -0,0 +1,352 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2.18.ebuild,v 1.9 2015/04/26 15:42:47 zlogene Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=(
|
||||
pypy
|
||||
python3_3 python3_4
|
||||
python2_7
|
||||
)
|
||||
# Note: substituted below
|
||||
PYTHON_REQ_USE='bzip2(+)'
|
||||
|
||||
inherit distutils-r1 multilib
|
||||
|
||||
DESCRIPTION="Portage is the package management and distribution system for Gentoo"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
SLOT="0"
|
||||
IUSE="build doc epydoc +ipc linguas_ru selinux xattr"
|
||||
|
||||
DEPEND="!build? ( ${PYTHON_DEPS//bzip2(+)/ssl(+),bzip2(+)} )
|
||||
dev-lang/python-exec:2
|
||||
>=sys-apps/sed-4.0.5 sys-devel/patch
|
||||
doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
|
||||
epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )"
|
||||
# Require sandbox-2.2 for bug #288863.
|
||||
# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's
|
||||
# quite slow, so it's not considered in the dependencies as an alternative to
|
||||
# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so
|
||||
# for now, don't pull in xattr deps for other kernels.
|
||||
# For whirlpool hash, require python[ssl] (bug #425046).
|
||||
# For compgen, require bash[readline] (bug #445576).
|
||||
RDEPEND="
|
||||
dev-lang/python-exec:2
|
||||
!build? (
|
||||
>=sys-apps/sed-4.0.5
|
||||
app-shells/bash:0[readline]
|
||||
>=app-admin/eselect-1.2
|
||||
)
|
||||
elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
|
||||
elibc_glibc? ( >=sys-apps/sandbox-2.2 )
|
||||
elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
|
||||
>=app-misc/pax-utils-0.1.17
|
||||
selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
|
||||
xattr? ( kernel_linux? (
|
||||
>=sys-apps/install-xattr-0.3
|
||||
$(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
|
||||
python2_7 pypy)
|
||||
) )
|
||||
!<app-admin/logrotate-3.8.0"
|
||||
PDEPEND="
|
||||
!build? (
|
||||
>=net-misc/rsync-2.6.4
|
||||
userland_GNU? ( >=sys-apps/coreutils-6.4 )
|
||||
)"
|
||||
# coreutils-6.4 rdep is for date format in emerge-webrsync #164532
|
||||
# NOTE: FEATURES=installsources requires debugedit and rsync
|
||||
|
||||
REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )"
|
||||
|
||||
SRC_ARCHIVES="http://dev.gentoo.org/~dolsen/releases/portage"
|
||||
|
||||
prefix_src_archives() {
|
||||
local x y
|
||||
for x in ${@}; do
|
||||
for y in ${SRC_ARCHIVES}; do
|
||||
echo ${y}/${x}
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
TARBALL_PV=${PV}
|
||||
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
|
||||
$(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)"
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
if ! use ipc ; then
|
||||
einfo "Disabling ipc..."
|
||||
sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
|
||||
-i pym/_emerge/AbstractEbuildProcess.py || \
|
||||
die "failed to patch AbstractEbuildProcess.py"
|
||||
fi
|
||||
|
||||
if use xattr && use kernel_linux ; then
|
||||
einfo "Adding FEATURES=xattr to make.globals ..."
|
||||
echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
|
||||
|| die "failed to append to make.globals"
|
||||
fi
|
||||
|
||||
if [[ -n ${EPREFIX} ]] ; then
|
||||
einfo "Setting portage.const.EPREFIX ..."
|
||||
sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
|
||||
-e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
|
||||
-e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
|
||||
-e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
|
||||
-e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
|
||||
-e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
|
||||
-i pym/portage/const.py || \
|
||||
die "Failed to patch portage.const.EPREFIX"
|
||||
|
||||
einfo "Prefixing shebangs ..."
|
||||
while read -r -d $'\0' ; do
|
||||
local shebang=$(head -n1 "$REPLY")
|
||||
if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
|
||||
sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \
|
||||
die "sed failed"
|
||||
fi
|
||||
done < <(find . -type f -print0)
|
||||
|
||||
einfo "Adjusting make.globals ..."
|
||||
sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \
|
||||
-e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \
|
||||
-i cnf/make.globals || die "sed failed"
|
||||
|
||||
einfo "Adjusting repos.conf ..."
|
||||
sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
|
||||
-e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
|
||||
-e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
|
||||
-e "s|^\(sync-uri = \).*|\\1rsync://prefix.gentooexperimental.org/gentoo-portage-prefix|" \
|
||||
-i cnf/repos.conf || die "sed failed"
|
||||
|
||||
einfo "Adding FEATURES=force-prefix to make.globals ..."
|
||||
echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
|
||||
|| die "failed to append to make.globals"
|
||||
fi
|
||||
|
||||
cd "${S}/cnf" || die
|
||||
if [ -f "make.conf.example.${ARCH}".diff ]; then
|
||||
patch make.conf.example "make.conf.example.${ARCH}".diff || \
|
||||
die "Failed to patch make.conf.example"
|
||||
else
|
||||
eerror ""
|
||||
eerror "Portage does not have an arch-specific configuration for this arch."
|
||||
eerror "Please notify the arch maintainer about this issue. Using generic."
|
||||
eerror ""
|
||||
fi
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
local targets=()
|
||||
use doc && targets+=( docbook )
|
||||
use epydoc && targets+=( epydoc )
|
||||
|
||||
if [[ ${targets[@]} ]]; then
|
||||
esetup.py "${targets[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install() {
|
||||
# Install sbin scripts to bindir for python-exec linking
|
||||
# they will be relocated in pkg_preinst()
|
||||
distutils-r1_python_install \
|
||||
--system-prefix="${EPREFIX}/usr" \
|
||||
--bindir="$(python_get_scriptdir)" \
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
|
||||
--portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
|
||||
--sbindir="$(python_get_scriptdir)" \
|
||||
--sysconfdir="${EPREFIX}/etc" \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
local targets=()
|
||||
use doc && targets+=( install_docbook )
|
||||
use epydoc && targets+=( install_epydoc )
|
||||
|
||||
# install docs
|
||||
if [[ ${targets[@]} ]]; then
|
||||
esetup.py "${targets[@]}"
|
||||
fi
|
||||
|
||||
# Due to distutils/python-exec limitations
|
||||
# these must be installed to /usr/bin.
|
||||
local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
|
||||
einfo "Moving admin scripts to the correct directory"
|
||||
dodir /usr/sbin
|
||||
for target in ${sbin_relocations}; do
|
||||
einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
|
||||
mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# comment out sanity test until it is fixed to work
|
||||
# with the new PORTAGE_PYM_PATH
|
||||
#if [[ $ROOT == / ]] ; then
|
||||
## Run some minimal tests as a sanity check.
|
||||
#local test_runner=$(find "${ED}" -name runTests)
|
||||
#if [[ -n $test_runner && -x $test_runner ]] ; then
|
||||
#einfo "Running preinst sanity tests..."
|
||||
#"$test_runner" || die "preinst sanity tests failed"
|
||||
#fi
|
||||
#fi
|
||||
|
||||
# elog dir must exist to avoid logrotate error for bug #415911.
|
||||
# This code runs in preinst in order to bypass the mapping of
|
||||
# portage:portage to root:root which happens after src_install.
|
||||
keepdir /var/log/portage/elog
|
||||
# This is allowed to fail if the user/group are invalid for prefix users.
|
||||
if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
|
||||
chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
|
||||
fi
|
||||
|
||||
if has_version "<${CATEGORY}/${PN}-2.1.13" || \
|
||||
{
|
||||
has_version ">=${CATEGORY}/${PN}-2.2_rc0" && \
|
||||
has_version "<${CATEGORY}/${PN}-2.2.0_alpha189"
|
||||
} ; then
|
||||
USERPRIV_UPGRADE=true
|
||||
USERSYNC_UPGRADE=true
|
||||
REPOS_CONF_UPGRADE=true
|
||||
REPOS_CONF_SYNC=
|
||||
type -P portageq >/dev/null 2>&1 && \
|
||||
REPOS_CONF_SYNC=$("$(type -P portageq)" envvar SYNC)
|
||||
else
|
||||
USERPRIV_UPGRADE=false
|
||||
USERSYNC_UPGRADE=false
|
||||
REPOS_CONF_UPGRADE=false
|
||||
fi
|
||||
}
|
||||
|
||||
get_ownership() {
|
||||
case ${USERLAND} in
|
||||
BSD)
|
||||
stat -f '%Su:%Sg' "${1}"
|
||||
;;
|
||||
*)
|
||||
stat -c '%U:%G' "${1}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
new_config_protect() {
|
||||
# Generate a ._cfg file even if the target file
|
||||
# does not exist, ensuring that the user will
|
||||
# notice the config change.
|
||||
local basename=${1##*/}
|
||||
local dirname=${1%/*}
|
||||
local i=0
|
||||
while true ; do
|
||||
local filename=$(
|
||||
echo -n "${dirname}/._cfg"
|
||||
printf "%04d" ${i}
|
||||
echo -n "_${basename}"
|
||||
)
|
||||
[[ -e ${filename} ]] || break
|
||||
(( i++ ))
|
||||
done
|
||||
echo "${filename}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
||||
if ${REPOS_CONF_UPGRADE} ; then
|
||||
einfo "Generating repos.conf"
|
||||
local repo_name=
|
||||
[[ -f ${PORTDIR}/profiles/repo_name ]] && \
|
||||
repo_name=$(< "${PORTDIR}/profiles/repo_name")
|
||||
if [[ -z ${REPOS_CONF_SYNC} ]] ; then
|
||||
REPOS_CONF_SYNC=$(grep "^sync-uri =" "${EROOT:-${ROOT}}usr/share/portage/config/repos.conf")
|
||||
REPOS_CONF_SYNC=${REPOS_CONF_SYNC##* }
|
||||
fi
|
||||
local sync_type=
|
||||
[[ ${REPOS_CONF_SYNC} == git://* ]] && sync_type=git
|
||||
|
||||
if [[ ${REPOS_CONF_SYNC} == cvs://* ]]; then
|
||||
sync_type=cvs
|
||||
REPOS_CONF_SYNC=${REPOS_CONF_SYNC#cvs://}
|
||||
fi
|
||||
|
||||
cat <<-EOF > "${T}/repos.conf"
|
||||
[DEFAULT]
|
||||
main-repo = ${repo_name:-gentoo}
|
||||
|
||||
[${repo_name:-gentoo}]
|
||||
location = ${PORTDIR:-${EPREFIX}/usr/portage}
|
||||
sync-type = ${sync_type:-rsync}
|
||||
sync-uri = ${REPOS_CONF_SYNC}
|
||||
EOF
|
||||
|
||||
[[ ${sync_type} == cvs ]] && echo "sync-cvs-repo = $(<"${PORTDIR}/CVS/Repository")" >> "${T}/repos.conf"
|
||||
|
||||
local dest=${EROOT:-${ROOT}}etc/portage/repos.conf
|
||||
if [[ ! -f ${dest} ]] && mkdir -p "${dest}" 2>/dev/null ; then
|
||||
dest=${EROOT:-${ROOT}}etc/portage/repos.conf/${repo_name:-gentoo}.conf
|
||||
fi
|
||||
# Don't install the config update if the desired repos.conf directory
|
||||
# and config file exist, since users may accept it blindly and break
|
||||
# their config (bug #478726).
|
||||
[[ -e ${EROOT:-${ROOT}}etc/portage/repos.conf/${repo_name:-gentoo}.conf ]] || \
|
||||
mv "${T}/repos.conf" "$(new_config_protect "${dest}")"
|
||||
|
||||
if [[ ${PORTDIR} == ${EPREFIX}/usr/portage ]] ; then
|
||||
einfo "Generating make.conf PORTDIR setting for backward compatibility"
|
||||
for dest in "${EROOT:-${ROOT}}etc/make.conf" "${EROOT:-${ROOT}}etc/portage/make.conf" ; do
|
||||
[[ -e ${dest} ]] && break
|
||||
done
|
||||
[[ -d ${dest} ]] && dest=${dest}/portdir.conf
|
||||
rm -rf "${T}/make.conf"
|
||||
[[ -f ${dest} ]] && cat "${dest}" > "${T}/make.conf"
|
||||
cat <<-EOF >> "${T}/make.conf"
|
||||
|
||||
# Set PORTDIR for backward compatibility with various tools:
|
||||
# gentoo-bashcomp - bug #478444
|
||||
# euse - bug #474574
|
||||
# euses and ufed - bug #478318
|
||||
PORTDIR="${EPREFIX}/usr/portage"
|
||||
EOF
|
||||
mkdir -p "${dest%/*}"
|
||||
mv "${T}/make.conf" "$(new_config_protect "${dest}")"
|
||||
fi
|
||||
fi
|
||||
|
||||
local distdir=${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}
|
||||
|
||||
if ${USERSYNC_UPGRADE} && \
|
||||
[[ -d ${PORTDIR} && -w ${PORTDIR} ]] ; then
|
||||
local ownership=$(get_ownership "${PORTDIR}")
|
||||
if [[ -n ${ownership} ]] ; then
|
||||
einfo "Adjusting PORTDIR permissions for usersync"
|
||||
find "${PORTDIR}" -path "${distdir%/}" -prune -o \
|
||||
! \( -user "${ownership%:*}" -a -group "${ownership#*:}" \) \
|
||||
-exec chown "${ownership}" {} +
|
||||
fi
|
||||
fi
|
||||
|
||||
# Do this last, since it could take a long time if there
|
||||
# are lots of live sources, and the user may be tempted
|
||||
# to kill emerge while it is running.
|
||||
if ${USERPRIV_UPGRADE} && \
|
||||
[[ -d ${distdir} && -w ${distdir} ]] ; then
|
||||
local ownership=$(get_ownership "${distdir}")
|
||||
if [[ ${ownership#*:} == portage ]] ; then
|
||||
einfo "Adjusting DISTDIR permissions for userpriv"
|
||||
find "${distdir}" -mindepth 1 -maxdepth 1 -type d -uid 0 \
|
||||
-exec chown -R portage:portage {} +
|
||||
fi
|
||||
fi
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user