[arch-commits] Commit in mcelog/trunk (PKGBUILD mcelog.rc)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 10:27:57 EDT 2013


    Date: Monday, May 13, 2013 @ 16:27:56
  Author: spupykin
Revision: 90682

upgpkg: mcelog 20130411-2

upd

Modified:
  mcelog/trunk/PKGBUILD
Deleted:
  mcelog/trunk/mcelog.rc

-----------+
 PKGBUILD  |    5 +----
 mcelog.rc |   37 -------------------------------------
 2 files changed, 1 insertion(+), 41 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:27:53 UTC (rev 90681)
+++ PKGBUILD	2013-05-13 14:27:56 UTC (rev 90682)
@@ -5,7 +5,7 @@
 
 pkgname=mcelog
 pkgver=20130411
-pkgrel=1
+pkgrel=2
 pkgdesc="Print machine check event log from x86-64 kernel"
 url="http://freshmeat.net/projects/mcelog/"
 license=("GPL")
@@ -14,10 +14,8 @@
 options=('docs')
 backup=('etc/mcelog/mcelog.conf')
 source=("git://github.com/andikleen/mcelog.git"
-	"${pkgname}.rc"
 	"mcelog.service")
 md5sums=('SKIP'
-         'f039a77d7bde3518d3d695b144816e8a'
          'b71eb82e532aed3918ebf6b30e158e7f')
 
 build() {
@@ -30,7 +28,6 @@
   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 -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"
   install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service

Deleted: mcelog.rc
===================================================================
--- mcelog.rc	2013-05-13 14:27:53 UTC (rev 90681)
+++ mcelog.rc	2013-05-13 14:27:56 UTC (rev 90682)
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=`pidof -o %PPID /usr/sbin/mcelog`
-case "$1" in
-  start)
-    stat_busy "Starting mcelog"
-    if [ -z "$PID" ]; then
-       /usr/sbin/mcelog --daemon --pidfile /var/run/mcelog.pid
-    fi
-    if [ ! -z "$PID" -o $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon mcelog
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping mcelog"
-    [ ! -z "$PID" ] && kill $PID &>/dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon mcelog
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 1
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"
-esac



More information about the arch-commits mailing list