1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: Peter Avramucz <muczy@freestart.hu>
7 pkgdesc="RamLog copies files from /var/log into a ramdisk and mounts the ramdisk as /var/log"
9 url="http://www.tremende.com/ramlog/"
11 depends=('lsof' 'rsync')
13 install=$pkgname.install
14 source=(http://www.tremende.com/ramlog/download/$pkgname-$pkgver.tar.gz \
15 $pkgname-paths.patch \
17 md5sums=('063c10d9cbe93f22631d37fee62e5c64'
18 'de51d430c15bec122913a38e54fc3f9b'
19 '7c8069997fa6a6483420a5552a009919')
22 cd ${srcdir}/$pkgname-$pkgver
25 sed -r 's/\/usr\/bin\/du/\/bin\/du/g' -i $pkgname || return 1
27 patch -Np1 -i ${srcdir}/$pkgname-paths.patch || return 1
29 install -D -m755 ${srcdir}/$pkgname.rc ${pkgdir}/etc/rc.d/$pkgname || return 1
30 install -D -m755 $pkgname ${pkgdir}/etc/$pkgname/$pkgname || return 1
31 install -D -m644 $pkgname.8.gz ${pkgdir}/usr/share/man/man8/$pkgname.8.gz || return 1
32 install -D -m755 $pkgname.cron ${pkgdir}/etc/cron.daily/$pkgname || return 1
33 install -D -m644 $pkgname.logrotate ${pkgdir}/etc/logrotate.d/$pkgname || return 1