1
0
forked from ports/contrib

logrotate: New port

This commit is contained in:
Predrag Ivanović 2018-02-25 16:31:55 +01:00
parent a026774071
commit 58c3d556be
5 changed files with 79 additions and 0 deletions

15
logrotate/.footprint Normal file
View File

@ -0,0 +1,15 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/cron/
drwxr-xr-x root/root etc/cron/hourly/
-rwxr-x--- root/root etc/cron/hourly/logrotate
-rw-r----- root/root etc/logrotate.conf
drwxr-xr-x root/root etc/logrotate.d/
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/logrotate
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man5/
-rw-r--r-- root/root usr/share/man/man5/logrotate.conf.5.gz
drwxr-xr-x root/root usr/share/man/man8/
-rw-r--r-- root/root usr/share/man/man8/logrotate.8.gz

2
logrotate/.md5sum Normal file
View File

@ -0,0 +1,2 @@
78ef24d6fddcc4df8e412dd75c551b4c logrotate-3.13.0.tar.xz
453190f4497a810fd48c90b0ce148788 logrotate.conf

6
logrotate/.signature Normal file
View File

@ -0,0 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF35huajXDeCTazEFmC8lcdNLpgeu0kMmPTciWBSsZZES/7PXoDZw069glWHxJVy1shsG8fboft/AufiCD0oR/dQg=
SHA256 (Pkgfile) = de1cdf0d5fc6bddd124770ed2919a3d60199a79968e28681b9256daaba054577
SHA256 (.footprint) = c2ca81186d9535653c7d6756a28578618b9b7aae35388e02d77e1bce4d694422
SHA256 (logrotate-3.13.0.tar.xz) = 3222ca032f99be8d7a4a8c6ad69f3dcc49b9511bfe384bd5a271ebcd9bd3e52c
SHA256 (logrotate.conf) = 24ccc3e5b7641b9692ded6aa91287a1f02695f7c8b7257d8f48573b9a6ef707e

25
logrotate/Pkgfile Normal file
View File

@ -0,0 +1,25 @@
# 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
}

31
logrotate/logrotate.conf Normal file
View File

@ -0,0 +1,31 @@
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# some packages can drop log rotation information into
# this directory
include /etc/logrotate.d
# few generic files to rotate
/var/log/wtmp {
monthly
create 0644 root root
rotate 1
}
/var/log/btmp {
monthly
create 0600 root root
rotate 1
}
# system-specific logs may be also be configured here.