aboutsummaryrefslogtreecommitdiff
path: root/net/ntpd
Commit message (Collapse)AuthorAge
* ntpd: update to version 4.2.8p17Paul Donald2024-04-20
| | | | | | | | | | | Also some spell fixes for README.md Drop patch-0001 - ntpd >= 4.2.8p16 patched this behaviour. See: https://bugs.ntp.org/show_bug.cgi?id=3741 (and the linked diff there) https://git.nwtime.org/websites/ntpwww/commit/d2a7faef2fea5f10b28cc2ee1d842e4b241f414f Signed-off-by: Paul Donald <newtwen@gmail.com>
* net/ntpd: fix licenseFabrice Fontaine2024-02-04
| | | | | | | | | Replace "Unique" by the standard SPDX identifier for NTP license: https://spdx.org/licenses/NTP.html Fixes: 1aff45c6dd36f2a5875eadaeae2ed93da8ff6d45 (ntpd: add SPDX license information) Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
* ntpd: Fix compile with glibc 2.34Hauke Mehrtens2022-01-11
| | | | | | | | | | | | | | This adds a patch from Open embedded to fix compilation with glibc 2.34. This patch was taken from here: https://github.com/openembedded/meta-openembedded/blob/master/meta-networking/recipes-support/ntp/ntp/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch It fixes the following build problem: work_thread.c:45:57: error: missing binary operator before token "(" 45 | #if defined(PTHREAD_STACK_MIN) && THREAD_MINSTACKSIZE < PTHREAD_STACK_MIN | ^~~~~~~~~~~~~~~~~ make[7]: *** [Makefile:892: work_thread.o] Error 1 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ntpd: Include sntp binary only with ntp-utilsKenneth J. Miller2020-09-18
| | | | | | | | | | | Don't build the sntp binary and libevent2-pthread dependency unless ntp-utils is selected. Re-add ntp-keygen dependency libevent2-core. Fixes openwrt#10307 Signed-off-by: Kenneth J. Miller <ken@miller.ec>
* ntpd: add config include supportFlorian Eckert2020-07-14
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ntpd: update to version 4.2.8p15 (security fix)Jan Pavlinec2020-07-08
| | | | | | | | | | Fixes: CVE-2020-11868 CVE-2018-8956 CVE-2020-13817 CVE-2020-1502 Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
* ntpd: create config_file directorySebastian Kemper2019-11-28
| | | | | | | | | | | ntpd's configuration is stored in /var/etc, but the init script doesn't create this directory. To be fair this folder is used by other packages as well, for instance dnsmasq. Still, it's better not to rely on other packages to create it. Fixes: #10636 Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* ntpd: Fix libevent dependenciesKenneth J. Miller2019-10-22
| | | | | | | | | | | | | | Add required libevent2-pthreads dependency for all ntpd subpackages. Remove keygen-specific libevent2-core support as it is automatically selected by the libevent2-pthreads dependency. nptd: Bump PKG_RELEASE Fixes: openwrt/packages#10307 Signed-off-by: Kenneth J. Miller <ken@miller.ec>
* ntpdate: use uci configured servers instead of static listKarl Palsson2019-07-02
| | | | | | | | If we're going to have a list of ntp servers, we should at least respect them. Fallback to the original static list if no configured servers are found. Signed-off-by: Karl Palsson <karlp@etactica.com>
* ntpd: Add PKG_CPE_ID for proper CVE trackingJan Pavlinec2019-03-09
| | | | Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
* ntpd: update to 4.2.8p13Peter Wagner2019-03-08
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: Update init scriptJeffery To2019-02-26
| | | | | | | | | | | This replaces the use of uci_validate_section() with uci_load_validate(), which removes the need to declare local variables for every config option. This also moves the generated config file to /var/etc and adds a service_triggers() function. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* ntpd: update to 4.2.8p12Peter Wagner2018-08-19
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: update to 4.2.8p11Peter Wagner2018-03-05
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: remove ntp.confPeter Wagner2018-01-02
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: *mimic the behaviour of the busybox ntpd's "-S" flagPeter Wagner2018-01-02
| | | | *create a seperate line for every server, otherwise only the first listed server will be used
* ntpd: move ntpq to ntp-utilsPeter Wagner2017-08-16
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: use UCI to synthesize minimal conf filePhilip Prindeville2017-07-27
| | | | | | Borrowed code from Busybox's sysntpd. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* ntpd: update to 4.2.8p10Peter Wagner2017-03-26
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: restart instead of killall and startPeter Wagner2017-03-06
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: only restart ntpd when the wan interface comes up and ntpd is enabledPeter Wagner2017-03-06
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: cleanup Makefile and hotplug scriptPeter Wagner2017-01-17
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: add hotplug script that signals when ntp reaches the stratum level ↵Peter Wagner2017-01-16
| | | | | | | | | like the sysntp implementation use ntpq to check the status of the ntp server as all other status scripts included in the ntp tarball are based on perl which would dramatically increase the footprint of ntpd Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: update to 4.2.8p9Peter Wagner2016-11-27
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: update to 4.2.8p8Peter Wagner2016-09-07
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: update to 4.2.8p7Peter Wagner2016-05-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the following CVEs: Bug 3020 / CVE-2016-1551: Refclock impersonation vulnerability, AKA: refclock-peering Reported by Matt Street and others of Cisco ASIG Bug 3012 / CVE-2016-1549: Sybil vulnerability: ephemeral association attack, AKA: ntp-sybil - MITIGATION ONLY Reported by Matthew Van Gundy of Cisco ASIG Bug 3011 / CVE-2016-2516: Duplicate IPs on unconfig directives will cause an assertion botch Reported by Yihan Lian of the Cloud Security Team, Qihoo 360 Bug 3010 / CVE-2016-2517: Remote configuration trustedkey/requestkey values are not properly validated Reported by Yihan Lian of the Cloud Security Team, Qihoo 360 Bug 3009 / CVE-2016-2518: Crafted addpeer with hmode > 7 causes array wraparound with MATCH_ASSOC Reported by Yihan Lian of the Cloud Security Team, Qihoo 360 Bug 3008 / CVE-2016-2519: ctl_getitem() return value not always checked Reported by Yihan Lian of the Cloud Security Team, Qihoo 360 Bug 3007 / CVE-2016-1547: Validate crypto-NAKs, AKA: nak-dos Reported by Stephen Gray and Matthew Van Gundy of Cisco ASIG Bug 2978 / CVE-2016-1548: Interleave-pivot - MITIGATION ONLY Reported by Miroslav Lichvar of RedHat and separately by Jonathan Gardner of Cisco ASIG Bug 2952 / CVE-2015-7704: KoD fix: peer associations were broken by the fix for NtpBug2901, AKA: Symmetric active/passive mode is broken Reported by Michael Tatarinov, NTP Project Developer Volunteer Bug 2945 / Bug 2901 / CVE-2015-8138: Zero Origin Timestamp Bypass, AKA: Additional KoD Checks Reported by Jonathan Gardner of Cisco ASIG Bug 2879 / CVE-2016-1550: Improve NTP security against buffer comparison timing attacks, authdecrypt-timing, AKA: authdecrypt-timing Reported independently by Loganaden Velvindron, and Matthew Van Gundy and Stephen Gray of Cisco ASIG. Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: update to 4.2.8p6Peter Wagner2016-01-25
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: update to 4.2.8p5Peter Wagner2016-01-14
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: add libcap to default dependencies of the ntpd packageAlexandru Ardelean2015-12-13
| | | | | | | | | | | | Seems ntpdate also requires this lib: ``` Package ntpdate is missing dependencies for the following libraries: libcap.so.2 make[2]: *** [/store/buildbot/slave/ar71xx/build/bin/ar71xx/packages/packages/ntpdate_4.2.8p4-1_ar71xx.ipk] Error 1 make[2]: Leaving directory `/store/buildbot/slave/ar71xx/build/feeds/packages/net/ntpd' ``` Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* ntpd: update to 4.2.8p4Peter Wagner2015-11-22
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: fix fortify source compatibilityJo-Philipp Wich2015-06-26
| | | | | | | | | | | | | | | | | | | | The ntpd package ships autoconf macros which attempt to test for the C99 compliance of `snprintf()` and `vsnprintf()`. Those macros unconditionally consider the functions not compliant in a cross compile setting and therfore break all subsequent configure tests because the `snprintf` and `vsnprintf` symbols are shadowed with `#define` directives redirecting them to their respectiv gnulib replacements. The fortify source headers in turn will `#undef` those defines when wrapping the associated functions and therfore cause all `conftest` programs to emit a failure. Pass the required magic autoconf cache variables via `CONFIGURE_VARS` to let `./configure` assume C99 compliance of the affected functions, thus fixing the build. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* ntpd: enable ATOM (PPS) supportChristian Pointner2015-05-25
| | | | Signed-off-by: Christian Pointner <equinox@spreadspace.org>
* ntpd: fix typoPeter Wagner2015-04-13
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* Currently the hotplug script never starts because it assumes the wrongPeter Wagner2015-04-13
| | | | | | | path to the binary. Fix the path. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net> Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: update to 4.2.8p2Peter Wagner2015-04-12
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* remove uneeded PKG_BUILD_DIR & PKG_CAT overridesNicolas Thill2015-02-22
| | | | Signed-off-by: Nicolas Thill <nico@openwrt.org>
* ntpd: update to 4.2.8p1Peter Wagner2015-02-09
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* [ntpd] fix deps and cleanup the MakefilePeter Wagner2015-01-11
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: update to 4.2.8 and remove nossl supportPeter Wagner2014-12-22
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* ntpd: add SPDX license informationIan Leonard2014-11-25
| | | | Signed-off-by: Ian Leonard <antonlacon@gmail.com>
* ntpd: fix a small typo in the default descriptionMichael Heimpold2014-11-23
| | | | | | | Reported by amanual on IRC, thanks. While at, update copyright timestamp. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
* openssh,ntpd: move USERID to the server only as the client utils don't need ↵Peter Wagner2014-10-14
| | | | | | a user/group Signed-off-by: Peter Wagner <tripolar@gmx.at>
* generic userid: use the new USERID apiJohn Crispin2014-10-08
| | | | | | | | recent changes in trunk allow us to specify the userid inside the openwrt makefile. the info is stored int he meta data of the IPK contorl file and users are generated by the new generic postinst trigger. Signed-off-by: John Crispin <blogic@openwrt.org>
* ntpd: remove spurious libelf dependencySteven Barth2014-07-18
| | | | Signed-off-by: Steven Barth <steven@midlink.org>
* PKG_CHECK_FORMAT_SECURITY: disable it for the failing packages (for now)Etienne CHAMPETIER2014-06-24
| | | | Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
* ntpd: import from packagesPeter Wagner2014-06-16
Signed-off-by: Peter Wagner <tripolar@gmx.at>