--- wmshutdown-0.2.orig/Makefile +++ wmshutdown-0.2/Makefile @@ -3,21 +3,23 @@ @echo "Order of makes to install: dock, shutdown, install" clean: - rm -f wmShutdown.o - rm -f wmShutdown - rm -f Shutdown + rm -rf wmShutdown.o + rm -rf wmShutdown + rm -rf Shutdown 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 + install wmShutdown $(DESTDIR)/usr/bin/wmShutdown + cp wmShutdown.xpm $(DESTDIR)/usr/share/pixmaps/wmShutdown.xpm + #install wmShutdown.1 $(DESTDIR)/usr/share/man/man1 + #install Shutdown.1 $(DESTDIR)/usr/share/man/man1 + install -g root -o root Shutdown $(DESTDIR)/usr/bin/Shutdown + #chmod +s $(DESTDIR)/sbin/shutdown + #chmod +s $(DESTDIR)/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 /bin/wmShutdown + rm -f /bin/Shutdown rm -f /usr/share/pixmaps/wmShutdown.xpm @echo ":-( Uninstalled." --- wmshutdown-0.2.orig/wmShutdown.c +++ wmshutdown-0.2/wmShutdown.c @@ -57,7 +57,7 @@ FILE *output; char *teste; - output = popen("/usr/local/bin/Shutdown -h", "r"); + output = popen("/usr/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/bin/Shutdown -r", "r"); teste = (char*) fgetc(output); while ((int)teste != EOF) { g_print("%c", teste); --- wmshutdown-0.2.orig/debian/dirs +++ wmshutdown-0.2/debian/dirs @@ -0,0 +1,4 @@ +usr/bin +usr/share +usr/share/pixmaps +usr/share/man/man1 --- wmshutdown-0.2.orig/debian/docs +++ wmshutdown-0.2/debian/docs @@ -0,0 +1,2 @@ +README + --- wmshutdown-0.2.orig/debian/menu +++ wmshutdown-0.2/debian/menu @@ -0,0 +1 @@ +?package(wmshutdown):needs="X11" section="Apps/Tools" title="wmshutdown" command="/usr/bin/wmShutdown" --- wmshutdown-0.2.orig/debian/control +++ wmshutdown-0.2/debian/control @@ -0,0 +1,15 @@ +Source: wmshutdown +Section: x11 +Priority: optional +Maintainer: Rafal Zawadzki +Build-Depends: debhelper (>> 3.0.0), libgtk1.2-dev +Standards-Version: 3.6.1 + +Package: wmshutdown +Architecture: any +Depends: ${shlibs:Depends} +Description: Allow you to shutdown or reboot your machine + This is a dock applications for Window Maker that + allows you to shutdown or reboot your machine + just by clickig a button on desktop and confirming. + It's useful just for desktop machines. --- wmshutdown-0.2.orig/debian/rules +++ wmshutdown-0.2/debian/rules @@ -0,0 +1,96 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=3 + + + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #/usr/bin/docbook-to-man debian/wmshutdown.sgml > wmshutdown.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/wmshutdown. + $(MAKE) dock + $(MAKE) shutdown + $(MAKE) install DESTDIR=$(CURDIR)/debian/wmshutdown + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs +# dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman debian/wmShutdown.1 debian/Shutdown.1 + dh_installinfo +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- wmshutdown-0.2.orig/debian/changelog +++ wmshutdown-0.2/debian/changelog @@ -0,0 +1,16 @@ +wmshutdown (0.2-1) unstable; urgency=low + + * New upstream release + * Closes: #205604: Error in file /usr/lib/menu/wmshutdown + * Change maintainer e-mail address + * Pseudo manpages has been written + * Closes: #252718: New upstream release available (0.2) + + -- Rafal Zawadzki Sat, 5 Jun 2004 00:09:49 +0200 + +wmshutdown (0.1-1) unstable; urgency=low + + * Initial Release. + + -- Rafal Zawadzki Tue, 23 Jul 2002 21:34:11 +0200 + --- wmshutdown-0.2.orig/debian/README.Debian +++ wmshutdown-0.2/debian/README.Debian @@ -0,0 +1,6 @@ +wmShutdown for Debian +----------------- + +After installation you have to set suid at /sbin/shutdown, +You can do this by chmod +s /sbin/shutdown + --- wmshutdown-0.2.orig/debian/copyright +++ wmshutdown-0.2/debian/copyright @@ -0,0 +1,17 @@ +This package was debianized by Rafal Zawadzki on +Tue, 23 Jul 2002 21:34:11 +0200. + +It was downloaded from http://www.geocities.com/rafaelaroca/wmShutdown.html + +Upstream Author: Rafael Vidal Aroca + +Copyright: + +Rafael Vidal Aroca + +License: + +You are free to distribute this software under the terms +of the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL --- wmshutdown-0.2.orig/debian/Shutdown.1 +++ wmshutdown-0.2/debian/Shutdown.1 @@ -0,0 +1,27 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH Shutdown 1 "jun 01, 2004" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +Shutdown +.SH DESCRIPTION +This tool is used to halt machine by wmShutdown utility. +To read more you should look into /usr/share/doc/wmshutdown. +.SH SEE ALSO +.BR wmShutdown (1) +.SH AUTHOR +This manual page was written by Rafal Zawadzki , +for the Debian project (but may be used by others). --- wmshutdown-0.2.orig/debian/wmShutdown.1 +++ wmshutdown-0.2/debian/wmShutdown.1 @@ -0,0 +1,30 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH wmShutdown 1 "jun 01, 2004" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +wmShutdown +.SH DESCRIPTION +This is a dock applications for Window Maker that allows +you to shutdown or reboot your machine just by clicking. +It's useful just for desktop machines. +.br +To read more you should look into /usr/share/doc/wmshutdown. +.SH SEE ALSO +.BR Shutdown (1) +.SH AUTHOR +This manual page was written by Rafal Zawadzki , +for the Debian project (but may be used by others).