diff options
author | edwin <edwin@FreeBSD.org> | 2003-02-13 00:24:12 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-02-13 00:24:12 +0000 |
commit | c2febb57109420fc192150da37beb6211001bbbd (patch) | |
tree | 676ad8234730d08e315bd54af265322086f8e84c /sysutils | |
parent | 4c92208acb0e185e26317d4dd7115b9789d640f3 (diff) | |
download | FreeBSD-ports-c2febb57109420fc192150da37beb6211001bbbd.zip FreeBSD-ports-c2febb57109420fc192150da37beb6211001bbbd.tar.gz |
Move wmshutdown from ports/x11 to ports/sysutils on danfe's suggestion.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/wmshutdown/files/patch-aa | 42 | ||||
-rw-r--r-- | sysutils/wmshutdown/files/patch-ab | 20 | ||||
-rw-r--r-- | sysutils/wmshutdown/files/patch-ac | 29 |
4 files changed, 92 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 1699289..7d63710 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -272,6 +272,7 @@ SUBDIR += wmmon SUBDIR += wmmount SUBDIR += wmpccard + SUBDIR += wmshutdown SUBDIR += wmtop SUBDIR += wmzazof SUBDIR += wots diff --git a/sysutils/wmshutdown/files/patch-aa b/sysutils/wmshutdown/files/patch-aa new file mode 100644 index 0000000..5754fcf --- /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 0000000..6d0bc1f --- /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 0000000..6472694 --- /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); |