OpenRC: add logrotate script. Bump revision.
--HG-- extra : convert_revision : e1f45f1ad2a21795e4f53a34b122cf7821a9cead
This commit is contained in:
parent
c10199a227
commit
32556af2c6
5
templates/OpenRC/files/OpenRC.logrotate
Normal file
5
templates/OpenRC/files/OpenRC.logrotate
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
/var/log/rc.log {
|
||||||
|
sharedscripts
|
||||||
|
copytruncate
|
||||||
|
missingok
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'OpenRC'
|
# Template file for 'OpenRC'
|
||||||
pkgname=OpenRC
|
pkgname=OpenRC
|
||||||
version=0.5.0
|
version=0.5.0
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc=openrc-${version}
|
wrksrc=openrc-${version}
|
||||||
patch_files="xbps-locale-service.diff"
|
patch_files="xbps-locale-service.diff"
|
||||||
distfiles="http://roy.marples.name/downloads/openrc/openrc-$version.tar.bz2"
|
distfiles="http://roy.marples.name/downloads/openrc/openrc-$version.tar.bz2"
|
||||||
|
@ -34,8 +34,7 @@ pre_configure()
|
||||||
|
|
||||||
# Fix path for kbd stuff.
|
# Fix path for kbd stuff.
|
||||||
for f in init.d/consolefont.in conf.d/consolefont; do
|
for f in init.d/consolefont.in conf.d/consolefont; do
|
||||||
sed -i -e "s|/usr/share/consolefonts|/lib/kbd/consolefonts|g" \
|
sed -i -e "s|/usr/share|/lib/kbd|g" ${wrksrc}/${f}
|
||||||
${wrksrc}/${f}
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,4 +42,6 @@ post_install()
|
||||||
{
|
{
|
||||||
install -D -m755 ${wrksrc}/support/sysvinit/inittab \
|
install -D -m755 ${wrksrc}/support/sysvinit/inittab \
|
||||||
${DESTDIR}/etc/inittab
|
${DESTDIR}/etc/inittab
|
||||||
|
install -D -m644 ${FILESDIR}/$pkgname.logrotate \
|
||||||
|
${DESTDIR}/etc/logrotate.d/OpenRC
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user