mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/ntp to 4.2.8.p11-2
This commit is contained in:
parent
83bcbfb2b7
commit
11a0631be6
3 changed files with 8 additions and 10 deletions
|
@ -9,7 +9,7 @@ pkgname=ntp
|
||||||
_pkgname=ntp #-dev
|
_pkgname=ntp #-dev
|
||||||
_pkgver=4.2.8p11
|
_pkgver=4.2.8p11
|
||||||
pkgver=${_pkgver/p/.p}
|
pkgver=${_pkgver/p/.p}
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='Network Time Protocol reference implementation'
|
pkgdesc='Network Time Protocol reference implementation'
|
||||||
url='http://www.ntp.org/'
|
url='http://www.ntp.org/'
|
||||||
license=('custom')
|
license=('custom')
|
||||||
|
@ -20,15 +20,15 @@ source=("https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${_pkgname}-${_p
|
||||||
'0001-disable-pthread-warmup-on-ARM.patch'
|
'0001-disable-pthread-warmup-on-ARM.patch'
|
||||||
'ntp.conf'
|
'ntp.conf'
|
||||||
'ntpd.service'
|
'ntpd.service'
|
||||||
'ntpdate.service')
|
'ntpdate.service'
|
||||||
|
'ntp.sysusers')
|
||||||
sha1sums=('b20352bb76963a0ef5ec07ba99c2bb97ec6b6aeb'
|
sha1sums=('b20352bb76963a0ef5ec07ba99c2bb97ec6b6aeb'
|
||||||
'ec9bd3894b65edca8efdb34ce12b3eb144336294'
|
'ec9bd3894b65edca8efdb34ce12b3eb144336294'
|
||||||
'ad1d6ee2e9aca64a84a7224c88bf6008ac6c69e1'
|
'ad1d6ee2e9aca64a84a7224c88bf6008ac6c69e1'
|
||||||
'0cccca872385e0142888ab48d273fec0669b30a8'
|
'0cccca872385e0142888ab48d273fec0669b30a8'
|
||||||
'059b382d1af0c55202e2d17f2ae065a2cbfec9ee')
|
'059b382d1af0c55202e2d17f2ae065a2cbfec9ee'
|
||||||
|
'e8d1c895eabeb45b1a5f096fa5fc3c088eb3ee71')
|
||||||
options=('!emptydirs')
|
options=('!emptydirs')
|
||||||
install=ntp.install
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${srcdir}/${_pkgname}-${_pkgver}"
|
cd "${srcdir}/${_pkgname}-${_pkgver}"
|
||||||
|
@ -51,6 +51,7 @@ package() {
|
||||||
install -Dm644 ../ntp.conf "${pkgdir}"/etc/ntp.conf
|
install -Dm644 ../ntp.conf "${pkgdir}"/etc/ntp.conf
|
||||||
install -Dm644 ../ntpd.service "${pkgdir}"/usr/lib/systemd/system/ntpd.service
|
install -Dm644 ../ntpd.service "${pkgdir}"/usr/lib/systemd/system/ntpd.service
|
||||||
install -Dm644 ../ntpdate.service "${pkgdir}"/usr/lib/systemd/system/ntpdate.service
|
install -Dm644 ../ntpdate.service "${pkgdir}"/usr/lib/systemd/system/ntpdate.service
|
||||||
|
install -Dm644 ../ntp.sysusers "${pkgdir}"/usr/lib/sysusers.d/ntp.conf
|
||||||
install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
|
||||||
install -d -o 87 "${pkgdir}"/var/lib/ntp
|
install -d -o 87 "${pkgdir}"/var/lib/ntp
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
post_install() {
|
|
||||||
getent group ntp &>/dev/null || groupadd -g 87 ntp >/dev/null
|
|
||||||
getent passwd ntp &>/dev/null || useradd -u 87 -g ntp -d /var/lib/ntp -c 'Network Time Protocol' -s /bin/false ntp >/dev/null
|
|
||||||
true
|
|
||||||
}
|
|
2
extra/ntp/ntp.sysusers
Normal file
2
extra/ntp/ntp.sysusers
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
g ntp 87 -
|
||||||
|
u ntp 87 "Network Time Protocol" /var/lib/ntp /bin/false
|
Loading…
Reference in a new issue