/[gentoo-x86]/net-misc/chrony/chrony-1.24-r1.ebuild
Gentoo

Contents of /net-misc/chrony/chrony-1.24-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Oct 14 18:11:06 2010 UTC (9 years, 3 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2_rc96/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/chrony-1.24-r1.ebuild,v 1.6 2010/04/04 19:10:15 armin76 Exp $
4
5 EAPI=2
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="NTP client and server programs"
10 HOMEPAGE="http://chrony.tuxfamily.org/"
11 SRC_URI="http://download.tuxfamily.org/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 hppa ~mips ppc sparc x86"
16 IUSE="caps readline"
17
18 RDEPEND="readline? ( >=sys-libs/readline-4.1-r4 )
19 caps? ( sys-libs/libcap )"
20 DEPEND="${RDEPEND}"
21
22 src_prepare() {
23 epatch "${FILESDIR}"/${PN}-1.21-hppa.patch
24 sed -i "s:/etc/chrony\.:/etc/chrony/chrony.:g" \
25 examples/* chrony*.{1,5,8} faq.txt chrony.texi || die "sed failed"
26 }
27
28 src_configure() {
29 tc-export CC
30 local myconf
31 use readline || myconf+=" --disable-readline"
32 #use ipv6 || myconf+=" --disable-ipv6"
33 use caps || myconf+=" --disable-linuxcaps"
34 # selfwritten configure
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc/chrony \
38 --infodir=/usr/share/info \
39 --mandir=/usr/share/man \
40 --docdir=/usr/share/doc/${PF} \
41 ${myconf} ${EXTRA_ECONF} || die "configure failed"
42 }
43
44 src_compile() {
45 emake all || die "make failed"
46 emake docs || die "make docs failed"
47 }
48
49 src_install() {
50 emake DESTDIR="${D}" install || die
51 rm "${D}"/usr/share/doc/${PF}/COPYING || die
52 dodoc examples/chrony.{conf,keys}.example || die
53 doinfo chrony.info* || die
54
55 newinitd "${FILESDIR}"/chronyd.rc chronyd || die
56 dosed "s:the documentation directory:/usr/share/doc/${PF}/:" \
57 /etc/init.d/chronyd || die "doc sed failed"
58 newconfd "${FILESDIR}"/chronyd.conf chronyd || die
59
60 keepdir /var/{lib,log}/chrony /etc/chrony
61 }

  ViewVC Help
Powered by ViewVC 1.1.20