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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Thu Feb 21 02:17:07 2013 UTC (3 months ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +3 -3 lines
Add ~arm-linux keywords.

(Portage version: 2.2.0_alpha163_p9/cvs/Linux i686, signed Manifest commit with key 0xFDE8EF85AE5719A3)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/smartmontools-9999.ebuild,v 1.12 2012/08/25 22:50:24 vapier Exp $
4
5 EAPI="3"
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 SRC_URI=""
13 else
14 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~ia64-linux ~x86-freebsd ~x86-linux ~x64-macos"
16 fi
17
18 DESCRIPTION="Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.) monitoring tools"
19 HOMEPAGE="http://smartmontools.sourceforge.net/"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 IUSE="caps minimal selinux static"
24
25 DEPEND="caps? ( sys-libs/libcap-ng )
26 selinux? ( sys-libs/libselinux )"
27 RDEPEND="${DEPEND}
28 !minimal? ( virtual/mailx )"
29
30 src_prepare() {
31 if [[ ${PV} == "9999" ]] ; then
32 #./autogen.sh
33 eautoreconf
34 fi
35 }
36
37 src_configure() {
38 use minimal && einfo "Skipping the monitoring daemon for minimal build."
39 use static && append-ldflags -static
40 # The build installs /etc/init.d/smartd, but we clobber it
41 # in our src_install, so no need to manually delete it.
42 econf \
43 --with-docdir="${EPREFIX}/usr/share/doc/${PF}" \
44 --with-initscriptdir="${EPREFIX}/etc/init.d" \
45 $(use_with caps libcap-ng) \
46 $(use_with selinux) \
47 $(systemd_with_unitdir)
48 }
49
50 src_install() {
51 if use minimal ; then
52 dosbin smartctl || die
53 doman smartctl.8
54 else
55 emake install DESTDIR="${D}" || die
56 newinitd "${FILESDIR}"/smartd.rc smartd
57 newconfd "${FILESDIR}"/smartd.confd smartd
58 fi
59 }

  ViewVC Help
Powered by ViewVC 1.1.13