From 31aee0aaf10d424cf8bde7f5727c4fa2754349db Mon Sep 17 00:00:00 2001 From: layman Date: Sun, 26 Sep 2021 22:48:53 +0200 Subject: [PATCH] Removed obsolete stuff --- sys-apps/hdparm/Manifest | 6 -- .../hdparm/files/hdparm-9.48-sysmacros.patch | 23 ---- sys-apps/hdparm/files/hdparm-conf.d.3 | 26 ----- sys-apps/hdparm/files/hdparm-init-9 | 77 -------------- sys-apps/hdparm/hdparm-9.48-r1.ebuild | 42 -------- sys-apps/hdparm/metadata.xml | 11 -- sys-apps/smartmontools/Manifest | 5 - sys-apps/smartmontools/files/smartd-r1.rc | 29 ----- sys-apps/smartmontools/files/smartd.confd | 4 - .../files/smartmontools-update-drivedb | 3 - sys-apps/smartmontools/metadata.xml | 15 --- .../smartmontools/smartmontools-9999.ebuild | 100 ------------------ 12 files changed, 341 deletions(-) delete mode 100644 sys-apps/hdparm/Manifest delete mode 100644 sys-apps/hdparm/files/hdparm-9.48-sysmacros.patch delete mode 100644 sys-apps/hdparm/files/hdparm-conf.d.3 delete mode 100755 sys-apps/hdparm/files/hdparm-init-9 delete mode 100644 sys-apps/hdparm/hdparm-9.48-r1.ebuild delete mode 100644 sys-apps/hdparm/metadata.xml delete mode 100644 sys-apps/smartmontools/Manifest delete mode 100644 sys-apps/smartmontools/files/smartd-r1.rc delete mode 100644 sys-apps/smartmontools/files/smartd.confd delete mode 100644 sys-apps/smartmontools/files/smartmontools-update-drivedb delete mode 100644 sys-apps/smartmontools/metadata.xml delete mode 100644 sys-apps/smartmontools/smartmontools-9999.ebuild diff --git a/sys-apps/hdparm/Manifest b/sys-apps/hdparm/Manifest deleted file mode 100644 index a7a5589..0000000 --- a/sys-apps/hdparm/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -AUX hdparm-9.48-sysmacros.patch 474 SHA256 6e75ceceac0065586af5982822d3c54fbd189dbd929102d40ac3fbf372fc1698 SHA512 cd12a544f6149076c48657f572d71dbc400fa80fa26e6604325d3812159f2a3cd3ab79d8f248b64aac3db7c9913c6f406e427cab62103c927274ff6439a4151a WHIRLPOOL 453542b64f9c64dce17824a46d4d81468b79f7252eb8dc502578264cc3735d15c08ee69a61e98be5e451f4477e05c4fdf70248ec2267d4d177295e9f515ce65c -AUX hdparm-conf.d.3 872 SHA256 37c95ff723fa578e9039613d09dbf790d99113a318c065422986c744519214e9 SHA512 968c6b9d26a71bf724728c259d35a499a644496875eac255dcac3cb4a7e5cadb677a4f6e5e0f8bbd7e1826b6fb77cb39af15b11d1e59b3e9daf9ba442b9e6f02 WHIRLPOOL 110d330860c4f5e3b1626b85ab369a02e5c092acf656edc845a2f311b5349644317ec2021063a0fb977d3b9851e0bb9c54fd66e814a080d6af3aa0f05fbd658b -AUX hdparm-init-9 1769 SHA256 49271f216d1d21db919a6894b7793a1b31763e97116d7bba92082fc7c353c7a5 SHA512 8edd2146d3ca1a3266b5dd91bbcd4644c3768f7bca0f42849b41ffb0c0ab8fff7067e470ab4d9285dacabdbaea5d2c538e99cccee9dbc0dd8a7bc596e265afc0 WHIRLPOOL 0dd6a1f43f93ee5b85a01064c157f219eec4269fe19021ad6a50b30edc4f1036f558178e7d51cfc794b8adf715713241d54898e9e19010991f08a55e4923af4d -DIST hdparm-9.48.tar.gz 130277 SHA256 ce97b4a71cb04146f54cf6f69787e7f97ddfda9836dc803b459d3b3df3a4fbee SHA512 5b8908a762d892c403406da4798202bed95f035396e3c49f04da910fa53a6b442a7d7c9cb1e5d786d7c8c5a1b681c8d1db10f1bd8dad09600a6f3811fbf8afb7 WHIRLPOOL 4f17e6622a9c6516834b0487c0d73ba7aaaffcd5381cbcf03c01fa936924975c3fb7190052c4d1bba7a0b53a53fc9b910fe4c71440f4a556d533d43ecd474516 -EBUILD hdparm-9.48-r1.ebuild 1063 SHA256 7e5ffebc9255afec667778f1e5596553da72c1be2532de217990dea84f7e92fa SHA512 cff8cd7024c94f483b59038f79101d83d08b5173d5d1bbd4211112925a5dcf929015c081094764b44d0e6f418bbc30d0051c43152543e32a617402e95fd09b88 WHIRLPOOL 0c1716cb2c5bbf8d32d7a2a9058881c60f236ce6481736099aac4ad612da747785dcf03335e577b1135773ee6c19ddda0e8dcc5eeabc8b7ac7ef3db28475d41c -MISC metadata.xml 326 SHA256 7be17151b3f5f5c65b8edad44e9c49ac62d306f856a257b67e0f01a1d6b1796d SHA512 39219fcef0756910c51e804cf94170408208840e7b88d99b4583f8fcfb02e1664358f9d4bf4c3f1a1a619b6a87852bc4831c93f10215500842023132a85c2287 WHIRLPOOL 0c72b42d0ce47a7985115e1f65cd3a25bee06d41807b746e32966d69de586d4a84e22ffba08d1fbe0f0526d80074d8433813652e4512cadee0bbc847dac19e1b diff --git a/sys-apps/hdparm/files/hdparm-9.48-sysmacros.patch b/sys-apps/hdparm/files/hdparm-9.48-sysmacros.patch deleted file mode 100644 index 98a08c7..0000000 --- a/sys-apps/hdparm/files/hdparm-9.48-sysmacros.patch +++ /dev/null @@ -1,23 +0,0 @@ -https://bugs.gentoo.org/580052 -https://sourceforge.net/p/hdparm/patches/44/ - ---- a/geom.c -+++ b/geom.c -@@ -15,6 +15,7 @@ - #include - #include - #include -+#include - #include - #include - #include ---- a/sysfs.c -+++ b/sysfs.c -@@ -15,6 +15,7 @@ - #include - #include - #include -+#include - #include - - #include "hdparm.h" diff --git a/sys-apps/hdparm/files/hdparm-conf.d.3 b/sys-apps/hdparm/files/hdparm-conf.d.3 deleted file mode 100644 index a1ae626..0000000 --- a/sys-apps/hdparm/files/hdparm-conf.d.3 +++ /dev/null @@ -1,26 +0,0 @@ -# /etc/conf.d/hdparm: config file for /etc/init.d/hdparm - -# -# Note that options such as -y which force *immediate* power saving options -# should generally not be placed here. The hdparm init.d script may run at -# anytime with respect to other init.d scripts that do system wide drive -# scans (like the hald script), so they will merely get spun right back up. -# If you wish to use these options, please use the local.start init.d script -# instead so that you're guaranteed that it will run last. -# - -# You can either set hdparm arguments for each drive using hdX_args, -# discX_args, cdromX_args and genericX_args, e.g. -# -# hda_args="-d1 -X66" -# disc1_args="-d1" -# cdrom0_args="-d1" - -# or you can set options for all PATA drives -pata_all_args="-d1" - -# or you can set options for all SATA drives -sata_all_args="" - -# or, you can set hdparm options for all drives -all_args="" diff --git a/sys-apps/hdparm/files/hdparm-init-9 b/sys-apps/hdparm/files/hdparm-init-9 deleted file mode 100755 index 1549029..0000000 --- a/sys-apps/hdparm/files/hdparm-init-9 +++ /dev/null @@ -1,77 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -depend() { - before bootmisc -} - -do_hdparm() { - local e= - eval e=\$${extra_args} - [ -z "${args}${all_args}${e}" ] && return 0 - - if [ -n "${args:=${all_args} ${e}}" ] ; then - local orgdevice=$(readlink -f "${device}") - if [ -b "${orgdevice}" ] ; then - ebegin "Running hdparm on ${device}" - hdparm ${args} "${device}" > /dev/null - eend $? - fi - fi -} - -scan_nondevfs() { - # non-devfs compatible system - local device - - for device in /dev/hd* /dev/sd* /dev/cdrom* ; do - [ -e "${device}" ] || continue - case "${device}" in - *[0-9]) continue ;; - /dev/hd*) extra_args="pata_all_args" ;; - /dev/sd*) extra_args="sata_all_args" ;; - *) extra_args="_no_xtra_args" ;; - esac - - # check that the block device really exists by - # opening it for reading - local errmsg= status= nomed=1 - errmsg=$(export LC_ALL=C ; : 2>&1 <"${device}") - status=$? - case ${errmsg} in - *": No medium found") nomed=0;; - esac - args="" - if [ -b "${device}" ] && [ "${status}" = "0" -o "${nomed}" = "0" ] ; then - local conf_var="${device##*/}_args" - eval args=\$${conf_var} - fi - - # allows a disk to be configured using its id (override above) - # we replace all dashes by underscores - for alias in /dev/disk/by-id/* ; do - if [ "${alias}" -ef "${device}" ] ; then - eval args_tmp=\$"$(basename "${alias}" | sed -e 's/-/_/g' -e 's/:/_/g')"_args - if [ -n "${args_tmp}" ]; then - args="${args_tmp}" - fi - break - fi - done - - if [ -n "$args" ]; then - do_hdparm - fi; - done -} - -start() { - if get_bootparam "nohdparm" ; then - ewarn "Skipping hdparm init as requested in kernel cmdline" - return 0 - fi - - scan_nondevfs -} diff --git a/sys-apps/hdparm/hdparm-9.48-r1.ebuild b/sys-apps/hdparm/hdparm-9.48-r1.ebuild deleted file mode 100644 index 167f90b..0000000 --- a/sys-apps/hdparm/hdparm-9.48-r1.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="4" - -inherit toolchain-funcs flag-o-matic eutils - -DESCRIPTION="Utility to change hard drive performance parameters" -HOMEPAGE="http://sourceforge.net/projects/hdparm/" -SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz" - -LICENSE="BSD GPL-2" # GPL-2 only -SLOT="0" -KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" -IUSE="static" - -src_prepare() { - epatch "${FILESDIR}"/${P}-sysmacros.patch #580052 - use static && append-ldflags -static - sed -i \ - -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \ - -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \ - Makefile || die "sed" -} - -src_compile() { - emake STRIP=: CC="$(tc-getCC)" -} - -src_install() { - into / - dosbin hdparm contrib/idectl - - newinitd "${FILESDIR}"/hdparm-init-9 hdparm - newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm - - doman hdparm.8 - dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig - docinto wiper - dodoc wiper/{README.txt,wiper.sh} -} diff --git a/sys-apps/hdparm/metadata.xml b/sys-apps/hdparm/metadata.xml deleted file mode 100644 index dc7b624..0000000 --- a/sys-apps/hdparm/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - base-system@gentoo.org - Gentoo Base System - - - hdparm - - diff --git a/sys-apps/smartmontools/Manifest b/sys-apps/smartmontools/Manifest deleted file mode 100644 index f6f1531..0000000 --- a/sys-apps/smartmontools/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -AUX smartd-r1.rc 621 BLAKE2B 1dc951b0ebf01707faa6e1df0023f561c9969471a4513c3cf586c8b77003335ff4eb68ab0f290dc93e2975b5b022eafe275e4a5295b61f416ab5b8248a399c9b SHA512 fed706bff5e45e207f90962a6185ab3f14166108eddd4f6f142cedb5489dfa05cab3e2e21593aa0d6361d02707cdb5f19cc35be5abbb3d4be51fdb976d959097 -AUX smartd.confd 107 BLAKE2B fe687733a13f7a9c32aee16a759feef798fe7db158783497c6cc0ccba2baaff7cf48acffea0a4becb47d470c691855a046617d3f8e934eeebd54df7030ef4877 SHA512 ff45462944f01c0e7cac99443078b253dcbaed4f99ffab85052b12361d9eec4beec81cab334fbede9148b3dd503d5205add32ef4327a788f02a8b1e37f460437 -AUX smartmontools-update-drivedb 42 BLAKE2B d3a501dc6a3855bd665a16ce0f105269754a29450201f312369acdbf429c8e0c7c4162de8854ca945b2082cb734dbbbb1326df39e4fb1adf271f215329bd2105 SHA512 8ad70fc85ab67b7c32eda95dd37517382c2447862df08b810a54dcdedb1eb8148f3a0e29f402a54adff31d1e88d80d09a258ed9e1e13b597ab2a358ebeda0ce8 -EBUILD smartmontools-9999.ebuild 2659 BLAKE2B c491c9983c327ac65aa1898d71c3a097cbf3b9c9283c4740d1468de8dc6f95249ac07fa8a2139d64af6411a5c2064d004be65e531113eabdd917a37cd8bdd501 SHA512 160f0c900925f9925ab6501517ebbde5089a1394dd638fa679b1528de58e5a78662c7c6709de004bb42002a2397026c314c3b9a3cff779a7ce74bdd1efeac71f -MISC metadata.xml 517 BLAKE2B e8f682d6126b98df1cbe6b43c2052ec1c36789580d19514c53d547ee11caf2b7f941066c647db091065949433f9ad87f8509ecf9f7c752853b8825456cc24401 SHA512 63c3af11414b2a8ac83351486b600c16dec940d01c07bacfefb762b3acb152f87db3f630772c0ec32cdc4b316ab3a98ed3efbda82d0af5680d76f0b24459ba14 diff --git a/sys-apps/smartmontools/files/smartd-r1.rc b/sys-apps/smartmontools/files/smartd-r1.rc deleted file mode 100644 index 32e12b7..0000000 --- a/sys-apps/smartmontools/files/smartd-r1.rc +++ /dev/null @@ -1,29 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -pidfile="/run/smartd.pid" -command="/usr/sbin/smartd" -command_args="-p ${pidfile} ${SMARTD_OPTS}" -extra_started_commands="reload" - -depend() { - need localmount - after bootmisc -} - -start_pre() { - if [ ! -f "/etc/smartd.conf" ] ; then - eerror "You should setup your /etc/smartd.conf file!" - eerror "See the smartd.conf(5) manpage." - return 1 - fi - return 0 -} - -reload() { - ebegin "Reloading configuration" - start-stop-daemon --signal HUP --pidfile ${pidfile} ${command##*/} - eend $? -} diff --git a/sys-apps/smartmontools/files/smartd.confd b/sys-apps/smartmontools/files/smartd.confd deleted file mode 100644 index 4b7db4d..0000000 --- a/sys-apps/smartmontools/files/smartd.confd +++ /dev/null @@ -1,4 +0,0 @@ -# /etc/conf.d/smartd: config file for /etc/init.d/smartd - -# Insert any other options needed -SMARTD_OPTS="" diff --git a/sys-apps/smartmontools/files/smartmontools-update-drivedb b/sys-apps/smartmontools/files/smartmontools-update-drivedb deleted file mode 100644 index 831f1e6..0000000 --- a/sys-apps/smartmontools/files/smartmontools-update-drivedb +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -/usr/sbin/update-smart-drivedb diff --git a/sys-apps/smartmontools/metadata.xml b/sys-apps/smartmontools/metadata.xml deleted file mode 100644 index b355588..0000000 --- a/sys-apps/smartmontools/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - base-system@gentoo.org - Gentoo Base System - - - Do not install the monitoring daemon and associated scripts. - Install a script to update the drivedb file. - - - smartmontools - - diff --git a/sys-apps/smartmontools/smartmontools-9999.ebuild b/sys-apps/smartmontools/smartmontools-9999.ebuild deleted file mode 100644 index e894b2a..0000000 --- a/sys-apps/smartmontools/smartmontools-9999.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=7 - -inherit flag-o-matic systemd -if [[ ${PV} == "9999" ]] ; then - ESVN_REPO_URI="https://svn.code.sf.net/p/smartmontools/code/trunk/smartmontools" - ESVN_PROJECT="smartmontools" - inherit subversion autotools -else - SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~x64-macos" -fi - -DESCRIPTION="Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.) monitoring tools" -HOMEPAGE="https://www.smartmontools.org" - -LICENSE="GPL-2" -SLOT="0" -IUSE="caps minimal selinux static update_drivedb" - -DEPEND=" - caps? ( - static? ( sys-libs/libcap-ng[static-libs] ) - !static? ( sys-libs/libcap-ng ) - ) - selinux? ( - sys-libs/libselinux - )" -RDEPEND="${DEPEND} - !minimal? ( virtual/mailx ) - selinux? ( sec-policy/selinux-smartmon ) -" - -src_prepare() { - if [[ ${PV} == "9999" ]] ; then - eautoreconf - fi -} - -src_configure() { - use minimal && einfo "Skipping the monitoring daemon for minimal build." - use static && append-ldflags -static - # The build installs /etc/init.d/smartd, but we clobber it - # in our src_install, so no need to manually delete it. - myeconfargs=( - --docdir="${EPREFIX}/usr/share/doc/${PF}" - --with-drivedbdir="${EPREFIX}/var/db/${PN}" #575292 - --with-initscriptdir="${EPREFIX}/etc/init.d" - $(use_with caps libcap-ng) - $(use_with selinux) - $(systemd_with_unitdir) - $(use_with update_drivedb update-smart-drivedb) - $(use_with update_drivedb gnutls) - ) - econf "${myeconfargs[@]}" -} - -src_install() { - local db_path="/var/db/${PN}" - - if use minimal ; then - dosbin smartctl - doman smartctl.8 - else - default - newinitd "${FILESDIR}"/smartd-r1.rc smartd - newconfd "${FILESDIR}"/smartd.confd smartd - - keepdir ${db_path} - if use update_drivedb ; then - # Move drivedb.h file out of PM's sight (bug #575292) - mv "${ED}"${db_path}/drivedb.h "${T}" || die - - exeinto /etc/cron.monthly - doexe "${FILESDIR}"/${PN}-update-drivedb - fi - fi -} - -pkg_postinst() { - if ! use minimal ; then - local db_path="/var/db/${PN}" - - if [[ -f "${db_path}/drivedb.h" ]] ; then - ewarn "WARNING! The drive database file has been replaced with the version that" - ewarn "got shipped with this release of ${PN}. You may want to update the" - ewarn "database by running the following command as root:" - ewarn "" - ewarn "/usr/sbin/update-smart-drivedb" - fi - - if use update_drivedb ; then - # Move drivedb.h to /var/db/${PN} (bug #575292) - mv "${T}"/drivedb.h ${db_path} || die - fi - fi -}