1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 17:47:09 +00:00
Commit Graph

241 Commits

Author SHA1 Message Date
Pavel Labath
459dd4109c Hopefully a lua build check which finally works on all distros 2013-02-23 09:51:49 +01:00
Daniel Pielmeier
96935e8221 Fix build checks for Lua >=5.1 and <5.2. 2013-01-29 10:57:40 -08:00
James Morris
710646c101 fix to force usage of lua 5.1 when both 5.1 and 5.2 installed 2013-01-12 20:26:39 +00:00
Pavel Labath
55a1c41827 Really fix "conky fails to build with audacious" (sf.net #3539500)
apparently, my previous fix was not sufficient, although I do remember testing it :/

fix by Daniel Pielmeier.
2012-08-25 23:14:46 +02:00
Pavel Labath
89720b4e81 Add preprocessor defitions that request posix features 2012-07-20 20:59:07 +02:00
Pavel Labath
2fcd9c74a8 Detect clock_gettime properly
my implementation of AC_SEARCH_LIBS macro was incorrect. This should hopefully fix it.
2012-07-20 18:09:35 +02:00
Pavel Labath
ba1919a02e Fix "conky fails to build with audacious" (sf.net #3539500)
audacious needs dbus to compile, but we failed to provide a path to the directory containing the
header files.

bug reported by Daniel Pielmeier
2012-07-07 20:41:45 +02:00
Magliano Andrea
abdb5582bd Proper handle missing statfs64
statfs64 ist atm linux specific; wrap statfs around it.

Also cleanup param.h and mount.h including: the assumption in fs.cc
that their presence is a sign of *BSDs is wrong, as they exist in
linux too with different meaning.

Besides presence of mount.h isn't detected in Conky.cmake, so
conditional including mount.h in fs.cc is useless. Is just works
because mount.h and param.h are included in freebsd.h and dragonfly.h
later on. They are unneded in linux.

Just remove conditional including of mount.h and param.h in fs.cc,
conditional wrap statfs64 in proper *BSD header files.
2012-07-06 15:13:59 +02:00
Magliano Andrea
93af415ad7 Force global library path for pkgsrc.
DragonFlyBSD uses pkgsrc package infrastructure, hence the the need
for extra flags.

Cmake pkg_search_module macro sets according <XPREFIX>_LDFLAGS var,
thus the correct way should be to append it to conky_includes and
conky_libs for each extra package needed.
As all pkgsrc packages always install in /usr/pkg, the simplest thing
is to set specific cflags and ldflags at the very beginning.

Conky is btw wip (work in progress) in pkgsrc system, mostly with
NetBSD patches. This is intended as radical workaround (DragonFlyBSD
specific for now) instead of submitting specific patches to pksrc
maintainers.
2012-07-05 20:39:38 +02:00
Pavel Labath
01995b1326 Woops, typo in the previous commit 2012-07-05 16:46:04 +02:00
Pavel Labath
31c2f82842 Fall back to statfs if statfs64 not present
mostly needed for the dragonfly port (sf.net #3289079)
2012-07-05 16:41:58 +02:00
Pavel Labath
fa575171c4 Remove -D_GNU_SOURCE and do not use GNU extensions
we hope to compile on non-GNU systems as well
2012-07-01 15:05:27 +02:00
Magliano Andrea
98196d0e6b Preliminary import from 2.8.1 git release
* don't use kvm_* calls, just sysctl (so no suid perm necessary)

* sysctls calls in general aren't thread safe, collapse callbacks
  using same sysctls (specifically total/running procs and proc list
  ones).

  Some sysctls need two calls (first to get size of obj returned,
  second to get object self); if different threads use this schema
  on same sysctl, weird values are returned (first/second calls
  sequence should be serialized).

  In general it makes not much sense too having more threads that use
  the same sysctl; just get info once and populate all data.

* add DragonFly specific extended uname string ($version in conky.conf)
  with git version and signature

Todo:

- top process list logic is old style, use top.cc funcs.
- find a solution for cpu freq

Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2012-06-28 18:56:01 +02:00
Jim Duchek
bf7248ecd6 Fixed GCC 4.7.0 issues, double buffering
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2012-05-03 14:06:50 -07:00
Pavel Labath
4463a100ba Increase MAX_NET_INTERFACES to 64
also change a magic constant in net_stat.h to reflect the fact that it depends on
MAX_NET_INTERFACES. For more info, see sf.net #2872682 and gentoo bug #384505

ps: this should really be solved in a more need way, without the need for static arrays
2011-10-25 19:00:39 +02:00
Christian Brabandt
354e577b15 Cmus support added to conky 2011-10-13 09:41:53 +02:00
Pavel Labath
0493ba853c Emulate O_CLOEXEC on systems that don't support it 2011-10-01 22:18:25 +02:00
Pavel Labath
031e79e77e Fix linking error: clock_gettime not found
I decided to reimplement AC_SEARCH_LIB from autotools in the process, as I consider it a very
nifty feature.
2011-09-30 23:01:24 +02:00
Nikolas Garofil
6287b22a3d Add $v6addrs to increase IPv6 support
This is only the beginning of the ipv6 support,
This var isn't documented and only works on Linux.
It should also be patched to show the addresses in compressed format
Some other vars should also be added to see things like netmask, scope, routes, ...
2011-02-09 18:49:52 +01:00
Pavel Labath
187dc352c4 apcupsd supposedly works on FreeBSD as well 2010-12-09 18:55:22 +01:00
Nikolas Garofil
f6a4588b3c Include default values set by cmake in print_version(), Don't set HTTPPORT when BUILD_HTTP is unset 2010-11-24 18:17:53 +01:00
Pavel Labath
7df57a9961 Change the default config file back to .conkyrc
we have the auto-conversion script now, there is no need for a new name (yet)
2010-11-23 19:18:47 +01:00
Nikolas Garofil
5f76f847dd Bugfix: choosing BUILD_ARGB without OWN_WINDOW breaks building 2010-11-22 21:14:45 +01:00
Nikolas Garofil
5d28bed7db Support for old config syntax (Optional) 2010-11-19 14:27:18 +01:00
Nikolas Garofil
0d98fe8478 Merge branch 'master' into lua-config 2010-11-14 14:19:42 +01:00
Nikolas Garofil
a18f5e2808 Make sure MAINTAINER_MODE sets DEBUG 2010-11-14 02:27:01 +01:00
Nikolas Garofil
b5ff3eb411 Make lua required by cmake 2010-11-14 01:41:07 +01:00
Pavel Labath
c9df66f487 Merge remote branch 'origin/master' into lua-config
Conflicts:
	src/conky.cc
	src/logging.h
2010-11-13 20:17:46 +01:00
Pavel Labath
0852aa4fcd Merge remote branch 'origin/master' into lua-config
Conflicts:
	src/ccurl_thread.cc
	src/conky.cc
	src/llua.cc
	src/logging.h
	src/nvidia.cc
2010-11-13 20:05:59 +01:00
Nikolas Garofil
9d7a914515 Make I18N optional 2010-11-13 19:45:04 +01:00
Nikolas Garofil
e918ea4655 Let cmake check whether to build for old or new audacious 2010-11-12 16:49:34 +01:00
Nikolas Garofil
4d157a298b Fix compiling with audacious support (Patch from billie, thanks !) 2010-11-12 12:32:49 +01:00
Nikolas Garofil
b98ebc90ee Internationalization support
This patch adds i18n-support with gettext, all translatable strings in the
code should be placed inside _() to make sure users see them in their own
language (I only did this for print_version() for now)
2010-10-31 00:02:02 +02:00
Nikolas Garofil
89a8456495 Fix x11 check in cmake 2010-10-27 07:37:11 +02:00
Pavel Labath
eeb1a6a0d7 Properly load config file and print the default one
ps: the new implementation no longer requires fopencookie() and co.
2010-09-12 16:23:06 +02:00
Pavel Labath
55282b64d8 Config file handling changes
- changed default config filenames, to avoid conflict with conky-1.x
- specifying "-" as config file reads from stdin
- if a user config file exists but is not readable, report an error instead of falling back to
  the system-wide config.
2010-09-12 14:01:34 +02:00
Pavel Labath
cccbf3b4c0 Add a CMAKE variable for the patch program 2010-06-13 19:09:07 +02:00
Pavel Labath
c80deb2d69 Fix "wrong type of arguments for cairo_set_dash", sf.net #3014648
I am not particularly proud of this solution. If you have a better one, feel free to implement
it.
2010-06-13 18:57:07 +02:00
Pavel Labath
2232641b8e Change the >=gcc-4.4 test from warning into an error
This reverts commit 37355406a8.
2010-06-10 19:19:49 +02:00
Nikolas Garofil
54d4e6518d Add support for out_to_http 2010-06-04 14:41:12 +02:00
Nikolas Garofil
a9b12b3074 Make building with RSS possible 2010-05-06 01:46:07 +02:00
Nikolas Garofil
3f7ecb3a26 Add support for $irc 2010-04-30 19:32:42 +02:00
Nikolas Garofil
aada8c4d26 ical support default off and block compiling if it's requested but not available 2010-04-27 21:14:32 +02:00
Nikolas Garofil
a13c56a7a5 Add support for $ical 2010-04-27 16:42:21 +02:00
Nikolas Garofil
7065ba251e Make it possible for cmake to find mysql.h 2010-04-18 20:30:10 +02:00
Nikolas Garofil
a6e63bcaa0 Add support for MySQL
Warning: Altough the current version works (for me),
the syntax of the configoptions and vars will probably change
over time. Contact me if you have ideas.

The following is a example of how you can use it now:

mysql_host someserver.com
mysql_db my_database
mysql_user loginname
mysql_password "s3cr3t"
TEXT
${mysql select var1 from some_table}${mysql select var2 from some_table}
2010-04-18 17:52:41 +02:00
Nikolas Garofil
08ea4391d4 Deprecated max_specials, made it unlimited by changing the data structure for specials 2010-04-14 16:59:50 +02:00
Nikolas Garofil
d91214e290 Fix using the wireless-vars 2010-02-20 17:59:51 +01:00
Nikolas Garofil
0627946ca1 Make hiding ncurses memleaks optional and disable it by default 2010-02-19 13:21:40 +01:00
Nikolas Garofil
4793655974 Link with devstat when building in FreeBSD 2010-02-14 21:35:13 +01:00
Nikolas Garofil
da4e9349f8 Link with kvm when building in FreeBSD 2010-02-14 20:20:45 +01:00
Nikolas Garofil
96bf9d0d72 Also set curl when rss is requested 2010-02-09 19:14:14 +01:00
Nikolas Garofil
0c19282eee Let cmake check for and include xext when building with xdbe 2010-01-25 00:08:06 +01:00
Pavel Labath
6e89ed7e2d Get $iconv vars working again 2010-01-20 18:17:30 +01:00
Pavel Labath
926af1041e Make building with LUA and MAINTAINER_MODE work
apparently, it was just a name conflict.
2010-01-19 16:33:05 +01:00
Nikolas Garofil
122f82ff16 disable dependencies in UI when disabling X11 2010-01-17 20:40:40 +01:00
Nikolas Garofil
e840dcdd5b When building without x11, also disable xdamage, own_window, xdbe, xft, imlib2, argb and remove x11-related options from the builtin config 2010-01-17 16:15:59 +01:00
Nikolas Garofil
287c38a0b9 Added support for builtin config in cmake 2010-01-17 03:00:51 +01:00
Pavel Labath
0f3a56ccbe An attempt at making wifi work
Someone who has iwlib should really test this.
2010-01-11 01:13:42 +01:00
Pavel Labath
47509b38bd An attempt at making lua bindings work 2010-01-11 00:35:22 +01:00
Phil Sutter
b4a73e166e add missing BUILD_IBM define to config.h.in 2010-01-10 22:01:04 +01:00
Brenden Matthews
7e78f036f0 Use consistent naming for build option macros.
Probably have broken some build features with this commit.
2010-01-06 18:39:44 -08:00
Pavel Labath
79be66b15a Fix building of iostats. 2010-01-06 21:11:58 +01:00
Brenden Matthews
7ff762e4af Resolve issues with timed_thread rewrite WIP. 2010-01-04 19:21:12 -08:00
Brenden Matthews
620e9876a4 C++ conversions WIP.
Currently stuck on an issue with g++ and using '%lli' with printf/scanf.
2010-01-04 19:21:12 -08:00
Brenden Matthews
01ac47d082 Implement timed_thread rewrite in C++.
Rewrote timed_thread library in C++ using fancy new C++0x features.  The
main reason for this is to phase out poor encapsulation and C-style
function pointers.
2010-01-04 19:21:12 -08:00
Brenden Matthews
58cbbf57a3 Coulpe minor build fixes. 2010-01-04 18:43:40 -08:00
Cesare Tirabassi
c73f320798 There is no need to have glib for rss 2010-01-03 18:46:09 +01:00
Ben Kibbey
29f833ee05 Fix nvidia support with CMake.
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-01-02 11:49:43 -08:00
Brenden Matthews
2951f5571c Add missing copyright notices. 2010-01-01 15:49:41 -08:00
Brenden Matthews
cf9e498b24 Update copyright notices. 2010-01-01 15:46:17 -08:00
Brenden Matthews
1ff8b3ee4b CMake support for 6c5fa44660. 2010-01-01 15:06:54 -08:00
Brenden Matthews
b3270cd8ba Apply 42d2e90ba1 to cmake. 2010-01-01 14:54:56 -08:00
Brenden Matthews
d7f008e868 tolua++ has different naming convention on FreeBSD 2010-01-01 14:33:42 -08:00
Brenden Matthews
d92c2e6dab Minor CMake fixes.
- Only enable pedantic flags with MAINTAINER_MODE enabled
 - Hide APP_* vars.
2010-01-01 13:50:12 -08:00
Brenden Matthews
4d7d2b27f3 Minor build fix. 2010-01-01 13:45:16 -08:00
Phil Sutter
0d2770ab33 fix check for iwlib and output some more detailed errors 2009-12-28 03:02:06 +01:00
Cesare Tirabassi
7adbbc5198 Fix WEATHER not defined for BUILD_WEATHER_XOAP 2009-12-20 15:07:43 +01:00
Phil Sutter
37355406a8 conky compiles fine here with gcc-4.3.4 2009-12-20 02:23:25 +01:00
Phil Sutter
2c83899458 cmake: fix obvious mistake in config.h.in 2009-12-20 02:23:25 +01:00
Phil Sutter
243a234352 cmake: fix for imlib2
- on my system, libImlib2.so is written with a capitalised I
- IMLIB2_LIB is empty, but IMLIB2_LDFLAGS contains what we need
2009-12-20 02:23:25 +01:00
Cesare Tirabassi
52e3cd36c4 The tolua++ helper is called tolua++5.1 on some distro 2009-12-20 00:58:40 +01:00
Brenden Matthews
c72ad5ddc6 Add missing CMake file. 2009-12-19 11:44:40 -08:00
Brenden Matthews
4d0924f6b0 More work on CMake build system (possibly finished?). 2009-12-19 11:39:16 -08:00
Brenden Matthews
fb33419cd4 Add CMake build support for Lua bindings. 2009-12-17 19:46:26 -08:00
Brenden Matthews
51ff65ede0 Merge branch 'master' of git.omp.am:/home/omp/git/conky 2009-12-17 18:52:05 -08:00
Pavel Labath
95f1930220 Set -std compiler options for all build types, not just debug 2009-12-11 18:08:19 +01:00
Brenden Matthews
48e834d1eb More work on CMake build system. 2009-12-10 20:37:56 -08:00
Brenden Matthews
01c01671e5 Require GCC >=4.4. 2009-12-10 15:19:45 -08:00
Brenden Matthews
0b3a4621ad Fix CMake stuff for weather. 2009-12-09 16:12:11 -08:00
Brenden Matthews
6944cba54e Move cmake files around, add -D_GNU_SOURCE. 2009-12-09 15:56:07 -08:00