/[gentoo-x86]/net-misc/chrony/chrony-1.27_pre1.ebuild
Gentoo

Contents of /net-misc/chrony/chrony-1.27_pre1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Mon Feb 4 12:27:46 2013 UTC (7 years ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump.

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 jer 1.4 # Copyright 1999-2013 Gentoo Foundation
2 jer 1.1 # Distributed under the terms of the GNU General Public License v2
3 jer 1.5 # $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/chrony-1.27_pre1.ebuild,v 1.4 2013/01/26 17:48:11 jer Exp $
4 jer 1.1
5     EAPI=4
6     inherit eutils toolchain-funcs
7    
8     MY_P="${P/_/-}"
9     DESCRIPTION="NTP client and server programs"
10     HOMEPAGE="http://chrony.tuxfamily.org/"
11     SRC_URI="http://download.tuxfamily.org/${PN}/${MY_P}.tar.gz"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15 blueness 1.3 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~sparc ~x86"
16 jer 1.1 IUSE="caps +ipv6 +readline"
17    
18     RDEPEND="
19     readline? ( >=sys-libs/readline-4.1-r4 )
20     caps? ( sys-libs/libcap )
21     "
22     DEPEND="${RDEPEND}"
23     DOCS=( examples/chrony.{conf,keys}.example )
24    
25     S="${WORKDIR}/${MY_P}"
26    
27     src_prepare() {
28     sed -i examples/* chrony*.{1,5,8} faq.txt chrony.texi \
29     -e "s:/etc/chrony\.:/etc/chrony/chrony.:g" \
30     || die
31     }
32    
33     src_configure() {
34     tc-export CC
35    
36     # not an autotools generated script
37     ./configure \
38     $( use caps || echo --disable-linuxcaps ) \
39     $( use ipv6 || echo --disable-ipv6 ) \
40     $( use readline || echo --disable-readline ) \
41 jer 1.4 ${EXTRA_ECONF} \
42     --docdir=/usr/share/doc/${PF} \
43     --infodir=/usr/share/info \
44     --mandir=/usr/share/man \
45 jer 1.1 --prefix=/usr \
46     --sysconfdir=/etc/chrony \
47 jer 1.2 --without-nss \
48 jer 1.1 || die
49     }
50    
51     src_compile() {
52 jer 1.4 emake all docs
53 jer 1.1 }
54    
55     src_install() {
56     default
57     rm "${D}"/usr/share/doc/${PF}/COPYING || die
58     doinfo chrony.info*
59    
60     newinitd "${FILESDIR}"/chronyd.rc chronyd
61     newconfd "${FILESDIR}"/chronyd.conf chronyd
62    
63     keepdir /var/{lib,log}/chrony /etc/chrony
64    
65     insinto /etc/logrotate.d
66     newins "${FILESDIR}"/chrony.logrotate chrony
67     }

  ViewVC Help
Powered by ViewVC 1.1.20