diff --git a/hardware/info/gkrellm/actions.py b/hardware/info/gkrellm/actions.py new file mode 100644 index 0000000000..36ecac8a26 --- /dev/null +++ b/hardware/info/gkrellm/actions.py @@ -0,0 +1,39 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + + +def build(): + shelltools.export("LDFLAGS", "%s -lgmodule-2.0" % get.LDFLAGS()) + autotools.make('CC=%s \ + INSTALLROOT=/usr \ + INCLUDEDIR=/usr/include/gkrellm2 \ + LOCALEDIR=/usr/share/locale \ + STRIP="" \ + LINK_FLAGS="%s -Wl,-E" \ + enable_nls=1 \ + without-ssl=yes \ + without-sensors=no \ + without-libsensors=yes' % (get.CC(), get.LDFLAGS())) + # without ssl option enables gnutls + +def install(): + autotools.rawInstall("DESTDIR=%s \ + PREFIX=/usr" % get.installDIR()) + + pisitools.insinto("/etc", "server/gkrellmd.conf") + + pisitools.doman("gkrellm.1") + pisitools.doman("gkrellmd.1") + + pisitools.dodoc("CREDITS", "README", "Changelog", "COPYRIGHT") + pisitools.dohtml("*") + + diff --git a/hardware/info/gkrellm/comar/service.py b/hardware/info/gkrellm/comar/service.py new file mode 100644 index 0000000000..f2a90d06db --- /dev/null +++ b/hardware/info/gkrellm/comar/service.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +from comar.service import * +import os + +serviceType = "server" +serviceDesc = _({"en": "GNU Krell Monitor Daemon", + "tr": "GNU Krell Sistem Takip Servisi"}) + +PIDFILE = "/run/gkrellmd.pid" + +@synchronized +def start(): + startService(command="/usr/bin/gkrellmd", + pidfile=PIDFILE, + makepid=True, + donotify=True) + +@synchronized +def stop(): + stopService(pidfile=PIDFILE, + donotify=True) + + if os.path.exists(PIDFILE): + os.unlink(PIDFILE) + +def status(): + return isServiceRunning(PIDFILE) diff --git a/hardware/info/gkrellm/files/drop_privileges.patch b/hardware/info/gkrellm/files/drop_privileges.patch new file mode 100644 index 0000000000..7f8823669b --- /dev/null +++ b/hardware/info/gkrellm/files/drop_privileges.patch @@ -0,0 +1,12 @@ +diff -Nur gkrellm-2.2.10-old/server/gkrellmd.conf gkrellm-2.2.10/server/gkrellmd.conf +--- gkrellm-2.2.10-old/server/gkrellmd.conf 2007-05-08 00:27:05.073863232 +0300 ++++ gkrellm-2.2.10/server/gkrellmd.conf 2007-05-08 00:27:35.880179960 +0300 +@@ -26,6 +26,8 @@ + # + #user nobody + #group proc ++user nobody ++group nogroup + + # Run in background and detach from the controlling terminal + #detach diff --git a/hardware/info/gkrellm/files/gkrellm.desktop b/hardware/info/gkrellm/files/gkrellm.desktop new file mode 100644 index 0000000000..849fbda851 --- /dev/null +++ b/hardware/info/gkrellm/files/gkrellm.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Encoding=UTF-8 +Name=GKrellM +Name[tr]=GKrellM +GenericName=Krell Monitor +GenericName[tr]=Sistem Krell İzleyicisi +Icon=gkrellm +Exec=gkrellm +Terminal=false +StartupNotify=false +Categories=Application;System; diff --git a/hardware/info/gkrellm/files/gkrellm.png b/hardware/info/gkrellm/files/gkrellm.png new file mode 100644 index 0000000000..3201ad815e Binary files /dev/null and b/hardware/info/gkrellm/files/gkrellm.png differ diff --git a/hardware/info/gkrellm/files/gkrellmd-conf.patch b/hardware/info/gkrellm/files/gkrellmd-conf.patch new file mode 100644 index 0000000000..e3e80618f4 --- /dev/null +++ b/hardware/info/gkrellm/files/gkrellmd-conf.patch @@ -0,0 +1,43 @@ +Index: gkrellm-2.3.5/server/gkrellmd.conf +=================================================================== +--- gkrellm-2.3.5.orig/server/gkrellmd.conf ++++ gkrellm-2.3.5/server/gkrellmd.conf +@@ -4,7 +4,7 @@ + # the client update frequency. Values may be from 1 to 10 and should be + # smaller values to reduce network traffic. + # +-#update-hz 3 ++update-hz 3 + + # Limit number of simultaneous clients allowed to connect. + # +@@ -17,7 +17,7 @@ + + # Specify the port to listen on for connections. + # +-#port 19150 ++port 19150 + + # List of hosts allowed to connect. If no hosts are specified in a + # gkrellmd.conf file or on the command line, all hosts will be allowed. +@@ -38,17 +38,17 @@ group nogroup + # Create a PID file for the running gkrellmd. Default is no PID file. + # NOTE: Option ignored on Windows + # +-#pidfile /var/run/gkrellmd.pid ++pidfile /run/gkrellmd.pid + + # Run in background and detach from the controlling terminal + # NOTE: Option ignored on Windows + # +-#detach ++detach + + # Enable writing logging message to the system syslog file + # NOTE: On windows this enables logging to the windows event log + # +-#syslog ++syslog + + # Time interval between checks for various monitors. If nfs-interval + # is <= 0 then gkrellmd will not read data for nfs file system types. diff --git a/hardware/info/gkrellm/files/gkrellmd.service b/hardware/info/gkrellm/files/gkrellmd.service new file mode 100644 index 0000000000..d621875882 --- /dev/null +++ b/hardware/info/gkrellm/files/gkrellmd.service @@ -0,0 +1,9 @@ +[Unit] +Description=GNU Krell Monitors server +After=network.target syslog.target hddtemp.service + +[Service] +ExecStart=/usr/bin/gkrellmd + +[Install] +WantedBy=multi-user.target diff --git a/hardware/info/gkrellm/pspec.xml b/hardware/info/gkrellm/pspec.xml new file mode 100644 index 0000000000..6b3e749a27 --- /dev/null +++ b/hardware/info/gkrellm/pspec.xml @@ -0,0 +1,121 @@ + + + + + gkrellm + http://www.gkrellm.net/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + gkrellm + app:gui + service + A compact and clean system monitoring tool + A program to monitor system status, and to collect system information such as memory usage, cpu temperature etc. + http://members.dslextreme.com/users/billw/gkrellm/gkrellm-2.3.5.tar.gz + + gnutls-devel + gtk2-devel + pango-devel + libX11-devel + glib2-devel + libgcrypt-devel + libICE-devel + libSM-devel + + + drop_privileges.patch + gkrellmd-conf.patch + + + + + gkrellm + + gnutls + gtk2 + pango + glib2 + libX11 + libgcrypt + libICE + gdk-pixbuf + libSM + + + /etc + /usr/bin + /usr/lib + /usr/share/doc + /usr/share + /usr/share/man + + + gkrellm.desktop + gkrellm.png + + + System.Service + + + + + gkrellm-devel + Development files for gkrellm + + gkrellm + gtk2-devel + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2014-05-17 + 2.3.5 + Rebuild + Aydın Demirel + aydin.demirel@pisilinux.org + + + 2014-04-07 + 2.3.5 + Rebuild + Alihan Öztürk + alihan@pisilinux.org + + + 2014-02-23 + 2.3.5 + Rebuild + Osman Erkan + osman.erkan@pisilinux.org + + + 2013-07-28 + 2.3.5 + Dep Fixed + Osman Erkan + osman.erkan@pisilinux.org + + + 2013-05-06 + 2.3.5 + Fixed. + Osman Erkan + osman.erkan@pisilinux.org + + + 2012-11-15 + 2.3.5 + First release + Osman Erkan + osman.erkan@pisilinux.org + + + diff --git a/hardware/info/gkrellm/translations.xml b/hardware/info/gkrellm/translations.xml new file mode 100644 index 0000000000..7a7e47f6f7 --- /dev/null +++ b/hardware/info/gkrellm/translations.xml @@ -0,0 +1,13 @@ + + + + gkrellm + Sade görünümlü sistem durumu izleyicisi + Bilgisayarınızın bileşenlerinin durumunu takip edebileceğiniz, hafıza kullanımı, işlemci sıcaklığı gibi bilgiler veren bir araç. + + + + gkrellm-devel + gkrellm için geliştirme dosyaları + +