From 32556af2c60f12458d699f62d20de2ac7d7e2314 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 5 Oct 2009 18:20:40 +0200 Subject: [PATCH] OpenRC: add logrotate script. Bump revision. --HG-- extra : convert_revision : e1f45f1ad2a21795e4f53a34b122cf7821a9cead --- templates/OpenRC/files/OpenRC.logrotate | 5 +++++ templates/OpenRC/template | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 templates/OpenRC/files/OpenRC.logrotate diff --git a/templates/OpenRC/files/OpenRC.logrotate b/templates/OpenRC/files/OpenRC.logrotate new file mode 100644 index 00000000000..d4bb76dec9b --- /dev/null +++ b/templates/OpenRC/files/OpenRC.logrotate @@ -0,0 +1,5 @@ +/var/log/rc.log { + sharedscripts + copytruncate + missingok +} diff --git a/templates/OpenRC/template b/templates/OpenRC/template index 08bbbdd02d0..c75204da3ae 100644 --- a/templates/OpenRC/template +++ b/templates/OpenRC/template @@ -1,7 +1,7 @@ # Template file for 'OpenRC' pkgname=OpenRC version=0.5.0 -revision=2 +revision=3 wrksrc=openrc-${version} patch_files="xbps-locale-service.diff" distfiles="http://roy.marples.name/downloads/openrc/openrc-$version.tar.bz2" @@ -34,8 +34,7 @@ pre_configure() # Fix path for kbd stuff. for f in init.d/consolefont.in conf.d/consolefont; do - sed -i -e "s|/usr/share/consolefonts|/lib/kbd/consolefonts|g" \ - ${wrksrc}/${f} + sed -i -e "s|/usr/share|/lib/kbd|g" ${wrksrc}/${f} done } @@ -43,4 +42,6 @@ post_install() { install -D -m755 ${wrksrc}/support/sysvinit/inittab \ ${DESTDIR}/etc/inittab + install -D -m644 ${FILESDIR}/$pkgname.logrotate \ + ${DESTDIR}/etc/logrotate.d/OpenRC }