gkrellm build and check ported from pisi 1.2
This commit is contained in:
@@ -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("*")
|
||||||
|
|
||||||
|
|
||||||
@@ -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)
|
||||||
@@ -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
|
||||||
@@ -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;
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
@@ -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.
|
||||||
@@ -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
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>gkrellm</Name>
|
||||||
|
<Homepage>http://www.gkrellm.net/</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>PisiLinux Community</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>GPLv2</License>
|
||||||
|
<Icon>gkrellm</Icon>
|
||||||
|
<IsA>app:gui</IsA>
|
||||||
|
<IsA>service</IsA>
|
||||||
|
<Summary>A compact and clean system monitoring tool</Summary>
|
||||||
|
<Description>A program to monitor system status, and to collect system information such as memory usage, cpu temperature etc.</Description>
|
||||||
|
<Archive sha1sum="2356882c66f9e13151b21c5bb5e92d41f085dca1" type="targz">http://members.dslextreme.com/users/billw/gkrellm/gkrellm-2.3.5.tar.gz</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>gnutls-devel</Dependency>
|
||||||
|
<Dependency>gtk2-devel</Dependency>
|
||||||
|
<Dependency>pango-devel</Dependency>
|
||||||
|
<Dependency>libX11-devel</Dependency>
|
||||||
|
<Dependency>glib2-devel</Dependency>
|
||||||
|
<Dependency>libgcrypt-devel</Dependency>
|
||||||
|
<Dependency>libICE-devel</Dependency>
|
||||||
|
<Dependency>libSM-devel</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<Patch level="1">drop_privileges.patch</Patch>
|
||||||
|
<Patch level="1">gkrellmd-conf.patch</Patch>
|
||||||
|
</Patches>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>gkrellm</Name>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>gnutls</Dependency>
|
||||||
|
<Dependency>gtk2</Dependency>
|
||||||
|
<Dependency>pango</Dependency>
|
||||||
|
<Dependency>glib2</Dependency>
|
||||||
|
<Dependency>libX11</Dependency>
|
||||||
|
<Dependency>libgcrypt</Dependency>
|
||||||
|
<Dependency>libICE</Dependency>
|
||||||
|
<Dependency>gdk-pixbuf</Dependency>
|
||||||
|
<Dependency>libSM</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="config">/etc</Path>
|
||||||
|
<Path fileType="executable">/usr/bin</Path>
|
||||||
|
<Path fileType="library">/usr/lib</Path>
|
||||||
|
<Path fileType="doc">/usr/share/doc</Path>
|
||||||
|
<Path fileType="data">/usr/share</Path>
|
||||||
|
<Path fileType="man">/usr/share/man</Path>
|
||||||
|
</Files>
|
||||||
|
<AdditionalFiles>
|
||||||
|
<AdditionalFile owner="root" permission="0644" target="/usr/share/applications/gkrellm.desktop">gkrellm.desktop</AdditionalFile>
|
||||||
|
<AdditionalFile owner="root" permission="0644" target="/usr/share/pixmaps/gkrellm.png">gkrellm.png</AdditionalFile>
|
||||||
|
</AdditionalFiles>
|
||||||
|
<Provides>
|
||||||
|
<COMAR script="service.py">System.Service</COMAR>
|
||||||
|
</Provides>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>gkrellm-devel</Name>
|
||||||
|
<Summary>Development files for gkrellm</Summary>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency release="current">gkrellm</Dependency>
|
||||||
|
<Dependency>gtk2-devel</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="header">/usr/include</Path>
|
||||||
|
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="6">
|
||||||
|
<Date>2014-05-17</Date>
|
||||||
|
<Version>2.3.5</Version>
|
||||||
|
<Comment>Rebuild</Comment>
|
||||||
|
<Name>Aydın Demirel</Name>
|
||||||
|
<Email>aydin.demirel@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="5">
|
||||||
|
<Date>2014-04-07</Date>
|
||||||
|
<Version>2.3.5</Version>
|
||||||
|
<Comment>Rebuild</Comment>
|
||||||
|
<Name>Alihan Öztürk</Name>
|
||||||
|
<Email>alihan@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="4">
|
||||||
|
<Date>2014-02-23</Date>
|
||||||
|
<Version>2.3.5</Version>
|
||||||
|
<Comment>Rebuild</Comment>
|
||||||
|
<Name>Osman Erkan</Name>
|
||||||
|
<Email>osman.erkan@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="3">
|
||||||
|
<Date>2013-07-28</Date>
|
||||||
|
<Version>2.3.5</Version>
|
||||||
|
<Comment>Dep Fixed</Comment>
|
||||||
|
<Name>Osman Erkan</Name>
|
||||||
|
<Email>osman.erkan@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="2">
|
||||||
|
<Date>2013-05-06</Date>
|
||||||
|
<Version>2.3.5</Version>
|
||||||
|
<Comment>Fixed.</Comment>
|
||||||
|
<Name>Osman Erkan</Name>
|
||||||
|
<Email>osman.erkan@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2012-11-15</Date>
|
||||||
|
<Version>2.3.5</Version>
|
||||||
|
<Comment>First release</Comment>
|
||||||
|
<Name>Osman Erkan</Name>
|
||||||
|
<Email>osman.erkan@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>gkrellm</Name>
|
||||||
|
<Summary xml:lang="tr">Sade görünümlü sistem durumu izleyicisi</Summary>
|
||||||
|
<Description xml:lang="tr">Bilgisayarınızın bileşenlerinin durumunu takip edebileceğiniz, hafıza kullanımı, işlemci sıcaklığı gibi bilgiler veren bir araç.</Description>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>gkrellm-devel</Name>
|
||||||
|
<Summary xml:lang="tr">gkrellm için geliştirme dosyaları</Summary>
|
||||||
|
</Package>
|
||||||
|
</PISI>
|
||||||
Reference in New Issue
Block a user