diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-08-07 04:43:19 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-08-07 04:43:19 +0800 |
commit | 0b084bcd09a6dda9e71db7da2b802e18c6bd55ab (patch) | |
tree | 0e16b8350c1e3a2c0ef149566a0bf336475af419 /sysutils | |
parent | 664243d83ec44a146d7cfa4b00f8426084630860 (diff) | |
download | marcuscom-ports-0b084bcd09a6dda9e71db7da2b802e18c6bd55ab.tar marcuscom-ports-0b084bcd09a6dda9e71db7da2b802e18c6bd55ab.tar.gz marcuscom-ports-0b084bcd09a6dda9e71db7da2b802e18c6bd55ab.tar.bz2 marcuscom-ports-0b084bcd09a6dda9e71db7da2b802e18c6bd55ab.tar.lz marcuscom-ports-0b084bcd09a6dda9e71db7da2b802e18c6bd55ab.tar.xz marcuscom-ports-0b084bcd09a6dda9e71db7da2b802e18c6bd55ab.tar.zst marcuscom-ports-0b084bcd09a6dda9e71db7da2b802e18c6bd55ab.zip |
share/gnome/ -> share/.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9363 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils')
38 files changed, 1718 insertions, 0 deletions
diff --git a/sysutils/gai-leds/Makefile b/sysutils/gai-leds/Makefile new file mode 100644 index 000000000..bb0c840f7 --- /dev/null +++ b/sysutils/gai-leds/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: gai-leds +# Date created: 2007-06-12 +# Whom: Douglas Thrift <douglas@douglasthrift.net> +# +# $FreeBSD$ +# + +PORTNAME= gai-leds +PORTVERSION= 0.6 +PORTREVISION= 1 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= gai + +MAINTAINER= douglas@douglasthrift.net +COMMENT= A GAI applet that displays the keyboard status leds + +LIB_DEPENDS= gai:${PORTSDIR}/x11-toolkits/gai + +GNU_CONFIGURE= yes +USE_XLIB= yes +USE_BZIP2= yes +USE_GNOME= gnomehack gnomeprefix + +post-patch: + @${REINPLACE_CMD} -e \ + 's|\(GNOMEDIR=\).*|\1"${PREFIX}"|; \ + s|:GNOME_|:GAI-|g; \ + s|\(@APPLET_NAME@\)\(Applet\)|\1-\2|g; \ + s|\(Applet\)_\(Factory\)|\1-\2|' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + 's|lib\(/bonobo\)|libdata\1|; \ + s|-O3||' \ + ${WRKSRC}/Makefile.in + +.include <bsd.port.mk> diff --git a/sysutils/gai-leds/distinfo b/sysutils/gai-leds/distinfo new file mode 100644 index 000000000..8e030aad4 --- /dev/null +++ b/sysutils/gai-leds/distinfo @@ -0,0 +1,3 @@ +MD5 (gai-leds-0.6.tar.bz2) = 6c60ed40ec69faae477a24867b50ab43 +SHA256 (gai-leds-0.6.tar.bz2) = d2088aa1da8b4a6545ea111d4e9df02014fad38d4fed7a7f6178e25437a9c524 +SIZE (gai-leds-0.6.tar.bz2) = 40383 diff --git a/sysutils/gai-leds/pkg-descr b/sysutils/gai-leds/pkg-descr new file mode 100644 index 000000000..0861412fb --- /dev/null +++ b/sysutils/gai-leds/pkg-descr @@ -0,0 +1,3 @@ +GAI Leds is a GAI applet that displays the keyboard status leds. + +WWW: http://gai.sourceforge.net/applets.html diff --git a/sysutils/gai-leds/pkg-plist b/sysutils/gai-leds/pkg-plist new file mode 100644 index 000000000..a56628e19 --- /dev/null +++ b/sysutils/gai-leds/pkg-plist @@ -0,0 +1,12 @@ +bin/gai-leds +libdata/bonobo/servers/GNOME_gai-ledsApplet.server +share/pixmaps/gai-leds-icon.png +share/pixmaps/gai-leds/capslock_off.png +share/pixmaps/gai-leds/capslock_on.png +share/pixmaps/gai-leds/ledsbg_horz.png +share/pixmaps/gai-leds/ledsbg_vert.png +share/pixmaps/gai-leds/numlock_off.png +share/pixmaps/gai-leds/numlock_on.png +share/pixmaps/gai-leds/scrollock_off.png +share/pixmaps/gai-leds/scrollock_on.png +@dirrm share/pixmaps/gai-leds diff --git a/sysutils/gnomebaker/Makefile b/sysutils/gnomebaker/Makefile new file mode 100644 index 000000000..3fdef2f66 --- /dev/null +++ b/sysutils/gnomebaker/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: gnomebaker +# Date created: 2005-02-20 +# Whom: Dominique Goncalves <dominique.goncalves@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= gnomebaker +PORTVERSION= 0.6.1 +PORTREVISION= 4 +CATEGORIES= sysutils gnome +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= gnomebaker +DIST_SUBDIR= gnome2 + +MAINTAINER= dominique.goncalves@gmail.com +COMMENT= A CD/DVD recording GUI for Gnome + +OPTIONS= DVD "Enable DVD support" off \ + CJK "Use cdrtools-cjk instead of cdrtools" off + +USE_XLIB= yes +USE_GNOME= gnomeprefix gnomehack libgnomeui desktopfileutils +USE_CDRTOOLS= yes +GNU_CONFIGURE= yes +USE_GMAKE= yes +INSTALLS_OMF= yes +USE_GCC= 3.4+ +USE_GETTEXT= yes +USE_GSTREAMER= vorbis mp3 flac +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib -export-dynamic" + +.include <bsd.port.pre.mk> + +RUN_DEPENDS+= cdrdao:${PORTSDIR}/sysutils/cdrdao + +.if defined(WITH_DVD) +RUN_DEPENDS+= growisofs:${PORTSDIR}/sysutils/dvd+rw-tools +.endif + +post-install: + @-update-desktop-database + +.include <bsd.port.post.mk> diff --git a/sysutils/gnomebaker/distinfo b/sysutils/gnomebaker/distinfo new file mode 100644 index 000000000..4f8a5a325 --- /dev/null +++ b/sysutils/gnomebaker/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome2/gnomebaker-0.6.1.tar.gz) = 5ddffd4ae02417a3fd91b08951e7f434 +SHA256 (gnome2/gnomebaker-0.6.1.tar.gz) = bca2306042405779881bd72fb4824c93ccd79328a811f52b3dcd037b01d3b129 +SIZE (gnome2/gnomebaker-0.6.1.tar.gz) = 1235841 diff --git a/sysutils/gnomebaker/pkg-descr b/sysutils/gnomebaker/pkg-descr new file mode 100644 index 000000000..f1b402c70 --- /dev/null +++ b/sysutils/gnomebaker/pkg-descr @@ -0,0 +1,22 @@ +Gnomebaker is a gnome cd/dvd burn program. It can: + + * Create data cds + * Blank rewritable disks + * Copy data cds + * Copy audio cds + * Burn existing cd iso images + * Drag and drop to create data cds (including DnD to and from nautilus) + * Create audio cds from existing wavs, mp3, flac and oggs + * Integrate with gconf for storage of application settings + * Burn DVDs. + * Supports multisession burning + * Blank/Format DVDs + * Burn Cue/Bin files + * Burn data cds on the fly + +In the future it will also do the following and hopefully much more: + + * Create video cds from existing video and stills + * Create mixed mode cds + +WWW: http://gnomebaker.sourceforge.net/v2/ diff --git a/sysutils/gnomebaker/pkg-plist b/sysutils/gnomebaker/pkg-plist new file mode 100644 index 000000000..05708a0af --- /dev/null +++ b/sysutils/gnomebaker/pkg-plist @@ -0,0 +1,168 @@ +bin/gnomebaker +share/applications/gnomebaker.desktop +share/gnomebaker/BurnFailed.wav +share/gnomebaker/BurnOk.wav +share/gnomebaker/baker-add-dir.png +share/gnomebaker/baker-add-files.png +share/gnomebaker/baker-audio-copy.png +share/gnomebaker/baker-blank-cdrw.png +share/gnomebaker/baker-blank-dvdrw.png +share/gnomebaker/baker-burn-cd.png +share/gnomebaker/baker-cd-iso.png +share/gnomebaker/baker-cd.png +share/gnomebaker/baker-cue-image.png +share/gnomebaker/baker-data-copy.png +share/gnomebaker/baker-dvd-iso.png +share/gnomebaker/baker-import-session.png +share/gnomebaker/baker-remove-files.png +share/gnomebaker/gnomebaker-48.png +share/gnomebaker/gnomebaker.glade +share/gnomebaker/splash_2.png +share/gnomebaker/state00.png +share/gnomebaker/state01.png +share/gnomebaker/state02.png +share/gnomebaker/state03.png +share/gnomebaker/state04.png +share/gnomebaker/state05.png +share/gnomebaker/state06.png +share/gnomebaker/state07.png +share/gnomebaker/state08.png +share/gnomebaker/state09.png +share/gnomebaker/state10.png +share/gnomebaker/state11.png +share/gnomebaker/state12.png +share/gnomebaker/state13.png +share/gnome/help/gnomebaker/C/figures/gnomebaker-blank-cdrw.png +share/gnome/help/gnomebaker/C/figures/gnomebaker-burn-iso.png +share/gnome/help/gnomebaker/C/figures/gnomebaker-copy-audio-cd.png +share/gnome/help/gnomebaker/C/figures/gnomebaker-copy-data-cd.png +share/gnome/help/gnomebaker/C/figures/gnomebaker-create-audio-cd.png +share/gnome/help/gnomebaker/C/figures/gnomebaker-create-data-cd.png +share/gnome/help/gnomebaker/C/figures/gnomebaker_prefs-filebrowser.png +share/gnome/help/gnomebaker/C/figures/gnomebaker_prefs-tmp.png +share/gnome/help/gnomebaker/C/figures/gnomebaker_window.png +share/gnome/help/gnomebaker/C/gnomebaker.xml +share/gnome/help/gnomebaker/C/legal.xml +share/omf/gnomebaker/gnomebaker-C.omf +share/icons/hicolor/48x48/apps/gnomebaker-48.png +share/icons/hicolor/icon-theme.cache +share/locale/af/LC_MESSAGES/gnomebaker.mo +share/locale/az/LC_MESSAGES/gnomebaker.mo +share/locale/bg/LC_MESSAGES/gnomebaker.mo +share/locale/bo/LC_MESSAGES/gnomebaker.mo +share/locale/ca/LC_MESSAGES/gnomebaker.mo +share/locale/cs/LC_MESSAGES/gnomebaker.mo +share/locale/da/LC_MESSAGES/gnomebaker.mo +share/locale/de/LC_MESSAGES/gnomebaker.mo +share/locale/de_AT/LC_MESSAGES/gnomebaker.mo +share/locale/de_CH/LC_MESSAGES/gnomebaker.mo +share/locale/de_DE/LC_MESSAGES/gnomebaker.mo +share/locale/el/LC_MESSAGES/gnomebaker.mo +share/locale/en/LC_MESSAGES/gnomebaker.mo +share/locale/en_AU/LC_MESSAGES/gnomebaker.mo +share/locale/en_CA/LC_MESSAGES/gnomebaker.mo +share/locale/en_US/LC_MESSAGES/gnomebaker.mo +share/locale/eo/LC_MESSAGES/gnomebaker.mo +share/locale/es/LC_MESSAGES/gnomebaker.mo +share/locale/es_AR/LC_MESSAGES/gnomebaker.mo +share/locale/es_CO/LC_MESSAGES/gnomebaker.mo +share/locale/es_CR/LC_MESSAGES/gnomebaker.mo +share/locale/es_ES/LC_MESSAGES/gnomebaker.mo +share/locale/es_MX/LC_MESSAGES/gnomebaker.mo +share/locale/et/LC_MESSAGES/gnomebaker.mo +share/locale/eu/LC_MESSAGES/gnomebaker.mo +share/locale/eu_ES/LC_MESSAGES/gnomebaker.mo +share/locale/fa/LC_MESSAGES/gnomebaker.mo +share/locale/fi/LC_MESSAGES/gnomebaker.mo +share/locale/fr/LC_MESSAGES/gnomebaker.mo +share/locale/fr_CH/LC_MESSAGES/gnomebaker.mo +share/locale/fr_FR/LC_MESSAGES/gnomebaker.mo +share/locale/gl/LC_MESSAGES/gnomebaker.mo +share/locale/he/LC_MESSAGES/gnomebaker.mo +share/locale/hr/LC_MESSAGES/gnomebaker.mo +share/locale/hu/LC_MESSAGES/gnomebaker.mo +share/locale/is/LC_MESSAGES/gnomebaker.mo +share/locale/it/LC_MESSAGES/gnomebaker.mo +share/locale/it_IT/LC_MESSAGES/gnomebaker.mo +share/locale/ja/LC_MESSAGES/gnomebaker.mo +share/locale/ka/LC_MESSAGES/gnomebaker.mo +share/locale/ko/LC_MESSAGES/gnomebaker.mo +share/locale/lt/LC_MESSAGES/gnomebaker.mo +share/locale/lv/LC_MESSAGES/gnomebaker.mo +share/locale/mk/LC_MESSAGES/gnomebaker.mo +share/locale/ml/LC_MESSAGES/gnomebaker.mo +share/locale/ms/LC_MESSAGES/gnomebaker.mo +share/locale/nb/LC_MESSAGES/gnomebaker.mo +share/locale/nl/LC_MESSAGES/gnomebaker.mo +share/locale/nl_BE/LC_MESSAGES/gnomebaker.mo +share/locale/nl_NL/LC_MESSAGES/gnomebaker.mo +share/locale/no/LC_MESSAGES/gnomebaker.mo +share/locale/pa/LC_MESSAGES/gnomebaker.mo +share/locale/pl/LC_MESSAGES/gnomebaker.mo +share/locale/pt/LC_MESSAGES/gnomebaker.mo +share/locale/pt_BR/LC_MESSAGES/gnomebaker.mo +share/locale/pt_PT/LC_MESSAGES/gnomebaker.mo +share/locale/ro/LC_MESSAGES/gnomebaker.mo +share/locale/ru/LC_MESSAGES/gnomebaker.mo +share/locale/sk/LC_MESSAGES/gnomebaker.mo +share/locale/sl/LC_MESSAGES/gnomebaker.mo +share/locale/sr/LC_MESSAGES/gnomebaker.mo +share/locale/st/LC_MESSAGES/gnomebaker.mo +share/locale/sv/LC_MESSAGES/gnomebaker.mo +share/locale/te/LC_MESSAGES/gnomebaker.mo +share/locale/tl/LC_MESSAGES/gnomebaker.mo +share/locale/tr/LC_MESSAGES/gnomebaker.mo +share/locale/uk/LC_MESSAGES/gnomebaker.mo +share/locale/ur/LC_MESSAGES/gnomebaker.mo +share/locale/yi/LC_MESSAGES/gnomebaker.mo +share/locale/zh/LC_MESSAGES/gnomebaker.mo +share/locale/zh_CN/LC_MESSAGES/gnomebaker.mo +share/locale/zh_HK/LC_MESSAGES/gnomebaker.mo +share/locale/zh_TW/LC_MESSAGES/gnomebaker.mo +@dirrmtry share/locale/zh_HK/LC_MESSAGES +@dirrmtry share/locale/zh_HK +@dirrmtry share/locale/yi/LC_MESSAGES +@dirrmtry share/locale/yi +@dirrmtry share/locale/ur/LC_MESSAGES +@dirrmtry share/locale/ur +@dirrmtry share/locale/tl/LC_MESSAGES +@dirrmtry share/locale/tl +@dirrmtry share/locale/te/LC_MESSAGES +@dirrmtry share/locale/te +@dirrmtry share/locale/st/LC_MESSAGES +@dirrmtry share/locale/st +@dirrmtry share/locale/nl_NL/LC_MESSAGES +@dirrmtry share/locale/nl_NL +@dirrmtry share/locale/nl_BE/LC_MESSAGES +@dirrmtry share/locale/nl_BE +@dirrmtry share/locale/it_IT/LC_MESSAGES +@dirrmtry share/locale/it_IT +@dirrmtry share/locale/fr_CH/LC_MESSAGES +@dirrmtry share/locale/fr_CH +@dirrmtry share/locale/eu_ES/LC_MESSAGES +@dirrmtry share/locale/eu_ES +@dirrmtry share/locale/es_CR/LC_MESSAGES +@dirrmtry share/locale/es_CR +@dirrmtry share/locale/es_CO/LC_MESSAGES +@dirrmtry share/locale/es_CO +@dirrmtry share/locale/es_AR/LC_MESSAGES +@dirrmtry share/locale/es_AR +@dirrmtry share/locale/en_US/LC_MESSAGES +@dirrmtry share/locale/en_US +@dirrmtry share/locale/de_DE/LC_MESSAGES +@dirrmtry share/locale/de_DE +@dirrmtry share/locale/de_CH/LC_MESSAGES +@dirrmtry share/locale/de_CH +@dirrmtry share/locale/bo/LC_MESSAGES +@dirrmtry share/locale/bo +@dirrmtry share/icons/hicolor/48x48/apps +@dirrmtry share/icons/hicolor/48x48 +@dirrmtry share/icons/hicolor +@dirrmtry share/icons +@dirrm share/omf/gnomebaker +@dirrm share/gnome/help/gnomebaker/C/figures +@dirrm share/gnome/help/gnomebaker/C +@dirrm share/gnome/help/gnomebaker +@dirrm share/gnomebaker +@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true +@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true diff --git a/sysutils/graveman/Makefile b/sysutils/graveman/Makefile new file mode 100644 index 000000000..f29b22f57 --- /dev/null +++ b/sysutils/graveman/Makefile @@ -0,0 +1,57 @@ +# New ports collection makefile for: graveman +# Date created: 2005-02-01 +# Whom: Anton Karpov <toxa@toxahost.ru> +# +# $FreeBSD$ +# + +PORTNAME= graveman +PORTVERSION= 0.3.12.5 +PORTREVISION= 3 +CATEGORIES= sysutils +MASTER_SITES= http://graveman.tuxfamily.org/sources/ +DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.(.)$/-\1/} + +MAINTAINER= toxa@toxahost.ru +COMMENT= Another GTK2 frontend for cdrecord, mkisofs, readcd and sox + +LIB_DEPENDS= mng.1:${PORTSDIR}/graphics/libmng + +USE_BZIP2= yes +USE_GMAKE= yes +USE_GETTEXT= yes +GNU_CONFIGURE= yes +USE_X_PREFIX= yes +USE_CDRTOOLS= yes +USE_GNOME= libglade2 intlhack gnomehack gnomeprefix +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ + LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" + +MAN1= graveman.1 + +OPTIONS= MP3 "MP3 Support" off \ + OGG "OGG Support" off \ + DVD "DVD+RW Support" off + +.include <bsd.port.pre.mk> + +.if defined(WITH_MP3) +LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad \ + id3tag.0:${PORTSDIR}/audio/libid3tag +RUN_DEPENDS+= sox:${PORTSDIR}/audio/sox +.else +CONFIGURE_ARGS+=--disable-mp3 +.endif + +.if defined(WITH_OGG) +LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg \ + vorbis.4:${PORTSDIR}/audio/libvorbis +.else +CONFIGURE_ARGS+=--disable-ogg +.endif + +.if defined(WITH_DVD) +RUN_DEPENDS+= growisofs:${PORTSDIR}/sysutils/dvd+rw-tools +.endif + +.include <bsd.port.post.mk> diff --git a/sysutils/graveman/distinfo b/sysutils/graveman/distinfo new file mode 100644 index 000000000..c96e000b2 --- /dev/null +++ b/sysutils/graveman/distinfo @@ -0,0 +1,3 @@ +MD5 (graveman-0.3.12-5.tar.bz2) = c9c80782282c6699effa91d1a806723b +SHA256 (graveman-0.3.12-5.tar.bz2) = 35b300d565548a4cab9942a0740b3dd543ed0d4cf53b06f4889f4f1999197d6d +SIZE (graveman-0.3.12-5.tar.bz2) = 780870 diff --git a/sysutils/graveman/files/patch-man_Makefile.in b/sysutils/graveman/files/patch-man_Makefile.in new file mode 100644 index 000000000..baa788ff0 --- /dev/null +++ b/sysutils/graveman/files/patch-man_Makefile.in @@ -0,0 +1,16 @@ +--- man/Makefile.in.orig Mon Jun 5 20:33:45 2006 ++++ man/Makefile.in Sun Jun 11 05:09:22 2006 +@@ -332,12 +332,7 @@ + @true + + install: +- ${INSTALL_DATA} -D graveman.man ${DESTDIR}${mandir}/${mansubdir}/graveman.1 ; \ +- if test "A${USE_NLS}" = "Ayes"; then \ +- for lang in ${LOCALES}; do \ +- ${INSTALL_DATA} -D "${srcdir}/graveman.$$lang.man" "${DESTDIR}${mandir}/$$lang/${mansubdir}/graveman.1"; \ +- done \ +- fi ++ ${BSD_INSTALL_MAN} graveman.man ${DESTDIR}${mandir}/${mansubdir}/graveman.1 ; \ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/sysutils/graveman/files/patch-src_callbacks.c b/sysutils/graveman/files/patch-src_callbacks.c new file mode 100644 index 000000000..a7dbef582 --- /dev/null +++ b/sysutils/graveman/files/patch-src_callbacks.c @@ -0,0 +1,53 @@ +--- src/callbacks.c.orig Mon May 30 23:53:06 2005 ++++ src/callbacks.c Sat Nov 12 18:15:45 2005 +@@ -416,6 +416,15 @@ + /* enlever des fichiers a graver */ + void gtk_data_removefiles(GtkWidget *Abtn, gpointer Adata) + { ++ GtkTreeModel *Ltreedata; ++ GtkTreeSelection *Lselection; ++ GList *Lfiles; ++ GList *Lrefs; ++ GList *Lnode; ++ gint Ltype; ++ guint32 Lsizenbr = 0; ++ GtkTreeIter Liter; ++ gpointer Lproxy; + Tgrave *Lg = (Tgrave *)Adata; + GtkTreeView *Lliste = GTK_TREE_VIEW(sc_grave_get_data(Lg, "_current_list")); + GtkProgressBar *Lcontenance; +@@ -428,15 +437,12 @@ + #if 0 + GtkTreeIter *Literboot = sc_grave_get_data(Lg, "file_imageboot"); + #endif +- GtkTreeModel *Ltreedata = gtk_tree_view_get_model(GTK_TREE_VIEW(Lliste)); +- GtkTreeSelection *Lselection = gtk_tree_view_get_selection(GTK_TREE_VIEW(Lliste)); +- GList *Lfiles = gtk_tree_selection_get_selected_rows(Lselection, &Ltreedata); +- GList *Lrefs = NULL; +- GList *Lnode = NULL; +- gint Ltype; +- guint32 Lsizenbr = 0; +- GtkTreeIter Liter; +- gpointer Lproxy = g_object_newv(G_TYPE_OBJECT, 0, NULL); ++ Ltreedata = gtk_tree_view_get_model(GTK_TREE_VIEW(Lliste)); ++ Lselection = gtk_tree_view_get_selection(GTK_TREE_VIEW(Lliste)); ++ Lfiles = gtk_tree_selection_get_selected_rows(Lselection, &Ltreedata); ++ Lrefs = NULL; ++ Lnode = NULL; ++ Lproxy = g_object_newv(G_TYPE_OBJECT, 0, NULL); + + for (Lnode = Lfiles; Lnode; Lnode = Lnode->next) { + Lrefs = g_list_append(Lrefs, gtk_tree_row_reference_new_proxy(Lproxy, Ltreedata, Lnode->data)); +@@ -883,10 +889,11 @@ + gboolean *Labort = (gboolean *)sc_grave_get_data(Lg, "gabort"); + GtkWidget *Lwindow = GTK_WIDGET(sc_grave_get_widget(Lg, "window_burn")); + gint Lret; ++ GtkWidget *Lconfirm; + + g_assert(Labort); + +- GtkWidget *Lconfirm = gtk_message_dialog_new(GTK_WINDOW(Lwindow), ++ Lconfirm = gtk_message_dialog_new(GTK_WINDOW(Lwindow), + GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, + GTK_BUTTONS_YES_NO, _("Do you really want to abort operation ?")); + diff --git a/sysutils/graveman/files/patch-src_cdrecord.c b/sysutils/graveman/files/patch-src_cdrecord.c new file mode 100644 index 000000000..5e7778967 --- /dev/null +++ b/sysutils/graveman/files/patch-src_cdrecord.c @@ -0,0 +1,17 @@ +--- src/cdrecord.c.orig Fri May 27 19:37:14 2005 ++++ src/cdrecord.c Sun Jun 11 06:53:32 2006 +@@ -187,7 +187,13 @@ + } + + Lstatus = g_io_channel_read_line(Astd, &Lbuffer, NULL, NULL, NULL); +- if (!Lbuffer) return TRUE; ++ if (!Lbuffer) { ++ if (Lstatus == G_IO_STATUS_EOF) { ++ *Lcont = 2; ++ return FALSE; ++ } else ++ return TRUE; ++ } + + g_strstrip(Lbuffer); + _DEB("scan lecteur = %s\n", Lbuffer); diff --git a/sysutils/graveman/files/patch-src_mkisofs.c b/sysutils/graveman/files/patch-src_mkisofs.c new file mode 100644 index 000000000..2370ffb10 --- /dev/null +++ b/sysutils/graveman/files/patch-src_mkisofs.c @@ -0,0 +1,18 @@ +--- src/mkisofs.c.orig Sat May 28 02:37:14 2005 ++++ src/mkisofs.c Sat Nov 12 18:19:14 2005 +@@ -64,6 +64,7 @@ + const gchar *Ldataabst = gtk_entry_get_text(GTK_ENTRY(sc_grave_get_widgetv(Ag, "%sabst", Aop))); + gchar *Lreturn, *Linputcharset = NULL; + gchar *Lextra = NULL; ++ gchar *Ldevchar = NULL; + GtkTextIter Lstart, Lend; + GtkTextBuffer *Lbufappi = gtk_text_view_get_buffer (GTK_TEXT_VIEW (sc_grave_get_widgetv(Ag, "%sappi", Aop))); + char *Ldataappi, *Ltmpappi; +@@ -71,7 +72,6 @@ + Ltmpappi = gtk_text_iter_get_text (&Lstart, &Lend); + Ldataappi = g_strescape(Ltmpappi, ""); + g_free(Ltmpappi); +- gchar *Ldevchar = NULL; + + if (!strcmp(Aop, "data")) { /* data cd */ + gboolean Lrockridge = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(sc_grave_get_widget(Ag, "datarockridge"))); diff --git a/sysutils/graveman/files/patch-src_properties.c b/sysutils/graveman/files/patch-src_properties.c new file mode 100644 index 000000000..c453ac243 --- /dev/null +++ b/sysutils/graveman/files/patch-src_properties.c @@ -0,0 +1,22 @@ +--- src/properties.c.orig Sat May 28 02:37:14 2005 ++++ src/properties.c Sat Nov 12 18:25:19 2005 +@@ -30,8 +30,8 @@ + GtkListStore *Lmodel; + + if (Ainit == TRUE) { +- Lmodel = gtk_list_store_new(4, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING); + GtkCellRenderer *Lcellrender; ++ Lmodel = gtk_list_store_new(4, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING); + + gtk_combo_box_set_model(Acombo, GTK_TREE_MODEL(Lmodel)); + gtk_cell_layout_clear(GTK_CELL_LAYOUT(Acombo)); +@@ -58,8 +58,8 @@ + GtkListStore *Lmodel; + + if (Ainit == TRUE) { +- Lmodel = gtk_list_store_new(4, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING); + GtkCellRenderer *Lcellrender; ++ Lmodel = gtk_list_store_new(4, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING); + + gtk_combo_box_set_model(Acombo, GTK_TREE_MODEL(Lmodel)); + gtk_cell_layout_clear(GTK_CELL_LAYOUT(Acombo)); diff --git a/sysutils/graveman/pkg-descr b/sysutils/graveman/pkg-descr new file mode 100644 index 000000000..39906032a --- /dev/null +++ b/sysutils/graveman/pkg-descr @@ -0,0 +1,4 @@ +Another GPL GTK2 frontend for cdrecord, mkisofs, readcd and sox! +With graveman you can burn audio cd (wav, ogg, mp3), data cd, and duplicate cd. + +WWW: http://www.nongnu.org/graveman/ diff --git a/sysutils/graveman/pkg-plist b/sysutils/graveman/pkg-plist new file mode 100644 index 000000000..97c816111 --- /dev/null +++ b/sysutils/graveman/pkg-plist @@ -0,0 +1,194 @@ +bin/graveman +share/applications/graveman.desktop +share/pixmaps/graveman48.png +share/graveman/dialog-question3.png +share/graveman/dialog_about.glade +share/graveman/dialog_add_charset.glade +share/graveman/dialog_add_device.glade +share/graveman/dialog_charset.glade +share/graveman/dialog_confirm_operation.glade +share/graveman/dialog_device.glade +share/graveman/dialog_media.glade +share/graveman/dialog_properties.glade +share/graveman/dialog_select_operation.glade +share/graveman/dialog_welcome.glade +share/graveman/erase-cdrw.png +share/graveman/file_image.png +share/graveman/folder5-petit.png +share/graveman/gnome-dev-cdrom-audio-24.png +share/graveman/gnome-dev-dvdrw-24.png +share/graveman/gnome-dev-dvdrw-plus-24.png +share/graveman/graveman-main.png +share/graveman/graveman24.png +share/graveman/graveman32.png +share/graveman/graveman48.png +share/graveman/graver-petite.png +share/graveman/graver.png +share/graveman/hint.png +share/graveman/main-settings.png +share/graveman/menu-data.png +share/graveman/petit-parametre.png +share/graveman/petitcd.png +share/graveman/petitcdrw.png +share/graveman/petitcharset.png +share/graveman/petitdvd.png +share/graveman/petitdvdrw.png +share/graveman/petitiso.png +share/graveman/properties.png +share/graveman/sort.png +share/graveman/sound.png +share/graveman/stock_new.png +share/graveman/window_burn.glade +share/graveman/window_inprogress.glade +share/graveman/window_main.glade +share/graveman/window_waiting_cd.glade +share/graveman/window_welcome.glade +share/graveman/themes/default/AudioIcon.png +share/graveman/themes/default/BADIcon.png +share/graveman/themes/default/BurnIcon.png +share/graveman/themes/default/BurnsmallIcon.png +share/graveman/themes/default/CDIcon.png +share/graveman/themes/default/CDRWIcon.png +share/graveman/themes/default/CDRWsmallIcon.png +share/graveman/themes/default/CDsmallIcon.png +share/graveman/themes/default/CharsetSmallIcon.png +share/graveman/themes/default/DVDRWsmallIcon.png +share/graveman/themes/default/DVDsmallIcon.png +share/graveman/themes/default/DirIcon.png +share/graveman/themes/default/EraseCDRWIcon.png +share/graveman/themes/default/FileIcon.png +share/graveman/themes/default/FileImage.png +share/graveman/themes/default/ISOsmallIcon.png +share/graveman/themes/default/Menu-Audio-16.png +share/graveman/themes/default/Menu-Audio-24.png +share/graveman/themes/default/Menu-Audio-32.png +share/graveman/themes/default/Menu-Audio-48.png +share/graveman/themes/default/Menu-Copy-16.png +share/graveman/themes/default/Menu-Copy-24.png +share/graveman/themes/default/Menu-Copy-32.png +share/graveman/themes/default/Menu-Copy-48.png +share/graveman/themes/default/Menu-Data-16.png +share/graveman/themes/default/Menu-Data-24.png +share/graveman/themes/default/Menu-Data-32.png +share/graveman/themes/default/Menu-Data-48.png +share/graveman/themes/default/Menu-Dvd-16.png +share/graveman/themes/default/Menu-Dvd-24.png +share/graveman/themes/default/Menu-Dvd-32.png +share/graveman/themes/default/Menu-Dvd-48.png +share/graveman/themes/default/Menu-Other-16.png +share/graveman/themes/default/Menu-Other-24.png +share/graveman/themes/default/Menu-Other-32.png +share/graveman/themes/default/Menu-Other-48.png +share/graveman/themes/default/OKIcon.png +share/graveman/themes/default/Themes.png +share/graveman/themes/default/WARNIcon.png +share/graveman/themes/default/Working.mng +share/graveman/themes/default/graveman +share/graveman/themes/plainset/AudioIcon.png +share/graveman/themes/plainset/BADIcon.png +share/graveman/themes/plainset/BurnIcon.png +share/graveman/themes/plainset/BurnsmallIcon.png +share/graveman/themes/plainset/CDIcon.png +share/graveman/themes/plainset/CDRWIcon.png +share/graveman/themes/plainset/CDRWsmallIcon.png +share/graveman/themes/plainset/CDsmallIcon.png +share/graveman/themes/plainset/CharsetSmallIcon.png +share/graveman/themes/plainset/DVDRWsmallIcon.png +share/graveman/themes/plainset/DVDsmallIcon.png +share/graveman/themes/plainset/DirIcon.png +share/graveman/themes/plainset/EraseCDRWIcon.png +share/graveman/themes/plainset/FileIcon.png +share/graveman/themes/plainset/FileImage.png +share/graveman/themes/plainset/ISOsmallIcon.png +share/graveman/themes/plainset/Menu-Audio-16.png +share/graveman/themes/plainset/Menu-Audio-24.png +share/graveman/themes/plainset/Menu-Audio-32.png +share/graveman/themes/plainset/Menu-Audio-48.png +share/graveman/themes/plainset/Menu-Copy-16.png +share/graveman/themes/plainset/Menu-Copy-24.png +share/graveman/themes/plainset/Menu-Copy-32.png +share/graveman/themes/plainset/Menu-Copy-48.png +share/graveman/themes/plainset/Menu-Data-16.png +share/graveman/themes/plainset/Menu-Data-24.png +share/graveman/themes/plainset/Menu-Data-32.png +share/graveman/themes/plainset/Menu-Data-48.png +share/graveman/themes/plainset/Menu-Dvd-16.png +share/graveman/themes/plainset/Menu-Dvd-24.png +share/graveman/themes/plainset/Menu-Dvd-32.png +share/graveman/themes/plainset/Menu-Dvd-48.png +share/graveman/themes/plainset/Menu-Other-16.png +share/graveman/themes/plainset/Menu-Other-24.png +share/graveman/themes/plainset/Menu-Other-32.png +share/graveman/themes/plainset/Menu-Other-48.png +share/graveman/themes/plainset/OKIcon.png +share/graveman/themes/plainset/Themes.png +share/graveman/themes/plainset/WARNIcon.png +share/graveman/themes/plainset/Working.mng +share/graveman/themes/plainset/graveman +share/graveman/themes/isoset/BADIcon.png +share/graveman/themes/isoset/DVDRWsmallIcon.png +share/graveman/themes/isoset/DVDsmallIcon.png +share/graveman/themes/isoset/Menu-Audio-16.png +share/graveman/themes/isoset/Menu-Audio-24.png +share/graveman/themes/isoset/Menu-Audio-32.png +share/graveman/themes/isoset/Menu-Audio-48.png +share/graveman/themes/isoset/Menu-Copy-16.png +share/graveman/themes/isoset/Menu-Copy-24.png +share/graveman/themes/isoset/Menu-Copy-32.png +share/graveman/themes/isoset/Menu-Copy-48.png +share/graveman/themes/isoset/Menu-Data-16.png +share/graveman/themes/isoset/Menu-Data-24.png +share/graveman/themes/isoset/Menu-Data-32.png +share/graveman/themes/isoset/Menu-Data-48.png +share/graveman/themes/isoset/Menu-Dvd-16.png +share/graveman/themes/isoset/Menu-Dvd-24.png +share/graveman/themes/isoset/Menu-Dvd-32.png +share/graveman/themes/isoset/Menu-Dvd-48.png +share/graveman/themes/isoset/Menu-Other-16.png +share/graveman/themes/isoset/Menu-Other-24.png +share/graveman/themes/isoset/Menu-Other-32.png +share/graveman/themes/isoset/Menu-Other-48.png +share/graveman/themes/isoset/OKIcon.png +share/graveman/themes/isoset/WARNIcon.png +share/graveman/themes/isoset/graveman +share/graveman/themes/essai/Menu-Audio-16.png +share/graveman/themes/essai/Menu-Audio-24.png +share/graveman/themes/essai/Menu-Audio-32.png +share/graveman/themes/essai/Menu-Audio-48.png +share/graveman/themes/essai/Menu-Copy-16.png +share/graveman/themes/essai/Menu-Copy-24.png +share/graveman/themes/essai/Menu-Copy-32.png +share/graveman/themes/essai/Menu-Copy-48.png +share/graveman/themes/essai/Menu-Data-16.png +share/graveman/themes/essai/Menu-Data-24.png +share/graveman/themes/essai/Menu-Data-32.png +share/graveman/themes/essai/Menu-Data-48.png +share/graveman/themes/essai/Menu-Dvd-16.png +share/graveman/themes/essai/Menu-Dvd-24.png +share/graveman/themes/essai/Menu-Dvd-32.png +share/graveman/themes/essai/Menu-Dvd-48.png +share/graveman/themes/essai/Menu-Other-16.png +share/graveman/themes/essai/Menu-Other-24.png +share/graveman/themes/essai/Menu-Other-32.png +share/graveman/themes/essai/Menu-Other-48.png +share/graveman/themes/essai/graveman +share/locale/cs/LC_MESSAGES/graveman.mo +share/locale/de/LC_MESSAGES/graveman.mo +share/locale/es/LC_MESSAGES/graveman.mo +share/locale/fr/LC_MESSAGES/graveman.mo +share/locale/hu/LC_MESSAGES/graveman.mo +share/locale/it/LC_MESSAGES/graveman.mo +share/locale/ja/LC_MESSAGES/graveman.mo +share/locale/lt/LC_MESSAGES/graveman.mo +share/locale/nl/LC_MESSAGES/graveman.mo +share/locale/no/LC_MESSAGES/graveman.mo +share/locale/pl/LC_MESSAGES/graveman.mo +share/locale/pt_BR/LC_MESSAGES/graveman.mo +share/locale/ru/LC_MESSAGES/graveman.mo +share/locale/sv/LC_MESSAGES/graveman.mo +@dirrm share/graveman/themes/default +@dirrm share/graveman/themes/essai +@dirrm share/graveman/themes/isoset +@dirrm share/graveman/themes/plainset +@dirrm share/graveman/themes +@dirrm share/graveman diff --git a/sysutils/pessulus/Makefile b/sysutils/pessulus/Makefile new file mode 100644 index 000000000..c319f3b45 --- /dev/null +++ b/sysutils/pessulus/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: pessulus +# Date created: 14 March 2006 +# Whom: FreeBSD GNOME Team +# +# $FreeBSD$ +# $MCom: ports/sysutils/pessulus/Makefile,v 1.11 2006/10/03 01:27:41 ahze Exp $ +# + +PORTNAME= pessulus +PORTVERSION= 2.16.2 +PORTREVISION= 2 +CATEGORIES= sysutils gnome +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= A lockdown editor for GNOME + +USE_GMAKE= yes +USE_GNOME= gnomehack gnomeprefix intlhack pygnome2 +WANT_GNOME= yes +USE_PYTHON= yes +USE_GETTEXT= yes +USE_XLIB= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +DOCS= AUTHORS COPYING ChangeLog HACKING \ + MAINTAINERS NEWS README TODO + +.ifndef (NOPORTDOCS) +post-install: + @${MKDIR} ${DOCSDIR} +.for i in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/sysutils/pessulus/distinfo b/sysutils/pessulus/distinfo new file mode 100644 index 000000000..5117bd4bd --- /dev/null +++ b/sysutils/pessulus/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome2/pessulus-2.16.2.tar.gz) = 8b64b63c72565d7ea71706f8e19c427e +SHA256 (gnome2/pessulus-2.16.2.tar.gz) = 13dae2987452a10ffb07819df67cdbddcd78d1a4eab690f55b0f500c6a0d15e5 +SIZE (gnome2/pessulus-2.16.2.tar.gz) = 179104 diff --git a/sysutils/pessulus/pkg-descr b/sysutils/pessulus/pkg-descr new file mode 100644 index 000000000..f1105467e --- /dev/null +++ b/sysutils/pessulus/pkg-descr @@ -0,0 +1,6 @@ +Pessulus is a lockdown editor for GNOME, written in python. It enables +administrators to set mandatory settings in GConf. The users can not change +these settings. Use of pessulus can be useful on computers that are open to +use by everyone, e.g. in an internet cafe. + +WWW: http://www.gnome.org/~vuntz/pessulus/ diff --git a/sysutils/pessulus/pkg-plist b/sysutils/pessulus/pkg-plist new file mode 100644 index 000000000..1105b2ddc --- /dev/null +++ b/sysutils/pessulus/pkg-plist @@ -0,0 +1,121 @@ +bin/pessulus +%%PYTHON_SITELIBDIR%%/Pessulus/__init__.py +%%PYTHON_SITELIBDIR%%/Pessulus/__init__.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/__init__.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/config.py +%%PYTHON_SITELIBDIR%%/Pessulus/config.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/config.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/disabledapplets.py +%%PYTHON_SITELIBDIR%%/Pessulus/disabledapplets.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/disabledapplets.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/globalvar.py +%%PYTHON_SITELIBDIR%%/Pessulus/globalvar.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/globalvar.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/icons.py +%%PYTHON_SITELIBDIR%%/Pessulus/icons.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/icons.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/lockdownapplier.py +%%PYTHON_SITELIBDIR%%/Pessulus/lockdownapplier.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/lockdownapplier.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/lockdownappliergconf.py +%%PYTHON_SITELIBDIR%%/Pessulus/lockdownappliergconf.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/lockdownappliergconf.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/lockdownbutton.py +%%PYTHON_SITELIBDIR%%/Pessulus/lockdownbutton.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/lockdownbutton.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/lockdowncheckbutton.py +%%PYTHON_SITELIBDIR%%/Pessulus/lockdowncheckbutton.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/lockdowncheckbutton.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/main.py +%%PYTHON_SITELIBDIR%%/Pessulus/main.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/main.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/maindialog.py +%%PYTHON_SITELIBDIR%%/Pessulus/maindialog.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/maindialog.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/safeprotocols.py +%%PYTHON_SITELIBDIR%%/Pessulus/safeprotocols.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/safeprotocols.pyo +%%PYTHON_SITELIBDIR%%/Pessulus/simpleeditabletreeview.py +%%PYTHON_SITELIBDIR%%/Pessulus/simpleeditabletreeview.pyc +%%PYTHON_SITELIBDIR%%/Pessulus/simpleeditabletreeview.pyo +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/HACKING +%%PORTDOCS%%%%DOCSDIR%%/MAINTAINERS +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +share/applications/pessulus.desktop +share/pessulus/glade/pessulus.glade +share/locale/ar/LC_MESSAGES/pessulus.mo +share/locale/bg/LC_MESSAGES/pessulus.mo +share/locale/bn/LC_MESSAGES/pessulus.mo +share/locale/bn_IN/LC_MESSAGES/pessulus.mo +share/locale/ca/LC_MESSAGES/pessulus.mo +share/locale/cs/LC_MESSAGES/pessulus.mo +share/locale/cy/LC_MESSAGES/pessulus.mo +share/locale/da/LC_MESSAGES/pessulus.mo +share/locale/de/LC_MESSAGES/pessulus.mo +share/locale/dz/LC_MESSAGES/pessulus.mo +share/locale/el/LC_MESSAGES/pessulus.mo +share/locale/en_CA/LC_MESSAGES/pessulus.mo +share/locale/en_GB/LC_MESSAGES/pessulus.mo +share/locale/es/LC_MESSAGES/pessulus.mo +share/locale/et/LC_MESSAGES/pessulus.mo +share/locale/eu/LC_MESSAGES/pessulus.mo +share/locale/fi/LC_MESSAGES/pessulus.mo +share/locale/fr/LC_MESSAGES/pessulus.mo +share/locale/gl/LC_MESSAGES/pessulus.mo +share/locale/gu/LC_MESSAGES/pessulus.mo +share/locale/he/LC_MESSAGES/pessulus.mo +share/locale/hi/LC_MESSAGES/pessulus.mo +share/locale/hu/LC_MESSAGES/pessulus.mo +share/locale/id/LC_MESSAGES/pessulus.mo +share/locale/it/LC_MESSAGES/pessulus.mo +share/locale/ja/LC_MESSAGES/pessulus.mo +share/locale/ka/LC_MESSAGES/pessulus.mo +share/locale/ko/LC_MESSAGES/pessulus.mo +share/locale/lt/LC_MESSAGES/pessulus.mo +share/locale/lv/LC_MESSAGES/pessulus.mo +share/locale/mk/LC_MESSAGES/pessulus.mo +share/locale/ml/LC_MESSAGES/pessulus.mo +share/locale/mn/LC_MESSAGES/pessulus.mo +share/locale/mr/LC_MESSAGES/pessulus.mo +share/locale/nb/LC_MESSAGES/pessulus.mo +share/locale/ne/LC_MESSAGES/pessulus.mo +share/locale/nl/LC_MESSAGES/pessulus.mo +share/locale/or/LC_MESSAGES/pessulus.mo +share/locale/pa/LC_MESSAGES/pessulus.mo +share/locale/pl/LC_MESSAGES/pessulus.mo +share/locale/pt/LC_MESSAGES/pessulus.mo +share/locale/pt_BR/LC_MESSAGES/pessulus.mo +share/locale/ru/LC_MESSAGES/pessulus.mo +share/locale/sk/LC_MESSAGES/pessulus.mo +share/locale/sl/LC_MESSAGES/pessulus.mo +share/locale/sq/LC_MESSAGES/pessulus.mo +share/locale/sr/LC_MESSAGES/pessulus.mo +share/locale/sr@Latn/LC_MESSAGES/pessulus.mo +share/locale/sv/LC_MESSAGES/pessulus.mo +share/locale/ta/LC_MESSAGES/pessulus.mo +share/locale/th/LC_MESSAGES/pessulus.mo +share/locale/tr/LC_MESSAGES/pessulus.mo +share/locale/uk/LC_MESSAGES/pessulus.mo +share/locale/vi/LC_MESSAGES/pessulus.mo +share/locale/zh_CN/LC_MESSAGES/pessulus.mo +share/locale/zh_HK/LC_MESSAGES/pessulus.mo +share/locale/zh_TW/LC_MESSAGES/pessulus.mo +@dirrm share/pessulus/glade +@dirrm share/pessulus +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%PYTHON_SITELIBDIR%%/Pessulus +@dirrmtry %%PYTHON_SITELIBDIR%% +@dirrmtry %%PYTHON_LIBDIR%% +@dirrmtry share/locale/zh_HK/LC_MESSAGES +@dirrmtry share/locale/zh_HK +@dirrmtry share/locale/mr/LC_MESSAGES +@dirrmtry share/locale/mr +@dirrmtry share/locale/dz/LC_MESSAGES +@dirrmtry share/locale/dz +@dirrmtry share/locale/bn_IN/LC_MESSAGES +@dirrmtry share/locale/bn_IN diff --git a/sysutils/sensors-applet/Makefile b/sysutils/sensors-applet/Makefile new file mode 100644 index 000000000..16a5532f6 --- /dev/null +++ b/sysutils/sensors-applet/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: sensors-applet +# Date created: 03 May 2006 +# Whom: Jean-Yves Lefort <jylefort@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= sensors-applet +PORTVERSION= 1.6.1 +PORTREVISION= 4 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= jylefort@FreeBSD.org +COMMENT= A GNOME applet displaying hardware sensor values + +RUN_DEPENDS= mbmon:${PORTSDIR}/sysutils/mbmon \ + smartctl:${PORTSDIR}/sysutils/smartmontools + +USE_X_PREFIX= yes +USE_GNOME= gnomehack gnomeprefix intlhack gnomepanel +GNU_CONFIGURE= yes +USE_GMAKE= yes +DEFINES= -DMBMON_EXECUTABLE=\\\"${LOCALBASE}/bin/mbmon\\\" \ + -DSMARTCTL_HELPER=\\\"${PREFIX}/libexec/smartctl-helper\\\" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${DEFINES}" \ + LDFLAGS="-L${LOCALBASE}/lib" + +post-patch: + @${CP} -f ${FILESDIR}/mbmon-sensors-interface.* \ + ${FILESDIR}/smartctl-sensors-interface.* ${WRKSRC}/src + +post-build: + ${CC} ${CFLAGS} -DSMARTCTL=\"${LOCALBASE}/sbin/smartctl\" \ + -o ${WRKSRC}/smartctl-helper ${FILESDIR}/smartctl-helper.c + +post-install: + ${INSTALL_PROGRAM} ${WRKSRC}/smartctl-helper ${PREFIX}/libexec + ${CHMOD} u+s ${PREFIX}/libexec/smartctl-helper + +.include <bsd.port.mk> diff --git a/sysutils/sensors-applet/distinfo b/sysutils/sensors-applet/distinfo new file mode 100644 index 000000000..631935ff2 --- /dev/null +++ b/sysutils/sensors-applet/distinfo @@ -0,0 +1,3 @@ +MD5 (sensors-applet-1.6.1.tar.gz) = b1feac15a8354fe0f3fd62a16b38293d +SHA256 (sensors-applet-1.6.1.tar.gz) = 1ac5c6760e976366a1f12024325ba83a22e46e7f84f59dbdc89eb985c04260d2 +SIZE (sensors-applet-1.6.1.tar.gz) = 222358 diff --git a/sysutils/sensors-applet/files/mbmon-sensors-interface.c b/sysutils/sensors-applet/files/mbmon-sensors-interface.c new file mode 100644 index 000000000..6c48af424 --- /dev/null +++ b/sysutils/sensors-applet/files/mbmon-sensors-interface.c @@ -0,0 +1,163 @@ +/* + * Copyright (C) 2006 Jean-Yves Lefort <jylefort@FreeBSD.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include <stdlib.h> + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* HAVE_CONFIG_H */ + +#include "mbmon-sensors-interface.h" +#include "sensors-applet.h" + +static struct +{ + const char *name; + const char *label; + SensorType type; + const char *icon; + double value; +} mbmon_sensors[] = { + { "TEMP0", N_("Main Board"), TEMP_SENSOR, MEM_ICON }, + { "TEMP1", N_("CPU"), TEMP_SENSOR, CPU_ICON }, + { "TEMP2", N_("PSU"), TEMP_SENSOR, CASE_ICON }, + { "FAN0", N_("Main Board Fan"), FAN_SENSOR, FAN_ICON }, + { "FAN1", N_("CPU Fan"), FAN_SENSOR, FAN_ICON }, + { "FAN2", N_("PSU Fan"), FAN_SENSOR, FAN_ICON }, + { "VC0", N_("Vc0"), VOLTAGE_SENSOR, VOLTAGE_ICON }, + { "VC1", N_("Vc1"), VOLTAGE_SENSOR, VOLTAGE_ICON }, + { "V33", N_("V33"), VOLTAGE_SENSOR, VOLTAGE_ICON }, + { "V50P", N_("V50P"), VOLTAGE_SENSOR, VOLTAGE_ICON }, + { "V12P", N_("V12P"), VOLTAGE_SENSOR, VOLTAGE_ICON }, + { "V12N", N_("V12N"), VOLTAGE_SENSOR, VOLTAGE_ICON }, + { "V50N", N_("V50N"), VOLTAGE_SENSOR, VOLTAGE_ICON } +}; + +static gboolean +mbmon_sensors_interface_watch_cb (GIOChannel *source, + GIOCondition condition, + gpointer user_data) +{ + char *line; + gsize terminator; + + while (g_io_channel_read_line(source, &line, NULL, &terminator, NULL) == G_IO_STATUS_NORMAL) + { + char *space; + + line[terminator] = 0; + + space = strchr(line, ' '); + if (space) + { + int name_len; + int i; + + name_len = space - line; + for (i = 0; i < G_N_ELEMENTS(mbmon_sensors); i++) + if (! strncmp(mbmon_sensors[i].name, line, name_len)) + { + char *value_start; + + value_start = strstr(space + 1, ": "); + if (value_start) + { + double value; + char *end; + + value = strtod(value_start + 2, &end); + if (*end == 0) + mbmon_sensors[i].value = value; + } + + break; + } + } + + g_free(line); + } + + return TRUE; /* keep source */ +} + +void +mbmon_sensors_interface_init (SensorsApplet *sensors_applet) +{ + GError *err = NULL; + char *argv[] = { MBMON_EXECUTABLE, "-r", "10", NULL }; + int mbmon_stdout; + GIOChannel *channel; + int i; + + sensors_applet_register_sensors_interface(sensors_applet, + MBMON, + mbmon_sensors_interface_get_sensor_value); + + if (! g_spawn_async_with_pipes(NULL, + argv, + NULL, + 0, + NULL, + NULL, + NULL, + NULL, + &mbmon_stdout, + NULL, + &err)) + { + g_warning("Unable to execute mbmon: %s", err->message); + g_error_free(err); + return; + } + + channel = g_io_channel_unix_new(mbmon_stdout); + g_io_channel_set_flags(channel, G_IO_FLAG_NONBLOCK, NULL); + g_io_add_watch(channel, G_IO_IN, mbmon_sensors_interface_watch_cb, NULL); + + for (i = 0; i < G_N_ELEMENTS(mbmon_sensors); i++) + { + char *path; + + path = g_strdup_printf("/mbmon/%s", mbmon_sensors[i].name); + sensors_applet_add_sensor(sensors_applet, + path, + mbmon_sensors[i].name, + mbmon_sensors[i].label, + MBMON, + TRUE, + mbmon_sensors[i].type, + mbmon_sensors[i].icon); + g_free(path); + } +} + +double +mbmon_sensors_interface_get_sensor_value (const gchar *path, + const gchar *id, + SensorType type, + GError **error) +{ + int i; + + for (i = 0; i < G_N_ELEMENTS(mbmon_sensors); i++) + if (! strcmp(mbmon_sensors[i].name, id)) + return mbmon_sensors[i].value; + + g_set_error(error, 0, 0, "Unknown sensor \"%s\"", id); + return 0; +} diff --git a/sysutils/sensors-applet/files/mbmon-sensors-interface.h b/sysutils/sensors-applet/files/mbmon-sensors-interface.h new file mode 100644 index 000000000..3bf7df9b7 --- /dev/null +++ b/sysutils/sensors-applet/files/mbmon-sensors-interface.h @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2006 Jean-Yves Lefort <jylefort@FreeBSD.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef MBMON_SENSORS_INTERFACE_H +#define MBMON_SENSORS_INTERFACE_H + +#include "sensors-applet.h" + +void mbmon_sensors_interface_init (SensorsApplet *sensors_applet); +double mbmon_sensors_interface_get_sensor_value (const gchar *path, + const gchar *id, + SensorType type, + GError **error); + +#endif /* MBMON_SENSORS_INTERFACE_H*/ diff --git a/sysutils/sensors-applet/files/patch-src_Makefile.in b/sysutils/sensors-applet/files/patch-src_Makefile.in new file mode 100644 index 000000000..9cc2997d7 --- /dev/null +++ b/sysutils/sensors-applet/files/patch-src_Makefile.in @@ -0,0 +1,45 @@ +--- src/Makefile.in.orig Fri Mar 24 15:54:47 2006 ++++ src/Makefile.in Thu May 4 05:03:13 2006 +@@ -206,21 +206,10 @@ + sensors-applet.h \ + sensors-applet-gconf.c \ + sensors-applet-gconf.h \ +- acpi-sensors-interface.c \ +- acpi-sensors-interface.h \ +- ibm-acpi-sensors-interface.c \ +- ibm-acpi-sensors-interface.h \ +- omnibook-sensors-interface.c \ +- omnibook-sensors-interface.h \ +- pmu-sys-sensors-interface.c \ +- pmu-sys-sensors-interface.h \ +- i8k-sensors-interface.c \ +- i8k-sensors-interface.h \ +- hddtemp-sensors-interface.c \ +- hddtemp-sensors-interface.h \ +- smu-sys-sensors-interface.c \ +- smu-sys-sensors-interface.h \ +- $(sensors_SRC) ++ mbmon-sensors-interface.c \ ++ mbmon-sensors-interface.h \ ++ smartctl-sensors-interface.c \ ++ smartctl-sensors-interface.h + + subdir = src + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +@@ -250,13 +239,9 @@ + am_sensors_applet_OBJECTS = main.$(OBJEXT) about-dialog.$(OBJEXT) \ + active-sensor.$(OBJEXT) prefs-dialog.$(OBJEXT) \ + sensor-config-dialog.$(OBJEXT) sensors-applet.$(OBJEXT) \ +- sensors-applet-gconf.$(OBJEXT) acpi-sensors-interface.$(OBJEXT) \ +- ibm-acpi-sensors-interface.$(OBJEXT) \ +- omnibook-sensors-interface.$(OBJEXT) \ +- pmu-sys-sensors-interface.$(OBJEXT) \ +- i8k-sensors-interface.$(OBJEXT) \ +- hddtemp-sensors-interface.$(OBJEXT) \ +- smu-sys-sensors-interface.$(OBJEXT) $(am__objects_1) ++ sensors-applet-gconf.$(OBJEXT) \ ++ mbmon-sensors-interface.$(OBJEXT) \ ++ smartctl-sensors-interface.$(OBJEXT) + sensors_applet_OBJECTS = $(am_sensors_applet_OBJECTS) + sensors_applet_LDADD = $(LDADD) + sensors_applet_DEPENDENCIES = diff --git a/sysutils/sensors-applet/files/patch-src_sensors-applet.c b/sysutils/sensors-applet/files/patch-src_sensors-applet.c new file mode 100644 index 000000000..895940b24 --- /dev/null +++ b/sysutils/sensors-applet/files/patch-src_sensors-applet.c @@ -0,0 +1,49 @@ +--- src/sensors-applet.c.orig Fri Mar 24 15:42:32 2006 ++++ src/sensors-applet.c Thu May 4 04:57:32 2006 +@@ -29,22 +29,14 @@ + #include "sensors-applet.h" + #include "active-sensor.h" + #include "sensors-applet-gconf.h" +-#include "acpi-sensors-interface.h" + + /* use libsensors if available, otherwise manually find sensors */ + #ifdef HAVE_LIBSENSORS + #include "libsensors-sensors-interface.h" +-#else +-#include "i2c-sys-sensors-interface.h" +-#include "i2c-proc-sensors-interface.h" + #endif + +-#include "i8k-sensors-interface.h" +-#include "ibm-acpi-sensors-interface.h" +-#include "omnibook-sensors-interface.h" +-#include "pmu-sys-sensors-interface.h" +-#include "smu-sys-sensors-interface.h" +-#include "hddtemp-sensors-interface.h" ++#include "mbmon-sensors-interface.h" ++#include "smartctl-sensors-interface.h" + #include "prefs-dialog.h" + #include "about-dialog.h" + +@@ -754,19 +746,11 @@ + } + + static void sensors_applet_setup_sensors_interfaces(SensorsApplet *sensors_applet) { +- acpi_sensors_interface_init(sensors_applet); +- hddtemp_sensors_interface_init(sensors_applet); + #ifdef HAVE_LIBSENSORS + libsensors_sensors_interface_init(sensors_applet); +-#else +- i2c_proc_sensors_interface_init(sensors_applet); +- i2c_sys_sensors_interface_init(sensors_applet); + #endif +- i8k_sensors_interface_init(sensors_applet); +- ibm_acpi_sensors_interface_init(sensors_applet); +- omnibook_sensors_interface_init(sensors_applet); +- pmu_sys_sensors_interface_init(sensors_applet); +- smu_sys_sensors_interface_init(sensors_applet); ++ mbmon_sensors_interface_init(sensors_applet); ++ smartctl_sensors_interface_init(sensors_applet); + } + + diff --git a/sysutils/sensors-applet/files/patch-src_sensors-applet.h b/sysutils/sensors-applet/files/patch-src_sensors-applet.h new file mode 100644 index 000000000..7e73a9fcd --- /dev/null +++ b/sysutils/sensors-applet/files/patch-src_sensors-applet.h @@ -0,0 +1,50 @@ +--- src/sensors-applet.h.orig Fri Mar 24 15:44:07 2006 ++++ src/sensors-applet.h Thu May 4 04:58:05 2006 +@@ -32,41 +32,28 @@ + #define CPU_ICON PIXMAPS_DIR "cpu-icon.png" + #define HDD_ICON PIXMAPS_DIR "hdd-icon.png" + #define BATTERY_ICON PIXMAPS_DIR "battery-icon.png" +-#define MEM_ICON PIXMAPS_DIR "mem-icon.png" ++#define MEM_ICON PIXMAPS_DIR "memory-icon.png" + #define GPU_ICON PIXMAPS_DIR "gpu-icon.png" + #define GENERIC_ICON PIXMAPS_DIR "generic-icon.png" + #define FAN_ICON PIXMAPS_DIR "fan-icon.png" ++#define CASE_ICON PIXMAPS_DIR "case-icon.png" + #define VOLTAGE_ICON NULL + + #define DEFAULT_ICON_SIZE 24 + + typedef enum { + UNUSED = 0, /* as a flag to test against later */ +- ACPI, +- HDDTEMP, +- I2C_SYS, +- I2C_PROC, +- IBM_ACPI, +- I8K, + LIBSENSORS, +- OMNIBOOK, +- PMU_SYS, +- SMU_SYS, ++ MBMON, ++ SMARTCTL, + N_SENSOR_INTERFACES + } SensorInterface; + + static const gchar *sensor_interface[] = { + "unused", +- "acpi", +- "hddtemp", +- "i2c-sys", +- "i2c-proc", +- "ibm-acpi", +- "i8k", + "libsensors", +- "omnibook", +- "pmu-sys", +- "smu-sys", ++ "mbmon", ++ "smartctl" + }; + + /* enumeration used to identify columns in the GtkTreeStore data diff --git a/sysutils/sensors-applet/files/smartctl-helper.c b/sysutils/sensors-applet/files/smartctl-helper.c new file mode 100644 index 000000000..fe9aa4a3e --- /dev/null +++ b/sysutils/sensors-applet/files/smartctl-helper.c @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2006 Jean-Yves Lefort <jylefort@FreeBSD.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include <unistd.h> + +static void +smartctl_helper_usage (void) +{ + fprintf(stderr, "Usage: smartctl-helper enable|attributes DEVICE\n"); + exit(1); +} + +int +main (int argc, char **argv) +{ + if (argc != 3) + smartctl_helper_usage(); + + if (! strcmp(argv[1], "enable")) + { + char *smartctl_argv[] = { "smartctl", "-s", "on", argv[2], NULL }; + execve(SMARTCTL, smartctl_argv, NULL); + } + else if (! strcmp(argv[1], "attributes")) + { + char *smartctl_argv[] = { "smartctl", "-A", argv[2], NULL }; + execve(SMARTCTL, smartctl_argv, NULL); + } + else + smartctl_helper_usage(); + + /* execve failed */ + fprintf(stderr, "Unable to execute %s\n", SMARTCTL); + return 1; +} diff --git a/sysutils/sensors-applet/files/smartctl-sensors-interface.c b/sysutils/sensors-applet/files/smartctl-sensors-interface.c new file mode 100644 index 000000000..c3c4b3de8 --- /dev/null +++ b/sysutils/sensors-applet/files/smartctl-sensors-interface.c @@ -0,0 +1,198 @@ +/* + * Copyright (C) 2006 Jean-Yves Lefort <jylefort@FreeBSD.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include <stdlib.h> +#include <time.h> + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* HAVE_CONFIG_H */ + +#include "smartctl-sensors-interface.h" +#include "sensors-applet.h" + +/* be gentle */ +#define POLL_INTERVAL 30 + +typedef struct +{ + time_t last_poll; + double value; +} SensorInfo; + +static GHashTable *sensors; + +static gboolean +smartctl_sensors_interface_run (const char *command, + const char *device, + char **output) +{ + char *argv[4]; + GSpawnFlags flags = G_SPAWN_STDERR_TO_DEV_NULL; + char *_output = NULL; + int exit_status; + + g_return_val_if_fail(command != NULL, FALSE); + g_return_val_if_fail(device != NULL, FALSE); + + argv[0] = SMARTCTL_HELPER; + argv[1] = (char *) command; + argv[2] = (char *) device; + argv[3] = NULL; + + if (! output) + flags |= G_SPAWN_STDOUT_TO_DEV_NULL; + + if (g_spawn_sync(NULL, argv, NULL, flags, NULL, NULL, output ? &_output : NULL, NULL, &exit_status, NULL)) + { + if (exit_status == 0) + { + if (output) + *output = _output; + + return TRUE; + } + g_free(_output); + } + + return FALSE; +} + +static gboolean +smartctl_sensors_interface_get_temperature (const char *device, double *temp) +{ + char *output; + char **lines; + int i; + gboolean status = FALSE; + + g_return_val_if_fail(device != NULL, FALSE); + + if (! smartctl_sensors_interface_run("attributes", device, &output)) + return FALSE; + + lines = g_strsplit(output, "\n", 0); + g_free(output); + + for (i = 0; lines[i]; i++) + if (g_str_has_prefix(lines[i], "194 Temperature_Celsius")) + { + char *p; + + p = strrchr(lines[i], ' '); + if (p) + { + double _temp; + char *end; + + _temp = strtod(p + 1, &end); + if (*end == 0) + { + status = TRUE; + if (temp) + *temp = _temp; + } + } + + break; + } + g_strfreev(lines); + + return status; +} + +static void +smartctl_sensors_interface_disk_init (SensorsApplet *sensors_applet, + const char *disk, + int unit) +{ + char *device; + + g_return_if_fail(sensors_applet != NULL); + g_return_if_fail(disk != NULL); + + device = g_strdup_printf("/dev/%s%i", disk, unit); + if (g_file_test(device, G_FILE_TEST_EXISTS) + && smartctl_sensors_interface_run("enable", device, NULL) + && smartctl_sensors_interface_get_temperature(device, NULL)) + { + char *path; + char *label; + + path = g_strdup_printf("/smartctl%s", device); + label = g_strdup_printf("%s%i", disk, unit); + + sensors_applet_add_sensor(sensors_applet, + path, + device, + label, + SMARTCTL, + TRUE, + TEMP_SENSOR, + HDD_ICON); + + g_free(path); + g_free(label); + } + g_free(device); +} + +void +smartctl_sensors_interface_init (SensorsApplet *sensors_applet) +{ + int i; + + sensors = g_hash_table_new(g_str_hash, g_str_equal); + + sensors_applet_register_sensors_interface(sensors_applet, + SMARTCTL, + smartctl_sensors_interface_get_sensor_value); + + /* smartctl supports ad(4) and da(4) disks */ + for (i = 0; i < 10; i++) + { + smartctl_sensors_interface_disk_init(sensors_applet, "ad", i); + smartctl_sensors_interface_disk_init(sensors_applet, "da", i); + } +} + +double +smartctl_sensors_interface_get_sensor_value (const gchar *path, + const gchar *id, + SensorType type, + GError **error) +{ + SensorInfo *info; + time_t now; + + info = g_hash_table_lookup(sensors, id); + if (! info) + { + info = g_new0(SensorInfo, 1); + g_hash_table_insert(sensors, g_strdup(id), info); + } + + now = time(NULL); + if (now == -1 || now - info->last_poll >= POLL_INTERVAL) + { + info->last_poll = now; + smartctl_sensors_interface_get_temperature(id, &info->value); + } + + return info->value; +} diff --git a/sysutils/sensors-applet/files/smartctl-sensors-interface.h b/sysutils/sensors-applet/files/smartctl-sensors-interface.h new file mode 100644 index 000000000..03b3b099a --- /dev/null +++ b/sysutils/sensors-applet/files/smartctl-sensors-interface.h @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2006 Jean-Yves Lefort <jylefort@FreeBSD.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef SMARTCTL_SENSORS_INTERFACE_H +#define SMARTCTL_SENSORS_INTERFACE_H + +#include "sensors-applet.h" + +void smartctl_sensors_interface_init (SensorsApplet *sensors_applet); +double smartctl_sensors_interface_get_sensor_value (const gchar *path, + const gchar *id, + SensorType type, + GError **error); + +#endif /* SMARTCTL_SENSORS_INTERFACE_H*/ diff --git a/sysutils/sensors-applet/pkg-descr b/sysutils/sensors-applet/pkg-descr new file mode 100644 index 000000000..a7dbe3e0a --- /dev/null +++ b/sysutils/sensors-applet/pkg-descr @@ -0,0 +1,10 @@ +GNOME Sensors Applet is an applet for the GNOME Panel to display readings from +hardware sensors, including CPU temperature, fan speeds and voltage readings. + +On FreeBSD, sensor values are obtained from the sysutils/mbmon (for +motherboards) and sysutils/smartmontools (for hard disks) ports. + +WWW: http://sensors-applet.sourceforge.net/ + +- Jean-Yves Lefort +jylefort@FreeBSD.org diff --git a/sysutils/sensors-applet/pkg-plist b/sysutils/sensors-applet/pkg-plist new file mode 100644 index 000000000..fae823ba7 --- /dev/null +++ b/sysutils/sensors-applet/pkg-plist @@ -0,0 +1,33 @@ +libdata/bonobo/servers/SensorsApplet.server +libexec/sensors-applet +libexec/smartctl-helper +share/gnome-2.0/ui/SensorsApplet.xml +share/gnome/help/sensors-applet/C/figures/applet_in_panel.png +share/gnome/help/sensors-applet/C/legal.xml +share/gnome/help/sensors-applet/C/sensors-applet.xml +share/omf/sensors-applet/sensors-applet-C.omf +share/pixmaps/sensors-applet/battery-icon.png +share/pixmaps/sensors-applet/case-icon.png +share/pixmaps/sensors-applet/cpu-icon.png +share/pixmaps/sensors-applet/fan-icon.png +share/pixmaps/sensors-applet/hdd-icon.png +share/pixmaps/sensors-applet/high-temp-icon.png +share/pixmaps/sensors-applet/low-temp-icon.png +share/pixmaps/sensors-applet/memory-icon.png +share/pixmaps/sensors-applet/normal-temp-icon.png +share/pixmaps/sensors-applet/sensors-applet-icon.png +share/pixmaps/sensors-applet/very-high-temp-icon.png +share/pixmaps/sensors-applet/very-low-temp-icon.png +share/locale/de/LC_MESSAGES/sensors-applet.mo +share/locale/es/LC_MESSAGES/sensors-applet.mo +share/locale/fi/LC_MESSAGES/sensors-applet.mo +share/locale/fr/LC_MESSAGES/sensors-applet.mo +share/locale/it/LC_MESSAGES/sensors-applet.mo +share/locale/pl/LC_MESSAGES/sensors-applet.mo +share/locale/ro/LC_MESSAGES/sensors-applet.mo +share/locale/ru/LC_MESSAGES/sensors-applet.mo +@dirrm share/gnome/help/sensors-applet/C/figures +@dirrm share/gnome/help/sensors-applet/C +@dirrm share/gnome/help/sensors-applet +@dirrm share/omf/sensors-applet +@dirrm share/pixmaps/sensors-applet diff --git a/sysutils/tracker/Makefile b/sysutils/tracker/Makefile new file mode 100644 index 000000000..dd2d7d3dc --- /dev/null +++ b/sysutils/tracker/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: tracker +# Date created: 2006-12-09 +# Whom: Michael Johnson <ahze@FreeBSD.org> +# +# $FreeBSD$ +# $MCom: ports/sysutils/tracker/Makefile,v 1.2 2006/12/10 17:33:17 ahze Exp $ +# + +PORTNAME= tracker +PORTVERSION= 0.5.4 +PORTREVISION= 5 +CATEGORIES= sysutils gnome +MASTER_SITES= http://www.gnome.org/~jamiemcc/tracker/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Object database, tag/metadata database, search tool and indexer + +LIB_DEPENDS= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \ + poppler-glib.1:${PORTSDIR}/graphics/poppler-gtk \ + exif.12:${PORTSDIR}/graphics/libexif \ + wv-1.2.3:${PORTSDIR}/textproc/wv \ + gmime-2.0.4:${PORTSDIR}/mail/gmime2 + +USE_FAM= yes +WANT_FAM_SYSTEM=gamin +USE_GNOME= gnomedesktop gnomehack gnomeprefix libgsf +USE_GMAKE= yes +USE_GETTEXT= yes +USE_LDCONFIG= yes +USE_GSTREAMER= core +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +CONFIGURE_ARGS= --enable-gstreamer \ + --disable-inotify \ + --with-deskbar-applet-handler-dir=${PREFIX}/lib/deskbar-applet/handlers + +MAN1= tracker-extract.1 tracker-files.1 tracker-meta-folder.1 \ + tracker-query.1 tracker-search.1 tracker-stats.1 trackerd.1 + +post-patch: + @${REINPLACE_CMD} -e 's|libpng|libpng12|' ${WRKSRC}/configure + +.include <bsd.port.mk> diff --git a/sysutils/tracker/distinfo b/sysutils/tracker/distinfo new file mode 100644 index 000000000..e63bfb6ae --- /dev/null +++ b/sysutils/tracker/distinfo @@ -0,0 +1,3 @@ +MD5 (tracker-0.5.4.tar.gz) = 724208e1b2d235148499672b44181298 +SHA256 (tracker-0.5.4.tar.gz) = ad214a2692041f423d2150777c233b21cab2d108f849edc513192587ac63c9c2 +SIZE (tracker-0.5.4.tar.gz) = 1381786 diff --git a/sysutils/tracker/files/patch-src_sqlite3_os_unix.c b/sysutils/tracker/files/patch-src_sqlite3_os_unix.c new file mode 100644 index 000000000..5cbb1a30c --- /dev/null +++ b/sysutils/tracker/files/patch-src_sqlite3_os_unix.c @@ -0,0 +1,12 @@ +--- src/sqlite3/os_unix.c.orig Sat Dec 9 21:35:39 2006 ++++ src/sqlite3/os_unix.c Sat Dec 9 21:36:02 2006 +@@ -1110,9 +1110,7 @@ + ** Use the fdatasync() API only if the HAVE_FDATASYNC macro is defined. + ** Otherwise use fsync() in its place. + */ +-#ifndef HAVE_FDATASYNC + # define fdatasync fsync +-#endif + + /* + ** Define HAVE_FULLFSYNC to 0 or 1 depending on whether or not diff --git a/sysutils/tracker/pkg-descr b/sysutils/tracker/pkg-descr new file mode 100644 index 000000000..fbabf7af0 --- /dev/null +++ b/sysutils/tracker/pkg-descr @@ -0,0 +1,13 @@ +Tracker is a powerful desktop-neutral first class object database, tag/metadata +database, search tool and indexer. + +Tracker is also extremely fast and super efficient with your systems memory when +compared with some other competing frameworks and is by far the fastest and most +memory efficient Nautilus search and Deskbar backends currently availble. + +It consists of a common object database that allows entities to have an almost +infinte number of properties, metadata (both embedded/harvested as well as user +definable), a comprehensive database of keywords/tags and links to other +entities. + +WWW: http://www.tracker-project.org/ diff --git a/sysutils/tracker/pkg-plist b/sysutils/tracker/pkg-plist new file mode 100644 index 000000000..748459889 --- /dev/null +++ b/sysutils/tracker/pkg-plist @@ -0,0 +1,92 @@ +bin/htmless +bin/o3totxt +bin/tracker-extract +bin/tracker-files +bin/tracker-meta-folder +bin/tracker-query +bin/tracker-search +bin/tracker-search-tool +bin/tracker-stats +bin/tracker-tag +bin/tracker-thumbnailer +bin/trackerd +etc/xdg/autostart/trackerd.desktop +include/tracker-client.h +include/tracker.h +lib/deskbar-applet/handlers/tracker-handler.py +lib/libtrackerclient.a +lib/libtrackerclient.la +lib/libtrackerclient.so +lib/libtrackerclient.so.0 +lib/tracker/filters/application/msword_filter +lib/tracker/filters/application/pdf_filter +lib/tracker/filters/application/vnd.oasis.opendocument.presentation-template_filter +lib/tracker/filters/application/vnd.oasis.opendocument.presentation_filter +lib/tracker/filters/application/vnd.oasis.opendocument.spreadsheet-template_filter +lib/tracker/filters/application/vnd.oasis.opendocument.spreadsheet_filter +lib/tracker/filters/application/vnd.oasis.opendocument.text-template_filter +lib/tracker/filters/application/vnd.oasis.opendocument.text_filter +lib/tracker/filters/application/vnd.stardivision.writer_filter +lib/tracker/filters/application/vnd.sun.xml.calc.template_filter +lib/tracker/filters/application/vnd.sun.xml.calc_filter +lib/tracker/filters/application/vnd.sun.xml.impress.template_filter +lib/tracker/filters/application/vnd.sun.xml.impress_filter +lib/tracker/filters/application/vnd.sun.xml.writer.template_filter +lib/tracker/filters/application/vnd.sun.xml.writer_filter +lib/tracker/filters/application/x-abiword_filter +lib/tracker/filters/text/html_filter +lib/tracker/filters/text/x-tex_filter +lib/tracker/filters/text/xml_filter +lib/tracker/thumbnailers/application/pdf_thumbnailer +lib/tracker/thumbnailers/application/vnd.oasis.opendocument.graphics_thumbnailer +lib/tracker/thumbnailers/application/vnd.oasis.opendocument.presentation_thumbnailer +lib/tracker/thumbnailers/application/vnd.oasis.opendocument.spreadsheet_thumbnailer +lib/tracker/thumbnailers/application/vnd.oasis.opendocument.text_thumbnailer +lib/tracker/thumbnailers/image/jpeg_thumbnailer +lib/tracker/thumbnailers/image/png_thumbnailer +libdata/pkgconfig/tracker.pc +share/dbus-1/services/tracker.service +share/applications/tracker-search-tool.desktop +share/pixmaps/tracker/thumbnail_frame.png +share/pixmaps/tracker/tracker.png +share/tracker/languages/stopwords.da +share/tracker/languages/stopwords.de +share/tracker/languages/stopwords.en +share/tracker/languages/stopwords.es +share/tracker/languages/stopwords.fi +share/tracker/languages/stopwords.fr +share/tracker/languages/stopwords.it +share/tracker/languages/stopwords.nb +share/tracker/languages/stopwords.nl +share/tracker/languages/stopwords.pt +share/tracker/languages/stopwords.ru +share/tracker/languages/stopwords.sv +share/tracker/sqlite-stored-procs.sql +share/tracker/sqlite-tracker.sql +share/tracker/tracker-introspect.xml +share/locale/ar/LC_MESSAGES/tracker.mo +share/locale/de/LC_MESSAGES/tracker.mo +share/locale/en_GB/LC_MESSAGES/tracker.mo +share/locale/es/LC_MESSAGES/tracker.mo +share/locale/et/LC_MESSAGES/tracker.mo +share/locale/fi/LC_MESSAGES/tracker.mo +share/locale/fr/LC_MESSAGES/tracker.mo +share/locale/gl/LC_MESSAGES/tracker.mo +share/locale/it/LC_MESSAGES/tracker.mo +share/locale/nb/LC_MESSAGES/tracker.mo +share/locale/sl/LC_MESSAGES/tracker.mo +share/locale/sv/LC_MESSAGES/tracker.mo +@dirrm share/tracker/languages +@dirrm share/tracker +@dirrm share/pixmaps/tracker +@dirrm lib/tracker/thumbnailers/image +@dirrm lib/tracker/thumbnailers/application +@dirrm lib/tracker/thumbnailers +@dirrm lib/tracker/filters/text +@dirrm lib/tracker/filters/application +@dirrm lib/tracker/filters +@dirrm lib/tracker +@dirrmtry lib/deskbar-applet/handlers +@dirrmtry lib/deskbar-applet +@dirrmtry etc/xdg/autostart +@dirrmtry etc/xdg |