cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf
cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
}
+
+pkg_postinst() {
+ einfo "If you want to serve time on your local network, then"
+ einfo "you should disable all the ref_clocks unless you have"
+ einfo "one and can get stable time from it. Feel free to try"
+ einfo "it but PPS probably won't work unless you have a UART"
+ einfo "GPS that actually provides PPS messages."
+}
+
LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0"
SLOT="0"
-IUSE="${IUSE_NTPSEC_REFCLOCK} doc early gdb heat libressl nist ntpviz samba seccomp smear tests" #ionice
+IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libressl nist ntpviz samba seccomp smear tests" #ionice
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# net-misc/pps-tools oncore,pps
!net-misc/openntpd
"
+WAF_BINARY="${S}/waf"
+
pkg_setup() {
enewgroup ntp 123
enewuser ntp 123 -1 /dev/null ntp
$(use samba && echo "--enable-mssntp")
$(use seccomp && echo "--enable-seccomp")
$(use smear && echo "--enable-leap-smear")
- $(use tests && echo "--alltests"))
+ $(use tests && echo "--alltests")
+ $(use debug && echo "--enable-debug")
+ )
python_configure() {
waf-utils_src_configure "${myconf[@]}"
}
src_compile() {
+ unset MAKEOPTS
python_compile() {
waf-utils_src_compile
}
cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf
cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
}
+
+pkg_postinst() {
+ einfo "If you want to serve time on your local network, then"
+ einfo "you should disable all the ref_clocks unless you have"
+ einfo "one and can get stable time from it. Feel free to try"
+ einfo "it but PPS probably won't work unless you have a UART"
+ einfo "GPS that actually provides PPS messages."
+}