From f7577bacf9db9c75776cbda37e9aadc5818c9e3b Mon Sep 17 00:00:00 2001 From: Kirill Ponomarev Date: Wed, 12 Jan 2005 18:56:09 +0000 Subject: Fix build on -current Support GCONF_SCHEMAS Support SUB_LIST PR: ports/76157 Submitted by: Ports Fury --- astro/seti_applet/Makefile | 35 ++++++------------------ astro/seti_applet/files/patch-src::seti_applet.c | 10 +++++++ astro/seti_applet/files/pkg-message.in | 23 ++++++++++++++++ astro/seti_applet/pkg-message | 23 ---------------- astro/seti_applet/pkg-plist | 7 ----- 5 files changed, 41 insertions(+), 57 deletions(-) create mode 100644 astro/seti_applet/files/patch-src::seti_applet.c create mode 100644 astro/seti_applet/files/pkg-message.in delete mode 100644 astro/seti_applet/pkg-message (limited to 'astro/seti_applet') diff --git a/astro/seti_applet/Makefile b/astro/seti_applet/Makefile index 42374485718c..9bc2227b129c 100644 --- a/astro/seti_applet/Makefile +++ b/astro/seti_applet/Makefile @@ -17,42 +17,23 @@ COMMENT= An applet that displays current status of seti@home client LIB_DEPENDS= gtop-2.0:${PORTSDIR}/devel/libgtop2 RUN_DEPENDS= ${LOCALBASE}/sbin/setiathome:${PORTSDIR}/astro/setiathome -USE_REINPLACE= yes USE_X_PREFIX= yes +USE_GNOME= gnomehack gnomepanel gnomeprefix +USE_REINPLACE= yes USE_GMAKE= yes -USE_GNOME= gnomeprefix gnomehack gnomepanel -USE_LIBTOOL_VER=13 +USE_LIBTOOL_VER= 15 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" -# Local variables -# - -MSG_FILE= ${PKGDIR}/pkg-message -PKGMESSAGE= ${WRKDIR}/pkg-message - -REINPLACE_SUB= LOCALBASE=${LOCALBASE} -PKGMESSAGE_SUB= LOCALBASE=${LOCALBASE} +GCONF_SCHEMAS= seti_applet.schemas -# Post-patch -# +SUB_FILES= pkg-message -post-patch: patch-seti_applet patch-pkgmessage - -patch-seti_applet: - @${REINPLACE_CMD} ${REINPLACE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ +post-patch: + @${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/src/seti_applet.schemas -patch-pkgmessage: - @${SED} ${REINPLACE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ - ${MSG_FILE} > ${PKGMESSAGE} - -# Post-install -# - -post-install: display-message - -display-message: +post-install: @${CAT} ${PKGMESSAGE} .include diff --git a/astro/seti_applet/files/patch-src::seti_applet.c b/astro/seti_applet/files/patch-src::seti_applet.c new file mode 100644 index 000000000000..47571a0b5509 --- /dev/null +++ b/astro/seti_applet/files/patch-src::seti_applet.c @@ -0,0 +1,10 @@ +--- src/seti_applet.c.orig Thu Mar 6 15:03:55 2003 ++++ src/seti_applet.c Wed Jan 12 22:47:00 2005 +@@ -177,6 +177,7 @@ + static void setup_percent_canvas_item(setiapplet *); + static void setup_units_canvas_item(setiapplet *); + static void setup_cputime_canvas_item(setiapplet *); ++static void setup_cputime_current_canvas_item(setiapplet *); + static void applet_change_orient(PanelApplet *, + PanelAppletOrient, + gpointer); diff --git a/astro/seti_applet/files/pkg-message.in b/astro/seti_applet/files/pkg-message.in new file mode 100644 index 000000000000..43c4368c1e24 --- /dev/null +++ b/astro/seti_applet/files/pkg-message.in @@ -0,0 +1,23 @@ +**** To enable start/stop of the seti@home client, please run "setiathome" + as your login name. + If you installed "setiathome" by ports or package, add, change or + uncomment the seti_user variable in %%LOCALBASE%%/etc/rc.setiathome.conf + (or %%LOCALBASE%%/etc/setiathome.conf depending on the version currently + installed on your computer) + seti_user=nobody + ^^^^^^ + to your login name before setting up working directory, such as : + seti_user= + If you already done this as nobody, do + %%LOCALBASE%%/etc/rc.d/setiathome.sh stop + chown -Rh /var/db/setiathome + %%LOCALBASE%%/etc/rc.d/setiathome.sh start +**** Known Bugs + For instance, default values have to be set manually using the panel + preferences (right-click): + set the value of "Basic->Directory containing the seti@home executable" + to /var/db/setiathome + check "Advanced->Use seti@home exe in a different directory" + and set it's value to %%LOCALBASE%%/sbin + Also, running xsetiathome by double-clicking the radar icon isn't + possible right now. diff --git a/astro/seti_applet/pkg-message b/astro/seti_applet/pkg-message deleted file mode 100644 index 43c4368c1e24..000000000000 --- a/astro/seti_applet/pkg-message +++ /dev/null @@ -1,23 +0,0 @@ -**** To enable start/stop of the seti@home client, please run "setiathome" - as your login name. - If you installed "setiathome" by ports or package, add, change or - uncomment the seti_user variable in %%LOCALBASE%%/etc/rc.setiathome.conf - (or %%LOCALBASE%%/etc/setiathome.conf depending on the version currently - installed on your computer) - seti_user=nobody - ^^^^^^ - to your login name before setting up working directory, such as : - seti_user= - If you already done this as nobody, do - %%LOCALBASE%%/etc/rc.d/setiathome.sh stop - chown -Rh /var/db/setiathome - %%LOCALBASE%%/etc/rc.d/setiathome.sh start -**** Known Bugs - For instance, default values have to be set manually using the panel - preferences (right-click): - set the value of "Basic->Directory containing the seti@home executable" - to /var/db/setiathome - check "Advanced->Use seti@home exe in a different directory" - and set it's value to %%LOCALBASE%%/sbin - Also, running xsetiathome by double-clicking the radar icon isn't - possible right now. diff --git a/astro/seti_applet/pkg-plist b/astro/seti_applet/pkg-plist index 6b3f7f6301b7..25381f8bce15 100644 --- a/astro/seti_applet/pkg-plist +++ b/astro/seti_applet/pkg-plist @@ -1,10 +1,5 @@ @comment $FreeBSD$ bin/seti-applet-2 -@comment etc/gconf/gconf.xml.defaults/apps/seti_applet/%gconf.xml -@comment etc/gconf/gconf.xml.defaults/apps/seti_applet/prefs/%gconf.xml -etc/gconf/gconf.xml.defaults/schemas/apps/seti_applet/%gconf.xml -etc/gconf/gconf.xml.defaults/schemas/apps/seti_applet/prefs/%gconf.xml -etc/gconf/schemas/seti_applet.schemas libdata/bonobo/servers/GNOME_SetiApplet_Factory.server share/gnome/gnome-2.0/ui/GNOME_SetiApplet.xml share/gnome/help/seti_applet/C/configuration.html @@ -35,5 +30,3 @@ share/locale/fr/LC_MESSAGES/seti-applet.mo @dirrm share/gnome/help/seti_applet/C/images @dirrm share/gnome/help/seti_applet/C @dirrm share/gnome/help/seti_applet -@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/seti_applet/prefs -@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/seti_applet -- cgit v1.2.3