You are not logged in.

#1 2004-08-13 05:50:22

cmcginty
Member
From: Sacramento, CA, USA
Registered: 2004-08-07
Posts: 16

[new package] GKrellm Daemon

GKrellm Daemon (gkrellmd) lets you export all your normal GKrellm stats to a remote box. I run gkrellmd on my server box and conect to it from my desktop or other remote location. Just run 'gkrellm -s <server>' to connect to  the daemon.

Here is the PKGBUILD file:

# $Id: PKGBUILD,v 1.48 2004/07/18 23:46:15 judd Exp $
# Contributor: Matt Smith (Majik) <darkknight@helpdesk.zaz.net>
# Maintainer: dorphell <dorphell@archlinux.org>
pkgname=gkrellmd
pkgver=2.2.2
pkgrel=1
pkgdesc="System monitor package for GTK2"
depends=('openssl' 'glib2')
makedepends=('gettext' 'pkgconfig')
source=(http://web.wt.net/~billw/gkrellm/gkrellm-$pkgver.tar.bz2 
        gkrellmd)
url="http://web.wt.net/~billw/gkrellm/gkrellm.html"
md5sums=('a99b8d84036b199b5b318e26d97969f8' '8401411656e80d97afc077d0c39dd293')

build() {
  cd $startdir/src/gkrellm-$pkgver/server
  mkdir -p $startdir/pkg/usr/{bin,include}
  make LOCALEDIR=/usr/share/locale || return 1
  make install INSTALLROOT=$startdir/pkg/usr
  install -D -m755 ../../../gkrellmd $startdir/pkg/etc/rc.d/gkrellmd
}

Here is an init script 'gkrellmd' for the rc.d directory installed by the PKGBUILD file:

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

PID=`pidof -o %PPID /usr/bin/gkrellmd`
case "$1" in
  start)
    stat_busy "Starting Gkrellm Daemon"
    [ -z "$PID" ] && /usr/bin/gkrellmd -d &>/dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      echo $PID > /var/run/gkrellmd.pid
      add_daemon gkrellmd
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping Gkrellm Daemon"
    [ ! -z "$PID" ]  && kill $PID &>/dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon gkrellmd
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"  
esac
exit 0

Offline

#2 2004-08-13 06:24:18

mike182
Member
Registered: 2004-05-16
Posts: 15

Re: [new package] GKrellm Daemon

Gkrellmd is included in the gkrellm package...that is unless I am mistaken..but I don't think so.

mike182


[..save the penguins..]

Offline

#3 2004-08-14 07:19:46

cmcginty
Member
From: Sacramento, CA, USA
Registered: 2004-08-07
Posts: 16

Re: [new package] GKrellm Daemon

You are correct! Sorry I missed that ....  sad   Anyway, what about adding the rc.d script to the package, I guess I was expecting one if gkrellmd was include with the real package.

Offline

#4 2005-04-12 18:43:12

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: [new package] GKrellm Daemon

I am having trouble installing gkrellm without X. I ran pacman -S -d gkrellm but then I get this when I run gkrellmd:

[root@stilletto ~]# gkrellmd
gkrellmd: error while loading shared libraries: libgmodule-2.0.so.0: cannot open shared object file: No such file or directory

I don't know which package that file comes from...

Offline

#5 2005-04-12 22:50:17

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [new package] GKrellm Daemon

rmbalfa wrote:

I am having trouble installing gkrellm without X. I ran pacman -S -d gkrellm but then I get this when I run gkrellmd:

[root@stilletto ~]# gkrellmd
gkrellmd: error while loading shared libraries: libgmodule-2.0.so.0: cannot open shared object file: No such file or directory

I don't know which package that file comes from...

pacman -S glib2

I don't know if it will work without X.

Offline

#6 2005-04-13 02:56:09

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: [new package] GKrellm Daemon

Thanks. How would I find out that file comes from that package on my own? I tried pacman -Ql dep_package but I didn't have dep_package installed so I couldn't check which of the long list of deps it had contained the needed file.

Offline

#7 2005-04-13 06:34:33

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [new package] GKrellm Daemon

rmbalfa wrote:

Thanks. How would I find out that file comes from that package on my own? I tried pacman -Ql dep_package but I didn't have dep_package installed so I couldn't check which of the long list of deps it had contained the needed file.

On Arch home page, do a package search.  On that package specific  page, there a "View Files" button.

You can also google the filename. A lot of RPM sites list the contents of the RPM, so it's a good way to get the package name.

Offline

#8 2005-04-13 23:05:54

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: [new package] GKrellm Daemon

I thought there might have been a qiuck and easy way to do it with pacman.

Offline

Board footer

Powered by FluxBB