diff options
Diffstat (limited to 'app-admin/gkrellm')
-rw-r--r-- | app-admin/gkrellm/Manifest | 11 | ||||
-rw-r--r-- | app-admin/gkrellm/files/gkrellm-2.3.5-cifs.patch | 24 | ||||
-rw-r--r-- | app-admin/gkrellm/files/gkrellm-2.3.5-config.patch | 43 | ||||
-rw-r--r-- | app-admin/gkrellm/files/gkrellm-2.3.5-sansfont.patch | 17 | ||||
-rw-r--r-- | app-admin/gkrellm/files/gkrellm-2.3.5-width.patch | 11 | ||||
-rw-r--r-- | app-admin/gkrellm/files/gkrellmd | 21 | ||||
-rw-r--r-- | app-admin/gkrellm/files/gkrellmd.conf | 8 | ||||
-rw-r--r-- | app-admin/gkrellm/files/gkrellmd.initd | 15 | ||||
-rw-r--r-- | app-admin/gkrellm/files/gkrellmd.service | 10 | ||||
-rw-r--r-- | app-admin/gkrellm/gkrellm-2.3.10-r1.ebuild | 144 | ||||
-rw-r--r-- | app-admin/gkrellm/metadata.xml | 16 |
11 files changed, 320 insertions, 0 deletions
diff --git a/app-admin/gkrellm/Manifest b/app-admin/gkrellm/Manifest new file mode 100644 index 000000000000..1dcca2a5129b --- /dev/null +++ b/app-admin/gkrellm/Manifest @@ -0,0 +1,11 @@ +AUX gkrellm-2.3.5-cifs.patch 496 BLAKE2B 5a60994bc651e76467fb3cf75e20e4802ac4371f8e5eac52fd6a74dd362220e67019ea67a5a15e6b890faac6e9a1c2ea675809117390cd0dabd25f0f3d27cdc2 SHA512 feffaf5a561bbc47d42061ae3b2acc9d6cb6fc93d43448a2ac9ede89051c34bbec4b1ff0d77e1a2dd634fa78742a105ba66131a1cdb7a59ceb21abaa32f558d5 +AUX gkrellm-2.3.5-config.patch 1530 BLAKE2B 4e672d58a680c7c0d3f660a2ff26fd5340d14e39d1fb9f824464a5a89b593a9f1b915cc8735c215d27c198147a2a4a438b506e27e5c5469ccbc80534867dc380 SHA512 c8259770dd088a119c349d2f19728f4874a24c407273edbf7129a531589e908ef37fbdf7bdbaaaf51ae6fa527d88601749a9e358746bff514082535b355d2ad0 +AUX gkrellm-2.3.5-sansfont.patch 688 BLAKE2B 679912990141a5758b14f67712ec154e46b0fd8d1fd3fe5a1eb14c9d95ce8113cdf887b72290f9045bb9d37bb6ba132240b74dc3262a6d99fb54b0f204e81100 SHA512 7f404c8f57091f00e66435b0cd311611b40fc6e3f3e953476a40e9a4521e91f7bbd3b19094d88a74b9d8cef20b00c1b5289197df5219455a84ab68e5271ce11f +AUX gkrellm-2.3.5-width.patch 350 BLAKE2B 94b3690a464b6bfcfe6b88cf7b73880680b33b389ea3ec9f299518aadfc1e9161f7ae8046b3ba484a1a0ff5f4b4d8b3d81a604b4ccc63c546156e8dfa81d687a SHA512 4324fad0b59b482b8a2bea489373a280bc6a5a647f0863f9b1c5929454f7786b94f8293731c3de94ddbef0e8cfbe6018b721fc223dade3d23feb598e4569f3ed +AUX gkrellmd 536 BLAKE2B 6d6cf06ef51a1afc7c943b78041c9d21a9630eec0a8f598c17013868085ae06d65fdac32a4abc5bfdffb1faa33010deb9e109ccd660064a5e474402c65b55008 SHA512 7a0fa7f32f2aa5739747bec37bdcf2fd5fffffd36fdcfc4c10a36dddbf3987f003d6f8ad367d4e8b9a2d50fbef618dbb9812fc65eeed3d8e70dcf2a1da587495 +AUX gkrellmd.conf 250 BLAKE2B 2b0cfcd1940cd695c67db32c13bbb7f372936b1f88938a2e43aa27d5eeeacf746e5df3367a3c6f68c4f4470633e52a08611dc65e41a9342b98b6d4e80da81064 SHA512 257e13405bc5ce7b61b7a18e7456d1ae22d6fc2052e0e65e3b53c352a43aad2bedb4660dfd7cb95709b51f54b8949f6ff114de310be1ce49d70b074b3b8f8ef5 +AUX gkrellmd.initd 345 BLAKE2B 922967be33dcc733c55cfffa59addc01bbe2ba0298be14541925e88bac16f2310f226448545263527a96499454007baf04272fc5ce136628f03587bbc322f74b SHA512 197ad175f8e8afbc9bb81957d594ee2190c7fb3e251cfda5e987c140174a6a08e485ce2fa4e3d7a21b9bb19979c853e4c04f33021beb497f084f0ddfb2c725ba +AUX gkrellmd.service 173 BLAKE2B c89a772fd0273b54766f5cea36aab9156d7a1d59f5759bdd673651afebdc21e1bf6108cadbc6328287e6fc62d0edac215eeb7e6dd9d8d6a916c7ff913222c511 SHA512 8703ea4e51d243050034b65b7bc50b3d1862a6369af72b0d9e47285558763066e27dbdfadd54a4316da0402aac0d92c17cf1c42eed2b7926226191ce5d85089d +DIST gkrellm-2.3.10.tar.bz2 782794 BLAKE2B c0aac7df866d40c79667551ca4b25346da4267a0aad8853776425a08097dcfe3a24082e7e5d17db6d3936b59d10c29afa11e8a425319c19696141c02f7d95f25 SHA512 3ae0baa0d51729e1bac7b8f10e008bd7ed9d93d48cd894630e3a027565266e6458df0dcb3171fb271ca7766f4030149e3e6aa234ec191e8e223ae4dee1feb295 +EBUILD gkrellm-2.3.10-r1.ebuild 3251 BLAKE2B 86226ac8f2db195390acfcd5813103b82ab97e1b54771dc413535554d24444549b1d31241e5861915fe58f7e0aefed2d4e259cdb785920b69c7e8924fffbe62c SHA512 e2195ee72694798f537cb04c5b71ec6600bbfca10a6ddbf2a72d4427dae9a3f5e46093e35caa764fc937ecffdcd51394508a4a726c431ea14f666c08f6b4a822 +MISC metadata.xml 917 BLAKE2B 34cca38c9abfdd920abe9bf75e8569d652f3575e3c9f81e40f90255464021cb9f1768f742f30a8e6469a9e74342231380b9bc465a95ee1963e03d87238725e86 SHA512 8896a7f487c9089202c78589eb62c47f1705d41000a562b40a08eea660d0fe4fec422026329dedb4a33bd0dd63da5249e8dfd03590cadcf7088c0b31d55a34af diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-cifs.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-cifs.patch new file mode 100644 index 000000000000..fa35ef672798 --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-cifs.patch @@ -0,0 +1,24 @@ +--- gkrellm-2.3.5.old/server/monitor.c 2010-10-06 03:46:59.000000000 +1100 ++++ gkrellm-2.3.5/server/monitor.c 2011-11-24 02:01:30.871402778 +1100 +@@ -1329,7 +1329,8 @@ + static gchar *remote_fs_types[] = + { + "nfs", +- "smbfs" ++ "smbfs", ++ "cifs" + }; + + void +--- gkrellm-2.3.5.old/src/fs.c 2010-09-15 02:25:51.000000000 +1000 ++++ gkrellm-2.3.5/src/fs.c 2011-11-24 02:00:17.347088370 +1100 +@@ -163,7 +163,8 @@ + static gchar *remote_fs_types[] = + { + "nfs", +- "smbfs" ++ "smbfs", ++ "cifs" + }; + + diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-config.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-config.patch new file mode 100644 index 000000000000..c6230598c80e --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-config.patch @@ -0,0 +1,43 @@ +diff -up gkrellm-2.3.5/server/gkrellmd.conf.config gkrellm-2.3.5/server/gkrellmd.conf +--- gkrellm-2.3.5/server/gkrellmd.conf.config 2010-09-14 17:26:19.000000000 +0300 ++++ gkrellm-2.3.5/server/gkrellmd.conf 2011-06-19 19:17:56.398591498 +0300 +@@ -22,16 +22,17 @@ + # 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. + # +-#allow-host localhost +-#allow-host 127.0.0.1 ++allow-host localhost ++allow-host 127.0.0.1 ++allow-host ::ffff:127.0.0.1 + #allow-host ::1 + #allow-host 192.168.0.* + + # Drop privileges after startup (you must start gkrellmd as root to do it). + # NOTE: Option ignored on Windows + # +-#user nobody +-#group proc ++user gkrellmd ++group gkrellmd + + # Create a PID file for the running gkrellmd. Default is no PID file. + # NOTE: Option ignored on Windows +@@ -76,7 +77,7 @@ + # Minimum is 2 (less than 2 for no I/O disconnecting and is the default). + # Requires at least 2.1.8 versions of both gkrellmd and gkrellm. + # +-#io-timeout 5 ++io-timeout 5 + + # Configure gkrellm clients to attempt automatic reconnects to a + # gkrellmd server every reconnect-timeout seconds after a disconnected +@@ -85,7 +86,7 @@ + # Minimum is 2 (less than 2 for no automatic reconnecting and is the default). + # Requires at least 2.1.8 versions of both gkrellmd and gkrellm. + # +-#reconnect-timeout 5 ++reconnect-timeout 5 + + # Server side local mailbox counts can be sent to gkrellm clients. List here + # paths to mbox, MH mail, or Maildir style mailboxes. diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-sansfont.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-sansfont.patch new file mode 100644 index 000000000000..460eb5ebc29a --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-sansfont.patch @@ -0,0 +1,17 @@ +--- gkrellm-2.2.4/src/gui.c.font 2005-05-17 15:37:16.000000000 +0200 ++++ gkrellm-2.2.4/src/gui.c 2005-05-17 15:37:46.000000000 +0200 +@@ -1575,11 +1575,11 @@ + if (!_GK.theme_path || !g_file_test(_GK.theme_path, G_FILE_TEST_IS_DIR)) + gkrellm_dup_string(&_GK.theme_path, ""); + if (!large_font.string) +- gkrellm_dup_string(&large_font.string, "Serif 11"); ++ gkrellm_dup_string(&large_font.string, "Sans 11"); + if (!normal_font.string) +- gkrellm_dup_string(&normal_font.string, "Serif 9"); ++ gkrellm_dup_string(&normal_font.string, "Sans 9"); + if (!small_font.string) +- gkrellm_dup_string(&small_font.string, "Serif 8"); ++ gkrellm_dup_string(&small_font.string, "Sans 8"); + } + + diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-width.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-width.patch new file mode 100644 index 000000000000..c7fc22060b85 --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-width.patch @@ -0,0 +1,11 @@ +--- gkrellm-2.2.7/src/gkrellm.h.width 2005-06-09 12:48:34.000000000 +0200 ++++ gkrellm-2.2.7/src/gkrellm.h 2005-06-09 12:48:37.000000000 +0200 +@@ -518,7 +518,7 @@ + GkrellmCallback; + + +-#define CHART_WIDTH_MAX 1000 ++#define CHART_WIDTH_MAX 1600 + #define CHART_WIDTH_MIN 25 + + /* Each chart must have a GkrellmChartconfig struct associated with it. diff --git a/app-admin/gkrellm/files/gkrellmd b/app-admin/gkrellm/files/gkrellmd new file mode 100644 index 000000000000..93743c57b7df --- /dev/null +++ b/app-admin/gkrellm/files/gkrellmd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net + after lm_sensors + after hddtemp +} + +start() { + ebegin "Starting GNU Krell Monitor daemon" + start-stop-daemon --start --quiet --background --pidfile /var/run/gkrellmd.pid --make-pidfile --exec /usr/bin/gkrellmd -- ${GKRELLMD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping GNU Krell Monitor daemon" + start-stop-daemon --stop --quiet --pidfile /var/run/gkrellmd.pid --name gkrellmd + eend $? +} diff --git a/app-admin/gkrellm/files/gkrellmd.conf b/app-admin/gkrellm/files/gkrellmd.conf new file mode 100644 index 000000000000..6b0d90df1092 --- /dev/null +++ b/app-admin/gkrellm/files/gkrellmd.conf @@ -0,0 +1,8 @@ +# Config file for gkrellmd init script + +# If you need to pass extra options to gkrellmd, you may set them here. +# See 'gkrellmd --help' for a list of options. +# +# Note: Many options can be configured in /etc/gkrellmd.conf as well +# +#GKRELLMD_OPTS="" diff --git a/app-admin/gkrellm/files/gkrellmd.initd b/app-admin/gkrellm/files/gkrellmd.initd new file mode 100644 index 000000000000..fe295128e4ea --- /dev/null +++ b/app-admin/gkrellm/files/gkrellmd.initd @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="gkrell system monitor daemon" +pidfile="/var/run/gkrellmd.pid" +command="/usr/bin/gkrellmd" +command_args="${GKRELLMD_OPTS}" +command_background="true" + +depend() { + need net + after lm_sensors + after hddtemp +} diff --git a/app-admin/gkrellm/files/gkrellmd.service b/app-admin/gkrellm/files/gkrellmd.service new file mode 100644 index 000000000000..f1df0c6420ad --- /dev/null +++ b/app-admin/gkrellm/files/gkrellmd.service @@ -0,0 +1,10 @@ +[Unit] +Description=GNU Krell Monitors server +Documentation=man:gkrellmd(1) +After=network.target + +[Service] +ExecStart=/usr/bin/gkrellmd + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/gkrellm/gkrellm-2.3.10-r1.ebuild b/app-admin/gkrellm/gkrellm-2.3.10-r1.ebuild new file mode 100644 index 000000000000..0dea33e32b53 --- /dev/null +++ b/app-admin/gkrellm/gkrellm-2.3.10-r1.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils multilib user systemd toolchain-funcs + +MY_P="${P/_/-}" + +DESCRIPTION="Single process stack of various system monitors" +HOMEPAGE="http://www.gkrellm.net/" +# Upstream named their xz compressed tarball tar.bz2 (*sigh*) +SRC_URI="http://gkrellm.srcbox.net/${MY_P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="2" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="gnutls hddtemp libressl lm_sensors nls ntlm ssl kernel_FreeBSD X" + +RDEPEND=" + dev-libs/glib:2 + hddtemp? ( app-admin/hddtemp ) + gnutls? ( net-libs/gnutls ) + !gnutls? ( + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + ) + lm_sensors? ( sys-apps/lm_sensors ) + nls? ( virtual/libintl ) + ntlm? ( net-libs/libntlm ) + X? ( + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/pango + )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}"/${PN}-2.3.5-cifs.patch + "${FILESDIR}"/${PN}-2.3.5-config.patch + "${FILESDIR}"/${PN}-2.3.5-width.patch + "${FILESDIR}"/${PN}-2.3.5-sansfont.patch +) + +S="${WORKDIR}/${MY_P}" + +DOCS=( Changelog CREDITS README ) + +pkg_setup() { + enewgroup gkrellmd + enewuser gkrellmd -1 -1 -1 gkrellmd + TARGET= + use kernel_FreeBSD && TARGET="freebsd" +} + +src_prepare() { + sed -e 's:-O2 ::' \ + -e 's:override CC:CFLAGS:' \ + -e 's:-L/usr/X11R6/lib::' \ + -i */Makefile || die "sed Makefile(s) failed" + + sed -e "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):" \ + -e "s:/usr/local/lib:${EPREFIX}/usr/local/$(get_libdir):" \ + -i src/${PN}.h || die "sed ${PN}.h failed" + + default +} + +src_compile() { + if use X ; then + local sslopt="" + if use gnutls; then + sslopt="without-ssl=yes" + elif use ssl; then + sslopt="without-gnutls=yes" + else + sslopt="without-ssl=yes without-gnutls=yes" + fi + + emake \ + ${TARGET} \ + CC="$(tc-getCC)" \ + STRIP="" \ + INSTALLROOT="${EPREFIX}/usr" \ + INCLUDEDIR="${EPREFIX}/usr/include/gkrellm2" \ + LOCALEDIR="${EPREFIX}/usr/share/locale" \ + $(usex nls "" "enable_nls=0") \ + $(usex lm_sensors "" "without-libsensors=yes") \ + $(usex ntlm "" "without-ntlm=yes") \ + ${sslopt} + else + cd server || die + emake \ + ${TARGET} \ + CC="$(tc-getCC)" \ + LINK_FLAGS="$LDFLAGS -Wl,-E" \ + STRIP="" \ + $(usex nls "" "enable_nls=0") \ + $(usex lm_sensors "" "without-libsensors=yes") + fi +} + +src_install() { + if use X ; then + emake \ + install${TARGET:+_}${TARGET} \ + $(usex nls "" "enable_nls=0") \ + STRIP="" \ + INSTALLDIR="${ED}/usr/bin" \ + INCLUDEDIR="${ED}/usr/include" \ + LOCALEDIR="${ED}/usr/share/locale" \ + PKGCONFIGDIR="${ED}/usr/$(get_libdir)/pkgconfig" \ + MANDIR="${ED}/usr/share/man/man1" + + docinto html + dodoc *.html + + newicon src/icon.xpm ${PN}.xpm + make_desktop_entry ${PN} GKrellM ${PN} + else + dobin server/gkrellmd + + insinto /usr/include/gkrellm2 + doins server/gkrellmd.h + doins shared/log.h + fi + + newinitd "${FILESDIR}"/gkrellmd.initd gkrellmd + newconfd "${FILESDIR}"/gkrellmd.conf gkrellmd + + systemd_dounit "${FILESDIR}"/gkrellmd.service + + insinto /etc + doins server/gkrellmd.conf + + einstalldocs +} diff --git a/app-admin/gkrellm/metadata.xml b/app-admin/gkrellm/metadata.xml new file mode 100644 index 000000000000..5e32bfdba9d3 --- /dev/null +++ b/app-admin/gkrellm/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> + <use> + <flag name="hddtemp">Enable monitoring harddrive temperatures via <pkg>app-admin/hddtemp</pkg></flag> + <flag name="gnutls">Enable SSL support for mail checking with <pkg>net-libs/gnutls</pkg> (overrides 'ssl' USE flag)</flag> + <flag name="ssl">Enable SSL support for mail checking with <pkg>dev-libs/openssl</pkg></flag> + <flag name="lm_sensors">Enable monitoring sensors via <pkg>sys-apps/lm_sensors</pkg></flag> + <flag name="X">Build both the X11 gui (gkrellm) and the server (gkrellmd). Disabling this flag builds the server only</flag> + <flag name="ntlm">Enable NTLM authentication for mail checking with <pkg>net-libs/libntlm</pkg></flag> + </use> +</pkgmetadata> |