ports/contrib (3.4): logrotate: New port
commit 58c3d556bee87efc9e2aad419f93460e14e2a13b Author: Predrag Ivanović <predivan@mts.rs> Date: Sun Feb 25 16:31:55 2018 +0100 logrotate: New port diff --git a/logrotate/.footprint b/logrotate/.footprint new file mode 100644 index 00000000..a7c7d05b --- /dev/null +++ b/logrotate/.footprint @@ -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 diff --git a/logrotate/.md5sum b/logrotate/.md5sum new file mode 100644 index 00000000..28a6c325 --- /dev/null +++ b/logrotate/.md5sum @@ -0,0 +1,2 @@ +78ef24d6fddcc4df8e412dd75c551b4c logrotate-3.13.0.tar.xz +453190f4497a810fd48c90b0ce148788 logrotate.conf diff --git a/logrotate/.signature b/logrotate/.signature new file mode 100644 index 00000000..152219a6 --- /dev/null +++ b/logrotate/.signature @@ -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 diff --git a/logrotate/Pkgfile b/logrotate/Pkgfile new file mode 100644 index 00000000..e839e1ee --- /dev/null +++ b/logrotate/Pkgfile @@ -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-$ver... + $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 +} diff --git a/logrotate/logrotate.conf b/logrotate/logrotate.conf new file mode 100644 index 00000000..6a257693 --- /dev/null +++ b/logrotate/logrotate.conf @@ -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.
participants (1)
-
crux@crux.nu