pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/conky Initial import of conky, version 1.9.0,...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/14be36d081cf
branches:  trunk
changeset: 603781:14be36d081cf
user:      imil <imil%pkgsrc.org@localhost>
date:      Sun May 13 08:42:20 2012 +0000

description:
Initial import of conky, version 1.9.0, into the NetBSD Packages Collection.

Conky is a system monitor for X originally based on torsmo. Since
its inception, Conky has changed significantly from its predecessor,
while maintaining simplicity and configurability.  Conky can display
just about anything, either on your root desktop or in its own
window.  Not only does Conky have many built-in objects, it can
also display just about any piece of information by using scripts
and other external programs.

Conky has more than 250 built in objects, including support for a
plethora of OS stats (uname, uptime, CPU usage, mem usage, disk
usage, "top" like process stats, and network monitoring, just to
name a few), built in IMAP and POP3 support, built in support for
many popular music players (MPD, XMMS2, BMPx, Audacious), and much
much more.  Conky can display this info either as text, or using
simple progress bars and graph widgets, with different fonts
and colours.

diffstat:

 sysutils/conky/DESCR                            |    16 +
 sysutils/conky/Makefile                         |    53 +
 sysutils/conky/PLIST                            |     8 +
 sysutils/conky/distinfo                         |    15 +
 sysutils/conky/files/conkyrc                    |    78 +
 sysutils/conky/patches/patch-configure.ac       |    58 +
 sysutils/conky/patches/patch-data_Makefile.am   |    15 +
 sysutils/conky/patches/patch-src_Makefile.am    |    19 +
 sysutils/conky/patches/patch-src_config.h.in    |    36 +
 sysutils/conky/patches/patch-src_conky.c        |   114 ++
 sysutils/conky/patches/patch-src_core.c         |    71 +
 sysutils/conky/patches/patch-src_fs.c           |    69 +
 sysutils/conky/patches/patch-src_netbsd.c       |  1017 +++++++++++++++++++++++
 sysutils/conky/patches/patch-src_netbsd.h       |    36 +
 sysutils/conky/patches/patch-src_text__object.h |    25 +
 15 files changed, 1630 insertions(+), 0 deletions(-)

diffs (truncated from 1690 to 300 lines):

