Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/smartmontools/
Date: Mon, 31 Dec 2018 10:39:19
Message-Id: 1546252747.2f540901e9e8fed3c4e544ca5c0107a51cf192e9.polynomial-c@gentoo
1 commit: 2f540901e9e8fed3c4e544ca5c0107a51cf192e9
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 31 10:38:50 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 31 10:39:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f540901
7
8 sys-apps/smartmontools: Removed old.
9
10 Package-Manager: Portage-2.3.53, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-apps/smartmontools/Manifest | 2 -
14 sys-apps/smartmontools/metadata.xml | 1 -
15 sys-apps/smartmontools/smartmontools-6.4-r1.ebuild | 97 --------------
16 sys-apps/smartmontools/smartmontools-6.4.ebuild | 65 ---------
17 sys-apps/smartmontools/smartmontools-6.5-r1.ebuild | 148 ---------------------
18 5 files changed, 313 deletions(-)
19
20 diff --git a/sys-apps/smartmontools/Manifest b/sys-apps/smartmontools/Manifest
21 index 4637fa2c24a..a076447dcc8 100644
22 --- a/sys-apps/smartmontools/Manifest
23 +++ b/sys-apps/smartmontools/Manifest
24 @@ -1,4 +1,2 @@
25 -DIST smartmontools-6.4.tar.gz 822539 BLAKE2B be76ec24cf24b2388a77758a1df5b5b9b19bd455dda26df6c13184051a51feeb0baf164265fcfe15b1d2ac41767d546109dea53cd7ac290d02f6e03b44da454f SHA512 366cd55ec668da1ca8a3d9ba79d5bee6e0c59032936b7f2f161f8fbb1c9f869c505d715cc10562b6241f808bb8b534feaf9d9fd752f6cb1593ee893611742adc
26 -DIST smartmontools-6.5.tar.gz 855642 BLAKE2B 25f78de8fd58497cf052e75aef746c15af8d56d2694007c1d6e2f8e31cae3b517babfc52ef73d3ae4bc5104a49e4bac16a48f23f3b3145228997bef0aad823dd SHA512 dca7a6363ab7280ee4197155025f624c978886dcc94fc47b524f6f849138b62c471e966c0d4bf59c7bba50519dc122264618e5ded80a406863ddd10b43d928d3
27 DIST smartmontools-6.6.tar.gz 903847 BLAKE2B 6c18884cf763c146abceed47587de0e77cd434673df6a17e4527d160f06a5a8762e6ae490fc5ed13a33f819ba23c1924b49dd13620f4a51e6a40dac20a217523 SHA512 64bb533dac29f62ddd662a16a12c97df1af9cbac9ac526ce7af0b3bff9da49cf265a2030d91a7160452b56a67e80d7f34c9b4e45bbb320114f55695e2cb5cfaf
28 DIST smartmontools-7.0.tar.gz 944925 BLAKE2B 41b3894efa05471bf358fca4ba87a765e3a54df68c9a617804a9e0853752c57b68fdbaa9d55fa1462a8fa7de1d6cb5630c66929dfe521be38b180944cb80acc9 SHA512 96e18a201182579f699d541539ce393e7bc2191e027cfdf7f87455a63da3a14451574f8fe391232047ac941ace453a017193d0a4987a4edb8f7ed9d5007f0512
29
30 diff --git a/sys-apps/smartmontools/metadata.xml b/sys-apps/smartmontools/metadata.xml
31 index 0ae4667bf8d..cb72f5108e4 100644
32 --- a/sys-apps/smartmontools/metadata.xml
33 +++ b/sys-apps/smartmontools/metadata.xml
34 @@ -8,7 +8,6 @@
35 <use>
36 <flag name="caps">Build against <pkg>sys-libs/libcap-ng</pkg> to allow smartd to drop its privileges.</flag>
37 <flag name="daemon">Install the monitoring daemon (smartd) and associated scripts.</flag>
38 - <flag name="minimal">Do not install the monitoring daemon and associated scripts.</flag>
39 <flag name="update_drivedb">Install a script to update the drivedb file.</flag>
40 </use>
41 <upstream>
42
43 diff --git a/sys-apps/smartmontools/smartmontools-6.4-r1.ebuild b/sys-apps/smartmontools/smartmontools-6.4-r1.ebuild
44 deleted file mode 100644
45 index c5512a3aad9..00000000000
46 --- a/sys-apps/smartmontools/smartmontools-6.4-r1.ebuild
47 +++ /dev/null
48 @@ -1,97 +0,0 @@
49 -# Copyright 1999-2017 Gentoo Foundation
50 -# Distributed under the terms of the GNU General Public License v2
51 -
52 -EAPI=5
53 -
54 -inherit flag-o-matic systemd
55 -if [[ ${PV} == "9999" ]] ; then
56 - ESVN_REPO_URI="https://svn.code.sf.net/p/smartmontools/code/trunk/smartmontools"
57 - ESVN_PROJECT="smartmontools"
58 - inherit subversion autotools
59 -else
60 - SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
61 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
62 -fi
63 -
64 -DESCRIPTION="Tools to monitor storage systems to provide advanced warning of disk degradation"
65 -HOMEPAGE="https://www.smartmontools.org"
66 -
67 -LICENSE="GPL-2"
68 -SLOT="0"
69 -IUSE="caps minimal selinux static"
70 -
71 -DEPEND="
72 - caps? (
73 - static? ( sys-libs/libcap-ng[static-libs] )
74 - !static? ( sys-libs/libcap-ng )
75 - )
76 - selinux? (
77 - sys-libs/libselinux
78 - )"
79 -RDEPEND="${DEPEND}
80 - !minimal? ( virtual/mailx )
81 - selinux? ( sec-policy/selinux-smartmon )
82 -"
83 -
84 -src_prepare() {
85 - # 580424
86 - sed '/^SRCEXPR/s@http:@https:@' \
87 - -i update-smart-drivedb.in \
88 - || die
89 - if [[ ${PV} == "9999" ]] ; then
90 - eautoreconf
91 - fi
92 -}
93 -
94 -src_configure() {
95 - use minimal && einfo "Skipping the monitoring daemon for minimal build."
96 - use static && append-ldflags -static
97 - # The build installs /etc/init.d/smartd, but we clobber it
98 - # in our src_install, so no need to manually delete it.
99 - myeconfargs=(
100 - --docdir="${EPREFIX}/usr/share/doc/${PF}"
101 - --with-drivedbdir=/var/db/${PN} #575292
102 - --with-initscriptdir="${EPREFIX}/etc/init.d"
103 - $(use_with caps libcap-ng)
104 - $(use_with selinux)
105 - $(systemd_with_unitdir)
106 - )
107 - econf "${myeconfargs[@]}"
108 -}
109 -
110 -src_install() {
111 - local db_path="/var/db/${PN}"
112 -
113 - if use minimal ; then
114 - dosbin smartctl
115 - doman smartctl.8
116 - else
117 - default
118 - newinitd "${FILESDIR}"/smartd-r1.rc smartd
119 - newconfd "${FILESDIR}"/smartd.confd smartd
120 -
121 - # Move drivedb.h file out of PM's sight (bug #575292)
122 - mv "${ED}${db_path}/drivedb.h" "${T}" || die
123 - keepdir "${db_path}"
124 -
125 - exeinto /etc/cron.monthly
126 - doexe "${FILESDIR}"/${PN}-update-drivedb
127 - fi
128 -}
129 -
130 -pkg_postinst() {
131 - if ! use minimal ; then
132 - local db_path="/var/db/${PN}"
133 -
134 - if [[ -f "${db_path}/drivedb.h" ]] ; then
135 - ewarn "WARNING! The existing copy of the drive database has been replaced with the version that"
136 - ewarn "was shipped with this release of ${PN}. You may want to update the"
137 - ewarn "database by running the following command as root:"
138 - ewarn ""
139 - ewarn "/usr/sbin/update-smart-drivedb"
140 - fi
141 -
142 - # Move drivedb.h to /var/db/${PN} (bug #575292)
143 - mv "${T}"/drivedb.h "${db_path}" || die
144 - fi
145 -}
146
147 diff --git a/sys-apps/smartmontools/smartmontools-6.4.ebuild b/sys-apps/smartmontools/smartmontools-6.4.ebuild
148 deleted file mode 100644
149 index c3613455e26..00000000000
150 --- a/sys-apps/smartmontools/smartmontools-6.4.ebuild
151 +++ /dev/null
152 @@ -1,65 +0,0 @@
153 -# Copyright 1999-2017 Gentoo Foundation
154 -# Distributed under the terms of the GNU General Public License v2
155 -
156 -EAPI="4"
157 -
158 -inherit flag-o-matic systemd
159 -if [[ ${PV} == "9999" ]] ; then
160 - ESVN_REPO_URI="https://svn.code.sf.net/p/smartmontools/code/trunk/smartmontools"
161 - ESVN_PROJECT="smartmontools"
162 - inherit subversion autotools
163 -else
164 - SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
165 - KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
166 -fi
167 -
168 -DESCRIPTION="Tools to monitor storage systems to provide advanced warning of disk degradation"
169 -HOMEPAGE="https://www.smartmontools.org"
170 -
171 -LICENSE="GPL-2"
172 -SLOT="0"
173 -IUSE="caps minimal selinux static"
174 -
175 -DEPEND="
176 - caps? (
177 - static? ( sys-libs/libcap-ng[static-libs] )
178 - !static? ( sys-libs/libcap-ng )
179 - )
180 - selinux? (
181 - sys-libs/libselinux
182 - )"
183 -RDEPEND="${DEPEND}
184 - !minimal? ( virtual/mailx )
185 - selinux? ( sec-policy/selinux-smartmon )
186 -"
187 -
188 -src_prepare() {
189 - if [[ ${PV} == "9999" ]] ; then
190 - #./autogen.sh
191 - eautoreconf
192 - fi
193 -}
194 -
195 -src_configure() {
196 - use minimal && einfo "Skipping the monitoring daemon for minimal build."
197 - use static && append-ldflags -static
198 - # The build installs /etc/init.d/smartd, but we clobber it
199 - # in our src_install, so no need to manually delete it.
200 - econf \
201 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
202 - --with-initscriptdir="${EPREFIX}/etc/init.d" \
203 - $(use_with caps libcap-ng) \
204 - $(use_with selinux) \
205 - $(systemd_with_unitdir)
206 -}
207 -
208 -src_install() {
209 - if use minimal ; then
210 - dosbin smartctl
211 - doman smartctl.8
212 - else
213 - default
214 - newinitd "${FILESDIR}"/smartd-r1.rc smartd
215 - newconfd "${FILESDIR}"/smartd.confd smartd
216 - fi
217 -}
218
219 diff --git a/sys-apps/smartmontools/smartmontools-6.5-r1.ebuild b/sys-apps/smartmontools/smartmontools-6.5-r1.ebuild
220 deleted file mode 100644
221 index 499d2ebabc7..00000000000
222 --- a/sys-apps/smartmontools/smartmontools-6.5-r1.ebuild
223 +++ /dev/null
224 @@ -1,148 +0,0 @@
225 -# Copyright 1999-2017 Gentoo Foundation
226 -# Distributed under the terms of the GNU General Public License v2
227 -
228 -EAPI="6"
229 -
230 -inherit autotools flag-o-matic systemd
231 -if [[ ${PV} == "9999" ]] ; then
232 - ESVN_REPO_URI="https://svn.code.sf.net/p/smartmontools/code/trunk/smartmontools"
233 - ESVN_PROJECT="smartmontools"
234 - inherit subversion
235 -else
236 - SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
237 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
238 -fi
239 -
240 -DESCRIPTION="Tools to monitor storage systems to provide advanced warning of disk degradation"
241 -HOMEPAGE="https://www.smartmontools.org"
242 -
243 -LICENSE="GPL-2"
244 -SLOT="0"
245 -IUSE="caps +daemon selinux static update_drivedb"
246 -
247 -DEPEND="
248 - caps? (
249 - static? ( sys-libs/libcap-ng[static-libs] )
250 - !static? ( sys-libs/libcap-ng )
251 - )
252 - kernel_FreeBSD? (
253 - sys-freebsd/freebsd-lib[usb]
254 - )
255 - selinux? (
256 - sys-libs/libselinux
257 - )"
258 -RDEPEND="${DEPEND}
259 - daemon? ( virtual/mailx )
260 - selinux? ( sec-policy/selinux-smartmon )
261 - update_drivedb? (
262 - || (
263 - net-misc/curl
264 - net-misc/wget
265 - www-client/lynx
266 - dev-vcs/subversion
267 - )
268 - )
269 -"
270 -
271 -REQUIRED_USE="( caps? ( daemon ) )"
272 -
273 -src_prepare() {
274 - default
275 -
276 - eautoreconf
277 -}
278 -
279 -src_configure() {
280 - use static && append-ldflags -static
281 - # The build installs /etc/init.d/smartd, but we clobber it
282 - # in our src_install, so no need to manually delete it.
283 - myeconfargs=(
284 - --docdir="${EPREFIX}/usr/share/doc/${PF}"
285 - --with-drivedbdir="${EPREFIX}/var/db/${PN}" #575292
286 - --with-initscriptdir="${EPREFIX}/etc/init.d"
287 - $(use_with caps libcap-ng)
288 - $(use_with selinux)
289 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
290 - $(use_with update_drivedb update-smart-drivedb)
291 - )
292 - econf "${myeconfargs[@]}"
293 -}
294 -
295 -src_install() {
296 - local db_path="/var/db/${PN}"
297 -
298 - if use daemon; then
299 - default
300 -
301 - newinitd "${FILESDIR}"/smartd-r1.rc smartd
302 - newconfd "${FILESDIR}"/smartd.confd smartd
303 - systemd_newunit "${FILESDIR}"/smartd.systemd smartd.service
304 - else
305 - dosbin smartctl
306 - doman smartctl.8
307 -
308 - local DOCS=( AUTHORS ChangeL* COPYING INSTALL NEWS README TODO )
309 - einstalldocs
310 - fi
311 -
312 - if use update_drivedb ; then
313 - if ! use daemon; then
314 - dosbin "${S}"/update-smart-drivedb
315 - fi
316 -
317 - exeinto /etc/cron.monthly
318 - doexe "${FILESDIR}/${PN}-update-drivedb"
319 - fi
320 -
321 - if use daemon || use update_drivedb; then
322 - keepdir "${db_path}"
323 -
324 - # Install a copy of the initial drivedb.h to /usr/share/${PN}
325 - # so that we can access that file later in pkg_postinst
326 - # even when dealing with binary packages (bug #575292)
327 - insinto /usr/share/${PN}
328 - doins "${S}"/drivedb.h
329 - fi
330 -
331 - # Make sure we never install drivedb.h into the db location
332 - # of the acutal image so we don't record hashes because user
333 - # can modify that file
334 - rm -f "${ED%/}${db_path}/drivedb.h" || die
335 -
336 - # Bug #622072
337 - find "${ED%/}"/usr/share/doc -type f -exec chmod a-x '{}' \; || die
338 -}
339 -
340 -pkg_postinst() {
341 - if use daemon || use update_drivedb; then
342 - local initial_db_file="${EPREFIX%/}/usr/share/${PN}/drivedb.h"
343 - local db_path="${EPREFIX%/}/var/db/${PN}"
344 -
345 - if [[ ! -f "${db_path}/drivedb.h" ]] ; then
346 - # No initial database found
347 - cp "${initial_db_file}" "${db_path}" || die
348 - einfo "Default drive database which was shipped with this release of ${PN}"
349 - einfo "has been installed to '${db_path}'."
350 - else
351 - ewarn "WARNING: There's already a drive database in '${db_path}'!"
352 - ewarn "Because we cannot determine if this database is untouched"
353 - ewarn "or was modified by the user you have to manually update the"
354 - ewarn "drive database:"
355 - ewarn ""
356 - ewarn "a) Replace '${db_path}/drivedb.h' by the database shipped with this"
357 - ewarn " release which can be found in '${initial_db_file}', i.e."
358 - ewarn ""
359 - ewarn " cp \"${initial_db_file}\" \"${db_path}\""
360 - ewarn ""
361 - ewarn "b) Run the following command as root:"
362 - ewarn ""
363 - ewarn " /usr/sbin/update-smart-drivedb"
364 -
365 - if ! use update_drivedb ; then
366 - ewarn ""
367 - ewarn "However, 'update-smart-drivedb' requires that you re-emerge ${PN}"
368 - ewarn "with USE='update_drivedb'."
369 - fi
370 - fi
371 - fi
372 -}