aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
Diffstat (limited to 'x11')
-rw-r--r--x11/Makefile1
-rw-r--r--x11/wmshutdown/Makefile33
-rw-r--r--x11/wmshutdown/distinfo1
-rw-r--r--x11/wmshutdown/files/patch-aa42
-rw-r--r--x11/wmshutdown/files/patch-ab20
-rw-r--r--x11/wmshutdown/files/patch-ac29
-rw-r--r--x11/wmshutdown/pkg-comment1
-rw-r--r--x11/wmshutdown/pkg-descr7
-rw-r--r--x11/wmshutdown/pkg-plist5
9 files changed, 139 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index bd9631679af8..3920aa4fa9ef 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -113,6 +113,7 @@
SUBDIR += wmmatrix
SUBDIR += wmmenu
SUBDIR += wmoldmenu2new
+ SUBDIR += wmshutdown
SUBDIR += wrapper
SUBDIR += wscan
SUBDIR += wterm
diff --git a/x11/wmshutdown/Makefile b/x11/wmshutdown/Makefile
new file mode 100644
index 000000000000..996fe33043d0
--- /dev/null
+++ b/x11/wmshutdown/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: wmshutdown
+# Date created: 26 November 2002
+# Whom: nishida
+#
+# $FreeBSD$
+#
+
+PORTNAME= wmShutdown
+PORTVERSION= 0.2
+CATEGORIES= x11 windowmaker
+MASTER_SITES= http://grad.icmc.usp.br/~rva/pkgs/
+
+MAINTAINER= kaname@vamp.jpn.ph
+
+USE_GNOMENG= yes
+USE_GNOME= gtk12
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+USE_XPM= yes
+
+do-install:
+ @${ECHO} "wmShutdown -- Rafael V. Aroca <rafael@linuxqos.cjb.net>"
+ @${MKDIR} ${PREFIX}/share/wmShutdown/pixmaps && ${CHMOD} a+rx ${PREFIX}/share/wmShutdown/pixmaps
+ @${INSTALL_PROGRAM} ${WRKSRC}/wmShutdown ${PREFIX}/bin
+ @${INSTALL_PROGRAM} -g wheel -o root ${WRKSRC}/Shutdown ${PREFIX}/bin
+ @${INSTALL_PROGRAM} ${WRKSRC}/Shutdown ${PREFIX}/bin
+ @${CHMOD} +s ${PREFIX}/bin/Shutdown
+ @${INSTALL_DATA} ${WRKSRC}/wmShutdown.xpm ${PREFIX}/share/wmShutdown/pixmaps/wmShutdown.xpm
+
+post-install:
+ @${ECHO} "===> Installed. Just type wmShutdown to use it"
+
+.include <bsd.port.mk>
diff --git a/x11/wmshutdown/distinfo b/x11/wmshutdown/distinfo
new file mode 100644
index 000000000000..4b93a1666fce
--- /dev/null
+++ b/x11/wmshutdown/distinfo
@@ -0,0 +1 @@
+MD5 (wmShutdown-0.2.tar.gz) = 6937692d776d62f440aa71d3b8b13d07
diff --git a/x11/wmshutdown/files/patch-aa b/x11/wmshutdown/files/patch-aa
new file mode 100644
index 000000000000..5754fcf9bab6
--- /dev/null
+++ b/x11/wmshutdown/files/patch-aa
@@ -0,0 +1,42 @@
+--- Makefile Tue Nov 26 20:56:14 2002
++++ Makefile Sun Dec 1 23:15:33 2002
+@@ -1,29 +1,13 @@
+-all:
+- @echo "wmShutdown version 0.1 - Rafael V. Aroca <rafael@linuxqos.cjb.net>"
+- @echo "Order of makes to install: dock, shutdown, install"
+-
+-clean:
+- rm -f wmShutdown.o
+- rm -f wmShutdown
+- rm -f Shutdown
++GTK-CONFIG= gtk-config
++GTKCFLAGS= `$(GTK-CONFIG) --cflags`
++GTKLIBS= `$(GTK-CONFIG) --libs`
+
+-install:
+- install wmShutdown /usr/local/bin
+- install wmShutdown.xpm /usr/share/pixmaps/
+- install -g root -o root Shutdown /usr/local/bin
+- chmod +s /sbin/shutdown
+- chmod +s /usr/local/bin/Shutdown
+- @echo Installed. Just type wmShutdown to use it
+-
+-uninstall:
+- rm -f /usr/local/bin/wmShutdown
+- rm -f /usr/local/bin/Shutdown
+- rm -f /usr/share/pixmaps/wmShutdown.xpm
+- @echo ":-( Uninstalled."
++all: wmShutdown Shutdown
++ @echo "wmShutdown version 0.1 - Rafael V. Aroca <rafael@linuxqos.cjb.net>"
+
+-dock: wmShutdown.c
+- $(CC) -c -o wmShutdown.o wmShutdown.c `gtk-config --cflags`
+- $(CC) -o wmShutdown wmShutdown.o `gtk-config --libs`
++wmShutdown: wmShutdown.c
++ $(CC) -c -o wmShutdown.o wmShutdown.c $(GTKCFLAGS)
++ $(CC) -o wmShutdown wmShutdown.o $(GTKLIBS)
+
+-shutdown: shutdown.c
+- $(CC) -o Shutdown shutdown.c
++Shutdown: shutdown.c
++ $(CC) -o Shutdown shutdown.c
diff --git a/x11/wmshutdown/files/patch-ab b/x11/wmshutdown/files/patch-ab
new file mode 100644
index 000000000000..6d0bc1fe3b8f
--- /dev/null
+++ b/x11/wmshutdown/files/patch-ab
@@ -0,0 +1,20 @@
+--- shutdown.c Sun Dec 1 23:28:23 2002
++++ shutdown.c Sun Dec 1 23:29:16 2002
+@@ -18,7 +18,7 @@
+ FILE *output;
+
+ printf("Rebooting...\n");
+- output = popen("/sbin/shutdown now -r", "r");
++ output = popen("/sbin/shutdown -r now", "r");
+ teste = (char*) fgetc(output);
+ while ((int)teste != EOF) {
+ printf("%c", teste);
+@@ -32,7 +32,7 @@
+ FILE *output;
+
+ printf("Halting...\n");
+- output = popen("/sbin/shutdown now -h", "r");
++ output = popen("/sbin/shutdown -h now", "r");
+ teste = (char*) fgetc(output);
+ while ((int)teste != EOF) {
+ printf("%c", teste);
diff --git a/x11/wmshutdown/files/patch-ac b/x11/wmshutdown/files/patch-ac
new file mode 100644
index 000000000000..6472694ea348
--- /dev/null
+++ b/x11/wmshutdown/files/patch-ac
@@ -0,0 +1,29 @@
+--- wmShutdown.c.orig Sun Dec 1 23:53:12 2002
++++ wmShutdown.c Mon Dec 2 00:03:42 2002
+@@ -57,7 +57,7 @@
+ FILE *output;
+ char *teste;
+
+- output = popen("/usr/local/bin/Shutdown -h", "r");
++ output = popen("/usr/X11R6/bin/Shutdown -h", "r");
+ teste = (char*) fgetc(output);
+ while ((int)teste != EOF) {
+ g_print("%c", teste);
+@@ -70,7 +70,7 @@
+ FILE *output;
+ char *teste;
+
+- output = popen("/usr/local/bin/Shutdown -r", "r");
++ output = popen("/usr/X11R6/bin/Shutdown -r", "r");
+ teste = (char*) fgetc(output);
+ while ((int)teste != EOF) {
+ g_print("%c", teste);
+@@ -148,7 +148,7 @@
+ gtk_widget_realize(dockArea);
+
+ icon = (gpointer) gdk_pixmap_create_from_xpm (gtkiw->window, &mask,
+- NULL, "/usr/share/pixmaps/wmShutdown.xpm");
++ NULL, "/usr/X11R6/share/wmShutdown/pixmaps/wmShutdown.xpm");
+
+ pixmap = gtk_pixmap_new((gpointer) icon, mask);
+ gtk_widget_show(pixmap);
diff --git a/x11/wmshutdown/pkg-comment b/x11/wmshutdown/pkg-comment
new file mode 100644
index 000000000000..fd528bd2b411
--- /dev/null
+++ b/x11/wmshutdown/pkg-comment
@@ -0,0 +1 @@
+Window Maker dock application to shutdown or reboot
diff --git a/x11/wmshutdown/pkg-descr b/x11/wmshutdown/pkg-descr
new file mode 100644
index 000000000000..f192476f837f
--- /dev/null
+++ b/x11/wmshutdown/pkg-descr
@@ -0,0 +1,7 @@
+wmShutdown is a Window Maker dock application that allows you to shutdow
+n or reboot your machine just by clickig a button on your desktop.
+
+WWW: http://grad.icmc.usp.br/~rva/wmShutdown.html
+
+-- Nishida
+kaname@vamp.jpn.ph
diff --git a/x11/wmshutdown/pkg-plist b/x11/wmshutdown/pkg-plist
new file mode 100644
index 000000000000..908d25623c43
--- /dev/null
+++ b/x11/wmshutdown/pkg-plist
@@ -0,0 +1,5 @@
+bin/wmShutdown
+bin/Shutdown
+share/wmShutdown/pixmaps/wmShutdown.xpm
+@dirrm share/wmShutdown/pixmaps
+@dirrm share/wmShutdown