diff -r 9aefd89163fa -r 14be36d081cf sysutils/conky/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/conky/DESCR      Sun May 13 08:42:20 2012 +0000
@@ -0,0 +1,16 @@
+Conky is a system monitor for X originally based on torsmo. Since
+its inception, Conky has changed significantly from its predecessor,
+while maintaining simplicity and configurability.  Conky can display
+just about anything, either on your root desktop or in its own
+window.  Not only does Conky have many built-in objects, it can
+also display just about any piece of information by using scripts
+and other external programs.
+
+Conky has more than 250 built in objects, including support for a
+plethora of OS stats (uname, uptime, CPU usage, mem usage, disk
+usage, "top" like process stats, and network monitoring, just to
+name a few), built in IMAP and POP3 support, built in support for
+many popular music players (MPD, XMMS2, BMPx, Audacious), and much
+much more.  Conky can display this info either as text, or using
+simple progress bars and graph widgets, with different fonts
+and colours.
diff -r 9aefd89163fa -r 14be36d081cf sysutils/conky/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/conky/Makefile   Sun May 13 08:42:20 2012 +0000
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/05/13 08:42:20 imil Exp $
+#
+
+DISTNAME=      conky-1.9.0
+CATEGORIES=    sysutils
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=conky/}
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    imil%NetBSD.org@localhost
+HOMEPAGE=      http://conky.sourceforge.net/
+COMMENT=       Free, light-weight system monitor for X
+LICENSE=       gnu-gpl-v3
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+USE_TOOLS+=    pkg-config aclocal autoconf autoheader automake
+
+CONFIGURE_ARGS+=       --enable-imlib2 --enable-lua-imlib2
+CONFIGURE_ARGS+=       --enable-lua-cairo
+CONFIGURE_ARGS+=       --enable-curl --enable-rss
+CONFIGURE_ARGS+=       --enable-weather-metar --enable-weather-xoap
+
+EGDIR=         share/examples/conky
+OWN_DIRS=      ${PKG_SYSCONFDIR}/conky
+CONF_FILES=    ${EGDIR}/conky.conf ${PKG_SYSCONFDIR}/conky/conky.conf
+CONF_FILES+=   ${EGDIR}/conky_no_x11.conf ${PKG_SYSCONFDIR}/conky/conky_no_x11.conf
+
+.include "../../mk/bsd.prefs.mk"
+
+# conky segfaults on system's curses
+PREFER_PKGSRC+=        ncurses
+
+pre-configure:
+       set -e; cd ${WRKSRC};   \
+       aclocal; autoheader; automake -a --foreign -i; autoconf
+
+post-install:
+       ${INSTALL_DATA} files/conkyrc ${DESTDIR}${PREFIX}/${EGDIR}
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../devel/tolua++/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXdamage/buildlink3.mk"
+.include "../../x11/libXft/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/imlib2/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9aefd89163fa -r 14be36d081cf sysutils/conky/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/conky/PLIST      Sun May 13 08:42:20 2012 +0000
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2012/05/13 08:42:20 imil Exp $
+bin/conky
+lib/conky/libcairo.la
+lib/conky/libimlib2.la
+man/man1/conky.1
+share/examples/conky/conky.conf
+share/examples/conky/conky_no_x11.conf
+share/examples/conky/conkyrc
diff -r 9aefd89163fa -r 14be36d081cf sysutils/conky/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/conky/distinfo   Sun May 13 08:42:20 2012 +0000
@@ -0,0 +1,15 @@
+$NetBSD: distinfo,v 1.1.1.1 2012/05/13 08:42:20 imil Exp $
+
+SHA1 (conky-1.9.0.tar.bz2) = 2069cbdb8e7224fcbf3c6b1ddebf64a51634b4cc
+RMD160 (conky-1.9.0.tar.bz2) = 2df0e60d4236ed667bdae876e11ba28d05914e25
+Size (conky-1.9.0.tar.bz2) = 626555 bytes
+SHA1 (patch-configure.ac) = 3ccad4907e84145ea7c4cc8c7eba81ed5ac48185
+SHA1 (patch-data_Makefile.am) = af8df32076b8a389ee98e2550342dbb343f7bff3
+SHA1 (patch-src_Makefile.am) = f4e79c0f08a0886a061449b9a8a578173cda90db
+SHA1 (patch-src_config.h.in) = 31aa9cd4bd4ab775e6da633f86415ee8f5383538
+SHA1 (patch-src_conky.c) = e4c9173661cca437af0febbcae94eec72dc0ea4a
+SHA1 (patch-src_core.c) = a64ff7cb05d7b6b62aea41e486c0a719e2c93faf
+SHA1 (patch-src_fs.c) = 104fd3788f319689026702d6a149410184072e24
+SHA1 (patch-src_netbsd.c) = 33da80a5f26fd47590a42bb7dd08f1db9f5f9a00
+SHA1 (patch-src_netbsd.h) = 25f9c66eede8e4aaef475d6afcbf79440ec8d7bb
+SHA1 (patch-src_text__object.h) = 7f7e3684e21f9618a8ede37525f4a48f47a92050
diff -r 9aefd89163fa -r 14be36d081cf sysutils/conky/files/conkyrc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/conky/files/conkyrc      Sun May 13 08:42:20 2012 +0000
@@ -0,0 +1,78 @@
+# Inspired from http://ebupof.deviantart.com/art/My-Conky-Config-1-3-60095106
+
+background no
+font Sans:size=8
+use_xft yes
+xftalpha 0.9
+update_interval 3.0
+total_run_times 0
+own_window no
+own_window_type desktop
+own_window_transparent yes
+own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
+double_buffer yes
+minimum_size 220 5
+maximum_width 220
+draw_shades yes
+draw_outline no
+draw_borders no
+draw_graph_borders yes
+default_color white
+default_shade_color black
+default_outline_color green
+alignment top_right
+gap_x 12
+gap_y 35
+no_buffers yes
+uppercase no
+cpu_avg_samples 2
+override_utf8_locale no
+uppercase yes # set to yes if you want all text to be in uppercase
+
+TEXT
+${color white}SYSTEM ${hr 1}${color}
+
+Hostname: $alignr$nodename
+Kernel: $alignr$kernel
+Uptime: $alignr$uptime
+Temp: ${alignr}${acpitemp}C
+
+CPU: ${alignr}${freq} MHz
+Processes: ${alignr}$processes ($running_processes running)
+Load: ${alignr}$loadavg
+
+CPU1 ${alignr}${cpu cpu1}%
+${cpugraph cpu1 10,100}
+CPU2 ${alignr}${cpu cpu2}%
+${cpugraph cpu2 10,100}
+
+Ram ${alignr}$mem / $memmax ($memperc%)
+${membar 4}
+swap ${alignr}$swap / $swapmax ($swapperc%)
+${swapbar 4}
+
+Highest CPU $alignr CPU% MEM%
+${top name 1}$alignr${top cpu 1}${top mem 1}
+${top name 2}$alignr${top cpu 2}${top mem 2}
+${top name 3}$alignr${top cpu 3}${top mem 3}
+
+Highest MEM $alignr CPU% MEM%
+${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
+${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
+${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
+
+${color white}Filesystem ${hr 1}${color}
+
+Root: ${alignr}${fs_free /} / ${fs_size /}
+${fs_bar 4 /}
+
+${color white}NETWORK ${hr 1}${color}
+
+Down ${downspeed ath0} k/s ${alignr}Up ${upspeed ath0} k/s
+${downspeedgraph ath0 25,107} ${alignr}${upspeedgraph ath0 25,107}
+Total ${totaldown ath0} ${alignr}Total ${totalup ath0}
+
+${color white}BATTERY ${hr 1}${color}
+
+${alignr}${battery}
+Remaining: ${alignr}${battery_time}
diff -r 9aefd89163fa -r 14be36d081cf sysutils/conky/patches/patch-configure.ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/conky/patches/patch-configure.ac Sun May 13 08:42:20 2012 +0000
@@ -0,0 +1,58 @@
+$NetBSD: patch-configure.ac,v 1.1.1.1 2012/05/13 08:42:20 imil Exp $
+
+Enable NetBSD as a suitable platform.
+
+--- configure.ac.orig  2012-05-03 21:47:32.000000000 +0000
++++ configure.ac
+@@ -62,10 +62,11 @@ case $uname in
+     WANT_DEVSTAT=yes
+     WANT_OPTRESET=yes
+     ;;
+-#  NetBSD*)
+-#    WANT_KVM=yes
+-#    WANT_OSSLIB=yes
+-#    ;;
++  NetBSD*)
++    WANT_KVM=yes
++    WANT_OSSLIB=yes
++    WANT_PROPLIB=yes
++    ;;
+ 
+   OpenBSD*)
+     WANT_KVM=yes
+@@ -87,7 +88,7 @@ esac
+ AM_CONDITIONAL(BUILD_LINUX, test x$uname = xLinux)
+ #AM_CONDITIONAL(BUILD_SOLARIS, test x$uname = xSunOS)
+ AM_CONDITIONAL(BUILD_FREEBSD, test x$uname = xFreeBSD -o x$uname = xGNU/kFreeBSD)
+-#AM_CONDITIONAL(BUILD_NETBSD, test x$uname = xNetBSD)
++AM_CONDITIONAL(BUILD_NETBSD, test x$uname = xNetBSD)
+ AM_CONDITIONAL(BUILD_OPENBSD, test x$uname = xOpenBSD)
+ 
+ BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date)
+@@ -734,6 +735,17 @@ if test x$WANT_KVM = xyes; then
+ fi
+ 
+ dnl
++dnl PROPLIB for NetBSD
++dnl
++
++if test x$WANT_PROPLIB = xyes; then
++  AC_CHECK_LIB(prop, prop_dictionary_create,
++  conky_LIBS="$conky_LIBS -lprop",
++  AC_MSG_ERROR([Could not find prop_dictionary_create in -lprop.])
++  )
++fi
++
++dnl
+ dnl optreset
+ dnl
+ 
+@@ -784,7 +796,7 @@ dnl
+ dnl Some headers
+ dnl
+ 
+-AC_CHECK_HEADERS([signal.h unistd.h sys/utsname.h sys/stat.h linux/soundcard.h alsa/asoundlib.h dirent.h mcheck.h \
++AC_CHECK_HEADERS([signal.h unistd.h sys/utsname.h sys/stat.h linux/soundcard.h alsa/asoundlib.h dirent.h mcheck.h sys/statvfs.h \
+       sys/statfs.h sys/param.h pthread.h semaphore.h assert.h errno.h time.h])
+ AC_CHECK_HEADERS([sys/mount.h], [], [],
+      [#ifdef HAVE_SYS_PARAM_H
diff -r 9aefd89163fa -r 14be36d081cf sysutils/conky/patches/patch-data_Makefile.am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/conky/patches/patch-data_Makefile.am     Sun May 13 08:42:20 2012 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-data_Makefile.am,v 1.1.1.1 2012/05/13 08:42:20 imil Exp $
+
+Install config into example directory.
+
+--- data/Makefile.am.orig      2010-10-20 00:32:27.000000000 +0000
++++ data/Makefile.am
+@@ -25,7 +25,7 @@
+ # along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ #
+ 
+-configdir = ${sysconfdir}/conky
++configdir = ${prefix}/share/examples/conky
+ dist_config_DATA = conky.conf conky_no_x11.conf
+ 
+ # vi:set ts=4 sw=4 noet ai nocindent syntax=automake:
diff -r 9aefd89163fa -r 14be36d081cf sysutils/conky/patches/patch-src_Makefile.am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/conky/patches/patch-src_Makefile.am      Sun May 13 08:42:20 2012 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_Makefile.am,v 1.1.1.1 2012/05/13 08:42:20 imil Exp $
+
+Enable NetBSD as a suitable platform.
+
+--- src/Makefile.am.orig       2012-05-03 21:08:27.000000000 +0000
++++ src/Makefile.am
+@@ -119,9 +119,9 @@ endif
+ if BUILD_FREEBSD
+ optional_sources += $(freebsd)
+ endif
+-#if BUILD_NETBSD
+-#optional_sources += $(netbsd)
+-#endif
++if BUILD_NETBSD
++optional_sources += $(netbsd)
++endif
+ if BUILD_OPENBSD
+ optional_sources += $(openbsd)
+ endif
diff -r 9aefd89163fa -r 14be36d081cf sysutils/conky/patches/patch-src_config.h.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/conky/patches/patch-src_config.h.in      Sun May 13 08:42:20 2012 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-src_config.h.in,v 1.1.1.1 2012/05/13 08:42:20 imil Exp $
+



Home | Main Index | Thread Index | Old Index