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

Contents of /net-misc/chrony/chrony-1.26.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Apr 11 21:38:59 2012 UTC (2 years, 8 months ago) by jer
Branch: MAIN
Changes since 1.6: +2 -1 lines
Do not use dev-libs/libtomcrypt even if found (bug #262601). Add pre-release version, reintroduce USE=ipv6, clean up a lot.

(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.26.ebuild,v 1.6 2012/02/14 23:10:37 ranger 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="
19 readline? ( >=sys-libs/readline-4.1-r4 )
20 caps? ( sys-libs/libcap )
21 "
22 DEPEND="${RDEPEND}"
23
24 src_prepare() {
25 sed -i "s:/etc/chrony\.:/etc/chrony/chrony.:g" \
26 examples/* chrony*.{1,5,8} faq.txt chrony.texi || die "sed failed"
27 }
28
29 src_configure() {
30 tc-export CC
31 local myconf
32 use readline || myconf+=" --disable-readline"
33 #use ipv6 || myconf+=" --disable-ipv6"
34 use caps || myconf+=" --disable-linuxcaps"
35 # selfwritten configure
36 ./configure \
37 --prefix=/usr \
38 --sysconfdir=/etc/chrony \
39 --infodir=/usr/share/info \
40 --mandir=/usr/share/man \
41 --docdir=/usr/share/doc/${PF} \
42 --without-tomcrypt \
43 ${myconf} ${EXTRA_ECONF} || die "configure failed"
44 }
45
46 src_compile() {
47 emake all || die "make failed"
48 emake docs || die "make docs failed"
49 }
50
51 src_install() {
52 emake DESTDIR="${D}" install || die
53 rm "${D}"/usr/share/doc/${PF}/COPYING || die
54 dodoc examples/chrony.{conf,keys}.example || die
55 doinfo chrony.info* || die
56
57 newinitd "${FILESDIR}"/chronyd.rc chronyd || die
58 newconfd "${FILESDIR}"/chronyd.conf chronyd || die
59
60 keepdir /var/{lib,log}/chrony /etc/chrony
61
62 insinto /etc/logrotate.d
63 newins "${FILESDIR}"/chrony.logrotate chrony
64 }

  ViewVC Help
Powered by ViewVC 1.1.20