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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Jul 4 13:41:32 2014 UTC (5 years, 6 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump.

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

1 jer 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jer 1.3 # $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/chrony-1.30_pre1.ebuild,v 1.2 2014/06/07 12:42:55 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     LICENSE="GPL-2"
12     SLOT="0"
13    
14     KEYWORDS=""
15     IUSE="caps ipv6 +readline +rtc selinux"
16    
17     RDEPEND="
18     caps? ( sys-libs/libcap )
19     readline? ( >=sys-libs/readline-4.1-r4 )
20     selinux? ( sec-policy/selinux-chronyd )
21     "
22     DEPEND="
23     ${RDEPEND}
24     sys-apps/texinfo
25     "
26    
27 jer 1.2 RESTRICT=test
28    
29 jer 1.1 S="${WORKDIR}/${P/_/-}"
30    
31     src_prepare() {
32     sed -i \
33     -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
34     -e 's:/var/run:/run:g' \
35     conf.c chrony.texi.in chrony.txt examples/* faq.txt || die
36     }
37    
38     src_configure() {
39     tc-export CC
40    
41     # not an autotools generated script
42     ./configure \
43     $(usex caps '' --disable-linuxcaps) \
44     $(usex ipv6 '' --disable-ipv6) \
45     $(usex readline '' --disable-readline) \
46     $(usex rtc '' --disable-rtc) \
47     --docdir=/usr/share/doc/${PF} \
48     --infodir=/usr/share/info \
49     --mandir=/usr/share/man \
50     --prefix=/usr \
51     --sysconfdir=/etc/chrony \
52     --without-nss \
53     --without-tomcrypt \
54     ${EXTRA_ECONF} \
55     || die
56     }
57    
58     src_compile() {
59     emake all docs
60     }
61    
62     src_install() {
63     default
64     rm "${D}"/usr/share/doc/${PF}/COPYING || die
65     doinfo chrony.info*
66    
67     newinitd "${FILESDIR}"/chronyd.init chronyd
68     newconfd "${FILESDIR}"/chronyd.conf chronyd
69    
70     insinto /etc/${PN}
71     newins examples/chrony.conf.example chrony.conf
72     newins examples/chrony.keys.example chrony.keys
73    
74     keepdir /var/{lib,log}/chrony
75    
76     insinto /etc/logrotate.d
77     newins "${FILESDIR}"/chrony.logrotate chrony
78    
79     systemd_newunit "${FILESDIR}"/chronyd.service-r1 chronyd.service
80     systemd_enable_ntpunit 50-chrony chronyd.service
81     }

  ViewVC Help
Powered by ViewVC 1.1.20