Index: head/net/openntpd/Makefile =================================================================== --- head/net/openntpd/Makefile (revision 385050) +++ head/net/openntpd/Makefile (revision 385051) @@ -1,44 +1,45 @@ # $FreeBSD$ PORTNAME= openntpd PORTVERSION= 5.7p4 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_OPENBSD} MASTER_SITE_SUBDIR= OpenNTPD MAINTAINER= naddy@FreeBSD.org COMMENT= Network Time Protocol (NTP) daemon LICENSE= ISCL USERS= _ntp GROUPS= _ntp USE_RC_SUBR= openntpd GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-silent-rules # XXX: # * LibreSSL fails with the certificiate bundle from ca_root_nss. # * USE_OPENSSL does not handle LibreSSL yet. # #OPTIONS_DEFINE= RESSL #RESSL_DESC= SSL/TLS support via LibreSSL # #OPTIONS_DEFAULT= RESSL # #RESSL_LIB_DEPENDS= libtls.so:${PORTSDIR}/security/libressl #RESSL_CONFIGURE_WITH= cacert=${LOCALBASE}/etc/ssl/cert.pem #RESSL_CPPFLAGS= -I${LOCALBASE}/include #RESSL_LDFLAGS= -L${LOCALBASE}/lib pre-build: ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \ ${WRKSRC}/src/ntpd.conf.5 ${WRKSRC}/src/ntpd.8 post-install: cd ${STAGEDIR}${PREFIX}/etc; ${MV} ntpd.conf ntpd.conf.sample .include Index: head/net/openntpd/files/patch-compat_adjfreq__freebsd.c =================================================================== --- head/net/openntpd/files/patch-compat_adjfreq__freebsd.c (nonexistent) +++ head/net/openntpd/files/patch-compat_adjfreq__freebsd.c (revision 385051) @@ -0,0 +1,23 @@ +--- compat/adjfreq_freebsd.c.orig 2015-03-12 04:42:13 UTC ++++ compat/adjfreq_freebsd.c +@@ -57,3 +57,20 @@ adjfreq(const int64_t *freq, int64_t *ol + + return 0; + } ++ ++/* ++ * The RTC is only updated if the clock is not marked as unsynced. ++ */ ++ ++void ++update_status(int synced) ++{ ++ struct timex txc = { 0 }; ++ ++ txc.modes = MOD_STATUS; ++ if (!synced) ++ txc.status = STA_UNSYNC; ++ if (ntp_adjtime(&txc) == -1) ++ log_warn("ntp_adjtime (3) failed"); ++ return; ++} Property changes on: head/net/openntpd/files/patch-compat_adjfreq__freebsd.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/openntpd/files/patch-src_ntpd.c =================================================================== --- head/net/openntpd/files/patch-src_ntpd.c (nonexistent) +++ head/net/openntpd/files/patch-src_ntpd.c (revision 385051) @@ -0,0 +1,18 @@ +--- src/ntpd.c.orig 2015-03-25 01:18:56 UTC ++++ src/ntpd.c +@@ -53,6 +53,7 @@ const char *ctl_lookup_option(char * + void show_status_msg(struct imsg *); + void show_peer_msg(struct imsg *, int); + void show_sensor_msg(struct imsg *, int); ++void update_status(int); + + volatile sig_atomic_t quit = 0; + volatile sig_atomic_t reconfig = 0; +@@ -423,6 +424,7 @@ ntpd_adjtime(double d) + else if (!firstadj && olddelta.tv_sec == 0 && olddelta.tv_usec == 0) + synced = 1; + firstadj = 0; ++ update_status(synced); + return (synced); + } + Property changes on: head/net/openntpd/files/patch-src_ntpd.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property