Commit a3041b9c authored by Natanael Copa's avatar Natanael Copa

main/logrotate: include the /etc/logrotate.d dir

fixes #315
parent 8fc1f8d8
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=logrotate pkgname=logrotate
pkgver=3.7.8 pkgver=3.7.8
pkgrel=1 pkgrel=2
pkgdesc="Tool to rotate logfiles" pkgdesc="Tool to rotate logfiles"
url="https://fedorahosted.org/logrotate/" url="https://fedorahosted.org/logrotate/"
license="GPL" license="GPL"
...@@ -14,8 +14,12 @@ source="https://fedorahosted.org/releases/l/o/logrotate/logrotate-3.7.8.tar.gz ...@@ -14,8 +14,12 @@ source="https://fedorahosted.org/releases/l/o/logrotate/logrotate-3.7.8.tar.gz
build() { build() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
make || return 1 make || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -d "$pkgdir"/etc/logrotate.d
install -Dm755 logrotate "$pkgdir"/usr/sbin/logrotate install -Dm755 logrotate "$pkgdir"/usr/sbin/logrotate
install -Dm644 logrotate.8 "$pkgdir"/usr/share/man/man8/logrotate.8 install -Dm644 logrotate.8 "$pkgdir"/usr/share/man/man8/logrotate.8
install -Dm644 ../logrotate.conf "$pkgdir"/etc/logrotate.conf install -Dm644 ../logrotate.conf "$pkgdir"/etc/logrotate.conf
......
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