Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
aports
Commits
689d64cd
Commit
689d64cd
authored
Jul 24, 2009
by
Natanael Copa
Browse files
main/logrotate: install cron script in /etc/periodic/daily
fixes #83 also create a working default config
parent
1b9e680c
Changes
2
Hide whitespace changes
Inline
Side-by-side
main/logrotate/APKBUILD
View file @
689d64cd
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
logrotate
pkgver
=
3.7.8
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"Tool to rotate logfiles"
url
=
"https://fedorahosted.org/logrotate/"
license
=
"GPL"
depends
=
"uclibc popt"
depends
=
makedepends
=
"popt-dev wget"
subpackages
=
"
$pkgname
-doc"
source
=
"https://fedorahosted.org/releases/l/o/logrotate/logrotate-3.7.8.tar.gz"
source
=
"https://fedorahosted.org/releases/l/o/logrotate/logrotate-3.7.8.tar.gz
logrotate.conf"
build
()
{
cd
"
$srcdir
/
$pkgname
-
$pkgver
"
...
...
@@ -16,8 +18,9 @@ build() {
make
||
return
1
install
-Dm755
logrotate
"
$pkgdir
"
/usr/sbin/logrotate
install
-Dm644
logrotate.8
"
$pkgdir
"
/usr/share/man/man8/logrotate.8
install
-Dm644
examples
/logrotate
-default
"
$pkgdir
"
/etc/logrotate.conf
install
-Dm
644
examples/logrotate.cron
"
$pkgdir
"
/etc/logrotate
.cron
install
-Dm644
..
/logrotate
.conf
"
$pkgdir
"
/etc/logrotate.conf
install
-Dm
755
examples/logrotate.cron
"
$pkgdir
"
/etc/
periodic/daily/
logrotate
}
md5sums
=
"b3589bea6d8d5afc8a84134fddaae973 logrotate-3.7.8.tar.gz"
md5sums
=
"b3589bea6d8d5afc8a84134fddaae973 logrotate-3.7.8.tar.gz
fef6415a79a6fede8cf9b9b6b8410090 logrotate.conf"
main/logrotate/logrotate.conf
0 → 100644
View file @
689d64cd
# 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
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# apk packages drop log rotation information into this directory
include
/
etc
/
logrotate
.
d
# system-specific logs may be also be configured here.
Christoffer Leitet
@cleitet
mentioned in issue
#83 (closed)
·
Jul 12, 2019
mentioned in issue
#83 (closed)
mentioned in issue #83
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment