Skip site navigation (1)Skip section navigation (2)
Date:      2 Dec 2002 14:02:10 -0000
From:      kaname@vamp.jpn.ph
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        kaname@vamp.jpn.ph
Subject:   ports/45917: New port: windowmaker applet for easy shutdown
Message-ID:  <20021202140210.86723.qmail@vamp.jpn.ph>

next in thread | raw e-mail | index | archive | help

>Number:         45917
>Category:       ports
>Synopsis:       New port: windowmaker applet for easy shutdown
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 02 06:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kaname Nishida
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
	
>Description:
	
>How-To-Repeat:
	
>Fix:

	

--- shar-result begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/x11/wmshutdown
#	/usr/ports/x11/wmshutdown/pkg-plist
#	/usr/ports/x11/wmshutdown/shar-result
#	/usr/ports/x11/wmshutdown/Makefile
#	/usr/ports/x11/wmshutdown/pkg-descr
#	/usr/ports/x11/wmshutdown/files
#	/usr/ports/x11/wmshutdown/files/patch-aa
#	/usr/ports/x11/wmshutdown/files/patch-ab
#	/usr/ports/x11/wmshutdown/files/patch-ac
#	/usr/ports/x11/wmshutdown/distinfo
#	/usr/ports/x11/wmshutdown/pkg-comment
#
echo c - /usr/ports/x11/wmshutdown
mkdir -p /usr/ports/x11/wmshutdown > /dev/null 2>&1
echo x - /usr/ports/x11/wmshutdown/pkg-plist
sed 's/^X//' >/usr/ports/x11/wmshutdown/pkg-plist << 'END-of-/usr/ports/x11/wmshutdown/pkg-plist'
Xbin/wmShutdown
Xbin/Shutdown
Xshare/wmShutdown/pixmaps/wmShutdown.xpm
X@dirrm share/wmShutdown/pixmaps
X@dirrm share/wmShutdown
END-of-/usr/ports/x11/wmshutdown/pkg-plist
echo x - /usr/ports/x11/wmshutdown/shar-result
sed 's/^X//' >/usr/ports/x11/wmshutdown/shar-result << 'END-of-/usr/ports/x11/wmshutdown/shar-result'
X# This is a shell archive.  Save it in a file, remove anything before
X# this line, and then unpack it by entering "sh file".  Note, it may
X# create directories; files and directories will be owned by you and
X# have default permissions.
X#
X# This archive contains:
X#
X#	/usr/ports/x11/wmshutdown
X#	/usr/ports/x11/wmshutdown/pkg-plist
X#	/usr/ports/x11/wmshutdown/shar-result
X#	/usr/ports/x11/wmshutdown/Makefile
X#	/usr/ports/x11/wmshutdown/pkg-descr
X#	/usr/ports/x11/wmshutdown/files
X#	/usr/ports/x11/wmshutdown/files/patch-aa
X#	/usr/ports/x11/wmshutdown/files/patch-ab
X#	/usr/ports/x11/wmshutdown/files/patch-ac
X#	/usr/ports/x11/wmshutdown/distinfo
X#	/usr/ports/x11/wmshutdown/pkg-comment
X#
Xecho c - /usr/ports/x11/wmshutdown
Xmkdir -p /usr/ports/x11/wmshutdown > /dev/null 2>&1
Xecho x - /usr/ports/x11/wmshutdown/pkg-plist
Xsed 's/^X//' >/usr/ports/x11/wmshutdown/pkg-plist << 'END-of-/usr/ports/x11/wmshutdown/pkg-plist'
XXbin/wmShutdown
XXbin/Shutdown
XXshare/wmShutdown/pixmaps/wmShutdown.xpm
XX@dirrm share/wmShutdown/pixmaps
XX@dirrm share/wmShutdown
XEND-of-/usr/ports/x11/wmshutdown/pkg-plist
Xecho x - /usr/ports/x11/wmshutdown/shar-result
Xsed 's/^X//' >/usr/ports/x11/wmshutdown/shar-result << 'END-of-/usr/ports/x11/wmshutdown/shar-result'
END-of-/usr/ports/x11/wmshutdown/shar-result
echo x - /usr/ports/x11/wmshutdown/Makefile
sed 's/^X//' >/usr/ports/x11/wmshutdown/Makefile << 'END-of-/usr/ports/x11/wmshutdown/Makefile'
X# New ports collection makefile for:   wmshutdown
X# Date created:        26 November 2002
X# Whom:                nishida
X#
X# $FreeBSD$
X#
X
XPORTNAME=	wmShutdown
XPORTVERSION=	0.2
XCATEGORIES=	windowmaker
XMASTER_SITES=	http://grad.icmc.usp.br/~rva/pkgs/
X
XMAINTAINER=	kaname@vamp.jpn.ph
X
X#LIB_DEPENDS=	libgtk12.so.2:${PORTSDIR}/x11-toolkits/gtk12:install
XBUILD_DEPENDS=	gtk-config:${PORTSDIR}/x11-toolkits/gtk12
X
XUSE_GMAKE=	yes
XUSE_X_PREFIX=	yes
XUSE_XPM=	yes
X
Xdo-install:
X	@${ECHO} "wmShutdown -- Rafael V. Aroca <rafael@linuxqos.cjb.net>"
X	@${MKDIR} ${PREFIX}/share/wmShutdown/pixmaps && ${CHMOD} a+rx ${PREFIX}/share/wmShutdown/pixmaps
X	@${INSTALL_PROGRAM} ${WRKSRC}/wmShutdown ${PREFIX}/bin
X	@${INSTALL_PROGRAM} -g wheel -o root ${WRKSRC}/Shutdown ${PREFIX}/bin
X	@${CHMOD} +s /sbin/shutdown
X	@${CHMOD} +s ${PREFIX}/bin/Shutdown
X	@${INSTALL_DATA} ${WRKSRC}/wmShutdown.xpm ${PREFIX}/share/wmShutdown/pixmaps/wmShutdown.xpm
X
Xpost-install:
X	@${ECHO} "===> Installed. Just type wmShutdown to use it"
X
X.include <bsd.port.mk>
END-of-/usr/ports/x11/wmshutdown/Makefile
echo x - /usr/ports/x11/wmshutdown/pkg-descr
sed 's/^X//' >/usr/ports/x11/wmshutdown/pkg-descr << 'END-of-/usr/ports/x11/wmshutdown/pkg-descr'
XwmShutdown is a Window Maker dock application that allows you to shutdow
Xn or reboot your machine just by clickig a button on your desktop.
X
XWWW: http://grad.icmc.usp.br/~rva/wmShutdown.html
X
X-- Nishida
Xkaname@vamp.jpn.ph
END-of-/usr/ports/x11/wmshutdown/pkg-descr
echo c - /usr/ports/x11/wmshutdown/files
mkdir -p /usr/ports/x11/wmshutdown/files > /dev/null 2>&1
echo x - /usr/ports/x11/wmshutdown/files/patch-aa
sed 's/^X//' >/usr/ports/x11/wmshutdown/files/patch-aa << 'END-of-/usr/ports/x11/wmshutdown/files/patch-aa'
X--- Makefile	Tue Nov 26 20:56:14 2002
X+++ Makefile	Sun Dec  1 23:15:33 2002
X@@ -1,29 +1,13 @@
X-all:
X-	@echo "wmShutdown version 0.1 - Rafael V. Aroca <rafael@linuxqos.cjb.net>"
X-	@echo "Order of makes to install: dock, shutdown, install"
X-
X-clean:
X-	rm -f wmShutdown.o  
X-	rm -f wmShutdown
X-	rm -f Shutdown
X+GTK-CONFIG=	gtk-config
X+GTKCFLAGS=	`$(GTK-CONFIG) --cflags`
X+GTKLIBS=	`$(GTK-CONFIG) --libs`
X 
X-install:
X-	install wmShutdown /usr/local/bin
X-	install wmShutdown.xpm /usr/share/pixmaps/
X-	install -g root -o root Shutdown /usr/local/bin
X-	chmod +s /sbin/shutdown
X-	chmod +s /usr/local/bin/Shutdown
X-	@echo Installed. Just type wmShutdown to use it
X-
X-uninstall:
X-	rm -f /usr/local/bin/wmShutdown
X-	rm -f /usr/local/bin/Shutdown
X-	rm -f /usr/share/pixmaps/wmShutdown.xpm
X-	@echo ":-( Uninstalled."
X+all: wmShutdown Shutdown
X+	@echo "wmShutdown version 0.1 - Rafael V. Aroca <rafael@linuxqos.cjb.net>"
X 
X-dock: wmShutdown.c
X-	$(CC) -c -o wmShutdown.o wmShutdown.c `gtk-config --cflags` 
X-	$(CC) -o wmShutdown wmShutdown.o `gtk-config --libs` 
X+wmShutdown: wmShutdown.c
X+	$(CC) -c -o wmShutdown.o wmShutdown.c $(GTKCFLAGS) 
X+	$(CC) -o wmShutdown wmShutdown.o $(GTKLIBS)
X 
X-shutdown: shutdown.c
X-	$(CC) -o Shutdown shutdown.c 
X+Shutdown: shutdown.c
X+	$(CC) -o Shutdown shutdown.c
END-of-/usr/ports/x11/wmshutdown/files/patch-aa
echo x - /usr/ports/x11/wmshutdown/files/patch-ab
sed 's/^X//' >/usr/ports/x11/wmshutdown/files/patch-ab << 'END-of-/usr/ports/x11/wmshutdown/files/patch-ab'
X--- shutdown.c	Sun Dec  1 23:28:23 2002
X+++ shutdown.c	Sun Dec  1 23:29:16 2002
X@@ -18,7 +18,7 @@
X 			FILE *output;
X 
X 			printf("Rebooting...\n");
X-			output = popen("/sbin/shutdown now -r", "r");
X+			output = popen("/sbin/shutdown -r now", "r");
X 			teste = (char*) fgetc(output);
X 			while ((int)teste != EOF) {
X 				printf("%c", teste);
X@@ -32,7 +32,7 @@
X 			FILE *output;
X 
X 			printf("Halting...\n");
X-			output = popen("/sbin/shutdown now -h", "r");
X+			output = popen("/sbin/shutdown -h now", "r");
X 			teste = (char*) fgetc(output);
X 			while ((int)teste != EOF) {
X 				printf("%c", teste);
END-of-/usr/ports/x11/wmshutdown/files/patch-ab
echo x - /usr/ports/x11/wmshutdown/files/patch-ac
sed 's/^X//' >/usr/ports/x11/wmshutdown/files/patch-ac << 'END-of-/usr/ports/x11/wmshutdown/files/patch-ac'
X--- wmShutdown.c.orig	Sun Dec  1 23:53:12 2002
X+++ wmShutdown.c	Mon Dec  2 00:03:42 2002
X@@ -57,7 +57,7 @@
X 	FILE *output;
X 	char *teste;
X 
X-	output = popen("/usr/local/bin/Shutdown -h", "r");
X+	output = popen("/usr/X11R6/bin/Shutdown -h", "r");
X 	teste = (char*) fgetc(output);
X 	while ((int)teste != EOF) {
X 		g_print("%c", teste);
X@@ -70,7 +70,7 @@
X 	FILE *output;
X 	char *teste;
X 
X-	output = popen("/usr/local/bin/Shutdown -r", "r");
X+	output = popen("/usr/X11R6/bin/Shutdown -r", "r");
X 	teste = (char*) fgetc(output);
X 	while ((int)teste != EOF) {
X 		g_print("%c", teste);
X@@ -148,7 +148,7 @@
X 	gtk_widget_realize(dockArea);	    
X 
X         icon = (gpointer) gdk_pixmap_create_from_xpm (gtkiw->window, &mask,
X-                	NULL, "/usr/share/pixmaps/wmShutdown.xpm");
X+                	NULL, "/usr/X11R6/share/wmShutdown/pixmaps/wmShutdown.xpm");
X 
X         pixmap = gtk_pixmap_new((gpointer) icon, mask);
X         gtk_widget_show(pixmap);
END-of-/usr/ports/x11/wmshutdown/files/patch-ac
echo x - /usr/ports/x11/wmshutdown/distinfo
sed 's/^X//' >/usr/ports/x11/wmshutdown/distinfo << 'END-of-/usr/ports/x11/wmshutdown/distinfo'
XMD5 (wmShutdown-0.2.tar.gz) = 6937692d776d62f440aa71d3b8b13d07
END-of-/usr/ports/x11/wmshutdown/distinfo
echo x - /usr/ports/x11/wmshutdown/pkg-comment
sed 's/^X//' >/usr/ports/x11/wmshutdown/pkg-comment << 'END-of-/usr/ports/x11/wmshutdown/pkg-comment'
XWindow Maker dock application to shutdown or reboot
END-of-/usr/ports/x11/wmshutdown/pkg-comment
exit
--- shar-result ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021202140210.86723.qmail>