forked from ports/contrib
26 lines
742 B
Plaintext
26 lines
742 B
Plaintext
|
# Description: Rotates, compresses, removes and mails system log files
|
||
|
# URL: https://github.com/logrotate/logrotate
|
||
|
# Maintainer: Pedja, predivan at mts dot rs
|
||
|
# Depends on: acl attr popt
|
||
|
# Optional: mailx
|
||
|
|
||
|
name=logrotate
|
||
|
version=3.13.0
|
||
|
release=1
|
||
|
source=(https://github.com/logrotate/logrotate/releases/download/$version/$name-$version.tar.xz
|
||
|
$name.conf)
|
||
|
build() {
|
||
|
cd $name-$version
|
||
|
./configure \
|
||
|
--prefix=/usr \
|
||
|
--mandir=/usr/share/man \
|
||
|
--with-acl \
|
||
|
--with-default-mail-command=/usr/bin/mail
|
||
|
make
|
||
|
make DESTDIR=$PKG install
|
||
|
|
||
|
mkdir -p $PKG/etc/$name.d
|
||
|
install -D -m 750 examples/$name.cron $PKG/etc/cron/hourly/$name
|
||
|
install -D -m 640 $SRC/$name.conf $PKG/etc/$name.conf
|
||
|
}
|