mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 16:21:38 +01:00
main/chrony: install existing logrotate file
The chrony package already has a custom logrotate file, but it isn't installed to /etc/logrotate.d furthermore there is no need to explicitly depend on logrotate.
This commit is contained in:
parent
3f4a8ae586
commit
c3aa1460db
@ -1,13 +1,13 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=chrony
|
||||
pkgver=2.1.1
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
_ver=${pkgver/_/-}
|
||||
pkgdesc="NTP client and server programs"
|
||||
url="http://chrony.tuxfamily.org/"
|
||||
arch="all"
|
||||
license="GPL2"
|
||||
depends="logrotate"
|
||||
depends=""
|
||||
makedepends="texinfo"
|
||||
subpackages="$pkgname-doc"
|
||||
source="http://download.tuxfamily.org/chrony/$pkgname-$_ver.tar.gz
|
||||
@ -58,14 +58,18 @@ package() {
|
||||
cd "$_builddir"
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -D -m644 examples/*.example "$pkgdir"/usr/share/doc/chrony/
|
||||
mkdir -p "$pkgdir"/etc/logrotate.d
|
||||
install -Dm644 "$srcdir"/chrony.logrotate "$pkgdir"/etc/logrotate.d/chrony || return 1
|
||||
|
||||
install -Dm644 examples/*.example "$pkgdir"/usr/share/doc/chrony/
|
||||
install -Dm755 "$srcdir"/chronyd.initd "$pkgdir"/etc/init.d/chronyd
|
||||
install -Dm644 "$srcdir"/chronyd.confd "$pkgdir"/etc/conf.d/chronyd
|
||||
|
||||
install -m755 -D "$srcdir"/chronyd.initd "$pkgdir"/etc/init.d/chronyd
|
||||
install -m644 -D "$srcdir"/chronyd.confd "$pkgdir"/etc/conf.d/chronyd
|
||||
mkdir -p "$pkgdir"/var/lib/chrony \
|
||||
"$pkgdir"/var/log/chrony \
|
||||
"$pkgdir"/etc/chrony
|
||||
touch "$pkgdir"/etc/chrony/chrony.drift
|
||||
|
||||
install -m644 "$srcdir"/chrony.conf "$pkgdir"/etc/chrony/chrony.conf
|
||||
}
|
||||
md5sums="15e470a51ab6e09e65bc0a2fbc5299af chrony-2.1.1.tar.gz
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user