summaryrefslogtreecommitdiff
path: root/net-misc/ntpsec
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/ntpsec')
-rw-r--r--net-misc/ntpsec/Manifest11
-rw-r--r--net-misc/ntpsec/files/ntpsec-no-bsd.patch35
-rw-r--r--net-misc/ntpsec/metadata.xml3
-rw-r--r--net-misc/ntpsec/ntpsec-1.1.4.ebuild (renamed from net-misc/ntpsec/ntpsec-1.1.3.ebuild)11
-rw-r--r--net-misc/ntpsec/ntpsec-1.1.6.ebuild11
-rw-r--r--net-misc/ntpsec/ntpsec-9999.ebuild11
6 files changed, 67 insertions, 15 deletions
diff --git a/net-misc/ntpsec/Manifest b/net-misc/ntpsec/Manifest
index c6cf6f3c0ace..5b37fff3a8e9 100644
--- a/net-misc/ntpsec/Manifest
+++ b/net-misc/ntpsec/Manifest
@@ -2,9 +2,10 @@ AUX ntp.conf 727 BLAKE2B 1b37cee807c41593ffc44994e390c98406c49154477bc2a603ba403
AUX ntpd.confd 90 BLAKE2B 980ea88c97b1deff65f53c13410fe46bc1e19a80140776002ae2fdc0a3ad18c9855b74a70f1a89eb31854bbdad6729753c3a199cddb25b58178a79a0ea0a7050 SHA512 a2fdf88f6f55bcf0a6545db77817e3a740dba50bf56b4fdd80d335e8c909d0880fbd962041754d7f5fb3946ed131d9a739ec72008bacab9f1f47ff82dc74c542
AUX ntpd.rc-r2 484 BLAKE2B 826a3ee09486d912525fe6d44b967e25d8b31485d89a80987afcf459ea335058ff8a7835f3931017505aad6c5ba60e546b608ce26a51ad38f5972675d0a47559 SHA512 dc89a58edf6f83878d42522a015f2c3e12db9505ea3d6bc4b04e6e82947a7be6e8d143e8808bb58644641dd754744fd4be20c8b944a4261b460c30b95436fc31
AUX ntpd.service 299 BLAKE2B 307dbf3a8569cdd1d54095bdb9b409986a9de3c7ec98405b4544f1df565828da2b685ce408061bc03f9a7991fbd61a9b42577c4e6db06bd2a4a012949cafe2dc SHA512 b625e993bbeba5da9c0f14ec8ff9d256575d9590a6c506436e834a9dc17877bfd57920b008bd01409d47de71acfb221a0d92c0203e2aacca33083e196466faf9
-DIST ntpsec-1.1.3.tar.gz 2462330 BLAKE2B 903e569ad72939def9df31d7b51b2623b140754de67362213f39e39ad770d903d70c45a10a18e98ae35927792666ae27de40b41a5c0bfe6fd8cfa6a37102d4e8 SHA512 df60c5fa63d4c94529ba1e8b21c7d6b5d0c9fb810ed7546a621b072725a6ff03edbd2dcbc3baf19ac3b3a9b82d7aff3ddee4ab8c93559b7065ed06a211b538c4
+AUX ntpsec-no-bsd.patch 1538 BLAKE2B 6abb7acf23149a5a47f8e479bff090966e7e6161fc0d5bca1f9e5b9396d90898a783e7d309d6cdbdf689ea12314c804aa7a39f05b3f11d75a95eb337cea95b55 SHA512 7ddb346c7f0c9b30ea08ac28eaa39cf86e3d6cee7eaeba3bc7fe0883acd5087966e4e7beb298cee02607dfa3198a8c1dfcd9ce43ead820de3bb7014cefe75302
+DIST ntpsec-1.1.4.tar.gz 2536268 BLAKE2B 320e7afee1b776e0327f8bf34bc0b8cd3a2c67fd9fd16564323ce825cb9e36d7d5fb48a38b734600286cbd039f41f296d9e488e25d2680f08412aa983101987b SHA512 1b74e7cb87e189137e1b66b52ce89498e0061a10abf017c36bfdecb4aefe9c3fb6e8fd7819a9f822fb946dca6ae20ee724b2aed35e03d73f8e3015d8818d02db
DIST ntpsec-1.1.6.tar.gz 2600632 BLAKE2B 1ee3e266f9a0ff45fc8f001a2b5a1722c6acf75a2151ee3724812acef3409eccbb865b321a3a346c7ced1770aa24190281a94593b881b4bbb0a2b2e6df5629cc SHA512 f57fde6f329a858313968798d64df5e93d7eba43edf4752cd0eb45ff1a2237ce2731b4603ec997c493dea85edb42976f96eb1508beae087a8c2ae8a76c0a6941
-EBUILD ntpsec-1.1.3.ebuild 4068 BLAKE2B a0dc5a6733d392982c0c6a55760974b3ff22b055a220c0841a5e0aa1d1e01291495c115d8751317eaf83e8aad1556cfb48962dec7b5c19d788aee0dc16de51ca SHA512 fc551143326b61f2039e747ccae7d7d82409768d4a447eb51858207aa6c7f3656121e4d7e89a75b94b4b0e5f04bb20cbf19f67a78ea454d4204bbbe25f962f5a
-EBUILD ntpsec-1.1.6.ebuild 4004 BLAKE2B 935bc24d6acd6d181c1049af4cb0e3af9fd8f09e922bc480fe0dc7f48fd32d6b0434f2c1074e4939fce93e2223afc1a924707d6ce55ca0f05858ee3b5af67ff0 SHA512 3ab05594f166700869fd2ad699f91fe24c828d7e9ac7aaf2fd678feb58a8a397032d434f9aaa77330875ef216dd5ff44bb26fa8727bf0789cf24c4d9c558497e
-EBUILD ntpsec-9999.ebuild 4004 BLAKE2B 935bc24d6acd6d181c1049af4cb0e3af9fd8f09e922bc480fe0dc7f48fd32d6b0434f2c1074e4939fce93e2223afc1a924707d6ce55ca0f05858ee3b5af67ff0 SHA512 3ab05594f166700869fd2ad699f91fe24c828d7e9ac7aaf2fd678feb58a8a397032d434f9aaa77330875ef216dd5ff44bb26fa8727bf0789cf24c4d9c558497e
-MISC metadata.xml 2008 BLAKE2B e4f1a7e79fbaf5011ba2b26143c138f39663be73664ec9f1270e9b6cbcb553c245201c9a5bd0771435a24e1f342907861e8a2b6808cc2e3f6d6a7a10ad6ed021 SHA512 5c8fc24233d577ebc254a6d92d93734bfb10ef287217ef61f4f6e8b28f059ee7e92bc5e18326d61a9e80fa7504f79c820d831cdad489321a9f45bae0a4d54a16
+EBUILD ntpsec-1.1.4.ebuild 4191 BLAKE2B f43c33f670711770c6dcca60c87710b56c37c901471563ba35d247e68ad155c2d8e9f56c30a25ea6f38e993d34fd564f6a08ee65877a55ada50fe25adc93c04d SHA512 ac148c1504ba5bd06e5d805000b93a550a7cdf3795acc84121bb9b5fbaed131d1a956d9abb6ffd0996911a973d1c2f8b7f5663d09ef853bad551b01772d5d42f
+EBUILD ntpsec-1.1.6.ebuild 4148 BLAKE2B 576f7c59c43afffb32920db2726aeae99b723c071ffa2cf2a567718896a1c65b8bba6d7aba8df2f9e60e53500ed8e9e1e589bc5b144d2ea40d8dac86a4cb9f66 SHA512 276f3cc96dcc1be5f85477860b139fe8b7e663cda04eeb3dbfa2aeb75124ef9b263fdeec88db1090b8547b65a4e0a83a98944df761754f88c07ce76281330c3e
+EBUILD ntpsec-9999.ebuild 4148 BLAKE2B 576f7c59c43afffb32920db2726aeae99b723c071ffa2cf2a567718896a1c65b8bba6d7aba8df2f9e60e53500ed8e9e1e589bc5b144d2ea40d8dac86a4cb9f66 SHA512 276f3cc96dcc1be5f85477860b139fe8b7e663cda04eeb3dbfa2aeb75124ef9b263fdeec88db1090b8547b65a4e0a83a98944df761754f88c07ce76281330c3e
+MISC metadata.xml 2078 BLAKE2B c15f3c9143653044f1da8fdf1e36298df819a6266ca369c511a9d4247cf32d93377b26f4898070c60d59b4737581b22b27a1097de38c314ec03cc908a18a31d3 SHA512 691f4b463d437616d897d979538e20726eda0a4835f3209639ef0ae7ecbcea6fd01c7bfd1849b91bfdd37e71b8306daa07cf6223a08848c7e45f8128135fa6fc
diff --git a/net-misc/ntpsec/files/ntpsec-no-bsd.patch b/net-misc/ntpsec/files/ntpsec-no-bsd.patch
new file mode 100644
index 000000000000..66dc9d34d2ef
--- /dev/null
+++ b/net-misc/ntpsec/files/ntpsec-no-bsd.patch
@@ -0,0 +1,35 @@
+--- a/wscript 2019-05-25 07:41:24.783651700 -0700
++++ b/wscript 2019-06-22 12:47:02.288170100 -0700
+@@ -305,12 +305,6 @@
+ ctx.check_cc(lib="m", comment="Math library")
+ ctx.check_cc(lib="rt", mandatory=False, comment="realtime library")
+ ctx.check_cc(lib="pthread", mandatory=False, comment="threads library")
+- ctx.check_cc(lib="execinfo", mandatory=False,
+- comment="BSD backtrace library")
+- ret = ctx.check_cc(lib="bsd", mandatory=False,
+- comment="BSD compatibility library")
+- if ret:
+- ctx.env.LDFLAGS += ["-lbsd"]
+
+ # -lssp and -lssp_nonshared may be needed by older gcc to
+ # support "-fstack-protector-all"
+@@ -682,19 +676,6 @@
+ prerequisites=ft[1], use=ft[2],
+ mandatory=ft[3])
+
+- # check for BSD versions outside of libc
+- if not ctx.get_define("HAVE_STRLCAT"):
+- ret = probe_function(ctx, function='strlcat',
+- prerequisites=['bsd/string.h'])
+- if ret:
+- ctx.define("HAVE_STRLCAT", 1, comment="Using bsd/strlcat")
+-
+- if not ctx.get_define("HAVE_STRLCPY"):
+- ret = probe_function(ctx, function='strlcpy',
+- prerequisites=['bsd/string.h'])
+- if ret:
+- ctx.define("HAVE_STRLCPY", 1, comment="Using bsd/strlcpy")
+-
+ # Nobody uses the symbol, but this seems like a good sanity check.
+ ctx.check_cc(header_name="stdbool.h", mandatory=True,
+ comment="Sanity check.")
diff --git a/net-misc/ntpsec/metadata.xml b/net-misc/ntpsec/metadata.xml
index 018f5f40f71b..cba4511bd709 100644
--- a/net-misc/ntpsec/metadata.xml
+++ b/net-misc/ntpsec/metadata.xml
@@ -16,7 +16,8 @@ NTPsec project - a secure, hardened, and improved implementation of Network Time
<flag name="early">Drop root privileges early</flag>
<flag name="gdb">Enable debugging with gdb</flag>
<flag name="heat">Install contrib heat generating scripts</flag>
- <flag name="nist">Enable lockclock</flag>
+ <flag name="libbsd">Use libbsd instead of internal funcs</flag>
+ <flag name="nist">Set local clock deps</flag>
<flag name="ntpviz">Make visualizations of offsets, jiffies, etc.</flag>
<flag name="rclock_oncore">Oncore driver</flag>
<flag name="rclock_trimble">Trimble driver</flag>
diff --git a/net-misc/ntpsec/ntpsec-1.1.3.ebuild b/net-misc/ntpsec/ntpsec-1.1.4.ebuild
index 320a55e35a49..eb5900a5e1e1 100644
--- a/net-misc/ntpsec/ntpsec-1.1.3.ebuild
+++ b/net-misc/ntpsec/ntpsec-1.1.4.ebuild
@@ -12,12 +12,12 @@ if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/NTPsec/ntpsec.git"
BDEPEND=""
- KEYWORDS="amd64"
+ KEYWORDS=""
else
SRC_URI="ftp://ftp.ntpsec.org/pub/releases/${PN}-${PV}.tar.gz"
RESTRICT="mirror"
BDEPEND=""
- KEYWORDS="amd64 ~arm ~arm64 ~x86"
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
DESCRIPTION="The NTP reference implementation, refactored"
@@ -32,7 +32,7 @@ IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/rclock_}
LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0"
SLOT="0"
-IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libressl nist ntpviz samba seccomp smear tests" #ionice
+IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libbsd libressl nist ntpviz samba seccomp smear tests" #ionice
REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( rclock_local )"
# net-misc/pps-tools oncore,pps
@@ -40,6 +40,7 @@ CDEPEND="${PYTHON_DEPS}
${BDEPEND}
sys-libs/libcap
dev-python/psutil[${PYTHON_USEDEP}]
+ libbsd? ( dev-libs/libbsd:0= )
libressl? ( dev-libs/libressl:0= )
!libressl? ( dev-libs/openssl:0= )
seccomp? ( sys-libs/libseccomp )
@@ -51,6 +52,7 @@ RDEPEND="${CDEPEND}
"
DEPEND="${CDEPEND}
app-text/asciidoc
+ dev-libs/libxslt
app-text/docbook-xsl-stylesheets
sys-devel/bison
rclock_oncore? ( net-misc/pps-tools )
@@ -68,6 +70,9 @@ src_prepare() {
default
# Remove autostripping of binaries
sed -i -e '/Strip binaries/d' wscript
+ if ! use libbsd ; then
+ epatch "${FILESDIR}/${PN}-no-bsd.patch"
+ fi
python_copy_sources
}
diff --git a/net-misc/ntpsec/ntpsec-1.1.6.ebuild b/net-misc/ntpsec/ntpsec-1.1.6.ebuild
index d8f848a621db..cbf16e45b9f8 100644
--- a/net-misc/ntpsec/ntpsec-1.1.6.ebuild
+++ b/net-misc/ntpsec/ntpsec-1.1.6.ebuild
@@ -32,15 +32,17 @@ IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/rclock_}
LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0"
SLOT="0"
-IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat nist ntpviz samba seccomp smear tests" #ionice
+IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libbsd libressl nist ntpviz samba seccomp smear tests" #ionice
REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( rclock_local )"
# net-misc/pps-tools oncore,pps
CDEPEND="${PYTHON_DEPS}
${BDEPEND}
sys-libs/libcap
- dev-libs/openssl:0=
dev-python/psutil[${PYTHON_USEDEP}]
+ libbsd? ( dev-libs/libbsd:0= )
+ libressl? ( dev-libs/libressl:0= )
+ !libressl? ( dev-libs/openssl:0= )
seccomp? ( sys-libs/libseccomp )
"
RDEPEND="${CDEPEND}
@@ -50,6 +52,7 @@ RDEPEND="${CDEPEND}
"
DEPEND="${CDEPEND}
app-text/asciidoc
+ dev-libs/libxslt
app-text/docbook-xsl-stylesheets
sys-devel/bison
rclock_oncore? ( net-misc/pps-tools )
@@ -67,6 +70,9 @@ src_prepare() {
default
# Remove autostripping of binaries
sed -i -e '/Strip binaries/d' wscript
+ if ! use libbsd ; then
+ epatch "${FILESDIR}/${PN}-no-bsd.patch"
+ fi
python_copy_sources
}
@@ -91,7 +97,6 @@ src_configure() {
$(use doc && echo "--enable-doc")
$(use early && echo "--enable-early-droproot")
$(use gdb && echo "--enable-debug-gdb")
- $(use nist && echo "--enable-lockclock")
$(use samba && echo "--enable-mssntp")
$(use seccomp && echo "--enable-seccomp")
$(use smear && echo "--enable-leap-smear")
diff --git a/net-misc/ntpsec/ntpsec-9999.ebuild b/net-misc/ntpsec/ntpsec-9999.ebuild
index d8f848a621db..cbf16e45b9f8 100644
--- a/net-misc/ntpsec/ntpsec-9999.ebuild
+++ b/net-misc/ntpsec/ntpsec-9999.ebuild
@@ -32,15 +32,17 @@ IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/rclock_}
LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0"
SLOT="0"
-IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat nist ntpviz samba seccomp smear tests" #ionice
+IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libbsd libressl nist ntpviz samba seccomp smear tests" #ionice
REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( rclock_local )"
# net-misc/pps-tools oncore,pps
CDEPEND="${PYTHON_DEPS}
${BDEPEND}
sys-libs/libcap
- dev-libs/openssl:0=
dev-python/psutil[${PYTHON_USEDEP}]
+ libbsd? ( dev-libs/libbsd:0= )
+ libressl? ( dev-libs/libressl:0= )
+ !libressl? ( dev-libs/openssl:0= )
seccomp? ( sys-libs/libseccomp )
"
RDEPEND="${CDEPEND}
@@ -50,6 +52,7 @@ RDEPEND="${CDEPEND}
"
DEPEND="${CDEPEND}
app-text/asciidoc
+ dev-libs/libxslt
app-text/docbook-xsl-stylesheets
sys-devel/bison
rclock_oncore? ( net-misc/pps-tools )
@@ -67,6 +70,9 @@ src_prepare() {
default
# Remove autostripping of binaries
sed -i -e '/Strip binaries/d' wscript
+ if ! use libbsd ; then
+ epatch "${FILESDIR}/${PN}-no-bsd.patch"
+ fi
python_copy_sources
}
@@ -91,7 +97,6 @@ src_configure() {
$(use doc && echo "--enable-doc")
$(use early && echo "--enable-early-droproot")
$(use gdb && echo "--enable-debug-gdb")
- $(use nist && echo "--enable-lockclock")
$(use samba && echo "--enable-mssntp")
$(use seccomp && echo "--enable-seccomp")
$(use smear && echo "--enable-leap-smear")