summaryrefslogtreecommitdiff
path: root/community/mcelog
diff options
context:
space:
mode:
Diffstat (limited to 'community/mcelog')
-rw-r--r--community/mcelog/PKGBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/community/mcelog/PKGBUILD b/community/mcelog/PKGBUILD
index 036f48748..2acfd7516 100644
--- a/community/mcelog/PKGBUILD
+++ b/community/mcelog/PKGBUILD
@@ -1,16 +1,17 @@
-# $Id: PKGBUILD 54638 2011-08-22 09:43:49Z spupykin $
+# $Id: PKGBUILD 56264 2011-10-04 09:39:17Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Thomas Mudrunka <harvie@@email..cz>
# Maintainer: Thomas Mudrunka <harvie@@email..cz>
pkgname=mcelog
pkgver=1.0pre3
-pkgrel=2
+pkgrel=3
pkgdesc="Print machine check event log from x86-64 kernel"
url="http://freshmeat.net/projects/mcelog/"
license=("GPL")
arch=('i686' 'x86_64')
depends=()
+options=('docs')
source=("ftp://ftp.kernel.org/pub/linux/utils/cpu/mce/${pkgname}-${pkgver}.tar.gz"
"${pkgname}.rc")
md5sums=('b42f2214de6f4feb992556149edc67fa'
@@ -23,8 +24,10 @@ build() {
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
- install -Dm0755 mcelog "${pkgdir}/usr/sbin/mcelog"
+ mkdir -p $pkgdir/usr/share/doc/mcelog
+ make install prefix=$pkgdir/usr etcprefix=$pkgdir DOCDIR=$pkgdir/usr/share/doc/mcelog
install -Dm0755 mcelog.cron "${pkgdir}/usr/sbin/mcelog.cron"
- install -Dm0644 mcelog.8 "${pkgdir}/usr/share/man/man8/mcelog.8"
install -Dm0755 "${srcdir}/mcelog.rc" "${pkgdir}/etc/rc.d/mcelog"
+ install -Dm0644 mcelog.logrotate "${pkgdir}/etc/logrotate.d/mcelog.logrotate"
+ install -Dm0644 README "${pkgdir}/usr/share/doc/mcelog/README"
}