openntpd: update to 6.8p1

This commit is contained in:
Cameron Nemo 2020-12-09 10:00:19 -08:00 committed by Piraty
parent 73b1ce4a95
commit 885a87f11c
3 changed files with 7 additions and 34 deletions

View file

@ -1,3 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec openntpd -d ${OPTS:=-s} 2>&1
exec openntpd -d ${OPTS} 2>&1

View file

@ -1,26 +0,0 @@
--- a/src/ntpd.h
+++ b/src/ntpd.h
@@ -33,6 +33,10 @@
#include "ntp.h"
+#if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead)
+#define __dead __attribute__((__noreturn__))
+#endif
+
#define MAXIMUM(a, b) ((a) > (b) ? (a) : (b))
#ifndef NTPD_USER
--- a/src/log.c
+++ b/src/log.c
@@ -24,6 +24,10 @@
#include <errno.h>
#include <time.h>
+#if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead)
+#define __dead __attribute__((__noreturn__))
+#endif
+
static int debug;
static int verbose;
const char *log_procname;

View file

@ -1,9 +1,9 @@
# Template file for 'openntpd'
pkgname=openntpd
version=6.2p3
revision=9
version=6.8p1
revision=1
build_style=gnu-configure
configure_args="--with-privsep-user=${pkgname} --with-cacert=/etc/ssl/certs.pem"
configure_args="--with-privsep-user=openntpd --with-cacert=/etc/ssl/certs.pem"
hostmakedepends="automake libtool"
makedepends="libtls-devel"
depends="ca-certificates"
@ -11,8 +11,8 @@ short_desc="FREE, easy to use implementation of the Network Time Protocol"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="http://openntpd.org/"
distfiles="http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/${pkgname}-${version}.tar.gz"
checksum=7b02691524197e01ba6b1b4b7595b33956e657ba6d5c4cf2fc20ea3f4914c13a
distfiles="https://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/${pkgname}-${version}.tar.gz"
checksum=8582db838a399153d4a17f2a76518b638cc3020f58028575bf54127518f55a46
conf_files="/etc/ntpd.conf"
provides="ntp-daemon-0_1"
@ -22,11 +22,10 @@ alternatives="
ntpd:ntpd.8:/usr/share/man/man8/openntpd.8
ntpd:ntpd:/etc/sv/openntpd"
CFLAGS="-fcommon"
pre_configure() {
autoreconf -fi
}
post_install() {
# Rename files for alternatives.
mv ${DESTDIR}/usr/bin/{ntpd,$pkgname}