Package Details: ntpsec 1.2.1-1

Git Clone URL: https://aur.archlinux.org/ntpsec.git (read-only, click to copy)
Package Base: ntpsec
Description: Security-hardened Network Time Protocol implementation
Upstream URL: https://www.ntpsec.org/
Licenses: custom
Conflicts: ntp
Provides: ntp
Submitter: chungy
Maintainer: gdfuego
Last Packager: gdfuego
Votes: 11
Popularity: 0.81
First Submitted: 2016-12-01 10:10 (UTC)
Last Updated: 2022-11-23 15:36 (UTC)

Dependencies (12)

Required by (19)

Sources (4)

Latest Comments

1 2 Next › Last »

gdfuego commented on 2022-11-23 15:56 (UTC)

Fix committed. Thank you.

Mirsaltptir commented on 2022-11-14 19:59 (UTC) (edited on 2022-11-14 20:20 (UTC) by Mirsaltptir)

--- PKGBUILD.old        2022-11-14 19:13:12.648504060 +0000                                                                   
+++ PKGBUILD    2022-11-14 19:16:13.988616631 +0000                                                                           
@@ -7,7 +7,7 @@
 url="https://www.ntpsec.org/"
 license=('custom')
-depends=('avahi' 'libbsd' 'python')
+depends=('avahi' 'libbsd' 'python' 'openssl-1.1')
 makedepends=('asciidoc' 'pps-tools' 'w3m' 'binutils')
 optdepends=('gnuplot: for ntpviz'
             'libevent: for ntpdig'
             'python-psutil: Optional for ntpviz, allows running with ionice'
@@ -43,6 +43,10 @@
 build() {
   cd "$pkgname-$pkgver"

+  export CFLAGS="$CFLAGS -I/usr/include/openssl-1.1"
+  export CXXFLAGS="$CXXFLAGS -I/usr/include/openssl-1.1"
+  export LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.1/"
+
   ./waf configure --prefix /usr --sbindir=/usr/bin --enable-debug-gdb \
         --refclock=all --enable-doc --htmldir=/usr/share/doc/ntpsec \
         --enable-leap-smear

eimis commented on 2022-11-12 20:29 (UTC)

no longer builds

../../attic/cmac-timing.c: In function ‘One_EVP_MAC’:                                                                                                                                                              
../../attic/cmac-timing.c:249:18: error: too few arguments to function ‘EVP_MAC_init’                                                                                                                              
  249 |         if (0 == EVP_MAC_init(ctx)) {                                                                                                                                                                      
      |                  ^~~~~~~~~~~~                                                                                                                                                                              
In file included from /usr/include/openssl/cmac.h:25,                                                                                                                                                              
                 from ../../attic/cmac-timing.c:29:                                                                                                                                                                
/usr/include/openssl/evp.h:1220:5: note: declared here                                                                                                                                                             
 1220 | int EVP_MAC_init(EVP_MAC_CTX *ctx, const unsigned char *key, size_t keylen,                                                                                                                                
      |     ^~~~~~~~~~~~                                                                                                                                                                                           
../../attic/cmac-timing.c: In function ‘One_EVP_MAC2’:                                                                                                                                                             
../../attic/cmac-timing.c:310:18: error: too few arguments to function ‘EVP_MAC_init’                    
  310 |         if (0 == EVP_MAC_init(ctx)) {
      |                  ^~~~~~~~~~~~                                                                    
/usr/include/openssl/evp.h:1220:5: note: declared here                                                   
 1220 | int EVP_MAC_init(EVP_MAC_CTX *ctx, const unsigned char *key, size_t keylen,                      
      |     ^~~~~~~~~~~~

12o commented on 2021-11-04 02:37 (UTC) (edited on 2021-11-04 02:45 (UTC) by 12o)

I received this error when attempting to install through AUR. I imported the key per the ntpsec Arch wiki page.

gpg --recv-keys 5A22E330161C3978
gpg: key 5A22E330161C3978: public key "NTPsec Contact <contact@ntpsec.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1

.....

==> Verifying source file signatures with gpg...
    ntpsec-1.2.1.tar.gz ... FAILED (unknown public key 7F52608ED0E49D76)
==> ERROR: One or more PGP signatures could not be verified!

Just import the public key above in this code block. The wiki page just needs to be changed. Best to have the maintainer do it for verification.

kql commented on 2021-03-12 19:32 (UTC)

Thanks! Now it's running perfectly.

gdfuego commented on 2021-03-12 19:09 (UTC)

I just removed seccomp. Can you confirm it's working for you now?

kql commented on 2021-03-12 16:26 (UTC)

After a fresh install and default config, the service crashed with ntpd.service: Main process exited, code=killed, status=31/SYS. After removing --enable-seccomp as suggested here https://lists.ntpsec.org/pipermail/devel/2021-January/009680.html the service seems to run as expected.

Perhaps the switch should be removed from build()?

gdfuego commented on 2019-11-26 01:53 (UTC)

I updated to the latest version and added arm7h support