commit: a0535dee8ac59a9abc51249c604b887fcab32a60
parent 88b36fde36e2b0fe9dbcbf236b266cc5a28df9b8
Author: Michael Forney <mforney@mforney.org>
Date: Sun, 22 Oct 2017 21:46:27 -0700
openntpd: Don't use config-posix.h
Diffstat:
3 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/pkg/openntpd/README.md b/pkg/openntpd/README.md
@@ -0,0 +1,10 @@
+# openntpd
+
+## config.h
+Generated with
+
+ ./configure \
+ --with-privsep-user=ntpd \
+ CPPFLAGS='-I/src/oasis/out/pkg/libressl/include' \
+ LDFLAGS='-L/src/oasis/out/pkg/libressl -L/src/oasis/out/pkg/openbsd' \
+ LIBS='-ltls -lssl -lbsd -lcrypto'
diff --git a/pkg/openntpd/config.h b/pkg/openntpd/config.h
@@ -1,5 +1,3 @@
-#include <config-posix.h>
-
#define __dead _Noreturn
#define PACKAGE_NAME "OpenNTPD"
#define PACKAGE_TARNAME "openntpd"
@@ -9,7 +7,17 @@
#define PACKAGE_URL ""
#define PACKAGE "openntpd"
#define VERSION "6.2p2"
+#define STDC_HEADERS 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_SYS_STAT_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_UNISTD_H 1
+#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define SPT_TYPE SPT_REUSEARGV
#define HAVE_ARC4RANDOM 1
@@ -20,19 +28,27 @@
#define HAVE_TIMINGSAFE_MEMCMP 1
#define HAVE_ASPRINTF 1
#define HAVE_DAEMON 1
+#define HAVE_FREEZERO 1
#define HAVE_MEMMEM 1
+#define HAVE_POLL 1
#define HAVE_REALLOCARRAY 1
#define HAVE_RECALLOCARRAY 1
#define HAVE_SETGROUPS 1
+#define HAVE_SETREGID 1
#define HAVE_SETRESGID 1
+#define HAVE_SETREUID 1
#define HAVE_SETRESUID 1
#define HAVE_STRLCAT 1
#define HAVE_STRLCPY 1
#define HAVE_STRTONUM 1
+#define HAVE_SYSCONF 1
#define HAVE_ADJTIMEX 1
+#define HAVE_CLOCK_GETTIME 1
+#define HAVE_CLOCK_GETRES 1
#define HAVE_TLS_CONFIG_SET_CA_MEM 1
#define HAVE_LIBTLS yes
#define HAVE___PROGNAME 1
+#define HAVE_VA_COPY 1
#define HAVE_ERR_H 1
#define HAVE_IFADDRS_H 1
#define HAVE_PATHS_H 1
diff --git a/pkg/openntpd/gen.lua b/pkg/openntpd/gen.lua
@@ -1,7 +1,6 @@
cflags{
'-D _GNU_SOURCE',
'-include $dir/config.h',
- '-I include',
'-I $srcdir/src',
'-I $srcdir/include',
'-I pkg/openbsd/include',