summaryrefslogtreecommitdiff
path: root/app-admin/gkrellm
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/gkrellm')
-rw-r--r--app-admin/gkrellm/Manifest22
-rw-r--r--app-admin/gkrellm/files/gkrellm-2.3.5-autofs.patch10
-rw-r--r--app-admin/gkrellm/files/gkrellm-2.3.5-binding.patch30
-rw-r--r--app-admin/gkrellm/files/gkrellm-2.3.5-cifs.patch24
-rw-r--r--app-admin/gkrellm/files/gkrellm-2.3.5-config.patch43
-rw-r--r--app-admin/gkrellm/files/gkrellm-2.3.5-dso.patch32
-rw-r--r--app-admin/gkrellm/files/gkrellm-2.3.5-format-security.patch12
-rw-r--r--app-admin/gkrellm/files/gkrellm-2.3.5-sansfont.patch17
-rw-r--r--app-admin/gkrellm/files/gkrellm-2.3.5-width.patch11
-rw-r--r--app-admin/gkrellm/files/gkrellm-2.3.7-pkgconfig_fix_newlines.patch11
-rw-r--r--app-admin/gkrellm/files/gkrellmd21
-rw-r--r--app-admin/gkrellm/files/gkrellmd.conf8
-rw-r--r--app-admin/gkrellm/files/gkrellmd.initd15
-rw-r--r--app-admin/gkrellm/files/gkrellmd.service10
-rw-r--r--app-admin/gkrellm/gkrellm-2.3.10-r1.ebuild144
-rw-r--r--app-admin/gkrellm/gkrellm-2.3.5-r4.ebuild128
-rw-r--r--app-admin/gkrellm/gkrellm-2.3.7.ebuild144
-rw-r--r--app-admin/gkrellm/metadata.xml22
18 files changed, 704 insertions, 0 deletions
diff --git a/app-admin/gkrellm/Manifest b/app-admin/gkrellm/Manifest
new file mode 100644
index 000000000000..6680aeae35a3
--- /dev/null
+++ b/app-admin/gkrellm/Manifest
@@ -0,0 +1,22 @@
+AUX gkrellm-2.3.5-autofs.patch 363 SHA256 9d655df4251bf58f2c160949e00d89c1b95be6b472c3c110e4a39a30e817fb1e SHA512 a7684223bd02c9bc0c77f33c618b1b58f639e83935b2e728234af5e364a1573d7a3d8448ace541eeaaaf3236384dd2f042cacb295eb8fdcb850cc2eac3bd614a WHIRLPOOL 1720705d6f174a77b4ffa18eae0bfc3102b4f24b4bc60f24e02fc15004874909704b784081a7eba526321599edea5cb141d1a5a9be4e0a6ec6e46a1d77641804
+AUX gkrellm-2.3.5-binding.patch 707 SHA256 f2602869d98c51910f22022b64b9ebf8f4c99caed3fbfafbc2ec47a977994463 SHA512 c5f52a9e5359244ef5a330f25320e4c2adad3d11d9b5ae443e73e78dba52c88a2b6ce89130547c63727c95f40464d88f42f175cc12a0d0ec97f67717ef611ff0 WHIRLPOOL 6d280db703568db10a6c7cad578d961fecf428c578821ed8d3965bea9137f6227bf86115c23f34d1fcba5a7a399f4378ece49e93a33744464ab841182e35642f
+AUX gkrellm-2.3.5-cifs.patch 496 SHA256 3b669243b900753f0b913cd8764b0f4389c684680ade75c60eaca2820b8caedc SHA512 feffaf5a561bbc47d42061ae3b2acc9d6cb6fc93d43448a2ac9ede89051c34bbec4b1ff0d77e1a2dd634fa78742a105ba66131a1cdb7a59ceb21abaa32f558d5 WHIRLPOOL 3436e2a9b2494059e68b008d426fd284ea0bf9c097149cc48bc92638a38ab6564c40204260b7e648b1e7d153f2ee396a060f2d1f21483d96d6bccb65c0e12372
+AUX gkrellm-2.3.5-config.patch 1530 SHA256 a329336946d581aff46559035d933697beaa132d312d6d9c9be6c325713f324b SHA512 c8259770dd088a119c349d2f19728f4874a24c407273edbf7129a531589e908ef37fbdf7bdbaaaf51ae6fa527d88601749a9e358746bff514082535b355d2ad0 WHIRLPOOL 2df9ef7d6c7f2e381940d1e8f81795a0f284168876a2a0c9e5a5b024650f7c6dc19714b0c48c11643645bc9bd2e8e4bba9ddb423022db180b428b8fbe6cb8501
+AUX gkrellm-2.3.5-dso.patch 1113 SHA256 b33527bc3c4c27167d8259892e82f08ab99b21790e2884b5e33b1dc110560e74 SHA512 b186140e7fefcf3aee38c51e55c2d7c8cc39e2fa65f724e237e92f686aa8106f03bb195409090b355bb5b3af08e6be6f2317a63c00a54e0f89ff7218ee3629bf WHIRLPOOL 50f3695f67515f94608c4a9333c5505be87ba5c00b632982a75344f19309ccf30f517ded93dd90dae9d25c774f2e525cf32f734390f447c370c188931d20d357
+AUX gkrellm-2.3.5-format-security.patch 503 SHA256 2b9cc038550d3ea4132f6d6cc489582f6019f132c9315d9254820f7cb8408297 SHA512 87ce3d0351ab3dcfb6e57b9c763ecb335ea75abc156d4f70a177f7c13958e343bbc60a4f59bdd52097b5f6cae1f5cfd21bfadff7f26f2366f76c7c75d4483af8 WHIRLPOOL 6ad4fdf0bd0083785783e2c0a276defe6a3afa37d8725b64a2d15e3291efae5ee66b369366c428573da40a84b6db47d9ddb50135d25150943ea32fdb40bbabc3
+AUX gkrellm-2.3.5-sansfont.patch 688 SHA256 17e714489a004661950d75d12a873ff628dec34e7bb6ac39fe674327226b12a1 SHA512 7f404c8f57091f00e66435b0cd311611b40fc6e3f3e953476a40e9a4521e91f7bbd3b19094d88a74b9d8cef20b00c1b5289197df5219455a84ab68e5271ce11f WHIRLPOOL 53a075790b24300d03dd90c9c5f96a3146ae00a3b1876e96c57b385a732fbb7144a2ea9a997037683916838b1b662cdd133d95f7ef1fb398266c900127f553c2
+AUX gkrellm-2.3.5-width.patch 350 SHA256 0a637aabdedb087b032256d9438ef000ef5c44a7be143d4a4a5584bd97fc8729 SHA512 4324fad0b59b482b8a2bea489373a280bc6a5a647f0863f9b1c5929454f7786b94f8293731c3de94ddbef0e8cfbe6018b721fc223dade3d23feb598e4569f3ed WHIRLPOOL 0a3179f93165cea69677d7133d8a9e3c86ea460ce5a17b8ecfbfcc0b0cb9ad2082b773573c8947f8afea194426d2743e8fd38e23e93882783e2049f14afce40e
+AUX gkrellm-2.3.7-pkgconfig_fix_newlines.patch 315 SHA256 15bdf7577d402a65d72d3365de46cbfca6bfe7ac9de546937c67ae0d7685b3e4 SHA512 ac044d65c7abd0434185dad82331420b7066bd63e95c2a651169e1b46975eab2d17aa0e25c8c562d227fa27ea56e9137e18e1a456a7e312746608a49654f2455 WHIRLPOOL 6f9af90fc925c193b9fa2bb4a5a79ed5a8ae52faac67baa34c12842b81ac701c76d1cf7d2c08ba63430f54e9200458df79513b365b1e0aa118a207d2d0b88258
+AUX gkrellmd 536 SHA256 bde5ebf7fe2a714f4eff5bde36f7ee0142276116f95c0d9d16e828b31c71a6c4 SHA512 7a0fa7f32f2aa5739747bec37bdcf2fd5fffffd36fdcfc4c10a36dddbf3987f003d6f8ad367d4e8b9a2d50fbef618dbb9812fc65eeed3d8e70dcf2a1da587495 WHIRLPOOL 035717c335dc364b44fb546ab6042dea386b0976a6fa0aa1be601e6b3655bac04c5e1db81017047e265999859389c80a3fd5fab7a00e97d3620502fd8c731c41
+AUX gkrellmd.conf 250 SHA256 66ba64c7a3ce2d97ba2feebf3c38e75b278bbbe152c71472e363d720b198b935 SHA512 257e13405bc5ce7b61b7a18e7456d1ae22d6fc2052e0e65e3b53c352a43aad2bedb4660dfd7cb95709b51f54b8949f6ff114de310be1ce49d70b074b3b8f8ef5 WHIRLPOOL 2662e208c7919cbe2e5a162ddcd3966149e59bf4c2172cb519349a983bac914fc2469ff0176043ecf5c43babf6a08ec2cdcb831dcc67ba503f231477cb183e06
+AUX gkrellmd.initd 345 SHA256 749db5d4427400d7ade7f61fdb09b83f565f905ac5d450a34248bbe69d168f53 SHA512 197ad175f8e8afbc9bb81957d594ee2190c7fb3e251cfda5e987c140174a6a08e485ce2fa4e3d7a21b9bb19979c853e4c04f33021beb497f084f0ddfb2c725ba WHIRLPOOL 0efb66ff37f25d59dfa87154e48ebf39cf26e8976defd103057f864151ebb54ff4d5c478fd0774136f36e488984616ee616c05e95300a9944b4885ecab687d2b
+AUX gkrellmd.service 173 SHA256 45642a19846dbea1b20f883be49400511359414527699ed24e6d320945733979 SHA512 8703ea4e51d243050034b65b7bc50b3d1862a6369af72b0d9e47285558763066e27dbdfadd54a4316da0402aac0d92c17cf1c42eed2b7926226191ce5d85089d WHIRLPOOL 8d6ad3627eb51f9db7d448acea46b8de1ab3b41c37c26e9051313bfe0080ec50ff2de3e55b0860b69ecf993b18aaf024f661ed720e3a84ae5acce8057d212e4f
+DIST gkrellm-2.3.10.tar.bz2 782794 SHA256 8b9ec8baadcd5830c6aff04ba86dc9ed317a15c1c3787440bd1e680fb2fcd766 SHA512 3ae0baa0d51729e1bac7b8f10e008bd7ed9d93d48cd894630e3a027565266e6458df0dcb3171fb271ca7766f4030149e3e6aa234ec191e8e223ae4dee1feb295 WHIRLPOOL 5c8461d9675f1b6d7ed7e94910c15cb3a660fd143274de94a0bed559fc145e369328c345c43433384dea53214bdb3ea99cbd2953b80af95cb0031d8d3f1fb5c8
+DIST gkrellm-2.3.5.tar.bz2 765011 SHA256 702b5b0e9c040eb3af8e157453f38dd6f53e1dcd8b1272d20266cda3d4372c8b SHA512 9681ec5978b6be9f56a71726df36671829a4427f45caf90c8c3460e8c59004ff4083de1692cad16e3724ed37418bb3e4589d1961c140f3becfa3efd210b7a5dc WHIRLPOOL 3dceb20b9da49fb9b287e1faca88b3fdb7ae7af6dde5e675ee1e5c718467b131e34f740cb38719e5026ce0478146264fa4eaa060120e71f2c442ec5504e6dfb4
+DIST gkrellm-2.3.7.tar.bz2 777841 SHA256 f7a4642d2cc6b61242215e58e1bd8fe394e6fd984cd3c3f8964c1c554029735d SHA512 832353d245966a5d64ccbacd619905fe437b347c2654e279ec47b56aa1ef559a166b4791d63e151a5481c55c1d3775906e52213f42e5d7071fd15f00f8cecaa5 WHIRLPOOL 3fd8b51a1be5174308fe1dbbb1c1d83df0685c12e71cf410533f97439fb5cf001553c462e15b9971c55c6ea87b28429136fe0025d39c443cb9d215fcf7620f46
+EBUILD gkrellm-2.3.10-r1.ebuild 3251 SHA256 006c93b7c89cda26f8ab4b75cb7bd8b04af2c41754f2ed9c843df0258ad6e8bd SHA512 e2195ee72694798f537cb04c5b71ec6600bbfca10a6ddbf2a72d4427dae9a3f5e46093e35caa764fc937ecffdcd51394508a4a726c431ea14f666c08f6b4a822 WHIRLPOOL 88623d5a73040e32644524c381d7d5b1cd7264cb64b235a283f0634f17d4bc820dfb9e3f5b3c3c1c2a3c1a4736fa70e7a2198feb3639f4e12c8590a98c7eb2bd
+EBUILD gkrellm-2.3.5-r4.ebuild 3089 SHA256 09008ded01e5b385a5d91a8fd1252092d0c44aeaf9224f4acdafc105c05203dc SHA512 e7b81fe435e8ac42bd46bb199197a56e353543ccbda6637c2a4cb21aa1b672f30583e832c0be2dde88565729c5910a4a1eb93cb14dca59d0dbd05272d38c5feb WHIRLPOOL 2a81a7ee8f653b77755877817c3d18f6cf0dd569669772ba5924dc14a85aa1023f57882dfbe8199bc4114427d8611ca0817f30570d680f382f8da0d1d3fca790
+EBUILD gkrellm-2.3.7.ebuild 3247 SHA256 3b017a0940913f89494bedb1331081cfacfcdcb8058f058aca1552cef3892c27 SHA512 a647fbb4a675b83dbfba07964fd9fdf85bb58e73e4df60df3cf8128990290cf4be35d2c5d0dab69ac184be443c4bed59962b8873bf8a838b13b8f995641a4935 WHIRLPOOL 127bfa9837706dd91679f3ba18e8b91a779e002f0d9c244fdb3bf081110c6b755418822f98e311168cfa2348c85d4f07cc720c521d5881c6453dd03b09661ade
+MISC ChangeLog 6418 SHA256 ac0c6406d2fc14ead60ed702460e3c8a61c0525f413118b90665d1cf4f5d9efe SHA512 d7877f9e7086ac65f10976bb927901506ff647ba9f35abfb8c1f576dd8f3048860b55a4de25414f180f276de07cb5505f2fc24da4016bcb01c1b9208a06d672a WHIRLPOOL 6f633ede55ce5345ff98076720173dbf61224b6b7cf0b671389f1e84dfb24201815ec3a7f5b914e67622af1ba848838d02313573fc73538bcdafcd19b51c2433
+MISC ChangeLog-2015 29623 SHA256 58dc8c928a4ebe1b191eb9d614c7675ebff259dc64570b78cba7bb7e4f1a981f SHA512 093a984f95f65194acfef7c4eec3351c39eb8e0852265c629920ba2527f2bf92ea22195c876e340d330c71b9115d43b6bc999a6a1c293eb245ed0bc1a4601174 WHIRLPOOL c61d894a1e7ca18b73f102f95ecbfa66a675e6c63a57e6ff704716eecec5a60106e5140e6f93e04e1b922b174012215bf3f086268348c8ce1bfce1b4db0dda35
+MISC metadata.xml 957 SHA256 6455d060514bf666663a86bbe1804d3cf30484d4825773305852571988324525 SHA512 27ffd7627bc18f42700534c72794e8fb239f02bb1f167ca8b3576dc5406196dbf9f25abaac99be1cbc1efe65d956b5d81b6bc039872f075aa38ff28fe5a4a52c WHIRLPOOL 3ac395af2d68e084e8fe8051415e5761a3930fd3cd7222a0f65e54e48af011d7bde5e939ec16d84b35a957df05faf939da46b9faa6ebc3170e6f4559e3fe4673
diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-autofs.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-autofs.patch
new file mode 100644
index 000000000000..cf36a9817110
--- /dev/null
+++ b/app-admin/gkrellm/files/gkrellm-2.3.5-autofs.patch
@@ -0,0 +1,10 @@
+--- gkrellm-2.3.5.old/src/sysdeps/linux.c 2010-10-06 03:27:33.000000000 +1100
++++ gkrellm-2.3.5/src/sysdeps/linux.c 2011-11-24 02:07:30.926450485 +1100
+@@ -1439,6 +1439,7 @@
+ || !strcmp(type, "usbdevfs")
+ || !strcmp(type, "usbfs")
+ || !strcmp(type, "sysfs")
++ || !strcmp(type, "autofs")
+ )
+ continue;
+ /* Strip trailing / from the directory.
diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-binding.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-binding.patch
new file mode 100644
index 000000000000..83bf0b0d7d20
--- /dev/null
+++ b/app-admin/gkrellm/files/gkrellm-2.3.5-binding.patch
@@ -0,0 +1,30 @@
+From a6983649c997dffd71d365792fa665cc135e696a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
+Date: Fri, 10 Jan 2014 09:34:59 +0200
+Subject: [PATCH] Allow binding to a listen address that doesn't exist yet
+
+---
+ server/main.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/server/main.c b/server/main.c
+index a5a9e4e..b2f460b 100644
+--- a/server/main.c
++++ b/server/main.c
+@@ -1003,6 +1003,13 @@ socksetup(int af)
+ #endif
+ continue;
+ }
++
++#ifdef IP_FREEBIND
++ if (setsockopt(*s, SOL_IP, IP_FREEBIND, &on, sizeof(on)) < 0)
++ {
++ g_warning("gkrellmd: setsockopt (IP_FREEBIND) failed\n");
++ }
++#endif
+ }
+
+ #ifdef IPV6_V6ONLY
+--
+1.8.3.1
+
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-dso.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-dso.patch
new file mode 100644
index 000000000000..3a24baafe7df
--- /dev/null
+++ b/app-admin/gkrellm/files/gkrellm-2.3.5-dso.patch
@@ -0,0 +1,32 @@
+From 2c839bf2703e99c3851b58695545fed90b6226fc Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Wed, 29 Aug 2012 22:28:47 -0400
+Subject: [PATCH] Explicitly link to libgmodule-2.0
+
+With >=gdk-pixbuf-2.24 and >=pango-1.30, libgmodule-2.0 is no longer
+provided by "pkg-config --libs gtk+-2.0 gthread-2.0", so link to it
+explicitly (as is already done in server/).
+
+Fixes build failure with gnu ld.gold in gkrellm-2.3.5.
+
+https://bugs.gentoo.org/show_bug.cgi?id=428532
+---
+ src/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 6d482a7..19b0c29 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -69,7 +69,7 @@ STRIP ?= -s
+ GKRELLM_INCLUDES = gkrellm.h gkrellm-public-proto.h $(SHARED_PATH)/log.h
+
+ PKG_INCLUDE = `$(PKG_CONFIG) --cflags gtk+-2.0 gthread-2.0`
+-PKG_LIB = `$(PKG_CONFIG) --libs gtk+-2.0 gthread-2.0`
++PKG_LIB = `$(PKG_CONFIG) --libs gtk+-2.0 gmodule-2.0 gthread-2.0`
+
+ FLAGS = -O2 -I.. -I$(SHARED_PATH) $(PKG_INCLUDE) $(GTOP_INCLUDE) $(PTHREAD_INC)\
+ ${SSL_INCLUDE} ${NTLM_INCLUDE} -DGKRELLM_CLIENT
+--
+1.7.12
+
diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-format-security.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-format-security.patch
new file mode 100644
index 000000000000..3e0265af482c
--- /dev/null
+++ b/app-admin/gkrellm/files/gkrellm-2.3.5-format-security.patch
@@ -0,0 +1,12 @@
+diff -up gkrellm-2.3.5/server/main.c~ gkrellm-2.3.5/server/main.c
+--- gkrellm-2.3.5/server/main.c~ 2010-10-02 19:13:29.000000000 +0300
++++ gkrellm-2.3.5/server/main.c 2013-12-06 22:56:38.690534043 +0200
+@@ -187,7 +187,7 @@ static void gkrellmd_syslog_log(GLogLeve
+ if (log_level & G_LOG_LEVEL_CRITICAL)
+ facility_priority = LOG_MAKEPRI(LOG_DAEMON, LOG_CRIT);
+
+- syslog(facility_priority, message);
++ syslog(facility_priority, "%s", message);
+ #endif // defined(WIN32)
+ } // gkrellmd_syslog_log()
+
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/gkrellm-2.3.7-pkgconfig_fix_newlines.patch b/app-admin/gkrellm/files/gkrellm-2.3.7-pkgconfig_fix_newlines.patch
new file mode 100644
index 000000000000..a699b80e5b2b
--- /dev/null
+++ b/app-admin/gkrellm/files/gkrellm-2.3.7-pkgconfig_fix_newlines.patch
@@ -0,0 +1,11 @@
+--- gkrellm-2.3.7/Makefile
++++ gkrellm-2.3.7/Makefile
+@@ -131,7 +131,7 @@
+ (cd server && ${MAKE} gkrellmd)
+
+ gkrellm.pc: Makefile
+- echo 'prefix=$(INSTALLROOT)\n'\
++ printf 'prefix=$(INSTALLROOT)\n'\
+ 'Name: GKrellM\n'\
+ 'Description: Extensible GTK system monitoring application\n'\
+ 'Version: $(VERSION)\n'\
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/gkrellm-2.3.5-r4.ebuild b/app-admin/gkrellm/gkrellm-2.3.5-r4.ebuild
new file mode 100644
index 000000000000..270ad03b149c
--- /dev/null
+++ b/app-admin/gkrellm/gkrellm-2.3.5-r4.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib user systemd toolchain-funcs
+
+DESCRIPTION="Single process stack of various system monitors"
+HOMEPAGE="http://www.gkrellm.net/"
+SRC_URI="http://members.dslextreme.com/users/billw/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="2"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="gnutls hddtemp lm_sensors nls ntlm ssl kernel_FreeBSD X"
+
+RDEPEND="
+ dev-libs/glib:2
+ hddtemp? ( app-admin/hddtemp )
+ gnutls? ( net-libs/gnutls )
+ !gnutls? ( ssl? ( dev-libs/openssl:0= ) )
+ lm_sensors? ( sys-apps/lm_sensors )
+ nls? ( virtual/libintl )
+ ntlm? ( net-libs/libntlm )
+ X? (
+ x11-libs/gtk+:2
+ x11-libs/pango
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+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"
+
+ epatch \
+ "${FILESDIR}"/${P}-autofs.patch \
+ "${FILESDIR}"/${P}-cifs.patch \
+ "${FILESDIR}"/${P}-dso.patch \
+ "${FILESDIR}"/${P}-format-security.patch \
+ "${FILESDIR}"/${P}-config.patch \
+ "${FILESDIR}"/${P}-width.patch \
+ "${FILESDIR}"/${P}-binding.patch \
+ "${FILESDIR}"/${P}-sansfont.patch
+}
+
+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"
+
+ dohtml *.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
+
+ doinitd "${FILESDIR}"/gkrellmd
+ newconfd "${FILESDIR}"/gkrellmd.conf gkrellmd
+
+ systemd_dounit "${FILESDIR}"/gkrellmd.service
+
+ insinto /etc
+ doins server/gkrellmd.conf
+
+ dodoc Changelog CREDITS README
+}
diff --git a/app-admin/gkrellm/gkrellm-2.3.7.ebuild b/app-admin/gkrellm/gkrellm-2.3.7.ebuild
new file mode 100644
index 000000000000..50b713c96575
--- /dev/null
+++ b/app-admin/gkrellm/gkrellm-2.3.7.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2016 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/"
+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
+ "${FILESDIR}"/${P}-pkgconfig_fix_newlines.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..8ebacc5928b7
--- /dev/null
+++ b/app-admin/gkrellm/metadata.xml
@@ -0,0 +1,22 @@
+<?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>