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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Aug 9 15:09:58 2013 UTC (6 years, 5 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump (bug #480364).

(Portage version: 2.2.0_alpha196/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 jer 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jer 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/chrony-1.28.ebuild,v 1.1 2013/07/26 22:44:51 jer Exp $
4 jer 1.1
5     EAPI=5
6     inherit eutils systemd toolchain-funcs
7    
8     DESCRIPTION="NTP client and server programs"
9     HOMEPAGE="http://chrony.tuxfamily.org/"
10     SRC_URI="http://download.tuxfamily.org/${PN}/${P/_/-}.tar.gz"
11    
12     LICENSE="GPL-2"
13     SLOT="0"
14     KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~sparc ~x86"
15     IUSE="caps ipv6 +readline +rtc"
16    
17     DEPEND="
18     caps? ( sys-libs/libcap )
19     readline? ( >=sys-libs/readline-4.1-r4 )
20     "
21     RDEPEND="${REPEND}"
22    
23     S="${WORKDIR}/${P/_/-}"
24     DOCS=( examples/chrony.{conf,keys}.example )
25    
26     src_prepare() {
27     sed -i \
28     -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
29     -e 's:/var/run:/run:g' \
30     conf.c chrony.texi.in chrony.txt examples/* faq.txt || die
31     }
32    
33     src_configure() {
34     tc-export CC
35    
36     # not an autotools generated script
37     ./configure \
38     $(usex caps '' --disable-linuxcaps) \
39     $(usex ipv6 '' --disable-ipv6) \
40     $(usex readline '' --disable-readline) \
41     $(usex rtc '' --disable-rtc) \
42     --docdir=/usr/share/doc/${PF} \
43     --infodir=/usr/share/info \
44     --mandir=/usr/share/man \
45     --prefix=/usr \
46     --sysconfdir=/etc/chrony \
47     --without-nss \
48     --without-tomcrypt \
49     ${EXTRA_ECONF} \
50     || die
51     }
52    
53     src_compile() {
54     emake all docs
55     }
56    
57     src_install() {
58     default
59     rm "${D}"/usr/share/doc/${PF}/COPYING || die
60     doinfo chrony.info*
61    
62     newinitd "${FILESDIR}"/chronyd.init chronyd
63     newconfd "${FILESDIR}"/chronyd.conf chronyd
64    
65     keepdir /var/{lib,log}/chrony /etc/chrony
66    
67     insinto /etc/logrotate.d
68     newins "${FILESDIR}"/chrony.logrotate chrony
69    
70     # systemd stuff
71     systemd_dounit "${FILESDIR}"/chronyd.service
72     insinto $(systemd_get_utildir)/ntp-units.d/
73     doins "${FILESDIR}"/50-chrony.list
74     }

  ViewVC Help
Powered by ViewVC 1.1.20