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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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_pre2.ebuild,v 1.1 2011/04/27 05:07:56 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 sed -i "s:/etc/chrony\.:/etc/chrony/chrony.:g" \
30 examples/* chrony*.{1,5,8} faq.txt chrony.texi || die "sed failed"
31 }
32
33 src_configure() {
34 tc-export CC
35 local myconf
36 use readline || myconf+=" --disable-readline"
37 #use ipv6 || myconf+=" --disable-ipv6"
38 use caps || myconf+=" --disable-linuxcaps"
39 # selfwritten configure
40 ./configure \
41 --prefix=/usr \
42 --sysconfdir=/etc/chrony \
43 --infodir=/usr/share/info \
44 --mandir=/usr/share/man \
45 --docdir=/usr/share/doc/${PF} \
46 ${myconf} ${EXTRA_ECONF} || die "configure failed"
47 }
48
49 src_compile() {
50 emake all || die "make failed"
51 emake docs || die "make docs failed"
52 }
53
54 src_install() {
55 emake DESTDIR="${D}" install || die
56 rm "${D}"/usr/share/doc/${PF}/COPYING || die
57 dodoc examples/chrony.{conf,keys}.example || die
58 doinfo chrony.info* || die
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
67 insinto /etc/logrotate.d
68 newins "${FILESDIR}"/chrony.logrotate chrony
69 }

  ViewVC Help
Powered by ViewVC 1.1.20