mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
extra/ntp to 4.2.8.p18-1
This commit is contained in:
parent
26615d7449
commit
2a3b7437f8
3 changed files with 54 additions and 3 deletions
27
extra/ntp/.SRCINFO
Normal file
27
extra/ntp/.SRCINFO
Normal file
|
@ -0,0 +1,27 @@
|
|||
pkgbase = ntp
|
||||
pkgdesc = Network Time Protocol reference implementation
|
||||
pkgver = 4.2.8.p18
|
||||
pkgrel = 1
|
||||
url = https://www.ntp.org/
|
||||
arch = x86_64
|
||||
license = custom
|
||||
depends = openssl
|
||||
depends = perl
|
||||
depends = libcap
|
||||
depends = libedit
|
||||
options = !emptydirs
|
||||
backup = etc/ntp.conf
|
||||
source = https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p18.tar.gz
|
||||
source = ntp-4.2.8.p18-fix-build.patch
|
||||
source = ntp.conf
|
||||
source = ntpd.service
|
||||
source = ntpdate.service
|
||||
source = ntp.sysusers
|
||||
sha256sums = cf84c5f3fb1a295284942624d823fffa634144e096cfc4f9969ac98ef5f468e5
|
||||
sha256sums = 9c4afa0daed5fd3cc9544ec808b2bb1dd959e5d40c4cae307b7025b16885903c
|
||||
sha256sums = abccefe0b3a65cd375d5071ce780be8d2d205439aa6d34bcd3c56de6e80ba821
|
||||
sha256sums = 1edd7e7916766b4aebb4d96a5da4b0a1086f43d3e0e4ffc90c2e4f92bd13ce7e
|
||||
sha256sums = 63b0f8c03905daecad3f901664db70a608519b6ca4f4e7b159ab2c971cffacf4
|
||||
sha256sums = f839a3b6d8e64fcd9332274131b4d5aa0b2c272db072dc310af1735ef286746a
|
||||
|
||||
pkgname = ntp
|
|
@ -1,4 +1,6 @@
|
|||
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
|
||||
# Maintainer:
|
||||
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
|
||||
# Contributor: Christian Heusel <gromit@archlinux.org>
|
||||
# Contributor: Gaetan Bisson <bisson@archlinux.org>
|
||||
# Contributor: kevin <kevin@archlinux.org>
|
||||
|
||||
|
@ -7,7 +9,7 @@
|
|||
|
||||
pkgname=ntp
|
||||
_pkgname=ntp #-dev
|
||||
_pkgver=4.2.8p17
|
||||
_pkgver=4.2.8p18
|
||||
pkgver=${_pkgver/p/.p}
|
||||
pkgrel=1
|
||||
pkgdesc='Network Time Protocol reference implementation'
|
||||
|
@ -17,12 +19,14 @@ arch=('x86_64')
|
|||
depends=('openssl' 'perl' 'libcap' 'libedit')
|
||||
backup=('etc/ntp.conf')
|
||||
source=("https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${_pkgname}-${_pkgver}.tar.gz"
|
||||
ntp-4.2.8.p18-fix-build.patch
|
||||
'0001-disable-pthread-warmup-on-ARM.patch'
|
||||
'ntp.conf'
|
||||
'ntpd.service'
|
||||
'ntpdate.service'
|
||||
'ntp.sysusers')
|
||||
sha256sums=('103dd272e6a66c5b8df07dce5e9a02555fcd6f1397bdfb782237328e89d3a866'
|
||||
sha256sums=('cf84c5f3fb1a295284942624d823fffa634144e096cfc4f9969ac98ef5f468e5'
|
||||
'9c4afa0daed5fd3cc9544ec808b2bb1dd959e5d40c4cae307b7025b16885903c'
|
||||
'a8d4480095bef3a5d01ac5233c3fc3758913a5c3c64ed9dbb5ea5c3f3f5bb8cd'
|
||||
'abccefe0b3a65cd375d5071ce780be8d2d205439aa6d34bcd3c56de6e80ba821'
|
||||
'1edd7e7916766b4aebb4d96a5da4b0a1086f43d3e0e4ffc90c2e4f92bd13ce7e'
|
||||
|
@ -32,7 +36,11 @@ options=('!emptydirs')
|
|||
|
||||
prepare() {
|
||||
cd "${_pkgname}-${_pkgver}"
|
||||
|
||||
patch -p1 -i ../0001-disable-pthread-warmup-on-ARM.patch
|
||||
patch -Np1 < ../ntp-4.2.8.p18-fix-build.patch
|
||||
autoreconf -fiv
|
||||
cd "${_pkgname}-${_pkgver}"
|
||||
}
|
||||
|
||||
build() {
|
||||
|
|
16
extra/ntp/ntp-4.2.8.p18-fix-build.patch
Normal file
16
extra/ntp/ntp-4.2.8.p18-fix-build.patch
Normal file
|
@ -0,0 +1,16 @@
|
|||
diff -Nru a/sntp/m4/openldap-thread-check.m4 b/sntp/m4/openldap-thread-check.m4
|
||||
--- a/sntp/m4/openldap-thread-check.m4 2024-05-19 18:38:30 +0000
|
||||
+++ b/sntp/m4/openldap-thread-check.m4 2024-05-19 18:38:30 +0000
|
||||
@@ -262,10 +262,8 @@
|
||||
dnl save the flags
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <pthread.h>
|
||||
-#ifndef NULL
|
||||
-#define NULL (void*)0
|
||||
-#endif
|
||||
-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
|
||||
+pthread_t thread;
|
||||
+]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
|
||||
])
|
||||
|
||||
if test $ol_cv_func_pthread_detach = no ; then
|
Loading…
Reference in a new issue