diff options
author | 2014-12-09 23:56:59 +0000 | |
---|---|---|
committer | 2014-12-09 23:56:59 +0000 | |
commit | c87a6d59cf55ebbdfd1a43130162faf2df4ed0fc (patch) | |
tree | 9781c4169595a07a0fe9365de5c4eda7d05489a2 /sys-apps/smartmontools | |
parent | Add net-mail/davmail-bin-4.5.1 (diff) | |
download | srcshelton-c87a6d59cf55ebbdfd1a43130162faf2df4ed0fc.tar.gz srcshelton-c87a6d59cf55ebbdfd1a43130162faf2df4ed0fc.tar.bz2 srcshelton-c87a6d59cf55ebbdfd1a43130162faf2df4ed0fc.zip |
Add sys-apps/smartmontools-6.3
Diffstat (limited to 'sys-apps/smartmontools')
-rw-r--r-- | sys-apps/smartmontools/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/smartmontools/files/smartd-r1.rc | 29 | ||||
-rw-r--r-- | sys-apps/smartmontools/smartmontools-6.3.ebuild | 66 |
3 files changed, 98 insertions, 0 deletions
diff --git a/sys-apps/smartmontools/Manifest b/sys-apps/smartmontools/Manifest index 80a37de5..12df3f4a 100644 --- a/sys-apps/smartmontools/Manifest +++ b/sys-apps/smartmontools/Manifest @@ -1,4 +1,7 @@ +AUX smartd-r1.rc 739 SHA256 07c3f017a52d93fa0b8d86f2696435b95c5c09d50ccbd00eeefc07a26ef9558b SHA512 1adbce5ccf09c1e622c9bb2b7e6a737b90f560a4c5169086c50134d63e1023c92675781bab8e39962f9c89cebebb008eba34fd5253f9960db2867ffe334ec548 WHIRLPOOL fb061179b204cc0a7bc652699b20f1916968ff5681fc79a688f5588572d31e75ffdc327a2afba34d2fd5598f2fccdf05c338d64e4459b5f9303e628d4d033fb1 AUX smartd.confd 107 SHA256 714cc1b253e1f59b884be89693757fec91ca878c62f37451a49ef6bb72263e85 SHA512 ff45462944f01c0e7cac99443078b253dcbaed4f99ffab85052b12361d9eec4beec81cab334fbede9148b3dd503d5205add32ef4327a788f02a8b1e37f460437 WHIRLPOOL 773405a2cc669f6eaae835bc3a6415151891b91ccf4111147f8b12d9763be26cbf65815879a70cd64ae12a36f59840ffcb15ff7e527479f88d9816130e704e76 AUX smartd.rc 1023 SHA256 34913db32b2c7317dbea6f881fd78165ff686d534dfa82e73a2eb117c3f1e506 SHA512 f0525c89af29176980fbb14cf228720c586a204934d8993d2325cef45b394c271409cee2c2b011246752a47d55d54fdb0da0be55c82be270c2ef798ae1c9fb18 WHIRLPOOL 609a4545844fbadb5d67d67c72c34bc0d4a33bf65af2020b293b8ce56a31ae637e09582a96a1eb582dfb0a8f26cc77300d20afcdd0956c871ed0a2062c16d98d DIST smartmontools-6.1.tar.gz 787091 SHA256 a9003b8bccc82682f658ce76d70edb1842411e51dc56d4cd6b56618da1d9ce07 SHA512 38aca4b02c0acb4c1c641737a6b651c2110238e9696bef89adada650ab1314e3ab2f4a8bde538b959b341e3ec84348eecc075f1d709363b83b1fdb894a893295 WHIRLPOOL e94e3569c68ba57a012415f5aa9969a06d711f742e56fced0e32bb5d30f3d132f323e89e68a5d6aa7ea41ccc620eb23ea51cda4146e9d348cc444dd147d0e5dd +DIST smartmontools-6.3.tar.gz 809790 SHA256 a777065d1a5965d71b3672e054b09b7696200ec73aaf45ab636f34016538fe19 SHA512 59f13ca510618a65d4d227978fbcf9d0f67efbf75c425357ff79b283db650e1fc2ffb27cd37c32dc963c43130a2b982ef7b50e11673c92ae5a4369965fabe524 WHIRLPOOL 4574df8f2e01b1ef7b7874f0376021c6cce2ddd152de5d3db4c055d2e134d77d9a1cbbb372f43525f3ee2fcde2857c27f5feca96c7056dce4b5f86d7324a2087 EBUILD smartmontools-6.1.ebuild 1745 SHA256 d9269ec44ebcdfb41a38fc51c2286256daaaa13731ac2a1c063aefd246c125a8 SHA512 28125ac987222e49b4b10c6346b606d014a2405c8611f186a258ac7500cbd6021fed843c12dfd59eaf84c1329cc3ed1846074f6c1015c4c1bed75e22b540795e WHIRLPOOL 83ab197e5befcd08078f0902e8ae402d8a5ae4624195d98d4f42b7f70e1ccedb17deca9dd922a1867dcaf1937635872ad314dd857a58dd2fc1bf195f13446c96 +EBUILD smartmontools-6.3.ebuild 1823 SHA256 05a5bc9cb4d207e43a999123e619a701fcf1de87a56c50e836ce3e2e0e1d5a14 SHA512 dcfb8f99fa08a2ca70009fdf17cea0f70cd2f82c8e280c957412fb3cc96a725ce6fca5198562bc8efafae45163c519d4b24a53d1b52e9e87764ecfa6b2b5caeb WHIRLPOOL 8c5cae0d97c61dd33099e3b43ef059d43250277ca84a1d8f086b2eacda5ff265bccab47deea7f522b8675175458c38ef3bc848a8653b800bcceb03751afee7d5 diff --git a/sys-apps/smartmontools/files/smartd-r1.rc b/sys-apps/smartmontools/files/smartd-r1.rc new file mode 100644 index 00000000..aa020a19 --- /dev/null +++ b/sys-apps/smartmontools/files/smartd-r1.rc @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/files/smartd-r1.rc,v 1.1 2014/08/09 09:36:30 polynomial-c Exp $ + +pidfile="/var/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/smartmontools-6.3.ebuild b/sys-apps/smartmontools/smartmontools-6.3.ebuild new file mode 100644 index 00000000..d296bb95 --- /dev/null +++ b/sys-apps/smartmontools/smartmontools-6.3.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/smartmontools-6.3.ebuild,v 1.11 2014/11/11 10:44:45 ago Exp $ + +EAPI="4" + +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 +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? ( + 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 + #./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 + doman smartctl.8 + else + default + newinitd "${FILESDIR}"/smartd-r1.rc smartd + newconfd "${FILESDIR}"/smartd.confd smartd + fi +} |