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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Jun 9 22:16:17 2010 UTC (9 years, 6 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Old.
(Portage version: 2.2_rc67/cvs/Linux i686)

1 # Copyright 1999-2009 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.23.ebuild,v 1.7 2009/10/26 07:47:26 tove Exp $
4
5 inherit eutils toolchain-funcs
6
7 MY_P=${P/_pre/-pre}
8 S=${WORKDIR}/${MY_P}
9
10 DESCRIPTION="NTP client and server programs"
11 HOMEPAGE="http://chrony.tuxfamily.org/"
12 SRC_URI="http://download.tuxfamily.org/${PN}/${MY_P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 hppa ~mips ppc sparc x86"
17 IUSE="readline"
18
19 DEPEND="readline? ( >=sys-libs/readline-4.1-r4 )"
20
21 src_unpack() {
22 unpack ${A} ; cd "${S}"
23 epatch "${FILESDIR}"/${PN}-1.20-conf.c-gentoo.diff
24 epatch "${FILESDIR}"/${PN}-1.20-chrony.conf.example-gentoo.diff
25 epatch "${FILESDIR}"/${PN}-1.21-makefile.diff
26 epatch "${FILESDIR}"/${P}-sources.diff
27
28 sed -i "s:/etc/chrony:/etc/chrony/chrony:g" \
29 chrony*.{1,5,8} faq.txt chrony.texi || die "sed failed"
30
31 # bug 214757
32 sed -i "s:defined(__ppc__) ||:& defined(__powerpc__) ||:" \
33 "${S}"/io_linux.h || die
34
35 epatch "${FILESDIR}"/${PN}-1.21-hppa.patch
36 }
37
38 src_compile() {
39 tc-export CC
40 local myconf
41 # selfwritten configure
42 use readline || myconf="--disable-readline"
43 ./configure --prefix=/usr \
44 --infodir=/usr/share/info \
45 --mandir=/usr/share/man \
46 ${myconf} ${EXTRA_ECONF} || die "configure failed"
47 emake all || die "make failed"
48 emake docs || die "make docs failed"
49 }
50
51 src_install() {
52 dobin chronyc || die
53 dosbin chronyd || die
54
55 dodoc chrony.txt README examples/chrony.{conf,keys}.example || die
56 dohtml chrony.html || die
57 doman *.{1,5,8}
58 doinfo chrony.info*
59
60 newinitd "${FILESDIR}"/chronyd.rc chronyd || die
61 dosed "s:the documentation directory:/usr/share/doc/${PF}/:" \
62 /etc/init.d/chronyd || die "doc sed failed"
63 newconfd "${FILESDIR}"/chronyd.conf chronyd || die
64
65 keepdir /var/{lib,log}/chrony /etc/chrony
66 }

  ViewVC Help
Powered by ViewVC 1.1.20