/[gentoo-x86]/sys-apps/smartmontools/smartmontools-6.3.ebuild
Gentoo

Contents of /sys-apps/smartmontools/smartmontools-6.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Oct 31 16:01:17 2014 UTC (6 years ago) by ago
Branch: MAIN
Changes since 1.4: +2 -2 lines
Stable for ppc64, wrt bug #526444

(Portage version: 2.2.8-r2/cvs/Linux x86_64, RepoMan options: --include-arches="ppc64", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/smartmontools-6.3.ebuild,v 1.4 2014/10/30 18:43:14 maekke Exp $
4
5 EAPI="4"
6
7 inherit flag-o-matic systemd
8 if [[ ${PV} == "9999" ]] ; then
9 ESVN_REPO_URI="https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk/smartmontools"
10 ESVN_PROJECT="smartmontools"
11 inherit subversion autotools
12 else
13 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14 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"
15 fi
16
17 DESCRIPTION="Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.) monitoring tools"
18 HOMEPAGE="http://smartmontools.sourceforge.net/"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22 IUSE="caps minimal selinux static"
23
24 DEPEND="
25 caps? (
26 static? ( sys-libs/libcap-ng[static-libs] )
27 !static? ( sys-libs/libcap-ng )
28 )
29 selinux? (
30 sys-libs/libselinux
31 sec-policy/selinux-smartmon
32 )"
33 RDEPEND="${DEPEND}
34 !minimal? ( virtual/mailx )"
35
36 src_prepare() {
37 if [[ ${PV} == "9999" ]] ; then
38 #./autogen.sh
39 eautoreconf
40 fi
41 }
42
43 src_configure() {
44 use minimal && einfo "Skipping the monitoring daemon for minimal build."
45 use static && append-ldflags -static
46 # The build installs /etc/init.d/smartd, but we clobber it
47 # in our src_install, so no need to manually delete it.
48 econf \
49 --with-docdir="${EPREFIX}/usr/share/doc/${PF}" \
50 --with-initscriptdir="${EPREFIX}/etc/init.d" \
51 $(use_with caps libcap-ng) \
52 $(use_with selinux) \
53 $(systemd_with_unitdir)
54 }
55
56 src_install() {
57 if use minimal ; then
58 dosbin smartctl
59 doman smartctl.8
60 else
61 default
62 newinitd "${FILESDIR}"/smartd-r1.rc smartd
63 newconfd "${FILESDIR}"/smartd.confd smartd
64 fi
65 }

  ViewVC Help
Powered by ViewVC 1.1.20