[arch-commits] Commit in i8kmon/repos (5 files)

Eric Bélanger eric at archlinux.org
Sat Jun 16 06:26:44 UTC 2012


    Date: Saturday, June 16, 2012 @ 02:26:44
  Author: eric
Revision: 161897

archrelease: copy trunk to staging-any

Added:
  i8kmon/repos/staging-any/
  i8kmon/repos/staging-any/PKGBUILD
    (from rev 161896, i8kmon/trunk/PKGBUILD)
  i8kmon/repos/staging-any/i8kmon.conf.d
    (from rev 161896, i8kmon/trunk/i8kmon.conf.d)
  i8kmon/repos/staging-any/i8kmon.daemon
    (from rev 161896, i8kmon/trunk/i8kmon.daemon)
  i8kmon/repos/staging-any/i8kmon.service
    (from rev 161896, i8kmon/trunk/i8kmon.service)

----------------+
 PKGBUILD       |   42 ++++++++++++++++++++++++++++++++++++++++++
 i8kmon.conf.d  |    5 +++++
 i8kmon.daemon  |   39 +++++++++++++++++++++++++++++++++++++++
 i8kmon.service |    9 +++++++++
 4 files changed, 95 insertions(+)

Copied: i8kmon/repos/staging-any/PKGBUILD (from rev 161896, i8kmon/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2012-06-16 06:26:44 UTC (rev 161897)
@@ -0,0 +1,42 @@
+# $Id$
+# Contributor: Eric Johnson <eric at coding-zone.com>
+# Maintainer: Thayer Williams <thayer at archlinux.org>
+
+pkgname=i8kmon
+pkgver=1.33
+pkgrel=4
+pkgdesc="Tk-based daemon for i8kutils and Dell Inspiron/Latitude notebooks"
+arch=('any')
+url="http://people.debian.org/~dz/i8k/"
+license=('GPL2')
+depends=('i8kutils' 'tk')
+backup=('etc/i8kutils/i8kmon.conf' 'etc/conf.d/i8kmon')
+source=(ftp://ftp.archlinux.org/other/i8kutils/i8kutils_$pkgver.tar.gz \
+        i8kmon.daemon i8kmon.conf.d i8kmon.service)
+sha1sums=('2701697dfe9c0e351cb412badd14fbf8191838c3'
+          'a7ead36e31d27d85a257242847e316ea85a2426f'
+          'a3a38c19f1af4bfc59ac8c88cadfa2e6ee185a4c'
+          '9bac507e1ea80a240b01f07dded8a9a9fa406789')
+
+build() {
+  cd "$srcdir/i8kutils-$pkgver"
+
+  # conform to Arch Linux guidelines
+  sed -i 's|/etc/i8kmon|/etc/i8kutils/i8kmon.conf|g' i8kmon.1
+  sed -i 's|/etc/i8kmon.conf|/etc/i8kutils/i8kmon.conf|g' i8kmon
+}
+
+package() {
+  cd "$srcdir/i8kutils-$pkgver"
+
+  # no configure script, and Makefile has /usr hardcoded
+  install -D -m755 i8kmon "$pkgdir/usr/bin/i8kmon"
+  install -D -m644 i8kmon.conf "$pkgdir/etc/i8kutils/i8kmon.conf"
+  install -D -m644 i8kmon.1 "$pkgdir/usr/share/man/man1/i8kmon.1"
+
+  # install daemon script.
+  install -D -m755 ../i8kmon.daemon "$pkgdir/etc/rc.d/i8kmon"
+  install -D -m644 ../i8kmon.conf.d "$pkgdir/etc/conf.d/i8kmon"
+
+  install -D -m644 ../i8kmon.service "$pkgdir/usr/lib/systemd/system/i8kmon.service"
+}

Copied: i8kmon/repos/staging-any/i8kmon.conf.d (from rev 161896, i8kmon/trunk/i8kmon.conf.d)
===================================================================
--- staging-any/i8kmon.conf.d	                        (rev 0)
+++ staging-any/i8kmon.conf.d	2012-06-16 06:26:44 UTC (rev 161897)
@@ -0,0 +1,5 @@
+#
+# Arguments to be passed to the i8kmon daemon
+#
+
+I8KMON_ARGS=""

Copied: i8kmon/repos/staging-any/i8kmon.daemon (from rev 161896, i8kmon/trunk/i8kmon.daemon)
===================================================================
--- staging-any/i8kmon.daemon	                        (rev 0)
+++ staging-any/i8kmon.daemon	2012-06-16 06:26:44 UTC (rev 161897)
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+[ -f /etc/conf.d/i8kmon ] && . /etc/conf.d/i8kmon
+
+PID=$(fuser /proc/i8k 2>/dev/null)
+case "$1" in
+  start)
+    stat_busy "Starting i8kmon Daemon"
+    if [ -z "$PID" ]; then 
+      /usr/bin/i8kmon -d $I8KMON_ARGS &
+    fi
+    if [ ! -z "$PID" -o $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon i8kmon
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping i8kmon Daemon"
+    [ ! -z "$PID" ]  && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon i8kmon
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac

Copied: i8kmon/repos/staging-any/i8kmon.service (from rev 161896, i8kmon/trunk/i8kmon.service)
===================================================================
--- staging-any/i8kmon.service	                        (rev 0)
+++ staging-any/i8kmon.service	2012-06-16 06:26:44 UTC (rev 161897)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Dell laptop thermal monitoring
+ConditionPathExists=/proc/i8k
+
+[Service]
+ExecStart=/usr/bin/i8kmon -nd
+
+[Install]
+WantedBy=multi-user.target




More information about the arch-commits mailing list