* [PR PATCH] New package: ntpd-rs-0.3.7
@ 2023-08-24 11:48 tranzystorek-io
2023-08-24 12:01 ` [PR REVIEW] " dmarto
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: tranzystorek-io @ 2023-08-24 11:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]
There is a new pull request by tranzystorek-io against master on the void-packages repository
https://github.com/tranzystorek-io/void-packages ntpd-rs
https://github.com/void-linux/void-packages/pull/45739
New package: ntpd-rs-0.3.7
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/45739.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ntpd-rs-45739.patch --]
[-- Type: text/x-diff, Size: 2346 bytes --]
From 3b1113f43876ae282e7c726ca74f4e9fa1b47577 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Thu, 24 Aug 2023 13:25:55 +0200
Subject: [PATCH] New package: ntpd-rs-0.3.7
---
srcpkgs/ntpd-rs/INSTALL | 5 +++++
srcpkgs/ntpd-rs/files/ntpd-rs/run | 4 ++++
srcpkgs/ntpd-rs/template | 28 ++++++++++++++++++++++++++++
3 files changed, 37 insertions(+)
create mode 100644 srcpkgs/ntpd-rs/INSTALL
create mode 100644 srcpkgs/ntpd-rs/files/ntpd-rs/run
create mode 100644 srcpkgs/ntpd-rs/template
diff --git a/srcpkgs/ntpd-rs/INSTALL b/srcpkgs/ntpd-rs/INSTALL
new file mode 100644
index 0000000000000..bb7e53afa9362
--- /dev/null
+++ b/srcpkgs/ntpd-rs/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+ setcap CAP_SYS_TIME=+ep usr/bin/ntp-daemon
+ ;;
+esac
diff --git a/srcpkgs/ntpd-rs/files/ntpd-rs/run b/srcpkgs/ntpd-rs/files/ntpd-rs/run
new file mode 100644
index 0000000000000..d9b5fdbb6423f
--- /dev/null
+++ b/srcpkgs/ntpd-rs/files/ntpd-rs/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ ! -d /run/ntpd-rs ] && mkdir /run/ntpd-rs && chown _ntpd_rs:_ntpd_rs /run/ntpd-rs
+exec chpst -u _ntpd_rs:_ntpd_rs ntp-daemon
diff --git a/srcpkgs/ntpd-rs/template b/srcpkgs/ntpd-rs/template
new file mode 100644
index 0000000000000..fd5acf8c5c3e3
--- /dev/null
+++ b/srcpkgs/ntpd-rs/template
@@ -0,0 +1,28 @@
+# Template file for 'ntpd-rs'
+pkgname=ntpd-rs
+version=0.3.7
+revision=1
+build_style=cargo
+# fails on the release profile
+make_check_args="-- --skip algorithm::kalman::peer::tests::test_offset_steering_and_measurements"
+make_install_args="--path ntpd"
+depends="libcap-progs"
+short_desc="Full-featured implementation of the Network Time Protocol"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="Apache-2.0, MIT"
+homepage="https://github.com/pendulum-project/ntpd-rs"
+changelog="https://raw.githubusercontent.com/pendulum-project/ntpd-rs/main/CHANGELOG.md"
+distfiles="https://github.com/pendulum-project/ntpd-rs/archive/refs/tags/v${version}.tar.gz"
+checksum=e705447e61a4857875b136d5910b48f2db5dba91b77e59e430c0d651867429ad
+
+system_accounts="_ntpd_rs"
+conf_files="/etc/ntpd-rs/ntp.toml"
+alternatives="
+ ntpd:ntpd:/usr/bin/ntp-daemon
+ ntpd:ntpd:/etc/sv/ntpd-rs"
+
+post_install() {
+ vinstall ntp.toml 644 etc/ntpd-rs
+ vlicense LICENSE-MIT
+ vsv ntpd-rs
+}
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR REVIEW] New package: ntpd-rs-0.3.7
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
@ 2023-08-24 12:01 ` dmarto
2023-08-24 12:01 ` [PR PATCH] [Updated] " tranzystorek-io
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-08-24 12:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
New review comment by dmarto on void-packages repository
https://github.com/void-linux/void-packages/pull/45739#discussion_r1304219193
Comment:
```suggestion
provides="ntp-daemon-0_1"
alternatives="
```
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntpd-rs-0.3.7
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
2023-08-24 12:01 ` [PR REVIEW] " dmarto
@ 2023-08-24 12:01 ` tranzystorek-io
2023-08-24 12:03 ` [PR REVIEW] " dmarto
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: tranzystorek-io @ 2023-08-24 12:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]
There is an updated pull request by tranzystorek-io against master on the void-packages repository
https://github.com/tranzystorek-io/void-packages ntpd-rs
https://github.com/void-linux/void-packages/pull/45739
New package: ntpd-rs-0.3.7
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/45739.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ntpd-rs-45739.patch --]
[-- Type: text/x-diff, Size: 2372 bytes --]
From 7c210c9ca63d0e219446b3e4d0a18c75c0acaffc Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Thu, 24 Aug 2023 13:25:55 +0200
Subject: [PATCH] New package: ntpd-rs-0.3.7
---
srcpkgs/ntpd-rs/INSTALL | 5 +++++
srcpkgs/ntpd-rs/files/ntpd-rs/run | 4 ++++
srcpkgs/ntpd-rs/template | 29 +++++++++++++++++++++++++++++
3 files changed, 38 insertions(+)
create mode 100644 srcpkgs/ntpd-rs/INSTALL
create mode 100644 srcpkgs/ntpd-rs/files/ntpd-rs/run
create mode 100644 srcpkgs/ntpd-rs/template
diff --git a/srcpkgs/ntpd-rs/INSTALL b/srcpkgs/ntpd-rs/INSTALL
new file mode 100644
index 0000000000000..bb7e53afa9362
--- /dev/null
+++ b/srcpkgs/ntpd-rs/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+ setcap CAP_SYS_TIME=+ep usr/bin/ntp-daemon
+ ;;
+esac
diff --git a/srcpkgs/ntpd-rs/files/ntpd-rs/run b/srcpkgs/ntpd-rs/files/ntpd-rs/run
new file mode 100644
index 0000000000000..d9b5fdbb6423f
--- /dev/null
+++ b/srcpkgs/ntpd-rs/files/ntpd-rs/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ ! -d /run/ntpd-rs ] && mkdir /run/ntpd-rs && chown _ntpd_rs:_ntpd_rs /run/ntpd-rs
+exec chpst -u _ntpd_rs:_ntpd_rs ntp-daemon
diff --git a/srcpkgs/ntpd-rs/template b/srcpkgs/ntpd-rs/template
new file mode 100644
index 0000000000000..f78f5c37f4150
--- /dev/null
+++ b/srcpkgs/ntpd-rs/template
@@ -0,0 +1,29 @@
+# Template file for 'ntpd-rs'
+pkgname=ntpd-rs
+version=0.3.7
+revision=1
+build_style=cargo
+make_check_args="--
+ --skip algorithm::kalman::peer::tests::test_offset_steering_and_measurements
+ --skip keyexchange::tests::client_connection_refused"
+make_install_args="--path ntpd"
+depends="libcap-progs"
+short_desc="Full-featured implementation of the Network Time Protocol"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="Apache-2.0, MIT"
+homepage="https://github.com/pendulum-project/ntpd-rs"
+changelog="https://raw.githubusercontent.com/pendulum-project/ntpd-rs/main/CHANGELOG.md"
+distfiles="https://github.com/pendulum-project/ntpd-rs/archive/refs/tags/v${version}.tar.gz"
+checksum=e705447e61a4857875b136d5910b48f2db5dba91b77e59e430c0d651867429ad
+
+system_accounts="_ntpd_rs"
+conf_files="/etc/ntpd-rs/ntp.toml"
+alternatives="
+ ntpd:ntpd:/usr/bin/ntp-daemon
+ ntpd:ntpd:/etc/sv/ntpd-rs"
+
+post_install() {
+ vinstall ntp.toml 644 etc/ntpd-rs
+ vlicense LICENSE-MIT
+ vsv ntpd-rs
+}
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR REVIEW] New package: ntpd-rs-0.3.7
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
2023-08-24 12:01 ` [PR REVIEW] " dmarto
2023-08-24 12:01 ` [PR PATCH] [Updated] " tranzystorek-io
@ 2023-08-24 12:03 ` dmarto
2023-08-24 12:03 ` dmarto
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-08-24 12:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 238 bytes --]
New review comment by dmarto on void-packages repository
https://github.com/void-linux/void-packages/pull/45739#discussion_r1304221661
Comment:
You may want to add that, so it can be used as a full replacement of `openntpd|chrony|ntp`.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR REVIEW] New package: ntpd-rs-0.3.7
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
` (2 preceding siblings ...)
2023-08-24 12:03 ` [PR REVIEW] " dmarto
@ 2023-08-24 12:03 ` dmarto
2023-08-24 12:04 ` dmarto
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-08-24 12:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 238 bytes --]
New review comment by dmarto on void-packages repository
https://github.com/void-linux/void-packages/pull/45739#discussion_r1304221661
Comment:
You may want to add that, so it can be used as a full replacement of `openntpd|chrony|ntp`.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR REVIEW] New package: ntpd-rs-0.3.7
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
` (3 preceding siblings ...)
2023-08-24 12:03 ` dmarto
@ 2023-08-24 12:04 ` dmarto
2023-08-24 12:20 ` tranzystorek-io
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-08-24 12:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 312 bytes --]
New review comment by dmarto on void-packages repository
https://github.com/void-linux/void-packages/pull/45739#discussion_r1304219193
Comment:
```suggestion
provides="ntp-daemon-0_1"
alternatives="
```
You may want to add that, so it can be a full fledged member of the `chrony|openntpd|ntp` family :)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR REVIEW] New package: ntpd-rs-0.3.7
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
` (4 preceding siblings ...)
2023-08-24 12:04 ` dmarto
@ 2023-08-24 12:20 ` tranzystorek-io
2023-08-24 13:49 ` [PR PATCH] [Updated] " tranzystorek-io
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: tranzystorek-io @ 2023-08-24 12:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 187 bytes --]
New review comment by tranzystorek-io on void-packages repository
https://github.com/void-linux/void-packages/pull/45739#discussion_r1304239856
Comment:
Thanks, would have missed that!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntpd-rs-0.3.7
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
` (5 preceding siblings ...)
2023-08-24 12:20 ` tranzystorek-io
@ 2023-08-24 13:49 ` tranzystorek-io
2023-08-24 14:01 ` tranzystorek-io
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: tranzystorek-io @ 2023-08-24 13:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]
There is an updated pull request by tranzystorek-io against master on the void-packages repository
https://github.com/tranzystorek-io/void-packages ntpd-rs
https://github.com/void-linux/void-packages/pull/45739
New package: ntpd-rs-0.3.7
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/45739.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ntpd-rs-45739.patch --]
[-- Type: text/x-diff, Size: 3876 bytes --]
From e9587c614e35a0c407b80c938039ff93ab137352 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Thu, 24 Aug 2023 13:25:55 +0200
Subject: [PATCH] New package: ntpd-rs-0.3.7
---
srcpkgs/ntpd-rs/INSTALL | 5 ++++
srcpkgs/ntpd-rs/files/ntpd-rs/run | 4 +++
srcpkgs/ntpd-rs/patches/fix-musl-test.patch | 26 ++++++++++++++++
srcpkgs/ntpd-rs/template | 33 +++++++++++++++++++++
4 files changed, 68 insertions(+)
create mode 100644 srcpkgs/ntpd-rs/INSTALL
create mode 100644 srcpkgs/ntpd-rs/files/ntpd-rs/run
create mode 100644 srcpkgs/ntpd-rs/patches/fix-musl-test.patch
create mode 100644 srcpkgs/ntpd-rs/template
diff --git a/srcpkgs/ntpd-rs/INSTALL b/srcpkgs/ntpd-rs/INSTALL
new file mode 100644
index 0000000000000..bb7e53afa9362
--- /dev/null
+++ b/srcpkgs/ntpd-rs/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+ setcap CAP_SYS_TIME=+ep usr/bin/ntp-daemon
+ ;;
+esac
diff --git a/srcpkgs/ntpd-rs/files/ntpd-rs/run b/srcpkgs/ntpd-rs/files/ntpd-rs/run
new file mode 100644
index 0000000000000..d9b5fdbb6423f
--- /dev/null
+++ b/srcpkgs/ntpd-rs/files/ntpd-rs/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ ! -d /run/ntpd-rs ] && mkdir /run/ntpd-rs && chown _ntpd_rs:_ntpd_rs /run/ntpd-rs
+exec chpst -u _ntpd_rs:_ntpd_rs ntp-daemon
diff --git a/srcpkgs/ntpd-rs/patches/fix-musl-test.patch b/srcpkgs/ntpd-rs/patches/fix-musl-test.patch
new file mode 100644
index 0000000000000..c98308706d717
--- /dev/null
+++ b/srcpkgs/ntpd-rs/patches/fix-musl-test.patch
@@ -0,0 +1,26 @@
+From c62d259213088ed6a7c0200d731b272f3d158335 Mon Sep 17 00:00:00 2001
+From: David Venhoek <david@tweedegolf.com>
+Date: Thu, 24 Aug 2023 15:20:13 +0200
+Subject: [PATCH] Be a bit more generous in what we accept as error message in
+ test.
+
+---
+ ntp-udp/src/hwtimestamp.rs | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/ntp-udp/src/hwtimestamp.rs b/ntp-udp/src/hwtimestamp.rs
+index bc825a5e..d5648585 100644
+--- a/ntp-udp/src/hwtimestamp.rs
++++ b/ntp-udp/src/hwtimestamp.rs
+@@ -77,7 +77,10 @@ mod tests {
+ udp_socket.connect(("10.0.0.18", 9001))?;
+
+ if let Err(e) = get_hardware_timestamp(&udp_socket) {
+- assert!(e.to_string().contains("Operation not supported"));
++ assert!(
++ e.to_string().contains("Operation not supported")
++ || e.to_string().contains("Not supported")
++ );
+ }
+
+ Ok(())
diff --git a/srcpkgs/ntpd-rs/template b/srcpkgs/ntpd-rs/template
new file mode 100644
index 0000000000000..48379857acddb
--- /dev/null
+++ b/srcpkgs/ntpd-rs/template
@@ -0,0 +1,33 @@
+# Template file for 'ntpd-rs'
+pkgname=ntpd-rs
+version=0.3.7
+revision=1
+build_style=cargo
+make_check_args="--
+ --skip algorithm::kalman::peer::tests::test_offset_steering_and_measurements
+ --skip keyexchange::tests::client_connection_refused
+ --skip interface_name::tests::find_interface_ipv6
+ --skip socket::tests::test_client_basic_ipv6
+ --skip socket::tests::test_server_basic_ipv6"
+make_install_args="--path ntpd"
+depends="libcap-progs"
+short_desc="Full-featured implementation of the Network Time Protocol"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="Apache-2.0, MIT"
+homepage="https://github.com/pendulum-project/ntpd-rs"
+changelog="https://raw.githubusercontent.com/pendulum-project/ntpd-rs/main/CHANGELOG.md"
+distfiles="https://github.com/pendulum-project/ntpd-rs/archive/refs/tags/v${version}.tar.gz"
+checksum=e705447e61a4857875b136d5910b48f2db5dba91b77e59e430c0d651867429ad
+
+system_accounts="_ntpd_rs"
+conf_files="/etc/ntpd-rs/ntp.toml"
+provides="ntp-daemon-0_1"
+alternatives="
+ ntpd:ntpd:/usr/bin/ntp-daemon
+ ntpd:ntpd:/etc/sv/ntpd-rs"
+
+post_install() {
+ vinstall ntp.toml 644 etc/ntpd-rs
+ vlicense LICENSE-MIT
+ vsv ntpd-rs
+}
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntpd-rs-0.3.7
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
` (6 preceding siblings ...)
2023-08-24 13:49 ` [PR PATCH] [Updated] " tranzystorek-io
@ 2023-08-24 14:01 ` tranzystorek-io
2023-10-08 5:49 ` tranzystorek-io
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: tranzystorek-io @ 2023-08-24 14:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]
There is an updated pull request by tranzystorek-io against master on the void-packages repository
https://github.com/tranzystorek-io/void-packages ntpd-rs
https://github.com/void-linux/void-packages/pull/45739
New package: ntpd-rs-0.3.7
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/45739.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ntpd-rs-45739.patch --]
[-- Type: text/x-diff, Size: 3527 bytes --]
From 99206dd1b66504307131f32a730cfd298ebd1ebe Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Thu, 24 Aug 2023 13:25:55 +0200
Subject: [PATCH] New package: ntpd-rs-0.3.7
---
srcpkgs/ntpd-rs/INSTALL | 5 ++++
srcpkgs/ntpd-rs/files/ntpd-rs/run | 4 +++
srcpkgs/ntpd-rs/patches/fix-musl-test.patch | 16 ++++++++++
srcpkgs/ntpd-rs/template | 33 +++++++++++++++++++++
4 files changed, 58 insertions(+)
create mode 100644 srcpkgs/ntpd-rs/INSTALL
create mode 100644 srcpkgs/ntpd-rs/files/ntpd-rs/run
create mode 100644 srcpkgs/ntpd-rs/patches/fix-musl-test.patch
create mode 100644 srcpkgs/ntpd-rs/template
diff --git a/srcpkgs/ntpd-rs/INSTALL b/srcpkgs/ntpd-rs/INSTALL
new file mode 100644
index 0000000000000..bb7e53afa9362
--- /dev/null
+++ b/srcpkgs/ntpd-rs/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+ setcap CAP_SYS_TIME=+ep usr/bin/ntp-daemon
+ ;;
+esac
diff --git a/srcpkgs/ntpd-rs/files/ntpd-rs/run b/srcpkgs/ntpd-rs/files/ntpd-rs/run
new file mode 100644
index 0000000000000..d9b5fdbb6423f
--- /dev/null
+++ b/srcpkgs/ntpd-rs/files/ntpd-rs/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ ! -d /run/ntpd-rs ] && mkdir /run/ntpd-rs && chown _ntpd_rs:_ntpd_rs /run/ntpd-rs
+exec chpst -u _ntpd_rs:_ntpd_rs ntp-daemon
diff --git a/srcpkgs/ntpd-rs/patches/fix-musl-test.patch b/srcpkgs/ntpd-rs/patches/fix-musl-test.patch
new file mode 100644
index 0000000000000..0acf0e184a5bc
--- /dev/null
+++ b/srcpkgs/ntpd-rs/patches/fix-musl-test.patch
@@ -0,0 +1,16 @@
+diff --git a/ntp-udp/src/hwtimestamp.rs b/ntp-udp/src/hwtimestamp.rs
+index be5f870..66b3095 100644
+--- a/ntp-udp/src/hwtimestamp.rs
++++ b/ntp-udp/src/hwtimestamp.rs
+@@ -77,7 +77,10 @@ mod tests {
+ udp_socket.connect(("10.0.0.18", 9001))?;
+
+ if let Err(e) = get_hardware_timestamp(&udp_socket) {
+- assert!(e.to_string().contains("Operation not supported"))
++ assert!(
++ e.to_string().contains("Operation not supported")
++ || e.to_string().contains("Not supported")
++ )
+ }
+
+ Ok(())
diff --git a/srcpkgs/ntpd-rs/template b/srcpkgs/ntpd-rs/template
new file mode 100644
index 0000000000000..48379857acddb
--- /dev/null
+++ b/srcpkgs/ntpd-rs/template
@@ -0,0 +1,33 @@
+# Template file for 'ntpd-rs'
+pkgname=ntpd-rs
+version=0.3.7
+revision=1
+build_style=cargo
+make_check_args="--
+ --skip algorithm::kalman::peer::tests::test_offset_steering_and_measurements
+ --skip keyexchange::tests::client_connection_refused
+ --skip interface_name::tests::find_interface_ipv6
+ --skip socket::tests::test_client_basic_ipv6
+ --skip socket::tests::test_server_basic_ipv6"
+make_install_args="--path ntpd"
+depends="libcap-progs"
+short_desc="Full-featured implementation of the Network Time Protocol"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="Apache-2.0, MIT"
+homepage="https://github.com/pendulum-project/ntpd-rs"
+changelog="https://raw.githubusercontent.com/pendulum-project/ntpd-rs/main/CHANGELOG.md"
+distfiles="https://github.com/pendulum-project/ntpd-rs/archive/refs/tags/v${version}.tar.gz"
+checksum=e705447e61a4857875b136d5910b48f2db5dba91b77e59e430c0d651867429ad
+
+system_accounts="_ntpd_rs"
+conf_files="/etc/ntpd-rs/ntp.toml"
+provides="ntp-daemon-0_1"
+alternatives="
+ ntpd:ntpd:/usr/bin/ntp-daemon
+ ntpd:ntpd:/etc/sv/ntpd-rs"
+
+post_install() {
+ vinstall ntp.toml 644 etc/ntpd-rs
+ vlicense LICENSE-MIT
+ vsv ntpd-rs
+}
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntpd-rs-0.3.7
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
` (7 preceding siblings ...)
2023-08-24 14:01 ` tranzystorek-io
@ 2023-10-08 5:49 ` tranzystorek-io
2023-10-08 6:03 ` [PR PATCH] [Updated] New package: ntpd-rs-1.0.0 tranzystorek-io
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: tranzystorek-io @ 2023-10-08 5:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]
There is an updated pull request by tranzystorek-io against master on the void-packages repository
https://github.com/tranzystorek-io/void-packages ntpd-rs
https://github.com/void-linux/void-packages/pull/45739
New package: ntpd-rs-0.3.7
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/45739.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ntpd-rs-45739.patch --]
[-- Type: text/x-diff, Size: 2619 bytes --]
From 3c96f35f47110ca6502d3ef3fb341f1311966254 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Thu, 24 Aug 2023 13:25:55 +0200
Subject: [PATCH] New package: ntpd-rs-1.0.0
---
srcpkgs/ntpd-rs/INSTALL | 5 +++++
srcpkgs/ntpd-rs/files/ntpd-rs/run | 4 ++++
srcpkgs/ntpd-rs/template | 37 +++++++++++++++++++++++++++++++
3 files changed, 46 insertions(+)
create mode 100644 srcpkgs/ntpd-rs/INSTALL
create mode 100644 srcpkgs/ntpd-rs/files/ntpd-rs/run
create mode 100644 srcpkgs/ntpd-rs/template
diff --git a/srcpkgs/ntpd-rs/INSTALL b/srcpkgs/ntpd-rs/INSTALL
new file mode 100644
index 0000000000000..bb7e53afa9362
--- /dev/null
+++ b/srcpkgs/ntpd-rs/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+ setcap CAP_SYS_TIME=+ep usr/bin/ntp-daemon
+ ;;
+esac
diff --git a/srcpkgs/ntpd-rs/files/ntpd-rs/run b/srcpkgs/ntpd-rs/files/ntpd-rs/run
new file mode 100644
index 0000000000000..d9b5fdbb6423f
--- /dev/null
+++ b/srcpkgs/ntpd-rs/files/ntpd-rs/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ ! -d /run/ntpd-rs ] && mkdir /run/ntpd-rs && chown _ntpd_rs:_ntpd_rs /run/ntpd-rs
+exec chpst -u _ntpd_rs:_ntpd_rs ntp-daemon
diff --git a/srcpkgs/ntpd-rs/template b/srcpkgs/ntpd-rs/template
new file mode 100644
index 0000000000000..46e4a444b2a74
--- /dev/null
+++ b/srcpkgs/ntpd-rs/template
@@ -0,0 +1,37 @@
+# Template file for 'ntpd-rs'
+pkgname=ntpd-rs
+version=1.0.0
+revision=1
+build_style=cargo
+make_check_args="--
+ --skip algorithm::kalman::peer::tests::test_offset_steering_and_measurements
+ --skip keyexchange::tests::client_connection_refused
+ --skip interface_name::tests::find_interface_ipv6
+ --skip socket::tests::test_client_basic_ipv6
+ --skip socket::tests::test_server_basic_ipv6"
+make_install_args="--path ntpd"
+depends="libcap-progs"
+short_desc="Full-featured implementation of the Network Time Protocol"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="Apache-2.0, MIT"
+homepage="https://github.com/pendulum-project/ntpd-rs"
+changelog="https://raw.githubusercontent.com/pendulum-project/ntpd-rs/main/CHANGELOG.md"
+distfiles="https://github.com/pendulum-project/ntpd-rs/archive/refs/tags/v${version}.tar.gz"
+checksum=044b65c22154464f89cd5429645b3da6dfee94d3e02bc05576e7d569fd6ca82f
+
+system_accounts="_ntpd_rs"
+conf_files="/etc/ntpd-rs/ntp.toml"
+provides="ntp-daemon-0_1"
+alternatives="
+ ntpd:ntpd:/usr/bin/ntp-daemon
+ ntpd:ntpd:/etc/sv/ntpd-rs"
+
+post_install() {
+ vinstall ntp.toml 644 etc/ntpd-rs
+ vlicense LICENSE-MIT
+ vsv ntpd-rs
+
+ for manpage in docs/precompiled/man/*; do
+ vman ${manpage}
+ done
+}
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntpd-rs-1.0.0
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
` (8 preceding siblings ...)
2023-10-08 5:49 ` tranzystorek-io
@ 2023-10-08 6:03 ` tranzystorek-io
2023-12-14 13:23 ` tranzystorekk
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: tranzystorek-io @ 2023-10-08 6:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]
There is an updated pull request by tranzystorek-io against master on the void-packages repository
https://github.com/tranzystorek-io/void-packages ntpd-rs
https://github.com/void-linux/void-packages/pull/45739
New package: ntpd-rs-1.0.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/45739.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ntpd-rs-45739.patch --]
[-- Type: text/x-diff, Size: 2614 bytes --]
From 8e83fcd0083b00a4786b8b478e8b1bdd29d5953c Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Thu, 24 Aug 2023 13:25:55 +0200
Subject: [PATCH] New package: ntpd-rs-1.0.0
---
srcpkgs/ntpd-rs/INSTALL | 5 +++++
srcpkgs/ntpd-rs/files/ntpd-rs/run | 4 ++++
srcpkgs/ntpd-rs/template | 37 +++++++++++++++++++++++++++++++
3 files changed, 46 insertions(+)
create mode 100644 srcpkgs/ntpd-rs/INSTALL
create mode 100644 srcpkgs/ntpd-rs/files/ntpd-rs/run
create mode 100644 srcpkgs/ntpd-rs/template
diff --git a/srcpkgs/ntpd-rs/INSTALL b/srcpkgs/ntpd-rs/INSTALL
new file mode 100644
index 0000000000000..bb7e53afa9362
--- /dev/null
+++ b/srcpkgs/ntpd-rs/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+ setcap CAP_SYS_TIME=+ep usr/bin/ntp-daemon
+ ;;
+esac
diff --git a/srcpkgs/ntpd-rs/files/ntpd-rs/run b/srcpkgs/ntpd-rs/files/ntpd-rs/run
new file mode 100644
index 0000000000000..d9b5fdbb6423f
--- /dev/null
+++ b/srcpkgs/ntpd-rs/files/ntpd-rs/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ ! -d /run/ntpd-rs ] && mkdir /run/ntpd-rs && chown _ntpd_rs:_ntpd_rs /run/ntpd-rs
+exec chpst -u _ntpd_rs:_ntpd_rs ntp-daemon
diff --git a/srcpkgs/ntpd-rs/template b/srcpkgs/ntpd-rs/template
new file mode 100644
index 0000000000000..646e15c31f60a
--- /dev/null
+++ b/srcpkgs/ntpd-rs/template
@@ -0,0 +1,37 @@
+# Template file for 'ntpd-rs'
+pkgname=ntpd-rs
+version=1.0.0
+revision=1
+build_style=cargo
+make_check_args="--
+ --skip algorithm::kalman::peer::tests::test_offset_steering_and_measurements
+ --skip keyexchange::tests::client_connection_refused
+ --skip interface::tests::find_interface_ipv6
+ --skip socket::tests::test_client_basic_ipv6
+ --skip socket::tests::test_server_basic_ipv6"
+make_install_args="--path ntpd"
+depends="libcap-progs"
+short_desc="Full-featured implementation of the Network Time Protocol"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="Apache-2.0, MIT"
+homepage="https://github.com/pendulum-project/ntpd-rs"
+changelog="https://raw.githubusercontent.com/pendulum-project/ntpd-rs/main/CHANGELOG.md"
+distfiles="https://github.com/pendulum-project/ntpd-rs/archive/refs/tags/v${version}.tar.gz"
+checksum=044b65c22154464f89cd5429645b3da6dfee94d3e02bc05576e7d569fd6ca82f
+
+system_accounts="_ntpd_rs"
+conf_files="/etc/ntpd-rs/ntp.toml"
+provides="ntp-daemon-0_1"
+alternatives="
+ ntpd:ntpd:/usr/bin/ntp-daemon
+ ntpd:ntpd:/etc/sv/ntpd-rs"
+
+post_install() {
+ vinstall ntp.toml 644 etc/ntpd-rs
+ vlicense LICENSE-MIT
+ vsv ntpd-rs
+
+ for manpage in docs/precompiled/man/*; do
+ vman ${manpage}
+ done
+}
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntpd-rs-1.0.0
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
` (9 preceding siblings ...)
2023-10-08 6:03 ` [PR PATCH] [Updated] New package: ntpd-rs-1.0.0 tranzystorek-io
@ 2023-12-14 13:23 ` tranzystorekk
2023-12-23 19:22 ` [PR PATCH] [Updated] New package: ntpd-rs-1.1.0 tranzystorekk
2024-01-12 18:11 ` [PR PATCH] [Merged]: " classabbyamp
12 siblings, 0 replies; 14+ messages in thread
From: tranzystorekk @ 2023-12-14 13:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]
There is an updated pull request by tranzystorekk against master on the void-packages repository
https://github.com/tranzystorekk/void-packages ntpd-rs
https://github.com/void-linux/void-packages/pull/45739
New package: ntpd-rs-1.0.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/45739.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ntpd-rs-45739.patch --]
[-- Type: text/x-diff, Size: 2614 bytes --]
From 38863bba1b92f586b5e0e5edc17122018744f454 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Thu, 24 Aug 2023 13:25:55 +0200
Subject: [PATCH] New package: ntpd-rs-1.1.0
---
srcpkgs/ntpd-rs/INSTALL | 5 +++++
srcpkgs/ntpd-rs/files/ntpd-rs/run | 4 ++++
srcpkgs/ntpd-rs/template | 37 +++++++++++++++++++++++++++++++
3 files changed, 46 insertions(+)
create mode 100644 srcpkgs/ntpd-rs/INSTALL
create mode 100644 srcpkgs/ntpd-rs/files/ntpd-rs/run
create mode 100644 srcpkgs/ntpd-rs/template
diff --git a/srcpkgs/ntpd-rs/INSTALL b/srcpkgs/ntpd-rs/INSTALL
new file mode 100644
index 0000000000000..bb7e53afa9362
--- /dev/null
+++ b/srcpkgs/ntpd-rs/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+ setcap CAP_SYS_TIME=+ep usr/bin/ntp-daemon
+ ;;
+esac
diff --git a/srcpkgs/ntpd-rs/files/ntpd-rs/run b/srcpkgs/ntpd-rs/files/ntpd-rs/run
new file mode 100644
index 0000000000000..d9b5fdbb6423f
--- /dev/null
+++ b/srcpkgs/ntpd-rs/files/ntpd-rs/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ ! -d /run/ntpd-rs ] && mkdir /run/ntpd-rs && chown _ntpd_rs:_ntpd_rs /run/ntpd-rs
+exec chpst -u _ntpd_rs:_ntpd_rs ntp-daemon
diff --git a/srcpkgs/ntpd-rs/template b/srcpkgs/ntpd-rs/template
new file mode 100644
index 0000000000000..c41fc945233a8
--- /dev/null
+++ b/srcpkgs/ntpd-rs/template
@@ -0,0 +1,37 @@
+# Template file for 'ntpd-rs'
+pkgname=ntpd-rs
+version=1.1.0
+revision=1
+build_style=cargo
+make_check_args="--
+ --skip algorithm::kalman::peer::tests::test_offset_steering_and_measurements
+ --skip keyexchange::tests::client_connection_refused
+ --skip interface::tests::find_interface_ipv6
+ --skip socket::tests::test_client_basic_ipv6
+ --skip socket::tests::test_server_basic_ipv6"
+make_install_args="--path ntpd"
+depends="libcap-progs"
+short_desc="Full-featured implementation of the Network Time Protocol"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="Apache-2.0, MIT"
+homepage="https://github.com/pendulum-project/ntpd-rs"
+changelog="https://raw.githubusercontent.com/pendulum-project/ntpd-rs/main/CHANGELOG.md"
+distfiles="https://github.com/pendulum-project/ntpd-rs/archive/refs/tags/v${version}.tar.gz"
+checksum=47f97c068eb77fd7d68e71799f90372fe6d639aa87087b04c071771fb1db520a
+
+system_accounts="_ntpd_rs"
+conf_files="/etc/ntpd-rs/ntp.toml"
+provides="ntp-daemon-0_1"
+alternatives="
+ ntpd:ntpd:/usr/bin/ntp-daemon
+ ntpd:ntpd:/etc/sv/ntpd-rs"
+
+post_install() {
+ vinstall ntp.toml 644 etc/ntpd-rs
+ vlicense LICENSE-MIT
+ vsv ntpd-rs
+
+ for manpage in docs/precompiled/man/*; do
+ vman ${manpage}
+ done
+}
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntpd-rs-1.1.0
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
` (10 preceding siblings ...)
2023-12-14 13:23 ` tranzystorekk
@ 2023-12-23 19:22 ` tranzystorekk
2024-01-12 18:11 ` [PR PATCH] [Merged]: " classabbyamp
12 siblings, 0 replies; 14+ messages in thread
From: tranzystorekk @ 2023-12-23 19:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]
There is an updated pull request by tranzystorekk against master on the void-packages repository
https://github.com/tranzystorekk/void-packages ntpd-rs
https://github.com/void-linux/void-packages/pull/45739
New package: ntpd-rs-1.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/45739.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ntpd-rs-45739.patch --]
[-- Type: text/x-diff, Size: 2614 bytes --]
From 15a89d3e60c423c82df3aa94fa56895a6561d9da Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Thu, 24 Aug 2023 13:25:55 +0200
Subject: [PATCH] New package: ntpd-rs-1.1.0
---
srcpkgs/ntpd-rs/INSTALL | 5 +++++
srcpkgs/ntpd-rs/files/ntpd-rs/run | 4 ++++
srcpkgs/ntpd-rs/template | 37 +++++++++++++++++++++++++++++++
3 files changed, 46 insertions(+)
create mode 100644 srcpkgs/ntpd-rs/INSTALL
create mode 100644 srcpkgs/ntpd-rs/files/ntpd-rs/run
create mode 100644 srcpkgs/ntpd-rs/template
diff --git a/srcpkgs/ntpd-rs/INSTALL b/srcpkgs/ntpd-rs/INSTALL
new file mode 100644
index 0000000000000..bb7e53afa9362
--- /dev/null
+++ b/srcpkgs/ntpd-rs/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+ setcap CAP_SYS_TIME=+ep usr/bin/ntp-daemon
+ ;;
+esac
diff --git a/srcpkgs/ntpd-rs/files/ntpd-rs/run b/srcpkgs/ntpd-rs/files/ntpd-rs/run
new file mode 100644
index 0000000000000..d9b5fdbb6423f
--- /dev/null
+++ b/srcpkgs/ntpd-rs/files/ntpd-rs/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ ! -d /run/ntpd-rs ] && mkdir /run/ntpd-rs && chown _ntpd_rs:_ntpd_rs /run/ntpd-rs
+exec chpst -u _ntpd_rs:_ntpd_rs ntp-daemon
diff --git a/srcpkgs/ntpd-rs/template b/srcpkgs/ntpd-rs/template
new file mode 100644
index 0000000000000..c41fc945233a8
--- /dev/null
+++ b/srcpkgs/ntpd-rs/template
@@ -0,0 +1,37 @@
+# Template file for 'ntpd-rs'
+pkgname=ntpd-rs
+version=1.1.0
+revision=1
+build_style=cargo
+make_check_args="--
+ --skip algorithm::kalman::peer::tests::test_offset_steering_and_measurements
+ --skip keyexchange::tests::client_connection_refused
+ --skip interface::tests::find_interface_ipv6
+ --skip socket::tests::test_client_basic_ipv6
+ --skip socket::tests::test_server_basic_ipv6"
+make_install_args="--path ntpd"
+depends="libcap-progs"
+short_desc="Full-featured implementation of the Network Time Protocol"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="Apache-2.0, MIT"
+homepage="https://github.com/pendulum-project/ntpd-rs"
+changelog="https://raw.githubusercontent.com/pendulum-project/ntpd-rs/main/CHANGELOG.md"
+distfiles="https://github.com/pendulum-project/ntpd-rs/archive/refs/tags/v${version}.tar.gz"
+checksum=47f97c068eb77fd7d68e71799f90372fe6d639aa87087b04c071771fb1db520a
+
+system_accounts="_ntpd_rs"
+conf_files="/etc/ntpd-rs/ntp.toml"
+provides="ntp-daemon-0_1"
+alternatives="
+ ntpd:ntpd:/usr/bin/ntp-daemon
+ ntpd:ntpd:/etc/sv/ntpd-rs"
+
+post_install() {
+ vinstall ntp.toml 644 etc/ntpd-rs
+ vlicense LICENSE-MIT
+ vsv ntpd-rs
+
+ for manpage in docs/precompiled/man/*; do
+ vman ${manpage}
+ done
+}
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Merged]: New package: ntpd-rs-1.1.0
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
` (11 preceding siblings ...)
2023-12-23 19:22 ` [PR PATCH] [Updated] New package: ntpd-rs-1.1.0 tranzystorekk
@ 2024-01-12 18:11 ` classabbyamp
12 siblings, 0 replies; 14+ messages in thread
From: classabbyamp @ 2024-01-12 18:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]
There's a merged pull request on the void-packages repository
New package: ntpd-rs-1.1.0
https://github.com/void-linux/void-packages/pull/45739
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2024-01-12 18:11 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-24 11:48 [PR PATCH] New package: ntpd-rs-0.3.7 tranzystorek-io
2023-08-24 12:01 ` [PR REVIEW] " dmarto
2023-08-24 12:01 ` [PR PATCH] [Updated] " tranzystorek-io
2023-08-24 12:03 ` [PR REVIEW] " dmarto
2023-08-24 12:03 ` dmarto
2023-08-24 12:04 ` dmarto
2023-08-24 12:20 ` tranzystorek-io
2023-08-24 13:49 ` [PR PATCH] [Updated] " tranzystorek-io
2023-08-24 14:01 ` tranzystorek-io
2023-10-08 5:49 ` tranzystorek-io
2023-10-08 6:03 ` [PR PATCH] [Updated] New package: ntpd-rs-1.0.0 tranzystorek-io
2023-12-14 13:23 ` tranzystorekk
2023-12-23 19:22 ` [PR PATCH] [Updated] New package: ntpd-rs-1.1.0 tranzystorekk
2024-01-12 18:11 ` [PR PATCH] [Merged]: " classabbyamp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).