Commit 12aec35d authored by Leo's avatar Leo
Browse files

main/chrony: modernize

parent 9d06fc81
...@@ -12,11 +12,10 @@ pkggroups="$pkgname" ...@@ -12,11 +12,10 @@ pkggroups="$pkgname"
arch="all" arch="all"
license="GPL-2.0-only" license="GPL-2.0-only"
install="$pkgname.pre-install $pkgname.pre-upgrade" install="$pkgname.pre-install $pkgname.pre-upgrade"
depends=""
makedepends="asciidoctor libcap-dev texinfo" makedepends="asciidoctor libcap-dev texinfo"
checkdepends="bash" checkdepends="bash"
subpackages="$pkgname-doc $pkgname-openrc" subpackages="$pkgname-doc $pkgname-openrc"
source="https://download.tuxfamily.org/$pkgname/$pkgname-$_ver.tar.gz source="https://download.tuxfamily.org/chrony/chrony-$_ver.tar.gz
fix-tests.patch fix-tests.patch
max_resolve_interval.patch max_resolve_interval.patch
...@@ -25,7 +24,6 @@ source="https://download.tuxfamily.org/$pkgname/$pkgname-$_ver.tar.gz ...@@ -25,7 +24,6 @@ source="https://download.tuxfamily.org/$pkgname/$pkgname-$_ver.tar.gz
chrony.conf chrony.conf
timepps.h timepps.h
" "
builddir="$srcdir/$pkgname-$_ver"
prepare() { prepare() {
default_prepare default_prepare
...@@ -37,7 +35,6 @@ prepare() { ...@@ -37,7 +35,6 @@ prepare() {
} }
build() { build() {
cd "$builddir"
CPPFLAGS="$CPPFLAGS -I./pps-tools/" ./configure \ CPPFLAGS="$CPPFLAGS -I./pps-tools/" ./configure \
--prefix=/usr \ --prefix=/usr \
--infodir=/usr/share/info \ --infodir=/usr/share/info \
...@@ -51,12 +48,10 @@ build() { ...@@ -51,12 +48,10 @@ build() {
} }
check() { check() {
cd "$builddir"
make check make check
} }
package() { package() {
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/etc/logrotate.d mkdir -p "$pkgdir"/etc/logrotate.d
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment