Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/hddtemp/
Date: Sat, 16 Feb 2019 19:45:15
Message-Id: 1550346287.7d65b9a43b0ea4dcd6fa2bbf88a596cd29c44130.zlogene@gentoo
1 commit: 7d65b9a43b0ea4dcd6fa2bbf88a596cd29c44130
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 16 19:44:47 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 16 19:44:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d65b9a4
7
8 app-admin/hddtemp: Drop old
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 app-admin/hddtemp/hddtemp-0.3_beta15-r26.ebuild | 114 ------------------------
14 1 file changed, 114 deletions(-)
15
16 diff --git a/app-admin/hddtemp/hddtemp-0.3_beta15-r26.ebuild b/app-admin/hddtemp/hddtemp-0.3_beta15-r26.ebuild
17 deleted file mode 100644
18 index 3d5ce71a824..00000000000
19 --- a/app-admin/hddtemp/hddtemp-0.3_beta15-r26.ebuild
20 +++ /dev/null
21 @@ -1,114 +0,0 @@
22 -# Copyright 1999-2017 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=5
26 -
27 -inherit eutils autotools readme.gentoo-r1 systemd
28 -
29 -MY_P=${P/_beta/-beta}
30 -DBV=20080531
31 -
32 -DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives"
33 -HOMEPAGE="https://savannah.nongnu.org/projects/hddtemp/"
34 -SRC_URI="http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2 mirror://gentoo/hddtemp-${DBV}.db.bz2"
35 -
36 -LICENSE="GPL-2"
37 -SLOT="0"
38 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ~ppc64 sparc x86"
39 -IUSE="network-cron nls selinux"
40 -
41 -DEPEND=""
42 -RDEPEND="selinux? ( sec-policy/selinux-hddtemp )"
43 -
44 -S="${WORKDIR}/${MY_P}"
45 -
46 -DOCS=(README TODO ChangeLog)
47 -
48 -DISABLE_AUTOFORMATTING="yes"
49 -DOC_CONTENTS="In order to update your hddtemp database, run:
50 -emerge --config =${CATEGORY}/${PF} or update-hddtemp.db (if USE
51 -network-cron is enabled)
52 -
53 -If your hard drive is not recognized by hddtemp, please consider
54 -submitting your HDD info for inclusion into the Gentoo hddtemp
55 -database by filing a bug at https://bugs.gentoo.org/
56 -
57 -If hddtemp complains but finds your HDD temperature sensor, use the
58 ---quiet option to suppress the warning.
59 -"
60 -
61 -PATCHES=(
62 - "${FILESDIR}"/${P}-satacmds.patch
63 - "${FILESDIR}"/${P}-byteswap.patch
64 - "${FILESDIR}"/${P}-execinfo.patch
65 - "${FILESDIR}"/${P}-nls.patch
66 - "${FILESDIR}"/${P}-iconv.patch
67 - "${FILESDIR}"/${P}-dontwake.patch
68 -)
69 -
70 -src_prepare() {
71 - epatch "${PATCHES[@]}"
72 - mv "${S}"/configure.{in,ac} || die
73 - AT_M4DIR="m4" eautoreconf
74 -}
75 -
76 -src_configure() {
77 - local myconf
78 -
79 - myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db"
80 - # disabling nls breaks compiling
81 - use nls || myconf="--disable-nls ${myconf}"
82 - econf ${myconf}
83 -}
84 -
85 -src_install() {
86 - default
87 -
88 - insinto /usr/share/hddtemp
89 - newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db
90 - doins "${FILESDIR}"/hddgentoo.db
91 -
92 - update_db "${D}/usr/share/hddtemp/hddgentoo.db" "${D}/usr/share/hddtemp/hddtemp.db"
93 - newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp
94 - newinitd "${FILESDIR}"/hddtemp-init hddtemp
95 - systemd_newunit "${FILESDIR}"/hddtemp.service-r1 "${PN}.service"
96 - systemd_install_serviced "${FILESDIR}"/hddtemp.service.conf
97 -
98 - readme.gentoo_create_doc
99 -
100 - if use network-cron; then
101 - dosbin "${FILESDIR}"/update-hddtemp.db
102 - exeinto /etc/cron.monthly
103 - echo -e "#!/bin/sh\n/usr/sbin/update-hddtemp.db" > "${T}"/hddtemp.cron
104 - newexe "${T}"/hddtemp.cron update-hddtemp.db
105 - fi
106 -}
107 -
108 -pkg_postinst() {
109 - readme.gentoo_print_elog
110 -}
111 -
112 -update_db() {
113 - local src=$1
114 - local dst=$2
115 -
116 - while read line ; do
117 - if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then
118 - echo "${line}" >> "${dst}"
119 - fi
120 -
121 - id=$(echo "${line}" | grep -o '"[^"]*"')
122 -
123 - grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}"
124 - done < "${src}"
125 -}
126 -
127 -pkg_config() {
128 - cd "${ROOT}"/usr/share/hddtemp || die
129 -
130 - einfo "Trying to download the latest hddtemp.db file"
131 - wget http://www.guzu.net/linux/hddtemp.db -O hddtemp.db \
132 - || die "failed to download hddtemp.db"
133 -
134 - update_db "hddgentoo.db" "hddtemp.db"
135 -}