1 |
commit: 2d7894206eaad9507478d06f9a130d3e79dea75a |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 6 08:47:47 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 6 09:32:15 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d789420 |
7 |
|
8 |
net-misc/chrony: Depend on net-misc/pps-tools when USE=pps by Matthias Maier (bug #599014). |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
net-misc/chrony/chrony-2.4-r1.ebuild | 119 +++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 119 insertions(+) |
14 |
|
15 |
diff --git a/net-misc/chrony/chrony-2.4-r1.ebuild b/net-misc/chrony/chrony-2.4-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..c2601db |
18 |
--- /dev/null |
19 |
+++ b/net-misc/chrony/chrony-2.4-r1.ebuild |
20 |
@@ -0,0 +1,119 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+inherit eutils systemd toolchain-funcs |
27 |
+ |
28 |
+DESCRIPTION="NTP client and server programs" |
29 |
+HOMEPAGE="http://chrony.tuxfamily.org/" |
30 |
+SRC_URI="http://download.tuxfamily.org/${PN}/${P/_/-}.tar.gz" |
31 |
+LICENSE="GPL-2" |
32 |
+SLOT="0" |
33 |
+ |
34 |
+KEYWORDS="~amd64" |
35 |
+IUSE="caps +cmdmon html ipv6 libedit +ntp +phc +pps readline +refclock +rtc selinux +adns" |
36 |
+REQUIRED_USE=" |
37 |
+ ?? ( libedit readline ) |
38 |
+" |
39 |
+ |
40 |
+CDEPEND=" |
41 |
+ caps? ( sys-libs/libcap ) |
42 |
+ libedit? ( dev-libs/libedit ) |
43 |
+ pps? ( net-misc/pps-tools ) |
44 |
+ readline? ( >=sys-libs/readline-4.1-r4:= ) |
45 |
+" |
46 |
+DEPEND=" |
47 |
+ ${CDEPEND} |
48 |
+ html? ( dev-ruby/asciidoctor ) |
49 |
+" |
50 |
+RDEPEND=" |
51 |
+ ${CDEPEND} |
52 |
+ selinux? ( sec-policy/selinux-chronyd ) |
53 |
+" |
54 |
+ |
55 |
+RESTRICT=test |
56 |
+ |
57 |
+S="${WORKDIR}/${P/_/-}" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ sed -i \ |
61 |
+ -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \ |
62 |
+ -e 's:/var/run:/run:g' \ |
63 |
+ conf.c doc/*.man.in examples/* || die |
64 |
+} |
65 |
+ |
66 |
+src_configure() { |
67 |
+ tc-export CC |
68 |
+ |
69 |
+ local CHRONY_EDITLINE |
70 |
+ # ./configure legend: |
71 |
+ # --disable-readline : disable line editing entirely |
72 |
+ # --without-readline : do not use sys-libs/readline (enabled by default) |
73 |
+ # --without-editline : do not use dev-libs/libedit (enabled by default) |
74 |
+ if ! use readline && ! use libedit; then |
75 |
+ CHRONY_EDITLINE='--disable-readline' |
76 |
+ else |
77 |
+ CHRONY_EDITLINE+=" $(usex readline '' --without-readline)" |
78 |
+ CHRONY_EDITLINE+=" $(usex libedit '' --without-editline)" |
79 |
+ fi |
80 |
+ |
81 |
+ # not an autotools generated script |
82 |
+ local CHRONY_CONFIGURE=" |
83 |
+ ./configure \ |
84 |
+ $(usex caps '' --disable-linuxcaps) \ |
85 |
+ $(usex cmdmon '' --disable-cmdmon) \ |
86 |
+ $(usex ipv6 '' --disable-ipv6) \ |
87 |
+ $(usex ntp '' --disable-ntp) \ |
88 |
+ $(usex phc '' --disable-phc) \ |
89 |
+ $(usex pps '' --disable-pps) \ |
90 |
+ $(usex rtc '' --disable-rtc) \ |
91 |
+ $(usex refclock '' --disable-refclock) \ |
92 |
+ $(usex adns '' --disable-asyncdns) \ |
93 |
+ ${CHRONY_EDITLINE} \ |
94 |
+ ${EXTRA_ECONF} \ |
95 |
+ --docdir=/usr/share/doc/${PF} \ |
96 |
+ --chronysockdir=/run/chrony \ |
97 |
+ --mandir=/usr/share/man \ |
98 |
+ --prefix=/usr \ |
99 |
+ --sysconfdir=/etc/chrony \ |
100 |
+ --disable-sechash \ |
101 |
+ --without-nss \ |
102 |
+ --without-tomcrypt |
103 |
+ " |
104 |
+ |
105 |
+ # print the ./configure call to aid in future debugging |
106 |
+ einfo ${CHRONY_CONFIGURE} |
107 |
+ bash ${CHRONY_CONFIGURE} || die |
108 |
+} |
109 |
+ |
110 |
+src_compile() { |
111 |
+ emake all docs $(usex html '' 'ADOC=true') |
112 |
+ |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ default |
117 |
+ |
118 |
+ newinitd "${FILESDIR}"/chronyd.init-r1 chronyd |
119 |
+ newconfd "${FILESDIR}"/chronyd.conf chronyd |
120 |
+ |
121 |
+ insinto /etc/${PN} |
122 |
+ newins examples/chrony.conf.example1 chrony.conf |
123 |
+ |
124 |
+ docinto examples |
125 |
+ dodoc examples/*.example* |
126 |
+ |
127 |
+ if use html; then |
128 |
+ docinto html |
129 |
+ dodoc doc/*.html |
130 |
+ fi |
131 |
+ |
132 |
+ keepdir /var/{lib,log}/chrony |
133 |
+ |
134 |
+ insinto /etc/logrotate.d |
135 |
+ newins "${FILESDIR}"/chrony-2.4-r1.logrotate chrony |
136 |
+ |
137 |
+ systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service |
138 |
+ systemd_enable_ntpunit 50-chrony chronyd.service |
139 |
+} |