diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/mcelog |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/mcelog')
-rw-r--r-- | app-admin/mcelog/Manifest | 13 | ||||
-rw-r--r-- | app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch | 8 | ||||
-rw-r--r-- | app-admin/mcelog/files/mcelog-129-debugflags.patch | 22 | ||||
-rw-r--r-- | app-admin/mcelog/files/mcelog.init-r1 | 15 | ||||
-rw-r--r-- | app-admin/mcelog/files/mcelog.service | 10 | ||||
-rw-r--r-- | app-admin/mcelog/mcelog-149.ebuild | 52 | ||||
-rw-r--r-- | app-admin/mcelog/mcelog-152.ebuild | 52 | ||||
-rw-r--r-- | app-admin/mcelog/mcelog-153.ebuild | 58 | ||||
-rw-r--r-- | app-admin/mcelog/metadata.xml | 25 |
9 files changed, 255 insertions, 0 deletions
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest new file mode 100644 index 000000000000..fac2cbf6d610 --- /dev/null +++ b/app-admin/mcelog/Manifest @@ -0,0 +1,13 @@ +AUX mcelog-0.8_pre1-timestamp-mcelog.patch 425 SHA256 7ead10c71b0941950e7c69b1211a0643360c725f923c9b0336ba39c38bba7780 SHA512 77312f9346c7e16141a57a5e44964d0b2cab77a428403d19cfc9558af55b250be7c9fadaecf87c8d78075251a7fc3ab309e0cbbdbb30ddc4423717cb3979a1db WHIRLPOOL 17427dab2baa1df6fe1c0ff6cebbdc1c645fd56e35bb5865ca5fd38db760728054d4c9d9edad778d2357b7ef2ee109d21c788208d91c8ec408cc6c8b4df507f6 +AUX mcelog-129-debugflags.patch 416 SHA256 5c94bd92035c24038bd05caf0357e72a3085fed57b73513a7cfdd08810d02d01 SHA512 cda86c3e74f56fcd9d8771b26ca91c32ccc33e6bcd6dd0fcf856c14096daa619257d237e1e187e7820d6a0a0553ae6fd9ec160ea59e237b4e05ebca4e6656e20 WHIRLPOOL 4287c0327484317824ec568763542ec3e55c493c0bb0cf2a094404a4f3ca7e26d6c1880f0286f0d376e2b0ffcb677b786fd4c0a160baff1a35063ad485c020fa +AUX mcelog.init-r1 349 SHA256 bd2419d3e68a1d79a6f799af8760bb8498f70b4a1cf21227f141b167c8d367f1 SHA512 a43f0efe7eb5007e9422ca2eba43b666d5110696c8b049b74990849e200b89b99e3d22707803e21e4452b0e75bbacdec0526ed933b234301ebbbb19d700df0d4 WHIRLPOOL 1c79b79164fb94cf434353038c8ed2ebd6c0e4b02cb5da25f2ced6b9e2c6d2e9af6c35c4d8036c7beec9579ceb307a3387ba0b21f61f27b28281d11df608d5ee +AUX mcelog.service 213 SHA256 6c9d5bad415f8ed7c6cb4bb111d7ad2d4f916f5737c2559f4fdc3a04b9fc3ff4 SHA512 8317d9310d58663bb28f2528e0872520e30475439b9ce69ebb2452d7dc3583d2aecab80d9f6ef895ac8a17f666c3229d7cd768026ea16cc5403fb05d8bdc5c75 WHIRLPOOL 2066c70585a5204786983d1139737a584c12b34d03a7373d717a98d1d880993d953cc509de6b5a02a3a5212c42f42bd0e20ae3d9d9b905c4ff20b3365c68589f +DIST mcelog-149.tar.gz 296943 SHA256 a9313ed45cabaf7ef0a4d986ecf24a3c9ced9a4b1e34032d380af4e70c73512f SHA512 d2cb7cb26d4407dd03a425568a19c96e5f53cc9447c58cd105d74a2f69b645ef6b444c9533186aac6b052f0721959a321a3f8061477d1451a62be36add097aeb WHIRLPOOL ddea0a8efca6e5180d4d3ce663a0366b1a2eb78d8d11690e21aea81d3956838013aec7e83f29f6a745a63d18e95e8c71a2b00be135a5982013462b3911aa7f57 +DIST mcelog-152.tar.gz 297083 SHA256 7a903710a8ae0a031d337cc1e9e01f5353467e7f9aecea44bd50659793163022 SHA512 e89a4d81c87211f345d2f90dfb36bbb6ef4474745ac878285801b6ab4edd1ebc32feaf38b60f5976e7b9f29700495c2325f0e05c8ec432a22d77c1e9207a5e1a WHIRLPOOL 38e9526e2a16e4f25d0c4b218884c871b84cf0c2416ed80069746d0af3b7c2eff9d17b6f350b04f53564a172fb61b61ff8b51038ca639c37dbfbc7e6d3b34cec +DIST mcelog-153.tar.gz 297099 SHA256 9b827f708855804b6952de6f6cbf2f6523fa1203c621e6050064388f459646f1 SHA512 9a92587c13680e83fd1b89d45c160cec91c6a90cfa32f5858fea444b2013f1a9ec3349edf0f7777908898967b1c1604761f481b91e87fd31b0c5255530b9453d WHIRLPOOL 2572ee54b68fcdab7b83207ef84035cb8096cb30fa225a2d11f823a8b2ecd4d19a728ba7f094e9b67c8f293a4611b2824eb555e6bf646939af47444c101fae14 +EBUILD mcelog-149.ebuild 1216 SHA256 305dd87d7987c249084b01c4ec1bb45711f9a7b3294b28804047d70db22e5a13 SHA512 a0414d1608bfde9177e2f10dcd135f6f1dd8c9f9498a187fce8e3868db02a65f09dd74520b6659aa1424725a15d7a4c58542d505c1ce1ad12ffd48afce1e8b86 WHIRLPOOL 97c7efb4750b001d72a6952584783774bb4173e9041255582616b9ff46d3293d393842554fdf7bcdcdeb5baf836803586f12a6dce0faee28d1c6c1ebc94a84cd +EBUILD mcelog-152.ebuild 1218 SHA256 962a0ac4c29a822efae0b33abca073a0bdfd6b2992f0a29ae2c56494cc365cf1 SHA512 8ff47aa8e9c52bdcbc0734accd716d514d89c0936c24340ddb7ce1b13e1c3c8992d56bce98378d7a6d5cd74579183049861d97ce67919cffa2650d202ba24364 WHIRLPOOL 3e0c3c00c2196c838f294b00e6ca46ee6e416c5d04cff0ccb28ef191e5a7b10c8899e5ae7661586f3440bf66b905bf3cdd847ded3ef036f2290b8035bff61da6 +EBUILD mcelog-153.ebuild 1372 SHA256 80774217d878f68286e3a14c846b52ae35c3a97e6ef2cc98e89643a1313a4eee SHA512 cf76774ce8ec0634a8a8e8eed22d6048085a4bbbf767e871963d37617bdeb0383590d85d00a7709e76d9a460dfbe90867c4b62e93e829c4081ed14025469b505 WHIRLPOOL 32d365e0bab72e105825dc2de67174be91151f70e7d3c87711fa8793a3fe0808c2c431e33ca13cc6d7f64ac51f55965c5712362b4e8d336f429a680009b5429f +MISC ChangeLog 3878 SHA256 487ad272bd946e20585e24c42fee9904d70395ca9f203b303a63c87e59e3f21a SHA512 729fbff0e43c1424fe279707ffbbd052ed2084b8274ef34307c1ea8984eb33e45b9c9c0724db624e54c863f52d92e1415d090366d94de00a75c56a6ef97193a7 WHIRLPOOL e49a4df2b397508bb73dde74c9abb469e40eb7f367eb3993e224c163edce3c0485dfb8f267865f33218b623dab4d1662aade526d540434ca0f54e989be3809bb +MISC ChangeLog-2015 6067 SHA256 cd64e94164463a072484250bb9b73182b1e491a600d910710eb565fb4cb86b42 SHA512 f20d1f881f6a77470c629c1c23ced367eefe144ffc1459794d030fd4af428b99cf39ac774caa30853131934bb988dcaf872b9d2d452df9e627f8dde12a562411 WHIRLPOOL a07cb5f6e7e7f165616ff6484b36550a66998ced271e3e6ea8bdd3a2e7f93043f7af0eb648b39ae8173ca6b073600f002ddd463444f15f8cf95c04267571d90f +MISC metadata.xml 837 SHA256 85fedba2c329867f241e36c6b464a640fa324d39f56e55642289a389791b4dd1 SHA512 f6e69af6afc0de8c5436fbe468a3afbcb96e808c5e21d8a5fa65878bbff0c31ee883c4cda638acfeef1dabd77c85d0fbb3091b180b0cd16df14471e64db8df80 WHIRLPOOL f8c9ac9caf750b21604909620c8435c0c7f7a2f3dbb0f18d93a256acfe81896029a72e88dd0d99eceafe35ad20b8a4dd6244a5b6028583d3b118468a553108dd diff --git a/app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch b/app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch new file mode 100644 index 000000000000..d24afdbfe00e --- /dev/null +++ b/app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch @@ -0,0 +1,8 @@ +diff -Nuar mcelog-0.8pre.orig/mcelog.cron mcelog-0.8pre/mcelog.cron +--- mcelog-0.8pre.orig/mcelog.cron 2006-02-08 05:09:03.000000000 -0800 ++++ mcelog-0.8pre/mcelog.cron 2008-02-22 11:32:06.717012502 -0800 +@@ -1,2 +1,3 @@ + #!/bin/bash +-/usr/sbin/mcelog --ignorenodev --filter >> /var/log/mcelog ++header="$(date +"%b %d %H:%M:%S") $(hostname) " ++/usr/sbin/mcelog --ignorenodev --filter | sed "s,^,$header,g" >> /var/log/mcelog diff --git a/app-admin/mcelog/files/mcelog-129-debugflags.patch b/app-admin/mcelog/files/mcelog-129-debugflags.patch new file mode 100644 index 000000000000..eb46439a62dc --- /dev/null +++ b/app-admin/mcelog/files/mcelog-129-debugflags.patch @@ -0,0 +1,22 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Wed Oct 24 15:41:33 UTC 2012 +Subject: build system + +don't overwrite system CFLAGS, only append "-g -Os" if DEBUG=1 is passed +as argument + +--- a/Makefile ++++ b/Makefile +@@ -1,4 +1,11 @@ +-CFLAGS := -g -Os ++CC ?= gcc ++ ++# set to 1 to enable debug flags ++DEBUG = 0 ++ifeq ($(DEBUG),1) ++CFLAGS += -g -Os ++endif ++ + prefix := /usr + etcprefix := + MANDIR := ${prefix}/share/man diff --git a/app-admin/mcelog/files/mcelog.init-r1 b/app-admin/mcelog/files/mcelog.init-r1 new file mode 100644 index 000000000000..bddafa1f12d5 --- /dev/null +++ b/app-admin/mcelog/files/mcelog.init-r1 @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description='Start/stop mcelog in daemon mode' + +pidfile="/var/run/mcelog.pid" +command="/usr/sbin/mcelog" +command_args="--daemon --pidfile ${pidfile} ${MCELOG_OPTS}" + +depend() { + after udev + need localmount + use logging +} diff --git a/app-admin/mcelog/files/mcelog.service b/app-admin/mcelog/files/mcelog.service new file mode 100644 index 000000000000..4bd553012c95 --- /dev/null +++ b/app-admin/mcelog/files/mcelog.service @@ -0,0 +1,10 @@ +[Unit] +Description=Machine Check Exception Logging Daemon +After=syslog.target + +[Service] +ExecStart=/usr/sbin/mcelog --ignorenodev --daemon --foreground +StandardOutput=syslog + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/mcelog/mcelog-149.ebuild b/app-admin/mcelog/mcelog-149.ebuild new file mode 100644 index 000000000000..fffa27b121a3 --- /dev/null +++ b/app-admin/mcelog/mcelog-149.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info systemd toolchain-funcs + +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" + +CONFIG_CHECK="~X86_MCE" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +src_prepare() { + eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ + "${FILESDIR}"/${PN}-129-debugflags.patch + eapply_user + tc-export CC +} + +src_install() { + default + + insinto /etc/cron.daily + newins ${PN}.cron ${PN} + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + + dodoc *.pdf +} + +pkg_postinst() { + einfo "The default configuration set is now installed in /etc/${PN}" + einfo "you might want to edit those files." + einfo + einfo "A sample cronjob is installed into /etc/cron.daily" + einfo "without executable bit (system service is the preferred method now)" +} diff --git a/app-admin/mcelog/mcelog-152.ebuild b/app-admin/mcelog/mcelog-152.ebuild new file mode 100644 index 000000000000..4ac0a016c0dd --- /dev/null +++ b/app-admin/mcelog/mcelog-152.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info systemd toolchain-funcs + +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" + +CONFIG_CHECK="~X86_MCE" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +src_prepare() { + eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ + "${FILESDIR}"/${PN}-129-debugflags.patch + eapply_user + tc-export CC +} + +src_install() { + default + + insinto /etc/cron.daily + newins ${PN}.cron ${PN} + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + + dodoc *.pdf +} + +pkg_postinst() { + einfo "The default configuration set is now installed in /etc/${PN}" + einfo "you might want to edit those files." + einfo + einfo "A sample cronjob is installed into /etc/cron.daily" + einfo "without executable bit (system service is the preferred method now)" +} diff --git a/app-admin/mcelog/mcelog-153.ebuild b/app-admin/mcelog/mcelog-153.ebuild new file mode 100644 index 000000000000..1e3b09353f30 --- /dev/null +++ b/app-admin/mcelog/mcelog-153.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info systemd toolchain-funcs + +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +pkg_pretend() { + if [[ ${MERGE_TYPE} != buildonly ]]; then + local CONFIG_CHECK="~X86_MCE" + kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY" + check_extra_config + fi +} + +src_prepare() { + eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ + "${FILESDIR}"/${PN}-129-debugflags.patch + eapply_user + tc-export CC +} + +src_install() { + default + + insinto /etc/cron.daily + newins ${PN}.cron ${PN} + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + + dodoc *.pdf +} + +pkg_postinst() { + einfo "The default configuration set is now installed in /etc/${PN}" + einfo "you might want to edit those files." + einfo + einfo "A sample cronjob is installed into /etc/cron.daily" + einfo "without executable bit (system service is the preferred method now)" +} diff --git a/app-admin/mcelog/metadata.xml b/app-admin/mcelog/metadata.xml new file mode 100644 index 000000000000..79bbe0245ebd --- /dev/null +++ b/app-admin/mcelog/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mattst88@gentoo.org</email> + <name>Matt Turner</name> + </maintainer> + <maintainer type="person"> + <email>bkohler@gmail.com</email> + <name>Ben Kohler</name> + <description>Proxied maintainer; set to assignee in all bugs</description> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + Starting with version 2.6.4, the Linux kernel for x86-64 no longer + decodes and logs recoverable Machine Check Exception events to the + kernel log on its own. + </longdescription> + <upstream> + <remote-id type="github">andikleen/mcelog</remote-id> + </upstream> +</pkgmetadata> |