summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Solano Gómez <gentoo@sattvik.com>2013-05-10 23:10:03 -0500
committerDaniel Solano Gómez <gentoo@sattvik.com>2013-05-10 23:10:03 -0500
commita98985ad29a7c8509dec63ccb7b43596ce75c6c2 (patch)
treeee03ffc39092b4d897ca5da015e05e55b594e6e3
parentRevert "Fix portage mail address" (diff)
downloadsattvik-a98985ad29a7c8509dec63ccb7b43596ce75c6c2.tar.gz
sattvik-a98985ad29a7c8509dec63ccb7b43596ce75c6c2.tar.bz2
sattvik-a98985ad29a7c8509dec63ccb7b43596ce75c6c2.zip
smartmontools-6.1 bump
-rw-r--r--sys-apps/smartmontools/Manifest5
-rw-r--r--sys-apps/smartmontools/files/smartd.confd4
-rw-r--r--sys-apps/smartmontools/files/smartd.rc43
-rw-r--r--sys-apps/smartmontools/metadata.xml8
-rw-r--r--sys-apps/smartmontools/smartmontools-6.1.ebuild59
5 files changed, 119 insertions, 0 deletions
diff --git a/sys-apps/smartmontools/Manifest b/sys-apps/smartmontools/Manifest
new file mode 100644
index 0000000..b1629b2
--- /dev/null
+++ b/sys-apps/smartmontools/Manifest
@@ -0,0 +1,5 @@
+AUX smartd.confd 107 SHA256 714cc1b253e1f59b884be89693757fec91ca878c62f37451a49ef6bb72263e85 SHA512 ff45462944f01c0e7cac99443078b253dcbaed4f99ffab85052b12361d9eec4beec81cab334fbede9148b3dd503d5205add32ef4327a788f02a8b1e37f460437 WHIRLPOOL 773405a2cc669f6eaae835bc3a6415151891b91ccf4111147f8b12d9763be26cbf65815879a70cd64ae12a36f59840ffcb15ff7e527479f88d9816130e704e76
+AUX smartd.rc 1026 SHA256 d28f4d15d56e14cc78abc7cd04429753bab6c535b89502019757ba937aaee4ae SHA512 347c3a22b17444eb7c7c7c56764b5c6110c72ed10235c9af61fea24e02528a7999f15cc33fbc37e4d80fe7b161129a514507f0be2a92d8ff38364e4f35068f30 WHIRLPOOL 8adc6c66c5e853bfda72e1d3184788b17f4be9a0054ed41f057e9a78bd52c93a044d80b12f2acba912f0afe93d0f43fc3bb76c4e5c864de0fca75f27c91d5db1
+DIST smartmontools-6.1.tar.gz 787091 SHA256 a9003b8bccc82682f658ce76d70edb1842411e51dc56d4cd6b56618da1d9ce07 SHA512 38aca4b02c0acb4c1c641737a6b651c2110238e9696bef89adada650ab1314e3ab2f4a8bde538b959b341e3ec84348eecc075f1d709363b83b1fdb894a893295 WHIRLPOOL e94e3569c68ba57a012415f5aa9969a06d711f742e56fced0e32bb5d30f3d132f323e89e68a5d6aa7ea41ccc620eb23ea51cda4146e9d348cc444dd147d0e5dd
+EBUILD smartmontools-6.1.ebuild 1769 SHA256 c0b957b7574c659412346bb5e1c52a6bfcd41dfcf844d340cea867e1733f2d21 SHA512 2b1bd1c31e37a25154732ea89ba17a891abf3b744c85c6e78bd5d635bf84eefc1d5f6094b4d70238e51b7e9b50107927b7c900757687e0978af5d8849cb9ed43 WHIRLPOOL e56e1a378df6f44d0871408768bc495ad61648c576696d139136328b17a6b9c341da5fd7b3330680de4fbc203663d0a07fbf7fe7914ca8286266434ffc059ccd
+MISC metadata.xml 266 SHA256 bdf7da32dcd39df0f58aa02c64dfd1c5dda0ca1080c9b1001d8e110881a364eb SHA512 d2809f0df32816d12eb21b020e5edd68c28bf3ad42ca6c6ae24acb2a08afdf2ca85398b830de01a7377c10e929a8b0a3e74c4daa3c43710ad8b93a198ef2d049 WHIRLPOOL 3df4d283499b426832cc7964e0bb277614ec8fbe4ca5729dfc8dec28a85bdadba94076c845d898ab73e13ece50e7e595322fdfc095a6e4c8fa0b1706b1119e88
diff --git a/sys-apps/smartmontools/files/smartd.confd b/sys-apps/smartmontools/files/smartd.confd
new file mode 100644
index 0000000..4b7db4d
--- /dev/null
+++ b/sys-apps/smartmontools/files/smartd.confd
@@ -0,0 +1,4 @@
+# /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/smartd.rc b/sys-apps/smartmontools/files/smartd.rc
new file mode 100644
index 0000000..131a7d4
--- /dev/null
+++ b/sys-apps/smartmontools/files/smartd.rc
@@ -0,0 +1,43 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/files/smartd.rc,v 1.9 2011/09/15 07:58:50 polynomial-c Exp $
+
+depend() {
+ need localmount
+ after bootmisc
+}
+
+extra_started_commands="reload"
+
+checkconfig() {
+ 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
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting S.M.A.R.T. monitoring daemon"
+ start-stop-daemon --start --exec /usr/sbin/smartd \
+ --pidfile /var/run/smartd.pid \
+ -- -p /var/run/smartd.pid ${SMARTD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping S.M.A.R.T. monitoring daemon"
+ start-stop-daemon --stop --exec /usr/sbin/smartd \
+ --pidfile /var/run/smartd.pid
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading configuration"
+ start-stop-daemon --signal HUP --pidfile /var/run/smartd.pid smartd
+ eend $?
+}
diff --git a/sys-apps/smartmontools/metadata.xml b/sys-apps/smartmontools/metadata.xml
new file mode 100644
index 0000000..29294b2
--- /dev/null
+++ b/sys-apps/smartmontools/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+<use>
+<flag name='minimal'>Do not install the monitoring daemon and associated scripts.</flag>
+</use>
+</pkgmetadata>
diff --git a/sys-apps/smartmontools/smartmontools-6.1.ebuild b/sys-apps/smartmontools/smartmontools-6.1.ebuild
new file mode 100644
index 0000000..47a1d49
--- /dev/null
+++ b/sys-apps/smartmontools/smartmontools-6.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/smartmontools-6.0.ebuild,v 1.2 2013/02/21 02:17:07 zmedico Exp $
+
+EAPI="3"
+
+inherit flag-o-matic systemd
+if [[ ${PV} == "9999" ]] ; then
+ ESVN_REPO_URI="https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk/smartmontools"
+ ESVN_PROJECT="smartmontools"
+ inherit subversion autotools
+ SRC_URI=""
+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="http://smartmontools.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="caps minimal selinux static"
+
+DEPEND="caps? ( sys-libs/libcap-ng )
+ selinux? ( sys-libs/libselinux )"
+RDEPEND="${DEPEND}
+ !minimal? ( virtual/mailx )"
+
+src_prepare() {
+ if [[ ${PV} == "9999" ]] ; then
+ #./autogen.sh
+ 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.
+ econf \
+ --with-docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ --with-initscriptdir="${EPREFIX}/etc/init.d" \
+ $(use_with caps libcap-ng) \
+ $(use_with selinux) \
+ $(systemd_with_unitdir)
+}
+
+src_install() {
+ if use minimal ; then
+ dosbin smartctl || die
+ doman smartctl.8
+ else
+ emake install DESTDIR="${D}" || die
+ newinitd "${FILESDIR}"/smartd.rc smartd
+ newconfd "${FILESDIR}"/smartd.confd smartd
+ fi
+}