diff options
Diffstat (limited to 'sys-apps/ppc64-diag')
-rw-r--r-- | sys-apps/ppc64-diag/Manifest | 4 | ||||
-rw-r--r-- | sys-apps/ppc64-diag/metadata.xml | 7 | ||||
-rw-r--r-- | sys-apps/ppc64-diag/ppc64-diag-2.7.9.ebuild | 79 |
3 files changed, 89 insertions, 1 deletions
diff --git a/sys-apps/ppc64-diag/Manifest b/sys-apps/ppc64-diag/Manifest index a9cc588d3019..bbffdc407316 100644 --- a/sys-apps/ppc64-diag/Manifest +++ b/sys-apps/ppc64-diag/Manifest @@ -3,6 +3,8 @@ AUX opal_errd.initd 374 BLAKE2B b463e484e60ea63afd2c4f27a4e8330ae6733ecd3e6925b4 AUX rtas_errd.initd 371 BLAKE2B a5367e20d7732fc0b778349e740351fbd55049a08e456a859fc5d8a2e06418bc865b7ef5d27fb3ba420bb008ca7ee5b4781fc41393716d6e502cb691f602805b SHA512 a92128d9b5e31d1206999123734924e8e24833beba4e39b067fbb38bb16cbf174d1dbd51a1d27f294ba95da849020fd60e737ada35db98a7b6210cd06375c1de DIST ppc64-diag-2.7.7.tar.gz 423357 BLAKE2B b32def540811f383e401d352d17f2edce6a998a91a7b27bcab981e42469f44aaa505104ed2d2ced8a85485c0886525ff5128b36cdbad3a8eed90e8002877498c SHA512 42d94214345ab8deb7bd9ee8b145052fc2f733ba13d1567dbe6592fe9306670e3cd0ab6122e515464f7050753a992061c056e009673c7f8f6e554e9eaf75c550 DIST ppc64-diag-2.7.8.tar.gz 424366 BLAKE2B e5e4791dffba4ede725051682019f0b75c2ee718fd33170912ccf228946fa56b4e63930a9b9c8d7e58ce27f0a18b03ea7c58ba259b781d4c40eed945e2d895a9 SHA512 1a8890624609f64eb412cabb690f30a67b7f714260de14acc195268ecbda79d6c5e7d80694dabb3ab148fc74a4df6b8e147750e869ab49f40d04742ef284398e +DIST ppc64-diag-2.7.9.tar.gz 439622 BLAKE2B a30a94359227812254d7ae9a571e524e88eb136fad9567cc5670d85dd66fb3a0f761a58da7eeeabe22434b959fa0d73a8c5213379184432c2a5efe8f8d9c2a47 SHA512 b6756c17e67e876ad3a945d05dbd2c2523cbf121c4aa658a4edaf33775c8165ff26a252bdf812600e2d47ae69cd68f6e22c0de6f2d3994856adcd3d949322673 EBUILD ppc64-diag-2.7.7.ebuild 1557 BLAKE2B f2625c84268207eb112f92318383567e347b4b4286da37d2c5c5e5ce24078e54430617176cb9e22f0170663e5a36d13309fd18c4c2f2e0eac6243cdc690dc225 SHA512 d4d3b3ecf072c68a2122ebeab58e724a0b497c1911591f4a5ebc30c84fad819d0f6eb5e4c5c8ba5891f1600ad936e9a6e9af77a3049710723dabfec75376050f EBUILD ppc64-diag-2.7.8.ebuild 1572 BLAKE2B 1d38e9dc5a739fa8791f2c515aeeb96ff6f73c4bf6a75a4c2b3278b1137775c75077be53f9c754156d9fb13787eb23d60ca8117f0fe236cdc2d6cb8ce6d4c8b1 SHA512 57a492c116173c5f909cb5c7af9792bfd3d3dca2862c35e7a807e666ca02207ac2e4e651f112cdd133ef0ffafd86135a9236fcccfa9665e437f20abc3546d3c4 -MISC metadata.xml 689 BLAKE2B 507ee6a51ec93ec2199345bee89684754bf71c7709a05989dcf4699d9c4ea0da83ed6d41f3c3e6935ae3c3e9634ee9cabc2532f70c61ca778ea2b8920085991f SHA512 474385e6f54f040377f54327946f260ab6b01d09f0cca75aae4cb19b9aee08c9a32095dd7ad09cc7d0cabc4c3c52a9d13acd68079caeb804694419a58c291653 +EBUILD ppc64-diag-2.7.9.ebuild 1717 BLAKE2B 063d59b07921903804239f55382a1ead38bc17c3119aef66c5b1164b518bee86511f8023369c05521b52e197d2ffbf55b71021518c5153f357c7264928c57667 SHA512 fa6f6a44484219601b97694491a5494928f3e738a474f1d3e533cbf85913034a2142fdf64f1acb626224d4bbcf3e9aead33bcac3e14ec3409d8581092e51799e +MISC metadata.xml 886 BLAKE2B 85a1fa6462be80d9dec2bbb295a5e5d54cc02ea260291e4d74ad43a44e0d75417514257d00eed844833474c0acf8fc2cd0f5293494dc2ad87855f1fbc971006a SHA512 c1e15f167ea9d262610959a24047a243a2faa3176562415f144c5e4d31eaa924abb9db009c8902a7636d69dc608f8321d5556055d5f166e367a2144a7c1a93db diff --git a/sys-apps/ppc64-diag/metadata.xml b/sys-apps/ppc64-diag/metadata.xml index a6d327e1f5a6..3963a2f70dcb 100644 --- a/sys-apps/ppc64-diag/metadata.xml +++ b/sys-apps/ppc64-diag/metadata.xml @@ -1,10 +1,17 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> + <maintainer type="person"> + <email>gyakovlev@gentoo.org</email> + <name>Georgy Yakovlev</name> + </maintainer> <maintainer type="project"> <email>ppc@gentoo.org</email> <name>PowerPC architecture team</name> </maintainer> + <upstream> + <remote-id type="github">power-ras/ppc64-diag</remote-id> + </upstream> <use> <flag name="rtas">Add support for the Run Time Abstraction Services (RTAS)</flag> </use> diff --git a/sys-apps/ppc64-diag/ppc64-diag-2.7.9.ebuild b/sys-apps/ppc64-diag/ppc64-diag-2.7.9.ebuild new file mode 100644 index 000000000000..57a0b0068a7e --- /dev/null +++ b/sys-apps/ppc64-diag/ppc64-diag-2.7.9.ebuild @@ -0,0 +1,79 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +DESCRIPTION="Diagnostic tools for PowerLinux" +HOMEPAGE="https://github.com/power-ras/ppc64-diag" +SRC_URI="https://github.com/power-ras/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~ppc64" +IUSE="rtas" + +DEPEND="virtual/libudev:= + rtas? ( + sys-libs/ncurses:0= + sys-libs/librtas + sys-libs/libservicelog + >=sys-libs/libvpd-2.2.9:= + ) +" + +RDEPEND="${DEPEND} + dev-lang/perl + rtas? ( sys-apps/servicelog ) +" + +BDEPEND=" + sys-devel/bison + sys-devel/flex + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/fix-systemd-unit-path.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf $(use_with rtas librtas) + # handle ncurses[tinfo] + sed -e "s:-lncurses:$($(tc-getPKG_CONFIG) --libs ncurses):g" \ + -i Makefile || die +} + +src_install() { + default + newinitd "${FILESDIR}/opal_errd.initd" opal_errd + + if use rtas; then + newinitd "${FILESDIR}/rtas_errd.initd" rtas_errd + keepdir /var/log/ppc64-diag/diag_disk + else + # makefile installs it unconditionally + rm -rf "${ED}/lib/systemd/system/rtas_errd.service" || die + rm -rf "${ED}/usr/lib/systemd/system/rtas_errd.service" || die + fi + + keepdir /etc/${PN}/ses_pages + keepdir /var/log/ppc64_diag/diag_disk + keepdir /var/log/ppc64_diag + keepdir /var/log/opal-elog + keepdir /var/log/dump +} + +src_test() { + # it assumes MKTEMP created dir in /tmp, add /var to the string. + # /varplatform.0x01 becomes platform.0x01, just as test expects + # so we sed a sed expression, don't judge me + sed -i 's%\/tmp/%\/var\/tmp\/%' opal_errd/tests/test-extract_opal_dump-000 || die + emake check +} |