diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
commit | deba8115d2c2af26df42966b91ef04ff4dd79cde (patch) | |
tree | 9a48f42594e1a9e6b2020d5535a784314434d7a7 /net-misc/openntpd | |
parent | 38423c67c8a23f6a1bc42038193182e2da3116eb (diff) |
gentoo resync : 14.05.2020
Diffstat (limited to 'net-misc/openntpd')
-rw-r--r-- | net-misc/openntpd/Manifest | 4 | ||||
-rw-r--r-- | net-misc/openntpd/files/openntpd-6.2p3-fno-common.patch | 60 | ||||
-rw-r--r-- | net-misc/openntpd/openntpd-6.2_p3-r1.ebuild | 2 | ||||
-rw-r--r-- | net-misc/openntpd/openntpd-6.2_p3-r2.ebuild | 70 |
4 files changed, 134 insertions, 2 deletions
diff --git a/net-misc/openntpd/Manifest b/net-misc/openntpd/Manifest index 1a78ed58e478..a66d9b5a5d1d 100644 --- a/net-misc/openntpd/Manifest +++ b/net-misc/openntpd/Manifest @@ -1,9 +1,11 @@ +AUX openntpd-6.2p3-fno-common.patch 2084 BLAKE2B 3fbff2d88260f7dc5435c8f1ab7df1652842a48ba3a91eb9744b501e7a0f59a30d8af3d6d17f67bd0313cfc06588dd2fb7f449009b29ac8ac34de1744b997669 SHA512 00e5da8345d2deb2311dd15ac4800674329b182d0742021b2b746af49055a514684ec3872dffb337c8b7e8b3cc8126182530565241c5c223083cd99fd509aeeb AUX openntpd.conf.d-20080406-r6 255 BLAKE2B cdbfd0de5a238216efbf64c8ef9c5db891380d7352dd0864e631816411954e9b335b715f8bf6b66f0f2ce0c6f050e4c166b946f1d235509a130fc024c5b960b7 SHA512 016094e0ac80817c8c1eb8a52a527c8a673b3ee904f2c04bef0304b5dfe1c778a34a2d5321cc5540a1dfe2e14dc878c44a1e54fd0263aca3917600827c6d9059 AUX openntpd.init.d-20080406-r6 292 BLAKE2B fb5620bcb40b476796cf5242ebec17f4f7f01bfd112bdeab3f7199775237c92726120ba7763f5584a21c4b3b18d7b27c4c28311202ee9c18b9259b0e853ee24d SHA512 eff7820dea7f79420ddc78fc744a34f6f5cedbf167d7ce98ed35d4ae0b1dab6cae026d5255a6cc428cdbc8f51784ed149c5ec8011ab72c31c65a5bfc6664b94f AUX openntpd.service-20080406-r4 196 BLAKE2B 7b55400bbc6b706f57eeb61370fea232237ce8e12a47bf5c681a9274acab9bcd5ad0e97708aa99f8d2df92a0fa57828fb747f220c038f83c54f30084a154c7bb SHA512 e76196c90696855ea41464df2aab7617d2447d4dbf82cd5d135c52cea2ae1ef131707ae7b4e7800fe91f8d42893a55848b95149d8f27aa03777205fe355e830e DIST openntpd-6.0p1.tar.gz 432696 BLAKE2B 331214c5a77adf99974a665a157255857b295f49409721d8530fdd2eb6c00e458a2e6395105a527a4a8603e65efb33e16f752c70222e9f7697f8c871d51cffda SHA512 a71c516dbe7596cbcb3a385112a59a82185b7e3d93a52eda695cea5a0a599ba7fbf58daa81da55d608255cb6950398123fa7d71663604a4c3bcbee949711296d DIST openntpd-6.2p3.tar.gz 447586 BLAKE2B f81db876c01572f06b8fc24aabe8954b15287496e8c39c1ae81231ef01676fbe8c69c5cf517279e45510b6b1b5f4c5d0d09d7ce5fc220c7bf36763cf67623519 SHA512 56a04bfd8b161b365607673ac80086ff53ae943938fa49bf52edbc541432eca30730a46a4af581fe26ce3bbceb144cb25982a38959b7a3f9304c727fe60f9f50 EBUILD openntpd-6.0_p1.ebuild 2964 BLAKE2B 3c46ec39de60ac3b58f52b23f3c196077e6bcd2e0c05f5f1f8a218d4a0b64ee87d00db003b2913939df7bcdd5558c2e9c054ecb11cfd648697080e047876ca94 SHA512 b211e867e39bd9b0a52c43cab7f33aece4ca257c18b50d50f3c73a4d87b1d5fb06f3f2a20e55a3c7628d66d12e23fad0740457d5099188f2c06231b7598f1fc7 -EBUILD openntpd-6.2_p3-r1.ebuild 1824 BLAKE2B 80b4a5cf3a6b6056ffe20a50c903d5375efeecb5928e53fff99d451e32b07dde34f2d96f8d0cae9c3079ab305356b57c7ed357947e88ea989ce5fef3729bcfa7 SHA512 a9a99e0441b7dfd7278dce5ffe2f531055a02780e8ee60371b82d33f7fb51a3699cde093cf1e841e928263d373495830603315add6262d0873a4735427cb47e6 +EBUILD openntpd-6.2_p3-r1.ebuild 1815 BLAKE2B 7122205d5d6cc366b95a7023d475bb6e9bd403f889e02548056aeaa50c29f62bd70e2b5f27414f54a2e5bb34bc27c646cb23c4d631bacb1f9e84316e46e20e1d SHA512 af6eea8a35f132544bcb47d522353230468e395d283e041543cc65f511f06a7235be08d2a7989edf7ab3019128364f55cc52f012c25f79f6dd5130b2c20c494a +EBUILD openntpd-6.2_p3-r2.ebuild 1884 BLAKE2B 8c88f18c82e3b7062894d4bab696521e0854245ea1042bb83e973b1c1977cf74e5472c501a3ebe211144564b4b59932677e157aadbf7f37d74d2219abde3ca6f SHA512 2c08fc759450c137915e9be6f43e3208e2408171f1a0b71744032e778e7b32fac903a3c8fa631e2e67d77cebbe052b748cd6ff3fb339c83371a5bff0cd7e9c16 EBUILD openntpd-6.2_p3.ebuild 3135 BLAKE2B ad1cf55027141cfe2e571788802f92844f2792d21dc551119760a72de2b7e41cef7aed7028e1071866de828f9cd5b70cb8a214cb16d87b2db26b9147102d7ee7 SHA512 c2f99c14eff42f9ad674b45636cb7b28686adee52d5037a79694356d18770c6d2d9766eece06efe99272f13356bd944b76db650420c9ed1069ca726c6c9cad8a MISC metadata.xml 875 BLAKE2B 896cd59152c8cb04bf21cc8845606dee6b5e59542cbcc386771c8f713ae4cbfcdf63347f5d55854f53b26f1533ad5ecdb5e763a20ec636634361c8634894ef13 SHA512 a7817eb4847542787337abca3d184b396c4ae831aee29edc6cb5f666189da76d9282aa71cea3033261e682eb2cb00fc858f85fc4421f52dae798bec44194e361 diff --git a/net-misc/openntpd/files/openntpd-6.2p3-fno-common.patch b/net-misc/openntpd/files/openntpd-6.2p3-fno-common.patch new file mode 100644 index 000000000000..2a696f2fb384 --- /dev/null +++ b/net-misc/openntpd/files/openntpd-6.2p3-fno-common.patch @@ -0,0 +1,60 @@ +diff -u -r openntpd-6.2p3-orig/include/sys/types.h openntpd-6.2p3/include/sys/types.h +--- openntpd-6.2p3-orig/include/sys/types.h 2017-10-23 05:15:41.000000000 -0700 ++++ openntpd-6.2p3/include/sys/types.h 2020-05-05 19:57:57.039447282 -0700 +@@ -22,6 +22,10 @@ + # define __bounded__(x, y, z) + #endif + ++#if !defined(HAVE_ATTRIBUTE__PACKED) && !defined(__packed) ++# define __packed __attribute__((__packed__)) ++#endif ++ + /* + * Define BSD-style unsigned bits types for systems that do not have them. + */ +diff -u -r openntpd-6.2p3-orig/src/ntp.c openntpd-6.2p3/src/ntp.c +--- openntpd-6.2p3-orig/src/ntp.c 2017-06-19 06:23:10.000000000 -0700 ++++ openntpd-6.2p3/src/ntp.c 2020-05-05 19:55:01.041306344 -0700 +@@ -42,7 +42,7 @@ + + volatile sig_atomic_t ntp_quit = 0; + struct imsgbuf *ibuf_main; +-struct imsgbuf *ibuf_dns; ++static struct imsgbuf *ibuf_dns; + struct ntpd_conf *conf; + struct ctl_conns ctl_conns; + u_int peer_cnt; +diff -u -r openntpd-6.2p3-orig/src/ntp_dns.c openntpd-6.2p3/src/ntp_dns.c +--- openntpd-6.2p3-orig/src/ntp_dns.c 2017-06-19 06:23:10.000000000 -0700 ++++ openntpd-6.2p3/src/ntp_dns.c 2020-05-05 19:55:30.325662563 -0700 +@@ -33,7 +33,7 @@ + #include "ntpd.h" + + volatile sig_atomic_t quit_dns = 0; +-struct imsgbuf *ibuf_dns; ++static struct imsgbuf *ibuf_dns; + + void sighdlr_dns(int); + int dns_dispatch_imsg(void); +diff -u -r openntpd-6.2p3-orig/src/parse.c openntpd-6.2p3/src/parse.c +--- openntpd-6.2p3-orig/src/parse.c 2017-10-30 01:57:56.000000000 -0700 ++++ openntpd-6.2p3/src/parse.c 2020-05-05 19:55:56.505981067 -0700 +@@ -101,7 +101,6 @@ + int lungetc(int); + int findeol(void); + +-struct ntpd_conf *conf; + struct sockaddr_in query_addr4; + struct sockaddr_in6 query_addr6; + +diff -u -r openntpd-6.2p3-orig/src/parse.y openntpd-6.2p3/src/parse.y +--- openntpd-6.2p3-orig/src/parse.y 2017-10-30 01:57:40.000000000 -0700 ++++ openntpd-6.2p3/src/parse.y 2020-05-05 19:55:51.504920219 -0700 +@@ -57,7 +57,6 @@ + int lungetc(int); + int findeol(void); + +-struct ntpd_conf *conf; + struct sockaddr_in query_addr4; + struct sockaddr_in6 query_addr6; + diff --git a/net-misc/openntpd/openntpd-6.2_p3-r1.ebuild b/net-misc/openntpd/openntpd-6.2_p3-r1.ebuild index acec71efebaf..c9ce369a8c95 100644 --- a/net-misc/openntpd/openntpd-6.2_p3-r1.ebuild +++ b/net-misc/openntpd/openntpd-6.2_p3-r1.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://openbsd/OpenNTPD/${MY_P}.tar.gz" LICENSE="BSD GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86" IUSE="libressl selinux" DEPEND=" diff --git a/net-misc/openntpd/openntpd-6.2_p3-r2.ebuild b/net-misc/openntpd/openntpd-6.2_p3-r2.ebuild new file mode 100644 index 000000000000..6f9c04133f6c --- /dev/null +++ b/net-misc/openntpd/openntpd-6.2_p3-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd + +MY_P="${P/_p/p}" + +DESCRIPTION="Lightweight NTP server ported from OpenBSD" +HOMEPAGE="http://www.openntpd.org/" +SRC_URI="mirror://openbsd/OpenNTPD/${MY_P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="libressl selinux" + +DEPEND=" + !net-misc/ntp[-openntpd] + libressl? ( dev-libs/libressl:0= )" + +RDEPEND=" + ${DEPEND} + acct-group/openntpd + acct-user/openntpd + selinux? ( sec-policy/selinux-ntp )" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}/openntpd-6.2p3-fno-common.patch" +) + +src_prepare() { + default + + # fix /run path + sed -i 's:/var/run/ntpd:/run/ntpd:g' src/ntpctl.8 src/ntpd.8 || die + sed -i 's:LOCALSTATEDIR "/run/ntpd:"/run/ntpd:' src/ntpd.h || die + + # fix ntpd.drift path + sed -i 's:/var/db/ntpd.drift:/var/lib/openntpd/ntpd.drift:g' src/ntpd.8 || die + sed -i 's:"/db/ntpd.drift":"/openntpd/ntpd.drift":' src/ntpd.h || die + + # fix default config to use gentoo pool + sed -i 's:servers pool.ntp.org:#servers pool.ntp.org:' ntpd.conf || die + printf "\n# Choose servers announced from Gentoo NTP Pool\nservers 0.gentoo.pool.ntp.org\nservers 1.gentoo.pool.ntp.org\nservers 2.gentoo.pool.ntp.org\nservers 3.gentoo.pool.ntp.org\n" >> ntpd.conf || die + + # disable constraint config if libressl not enabled + use libressl || sed -ie 's/^constraints/#constraints/g' ntpd.conf || die +} + +src_configure() { + econf \ + --with-privsep-user=openntpd \ + --with-privsep-path=/var/lib/openntpd/chroot \ + $(use_enable libressl https-constraint) +} + +src_install() { + default + + rm -r "${ED}"/var || die + + newinitd "${FILESDIR}/${PN}.init.d-20080406-r6" ntpd + newconfd "${FILESDIR}/${PN}.conf.d-20080406-r6" ntpd + + systemd_newunit "${FILESDIR}/${PN}.service-20080406-r4" ntpd.service +} |