add chrony
This commit is contained in:
parent
7f32accd71
commit
cd7227adba
|
@ -0,0 +1,93 @@
|
|||
#!/usr/bin/bash
|
||||
# JOBoRun : Jwm OpenBox Obarun RUNit
|
||||
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
||||
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
||||
# Website : https://pozol.eu
|
||||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
pkgname=chrony
|
||||
pkgver=4.5
|
||||
pkgrel=02
|
||||
pkgdesc='Lightweight NTP client and server w/o systemd & ipv6'
|
||||
url='https://chrony.tuxfamily.org/'
|
||||
depends=('glibc' 'libcap' 'libcap.so' 'libedit' 'libedit.so' 'libseccomp' 'libseccomp.so'
|
||||
'nettle' 'libnettle.so' 'gnutls')
|
||||
makedepends=('asciidoctor')
|
||||
options=('!emptydirs')
|
||||
backup=('etc/chrony.conf')
|
||||
source=(https://download.tuxfamily.org/chrony/${pkgname}-${pkgver}.tar.gz
|
||||
${pkgname}-${pkgver}.tar.gz.asc::https://download.tuxfamily.org/chrony/${pkgname}-${pkgver}-tar-gz-asc.txt
|
||||
chrony.sysusers
|
||||
chrony.tmpfiles)
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
sed -i \
|
||||
-e 's|pool pool.ntp.org|pool 2.arch.pool.ntp.org|g' \
|
||||
-e 's|server foo.example.net|server 0.arch.pool.ntp.org|g' \
|
||||
-e 's|server bar.example.net|server 1.arch.pool.ntp.org|g' \
|
||||
-e 's|server baz.example.net|server 3.arch.pool.ntp.org|g' \
|
||||
examples/chrony.conf.example*
|
||||
sed 's|/usr/sbin|/usr/bin|g' -i examples/*.service
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--enable-scfilter \
|
||||
--enable-ntp-signd \
|
||||
--with-user=chrony \
|
||||
--with-sendmail=/usr/bin/sendmail \
|
||||
--with-hwclockfile=/etc/adjtime \
|
||||
--sbindir=/usr/bin \
|
||||
--disable-ipv6 \
|
||||
--with-pidfile=/run/chrony/chronyd.pid
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make DESTDIR="${pkgdir}" install install-docs
|
||||
|
||||
install -Dm 644 "${srcdir}/chrony.sysusers" "${pkgdir}/usr/lib/sysusers.d/chrony.conf"
|
||||
install -Dm 644 "${srcdir}/chrony.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/chrony.conf"
|
||||
## no way to configure building without systemd services but does build without it
|
||||
## systemd service files are provided by default. Both runit and s6 scripts are available
|
||||
## install -Dm 644 examples/{chronyd,chrony-wait}.service -t "${pkgdir}/usr/lib/systemd/system"
|
||||
## echo "chronyd.service" | install -Dm 644 /dev/stdin "${pkgdir}/usr/lib/systemd/ntp-units.d/chrony.list"
|
||||
install -Dm 644 examples/chrony.logrotate "${pkgdir}/etc/logrotate.d/chrony"
|
||||
install -Dm 644 README NEWS FAQ -t "${pkgdir}/usr/share/doc/${pkgname}"
|
||||
install -Dm 644 examples/* -t "${pkgdir}/usr/share/doc/${pkgname}/examples"
|
||||
|
||||
install -Dm 644 examples/chrony.conf.example3 "${pkgdir}/etc/chrony.conf"
|
||||
sed -i \
|
||||
-e '/^! pool /s/^! //' \
|
||||
-e '/^! leapsectz right\/UTC/s/^! //' \
|
||||
-e '/^! makestep 1.0 3/s/^! //' \
|
||||
-e '/^! rtcsync/s/^! //' \
|
||||
"${pkgdir}/etc/chrony.conf"
|
||||
|
||||
rmdir "${pkgdir}"{/var/lib/chrony,/var/lib}
|
||||
}
|
||||
|
||||
#---- arch license gpg-key & sha256sums ----
|
||||
|
||||
arch=(x86_64)
|
||||
|
||||
license=('GPL2')
|
||||
|
||||
validpgpkeys=(8F375C7E8D0EE125A3D3BD51537E2B76F7680DAC) # Miroslav Lichvar <mlichvar@redhat.com>
|
||||
|
||||
sha256sums=(19fe1d9f4664d445a69a96c71e8fdb60bcd8df24c73d1386e02287f7366ad422 # chrony-4.5.tar.gz
|
||||
71381c92097588e139474ffca93b1261b56df1fca09a5ea2cf34f7fae0a4a379 # chrony-4.5.tar.gz.asc
|
||||
56aa817638c8f959169d514f1e7fc727ef31e7d3beda4fca5165292c7602ee42 # chrony.sysusers
|
||||
c0b52787f68f3ef365eef64f53f22b4fb0046a91f0e38923f9d16f1ca19c3f3a) # chrony.tmpfiles
|
||||
|
||||
## 3d3df8dd672e9f330e2467be1d4bbaf12dc4eefdc4f81c90a753762133376633 chrony-4.5-02-x86_64.pkg.tar.lz
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
||||
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||||
# Contributor: Daniel Micay <danielmicay@gmail.com>
|
||||
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
|
||||
# Contributor: Patrick Leslie Polzer <leslie.polzer@gmx.net>
|
||||
# Contributor: cdhotfire <cdhotfire@gmail.com>
|
||||
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
|
||||
# Contributor: Elisamuel Resto <ryuji@simplysam.us>
|
||||
|
||||
pkgname=chrony
|
||||
pkgver=4.5
|
||||
pkgrel=1
|
||||
pkgdesc='Lightweight NTP client and server'
|
||||
url='https://chrony.tuxfamily.org/'
|
||||
arch=('x86_64')
|
||||
license=('GPL2')
|
||||
depends=('glibc' 'libcap' 'libcap.so' 'libedit' 'libedit.so' 'libseccomp' 'libseccomp.so'
|
||||
'nettle' 'libnettle.so' 'gnutls')
|
||||
makedepends=('asciidoctor')
|
||||
options=('!emptydirs')
|
||||
backup=('etc/chrony.conf')
|
||||
source=(https://download.tuxfamily.org/chrony/${pkgname}-${pkgver}.tar.gz
|
||||
${pkgname}-${pkgver}.tar.gz.asc::https://download.tuxfamily.org/chrony/${pkgname}-${pkgver}-tar-gz-asc.txt
|
||||
chrony.sysusers
|
||||
chrony.tmpfiles)
|
||||
sha256sums=('19fe1d9f4664d445a69a96c71e8fdb60bcd8df24c73d1386e02287f7366ad422'
|
||||
'SKIP'
|
||||
'56aa817638c8f959169d514f1e7fc727ef31e7d3beda4fca5165292c7602ee42'
|
||||
'c0b52787f68f3ef365eef64f53f22b4fb0046a91f0e38923f9d16f1ca19c3f3a')
|
||||
b2sums=('e89665e6ff700805b41f89e9349d280579aebab31a30817512a165da939c8f39dc55ef9a17a50e3d7e298015620667638ab119901a71868a9188093606a95d32'
|
||||
'SKIP'
|
||||
'e310a05f95d84741f7ddbbc496c52a9f603bb79afc47e57d291a92ae02efb630a357fda378ab5a11875c3997d073e05019d88dce7bbf4377a0228f328ba78fec'
|
||||
'e709df2f97b523ef1c7a9dae3232ccbd235ac8f025eba866165272f8ba0372a0aba965d3aae1402395e43331bd629b9d8f3fbffd75fc254f4a7e5ecd47f73130')
|
||||
validpgpkeys=(
|
||||
'8F375C7E8D0EE125A3D3BD51537E2B76F7680DAC' # Miroslav Lichvar <mlichvar@redhat.com>
|
||||
)
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
sed -i \
|
||||
-e 's|pool pool.ntp.org|pool 2.arch.pool.ntp.org|g' \
|
||||
-e 's|server foo.example.net|server 0.arch.pool.ntp.org|g' \
|
||||
-e 's|server bar.example.net|server 1.arch.pool.ntp.org|g' \
|
||||
-e 's|server baz.example.net|server 3.arch.pool.ntp.org|g' \
|
||||
examples/chrony.conf.example*
|
||||
sed 's|/usr/sbin|/usr/bin|g' -i examples/*.service
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--enable-scfilter \
|
||||
--enable-ntp-signd \
|
||||
--with-user=chrony \
|
||||
--with-sendmail=/usr/bin/sendmail \
|
||||
--with-hwclockfile=/etc/adjtime \
|
||||
--sbindir=/usr/bin \
|
||||
--with-pidfile=/run/chrony/chronyd.pid
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make DESTDIR="${pkgdir}" install install-docs
|
||||
|
||||
install -Dm 644 "${srcdir}/chrony.sysusers" "${pkgdir}/usr/lib/sysusers.d/chrony.conf"
|
||||
install -Dm 644 "${srcdir}/chrony.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/chrony.conf"
|
||||
install -Dm 644 examples/{chronyd,chrony-wait}.service -t "${pkgdir}/usr/lib/systemd/system"
|
||||
install -Dm 644 examples/chrony.logrotate "${pkgdir}/etc/logrotate.d/chrony"
|
||||
install -Dm 644 README NEWS FAQ -t "${pkgdir}/usr/share/doc/${pkgname}"
|
||||
install -Dm 644 examples/* -t "${pkgdir}/usr/share/doc/${pkgname}/examples"
|
||||
echo "chronyd.service" | install -Dm 644 /dev/stdin "${pkgdir}/usr/lib/systemd/ntp-units.d/chrony.list"
|
||||
|
||||
install -Dm 644 examples/chrony.conf.example3 "${pkgdir}/etc/chrony.conf"
|
||||
sed -i \
|
||||
-e '/^! pool /s/^! //' \
|
||||
-e '/^! leapsectz right\/UTC/s/^! //' \
|
||||
-e '/^! makestep 1.0 3/s/^! //' \
|
||||
-e '/^! rtcsync/s/^! //' \
|
||||
"${pkgdir}/etc/chrony.conf"
|
||||
|
||||
rmdir "${pkgdir}"{/var/lib/chrony,/var/lib}
|
||||
}
|
||||
|
||||
# vim: ts=2 sw=2 et:
|
||||
## c8c070031b0c0558cad8db682699a14441bdd957b24f92ac079c762cd34eb57e # PKGBUILD
|
|
@ -0,0 +1 @@
|
|||
u chrony - "Network Time Protocol" /var/lib/chrony
|
|
@ -0,0 +1 @@
|
|||
d /var/lib/chrony 0755 chrony chrony - -
|
|
@ -0,0 +1 @@
|
|||
rm -rf {src,pkg,chrony*tar.gz*}
|
|
@ -0,0 +1,87 @@
|
|||
`configure' configures this package to adapt to many kinds of systems.
|
||||
|
||||
Usage: ./configure [OPTION]...
|
||||
|
||||
Defaults for the options are specified in brackets.
|
||||
|
||||
Configuration:
|
||||
-h, --help display this help and exit
|
||||
|
||||
Installation directories:
|
||||
--prefix=PREFIX install architecture-independent files in PREFIX
|
||||
[/usr/local]
|
||||
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
||||
[PREFIX]
|
||||
|
||||
By default, `make install' will install all the files in
|
||||
`/usr/local/bin', `/usr/local/lib' etc. You can specify
|
||||
an installation prefix other than `/usr/local' using `--prefix',
|
||||
for instance `--prefix=/home/make'.
|
||||
|
||||
For better control, use the options below.
|
||||
--disable-readline Disable line editing support
|
||||
--without-editline Don't use editline even if it is available
|
||||
--disable-sechash Disable support for hashes other than MD5
|
||||
--without-nettle Don't use nettle even if it is available
|
||||
--without-gnutls Don't use gnutls even if it is available
|
||||
--without-nss Don't use NSS even if it is available
|
||||
--without-tomcrypt Don't use libtomcrypt even if it is available
|
||||
--disable-nts Disable NTS support
|
||||
--disable-cmdmon Disable command and monitoring support
|
||||
--disable-ntp Disable NTP support
|
||||
--disable-refclock Disable reference clock support
|
||||
--disable-phc Disable PHC refclock driver
|
||||
--disable-pps Disable PPS refclock driver
|
||||
--disable-ipv6 Disable IPv6 support
|
||||
--disable-rtc Don't include RTC even on Linux
|
||||
--disable-privdrop Disable support for dropping root privileges
|
||||
--without-libcap Don't use libcap even if it is available
|
||||
--enable-scfilter Enable support for system call filtering
|
||||
--without-seccomp Don't use seccomp even if it is available
|
||||
--disable-asyncdns Disable asynchronous name resolving
|
||||
--disable-forcednsretry Don't retry on permanent DNS error
|
||||
--without-aes-gcm-siv Don't use AES-GCM-SIV for NTS even if it is available
|
||||
--without-clock-gettime Don't use clock_gettime() even if it is available
|
||||
--disable-timestamping Disable support for SW/HW timestamping
|
||||
--enable-ntp-signd Enable support for MS-SNTP authentication in Samba
|
||||
--with-ntp-era=SECONDS Specify earliest assumed NTP time in seconds
|
||||
since 1970-01-01 [50*365 days ago]
|
||||
--with-user=USER Specify default chronyd user [root]
|
||||
--with-hwclockfile=PATH Specify default path to hwclock(8) adjtime file
|
||||
--with-pidfile=PATH Specify default pidfile [/var/run/chrony/chronyd.pid]
|
||||
--with-rtcdevice=PATH Specify default path to RTC device [/dev/rtc]
|
||||
--with-sendmail=PATH Path to sendmail binary [/usr/lib/sendmail]
|
||||
--enable-debug Enable debugging support
|
||||
|
||||
Fine tuning of the installation directories:
|
||||
--sysconfdir=DIR chrony.conf location [/etc]
|
||||
--bindir=DIR user executables [EPREFIX/bin]
|
||||
--sbindir=DIR system admin executables [EPREFIX/sbin]
|
||||
--datarootdir=DIR data root [PREFIX/share]
|
||||
--mandir=DIR man documentation [DATAROOTDIR/man]
|
||||
--docdir=DIR documentation root [DATAROOTDIR/doc/chrony]
|
||||
--localstatedir=DIR modifiable single-machine data [/var]
|
||||
--chronyrundir=DIR location for chrony sockets [LOCALSTATEDIR/run/chrony]
|
||||
--chronyvardir=DIR location for chrony data [LOCALSTATEDIR/lib/chrony]
|
||||
|
||||
Overriding system detection when cross-compiling:
|
||||
--host-system=OS Specify system name (uname -s)
|
||||
--host-release=REL Specify system release (uname -r)
|
||||
--host-machine=CPU Specify machine (uname -m)
|
||||
|
||||
Some influential environment variables:
|
||||
CC C compiler command
|
||||
CFLAGS C compiler flags
|
||||
CPPFLAGS C preprocessor flags, e.g. -I<include dir> if you have
|
||||
headers in a nonstandard directory <include dir>
|
||||
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
||||
nonstandard directory <lib dir>
|
||||
PKG_CONFIG path to pkg-config utility
|
||||
PKG_CONFIG_PATH
|
||||
directories to add to pkg-config's search path
|
||||
PKG_CONFIG_LIBDIR
|
||||
path overriding pkg-config's built-in search path
|
||||
|
||||
Use these variables to override the choices made by `configure' or to help
|
||||
it to find libraries and programs with nonstandard names/locations.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
libedit
|
||||
asciidoctor
|
||||
|
|
@ -0,0 +1 @@
|
|||
gpg --recv-key 537E2B76F7680DAC
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
|
||||
real 0m33.334s
|
||||
user 0m30.209s
|
||||
sys 0m3.458s
|
||||
|
Loading…
Reference in New Issue