ports/59415: [NEW PORT] gdesklets-sysinfo-0.21.2
Franz Klammer
klammer at webonaut.com
Tue Nov 18 11:55:55 UTC 2003
sorry! 2 file will not be installed; AUTHORS and ChangeLog.
here the corrected shar-file.
--- gdesklets-sysinfo.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# gdesklets-sysinfo
# gdesklets-sysinfo/Makefile
# gdesklets-sysinfo/distinfo
# gdesklets-sysinfo/pkg-descr
# gdesklets-sysinfo/pkg-message
# gdesklets-sysinfo/pkg-plist
# gdesklets-sysinfo/files
# gdesklets-sysinfo/files/patch-Install_SysInfo_Sensor.bin
# gdesklets-sysinfo/files/postbuild-patch-__init__.py
#
echo c - gdesklets-sysinfo
mkdir -p gdesklets-sysinfo > /dev/null 2>&1
echo x - gdesklets-sysinfo/Makefile
sed 's/^X//' >gdesklets-sysinfo/Makefile << 'END-of-gdesklets-sysinfo/Makefile'
X# New ports collection makefile for: gdesklets-sysinfo
X# Date created: 13 November 2003
X# Whom: Franz Klammer <klammer at webonaut.com>
X#
X# $FreeBSD:$
X#
X
XPORTNAME= sysinfo
XPORTVERSION= 0.21.2
XCATEGORIES= sysutils gnome
XMASTER_SITES= http://gdesklets.gnomedesktop.org/files/
XPKGNAMEPREFIX= gdesklets-
XDISTNAME= SysInfo-${PORTVERSION}
XEXTRACT_SUFX= .tar.bz2
X
XMAINTAINER= klammer at webonaut.com
XCOMMENT= Desklet shows various information about your system
X
XRUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets
X
X#USE_BZIP2= yes
XUSE_X_PREFIX= yes
XNAME= SysInfo
XWRKSRC= ${WRKDIR}/${NAME}
X
Xpost-extract:
X @${MV} ${WRKDIR}/Install_${NAME}_Sensor.bin ${WRKSRC}/
X
Xdo-build:
X @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC}
X @${PATCH} -sp0 < ${PATCHDIR}/postbuild-patch-__init__.py
X @${FIND} ${WRKSRC} -name '*.orig' -delete
X
Xdo-install:
X @${MKDIR} ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/gfx
X @${MKDIR} ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/gfx
X @${INSTALL_DATA} ${WRKSRC}/*.display ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/
X @${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/
X @${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/
X @${INSTALL_DATA} ${WRKSRC}/gfx/*.png ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/gfx/
X @${INSTALL_DATA} ${WRKSRC}/${NAME}/*.py ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/
X @${INSTALL_DATA} ${WRKSRC}/${NAME}/gfx/*.png ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/gfx/
X
Xpost-install:
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-gdesklets-sysinfo/Makefile
echo x - gdesklets-sysinfo/distinfo
sed 's/^X//' >gdesklets-sysinfo/distinfo << 'END-of-gdesklets-sysinfo/distinfo'
XMD5 (SysInfo-0.21.2.tar.bz2) = 588c0f52ee113fe8abaa384367753547
END-of-gdesklets-sysinfo/distinfo
echo x - gdesklets-sysinfo/pkg-descr
sed 's/^X//' >gdesklets-sysinfo/pkg-descr << 'END-of-gdesklets-sysinfo/pkg-descr'
XSysInfo shows various information about your system.
X
XWWW: http://gdesklets.gnomedesktop.org/
END-of-gdesklets-sysinfo/pkg-descr
echo x - gdesklets-sysinfo/pkg-message
sed 's/^X//' >gdesklets-sysinfo/pkg-message << 'END-of-gdesklets-sysinfo/pkg-message'
X##
XTo view all installed applets:
X
X ls ${PREFIX}/share/gnome/gdesklets/Displays
X
XTo use those applets:
X
X gdesklets ${PREFIX}/share/gnome/gdesklets/Displays/${name}/${name}.display
X
XReplace ${name} with the correct name of the applets you want to use.
X
XNOTE: Be sure to login as your user when you use the gdesklets command,
X as the configuration will be stored in the ~/.gdesklets/ directory.
X##
END-of-gdesklets-sysinfo/pkg-message
echo x - gdesklets-sysinfo/pkg-plist
sed 's/^X//' >gdesklets-sysinfo/pkg-plist << 'END-of-gdesklets-sysinfo/pkg-plist'
Xshare/gnome/gdesklets/Displays/SysInfo/gfx/bg.png
Xshare/gnome/gdesklets/Displays/SysInfo/gfx/border-left.png
Xshare/gnome/gdesklets/Displays/SysInfo/gfx/border-right.png
Xshare/gnome/gdesklets/Displays/SysInfo/gfx/border-top.png
Xshare/gnome/gdesklets/Displays/SysInfo/gfx/border-topleft.png
Xshare/gnome/gdesklets/Displays/SysInfo/gfx/gauge-bg.png
Xshare/gnome/gdesklets/Displays/SysInfo/gfx/gauge.png
Xshare/gnome/gdesklets/Displays/SysInfo/gfx/gauge_h.png
Xshare/gnome/gdesklets/Displays/SysInfo/sysinfo.display
Xshare/gnome/gdesklets/Displays/SysInfo/AUTHORS
Xshare/gnome/gdesklets/Displays/SysInfo/ChangeLog
Xshare/gnome/gdesklets/Sensors/SysInfo/__init__.py
Xshare/gnome/gdesklets/Sensors/SysInfo/gfx/SysInfo.png
Xshare/gnome/gdesklets/Sensors/SysInfo/gfx/boot.png
Xshare/gnome/gdesklets/Sensors/SysInfo/gfx/cpu.png
Xshare/gnome/gdesklets/Sensors/SysInfo/gfx/hdd.png
Xshare/gnome/gdesklets/Sensors/SysInfo/gfx/memory.png
Xshare/gnome/gdesklets/Sensors/SysInfo/gfx/network.png
X at dirrm share/gnome/gdesklets/Sensors/SysInfo/gfx
X at dirrm share/gnome/gdesklets/Sensors/SysInfo
X at dirrm share/gnome/gdesklets/Displays/SysInfo/gfx
X at dirrm share/gnome/gdesklets/Displays/SysInfo
END-of-gdesklets-sysinfo/pkg-plist
echo c - gdesklets-sysinfo/files
mkdir -p gdesklets-sysinfo/files > /dev/null 2>&1
echo x - gdesklets-sysinfo/files/patch-Install_SysInfo_Sensor.bin
sed 's/^X//' >gdesklets-sysinfo/files/patch-Install_SysInfo_Sensor.bin << 'END-of-gdesklets-sysinfo/files/patch-Install_SysInfo_Sensor.bin'
X--- Install_SysInfo_Sensor.bin.orig Thu Nov 13 17:37:51 2003
X+++ Install_SysInfo_Sensor.bin Thu Nov 13 17:38:37 2003
X@@ -75,15 +75,9 @@
X else:
X cmd = "mkdir -p %(destination)s; cd %(destination)s; " \
X "LANG=C tar -xzvf %(tmp)s 2>&1"
X- fail, out = commands.getstatusoutput(cmd % vars())
X+ commands.getstatusoutput(cmd % vars())
X os.unlink(tmp)
X
X- if (fail):
X- if (no_message): print ERROR_TAR + out
X- else: message(ERROR_TAR + out, "error")
X- sys.exit(1)
X-
X- print out
X if (not list_only):
X if (no_message): print SUCCESS
X else: message(SUCCESS, "info")
END-of-gdesklets-sysinfo/files/patch-Install_SysInfo_Sensor.bin
echo x - gdesklets-sysinfo/files/postbuild-patch-__init__.py
sed 's/^X//' >gdesklets-sysinfo/files/postbuild-patch-__init__.py << 'END-of-gdesklets-sysinfo/files/postbuild-patch-__init__.py'
X--- work/SysInfo/SysInfo/__init__.py.orig Fri Sep 12 22:38:38 2003
X+++ work/SysInfo/SysInfo/__init__.py Mon Nov 17 10:50:07 2003
X@@ -129,7 +129,8 @@
X signal.set("key2[%(index)d]" % vars(), _("Clock:"))
X signal.set("value2[%(index)d]" % vars(), self.__cpu_speed)
X signal.set("key3[%(index)d]" % vars(), _("Cache:"))
X- signal.set("value3[%(index)d]" % vars(), self.__cpu_cache)
X+ #signal.set("value3[%(index)d]" % vars(), self.__cpu_cache)
X+ signal.set("value3[%(index)d]" % vars(), _("unknown"))
X signal.set("fill[%(index)d]" % vars(), load)
X signal.set("show1[%(index)d]" % vars(), 1)
X signal.set("show2[%(index)d]" % vars(), 1)
X@@ -203,8 +204,8 @@
X l5 = lib.sys.get_load_avg_5m()
X l15 = lib.sys.get_load_avg_15m()
X tasks, running = lib.sys.get_tasks()
X- start = lib.sys.get_sysstart()
X- d_start, h_start, m_start, s_start = lib.convert.secs_to_dhms(start)
X+ #start = lib.sys.get_sysstart()
X+ #d_start, h_start, m_start, s_start = lib.convert.secs_to_dhms(start)
X uptime = lib.sys.get_uptime()
X d, h, m, s = lib.convert.secs_to_dhms(uptime)
X idletime = lib.sys.get_idletime()
X@@ -216,9 +217,10 @@
X signal.set("key1[%(index)d]" % vars(), _("Load:"))
X signal.set("value1[%(index)d]" % vars(), str(l1) + " " + str(l5) + " " + str(l15))
X signal.set("key2[%(index)d]" % vars(), _("Sysstart:"))
X- signal.set("value2[%(index)d]" % vars(), str(h_start) + ":" +
X- str(m_start) + ":" +
X- str(s_start))
X+ signal.set("value2[%(index)d]" % vars(), _("unknown"))
X+ #signal.set("value2[%(index)d]" % vars(), str(h_start) + ":" +
X+ # str(m_start) + ":" +
X+ # str(s_start))
X signal.set("key3[%(index)d]" % vars(), _("Uptime:"))
X signal.set("value3[%(index)d]" % vars(), str(d) + "d " + \
X str(h) + "h " + str(m) + "m ")
END-of-gdesklets-sysinfo/files/postbuild-patch-__init__.py
exit
--- gdesklets-sysinfo.shar ends here ---
More information about the freebsd-ports-bugs
mailing list