initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

82
chrony/PKGBUILD Normal file
View File

@@ -0,0 +1,82 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=chrony
pkgver=4.0
_debver=$pkgver
_debrel=8
pkgrel=3
pkgdesc="Lightweight NTP client and server"
url='https://chrony.tuxfamily.org/'
arch=('i686' 'x86_64')
license=('GPL-2')
depends=('libcap' 'libedit' 'libseccomp' 'nettle' 'gnutls')
makedepends=('asciidoctor' 'quilt')
options=('!emptydirs')
backup=('etc/chrony.conf')
source=(https://download.tuxfamily.org/chrony/${pkgname}-${pkgver}.tar.gz
https://deb.debian.org/debian/pool/main/${pkgname::1}/${pkgname}/${pkgname}_${_debver}-${_debrel}+deb11u2.debian.tar.xz
chronyd.confd
chronyd.initd
chronyd.run)
install=${pkgname}.install
sha512sums=('a1c11a386c43f495910f7f2e9b5fbb1652c3631471d182b9b8203dfef98611d11535ad547a879856551263aed0ae2e30e4135b8ed89553684706166bc1c725c9'
'717cbd7a6fffc1bed6105008275c2de292b2998c78eb311d4eda4ac5f3e3c3b99012b4e3c7f38faa3177d231f5bc8894ac51c0514cc05173233a66506aa3bcd9'
'5b83208aeb9a3ff2f21ac786a25f83b7804540b1930397396f5b15a2aba11f36a9bc4de06a88b58280cbc44f5c272bb41b6803463f4ea1c6724d7a9404c88d7f'
'b75b69e1469f0087a8146154da0a0a3e81a179c186f8bec92aed223b627b4d400b7f0c6b7d02018d0889c6f7bc921df95d1e22ef2577ec670229f003789296cc'
'5844456d316b6b4c6a7154f0f5d3f519d8d492beb673d330f76407e35a726fd4ed09223d846951def6d810626cbcfc1aca8a6e6818ac36aa62a289a8c7265e59')
prepare() {
cd ${pkgname}-${pkgver}
if [ ${pkgver%.*} = ${_debver%.*} ]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
quilt push -av
fi
}
build() {
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--enable-scfilter \
--enable-ntp-signd \
--with-user=chrony \
--with-sendmail=/usr/bin/sendmail \
--with-hwclockfile=/etc/adjtime \
--with-pidfile=/run/chrony/chronyd.pid \
--chronyrundir=/run/chrony
make V=1
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install install-docs
install -Dm 755 ${srcdir}/chronyd.initd "${pkgdir}/etc/init.d/chronyd"
install -Dm 644 ${srcdir}/chronyd.confd "${pkgdir}/etc/conf.d/chronyd"
install -Dm 755 ${srcdir}/chronyd.run "${pkgdir}/etc/sv/chronyd/run"
if [ $(uname -o) = GNU/Linux ]; then
sed -i 's|ARGS=""|ARGS="-m -u chrony"|' "${pkgdir}/etc/conf.d/chronyd"
fi
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"
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
}