1 |
commit: 8b1d82cd97939eca1f801304c9a516533b1b9a9f |
2 |
Author: Stephen L Arnold <nerdboy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 27 07:13:34 2018 +0000 |
4 |
Commit: Steve Arnold <nerdboy <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 27 07:13:34 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b1d82cd |
7 |
|
8 |
net-misc/ntpsec: fix debug flag in git ebuild and add einfo refclocks |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
net-misc/ntpsec/ntpsec-1.0.0-r4.ebuild | 9 +++++++++ |
13 |
net-misc/ntpsec/ntpsec-9999.ebuild | 17 +++++++++++++++-- |
14 |
2 files changed, 24 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/net-misc/ntpsec/ntpsec-1.0.0-r4.ebuild b/net-misc/ntpsec/ntpsec-1.0.0-r4.ebuild |
17 |
index e0b19c3eb0d..3d627137b63 100644 |
18 |
--- a/net-misc/ntpsec/ntpsec-1.0.0-r4.ebuild |
19 |
+++ b/net-misc/ntpsec/ntpsec-1.0.0-r4.ebuild |
20 |
@@ -143,3 +143,12 @@ src_install() { |
21 |
cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf |
22 |
cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/ |
23 |
} |
24 |
+ |
25 |
+pkg_postinst() { |
26 |
+ einfo "If you want to serve time on your local network, then" |
27 |
+ einfo "you should disable all the ref_clocks unless you have" |
28 |
+ einfo "one and can get stable time from it. Feel free to try" |
29 |
+ einfo "it but PPS probably won't work unless you have a UART" |
30 |
+ einfo "GPS that actually provides PPS messages." |
31 |
+} |
32 |
+ |
33 |
|
34 |
diff --git a/net-misc/ntpsec/ntpsec-9999.ebuild b/net-misc/ntpsec/ntpsec-9999.ebuild |
35 |
index a565abf1c84..6b202f93605 100644 |
36 |
--- a/net-misc/ntpsec/ntpsec-9999.ebuild |
37 |
+++ b/net-misc/ntpsec/ntpsec-9999.ebuild |
38 |
@@ -32,7 +32,7 @@ IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/rclock_} |
39 |
|
40 |
LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0" |
41 |
SLOT="0" |
42 |
-IUSE="${IUSE_NTPSEC_REFCLOCK} doc early gdb heat libressl nist ntpviz samba seccomp smear tests" #ionice |
43 |
+IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libressl nist ntpviz samba seccomp smear tests" #ionice |
44 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
45 |
|
46 |
# net-misc/pps-tools oncore,pps |
47 |
@@ -57,6 +57,8 @@ DEPEND="${CDEPEND} |
48 |
!net-misc/openntpd |
49 |
" |
50 |
|
51 |
+WAF_BINARY="${S}/waf" |
52 |
+ |
53 |
pkg_setup() { |
54 |
enewgroup ntp 123 |
55 |
enewuser ntp 123 -1 /dev/null ntp |
56 |
@@ -95,7 +97,9 @@ src_configure() { |
57 |
$(use samba && echo "--enable-mssntp") |
58 |
$(use seccomp && echo "--enable-seccomp") |
59 |
$(use smear && echo "--enable-leap-smear") |
60 |
- $(use tests && echo "--alltests")) |
61 |
+ $(use tests && echo "--alltests") |
62 |
+ $(use debug && echo "--enable-debug") |
63 |
+ ) |
64 |
|
65 |
python_configure() { |
66 |
waf-utils_src_configure "${myconf[@]}" |
67 |
@@ -104,6 +108,7 @@ src_configure() { |
68 |
} |
69 |
|
70 |
src_compile() { |
71 |
+ unset MAKEOPTS |
72 |
python_compile() { |
73 |
waf-utils_src_compile |
74 |
} |
75 |
@@ -139,3 +144,11 @@ src_install() { |
76 |
cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf |
77 |
cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/ |
78 |
} |
79 |
+ |
80 |
+pkg_postinst() { |
81 |
+ einfo "If you want to serve time on your local network, then" |
82 |
+ einfo "you should disable all the ref_clocks unless you have" |
83 |
+ einfo "one and can get stable time from it. Feel free to try" |
84 |
+ einfo "it but PPS probably won't work unless you have a UART" |
85 |
+ einfo "GPS that actually provides PPS messages." |
86 |
+} |