summaryrefslogtreecommitdiff
path: root/sysutils/wmshutdown
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-02-13 00:24:12 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-02-13 00:24:12 +0000
commit355ce52351a0c0e8e920063e28d78136f1c8b318 (patch)
tree4e9aae495a4f8a671b86f0183cdc9abe2cf230b7 /sysutils/wmshutdown
parentUpdate devel/p5-Log-Log4perl to 0.29 (diff)
Move wmshutdown from ports/x11 to ports/sysutils on danfe's suggestion.
Notes
Notes: svn path=/head/; revision=75414
Diffstat (limited to 'sysutils/wmshutdown')
-rw-r--r--sysutils/wmshutdown/files/patch-aa42
-rw-r--r--sysutils/wmshutdown/files/patch-ab20
-rw-r--r--sysutils/wmshutdown/files/patch-ac29
3 files changed, 91 insertions, 0 deletions
diff --git a/sysutils/wmshutdown/files/patch-aa b/sysutils/wmshutdown/files/patch-aa
new file mode 100644
index 000000000000..5754fcf9bab6
--- /dev/null
+++ b/sysutils/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/sysutils/wmshutdown/files/patch-ab b/sysutils/wmshutdown/files/patch-ab
new file mode 100644
index 000000000000..6d0bc1fe3b8f
--- /dev/null
+++ b/sysutils/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/sysutils/wmshutdown/files/patch-ac b/sysutils/wmshutdown/files/patch-ac
new file mode 100644
index 000000000000..6472694ea348
--- /dev/null
+++ b/sysutils/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);