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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed May 4 14:36:38 2011 UTC (8 years, 8 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump.

(Portage version: 2.2.0_alpha30/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20