[arch-commits] Commit in mcelog/trunk (PKGBUILD mcelog.service)
Sergej Pupykin
spupykin at archlinux.org
Tue Feb 9 10:41:08 UTC 2016
Date: Tuesday, February 9, 2016 @ 11:41:08
Author: spupykin
Revision: 160990
upgpkg: mcelog 1:129-1
upd
Modified:
mcelog/trunk/PKGBUILD
Deleted:
mcelog/trunk/mcelog.service
----------------+
PKGBUILD | 19 +++++++++----------
mcelog.service | 11 -----------
2 files changed, 9 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-02-09 10:00:25 UTC (rev 160989)
+++ PKGBUILD 2016-02-09 10:41:08 UTC (rev 160990)
@@ -4,23 +4,22 @@
# Maintainer: Thomas Mudrunka <harvie@@email..cz>
pkgname=mcelog
-pkgver=20150511
+epoch=1
+pkgver=129
pkgrel=1
pkgdesc="Print machine check event log from x86-64 kernel"
-url="http://freshmeat.net/projects/mcelog/"
+url="https://git.kernel.org/cgit/utils/cpu/mce/mcelog.git"
license=("GPL")
arch=('i686' 'x86_64')
makedepends=('git')
options=('docs')
backup=('etc/mcelog/mcelog.conf')
-source=("git://github.com/andikleen/mcelog.git"
- "mcelog.service")
-md5sums=('SKIP'
- 'afd7fc2b7a2f92a75e040b23d6b15958')
+source=("git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git#tag=v$pkgver")
+md5sums=('SKIP')
prepare() {
cd "${srcdir}/mcelog"
- sed -i 's|sbin|bin|g' Makefile mcelog.cron
+ sed -i 's|sbin|bin|g' Makefile mcelog.cron mcelog.service
}
build() {
@@ -31,9 +30,9 @@
package() {
cd "${srcdir}/mcelog"
mkdir -p $pkgdir/usr/share/doc/mcelog
- make install prefix=$pkgdir/usr etcprefix=$pkgdir DOCDIR=$pkgdir/usr/share/doc/mcelog
+ make install DESTDIR=$pkgdir
install -Dm0755 mcelog.cron "${pkgdir}/usr/bin/mcelog.cron"
install -Dm0644 mcelog.logrotate "${pkgdir}/etc/logrotate.d/mcelog.logrotate"
- install -Dm0644 README "${pkgdir}/usr/share/doc/mcelog/README"
- install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+ install -Dm0644 README *.pdf "${pkgdir}/usr/share/doc/mcelog/"
+ install -Dm0644 mcelog.service $pkgdir/usr/lib/systemd/system/$pkgname.service
}
Deleted: mcelog.service
===================================================================
--- mcelog.service 2016-02-09 10:00:25 UTC (rev 160989)
+++ mcelog.service 2016-02-09 10:41:08 UTC (rev 160990)
@@ -1,11 +0,0 @@
-[Unit]
-Description=Machine Check Exception Logging Daemon
-After=syslog.target
-
-[Service]
-PIDFile=/run/mcelog.pid
-ExecStart=/usr/bin/mcelog --ignorenodev --daemon --foreground --pidfile /run/mcelog.pid
-StandardOutput=syslog
-
-[Install]
-WantedBy=multi-user.target
More information about the arch-commits
mailing list