[Pkg-wmaker-commits] [wmshutdown] 02/173: Imported Debian patch 0.2-3
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Tue Aug 25 02:46:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmshutdown.
commit 4980a69b1ef6b593a2eb290534646debd2d6d16d
Author: Barry deFreese <bdefreese at debian.org>
Date: Thu Feb 19 12:59:24 2009 -0500
Imported Debian patch 0.2-3
---
Makefile | 26 +++++++++++----------
debian/README.Debian | 6 +++++
debian/Shutdown.1 | 27 +++++++++++++++++++++
debian/changelog | 52 +++++++++++++++++++++++++++++++++++++++++
debian/compat | 1 +
debian/control | 14 +++++++++++
debian/copyright | 20 ++++++++++++++++
debian/dirs | 4 ++++
debian/docs | 2 ++
debian/menu | 1 +
debian/rules | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++
debian/wmShutdown.1 | 30 ++++++++++++++++++++++++
wmShutdown.c | 4 ++--
13 files changed, 239 insertions(+), 14 deletions(-)
diff --git a/Makefile b/Makefile
index 219e871..084faca 100644
--- a/Makefile
+++ b/Makefile
@@ -3,27 +3,29 @@ all:
@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."
dock: wmShutdown.c
- $(CC) -c -o wmShutdown.o wmShutdown.c `gtk-config --cflags`
- $(CC) -o wmShutdown wmShutdown.o `gtk-config --libs`
+ $(CC) -c -o wmShutdown.o wmShutdown.c `pkg-config --cflags gtk+-2.0`
+ $(CC) -o wmShutdown wmShutdown.o `pkg-config --libs gtk+-2.0`
shutdown: shutdown.c
$(CC) -o Shutdown shutdown.c
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..2785ffc
--- /dev/null
+++ b/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
+
diff --git a/debian/Shutdown.1 b/debian/Shutdown.1
new file mode 100644
index 0000000..dc1309c
--- /dev/null
+++ b/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 <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+Shutdown \- utility for wmShutdown dockapp
+.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 <bluszcz at jabberpl.org>,
+for the Debian project (but may be used by others).
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1e35b6d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,52 @@
+wmshutdown (0.2-3) unstable; urgency=low
+
+ * QA upload.
+ * Change build-dep to libgtk2.0-dev.
+ + Makefile: use pkg-config instead of gtk-config.
+
+ -- Barry deFreese <bdefreese at debian.org> Thu, 19 Feb 2009 12:59:24 -0500
+
+wmshutdown (0.2-2) unstable; urgency=low
+
+ * QA upload.
+ * debian/control
+ - set maintainer to QA group
+ - bump Standards-Version to 3.8.0 (no changes needed)
+ - bump versioned build-dep on debhelper to at least 5
+ - small reformat of short and long descriptions
+ - added ${misc:Depends} to Depends
+ * debian/compat
+ - created with value set to 5
+ * debian/rules
+ - removed configure target, not needed
+ - removed DH_COMPAT
+ - moved compilation into build (from install), where it belong
+ - merged 'rm' into 'dh_clean' call
+ - don't ignore "make clean" errors
+ - removed unneeded and commented dh_* calls
+ * debian/copyright
+ - fixed copyright section
+ - indented copyright, upstream author and license section with 4 spaces
+ * debian/menu
+ - updated section to Applications/System/Administration
+ * debian/{Shutdown.1,wmShutdown.1}
+ - fixed the 'whatis' section
+
+ -- Sandro Tosi <morph at debian.org> Mon, 08 Dec 2008 13:02:21 +0100
+
+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 <bluszcz at jabberpl.org> Sat, 5 Jun 2004 00:09:49 +0200
+
+wmshutdown (0.1-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Rafal Zawadzki <bluszcz at ats.com.pl> Tue, 23 Jul 2002 21:34:11 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..bfc464e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,14 @@
+Source: wmshutdown
+Section: x11
+Priority: optional
+Maintainer: Debian QA Group <packages at qa.debian.org>
+Build-Depends: debhelper (> 5), libgtk2.0-dev
+Standards-Version: 3.8.0
+
+Package: wmshutdown
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: dockapp 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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e082386
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,20 @@
+This package was debianized by Rafal Zawadzki <bluszcz at ats.com.pl> 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 <rafael at linuxqos.cjb.net>
+
+Copyright:
+
+ Copyright (C) 2001 Rafael V. Aroca <rafael at linuxqos.cjb.net>
+
+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
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..c92ac52
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,4 @@
+usr/bin
+usr/share
+usr/share/pixmaps
+usr/share/man/man1
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..ba8894c
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+README
+
diff --git a/debian/menu b/debian/menu
new file mode 100644
index 0000000..da8b068
--- /dev/null
+++ b/debian/menu
@@ -0,0 +1 @@
+?package(wmshutdown):needs="X11" section="Applications/System/Administration" title="wmshutdown" command="/usr/bin/wmShutdown"
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7e782a5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,66 @@
+#!/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
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE) dock
+ $(MAKE) shutdown
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+
+ # Add here commands to clean up after the build process.
+ $(MAKE) clean
+
+ dh_clean build-stamp
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/wmshutdown.
+ $(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_installdocs
+ dh_installmenu
+ dh_installman debian/wmShutdown.1 debian/Shutdown.1
+ dh_installchangelogs ChangeLog
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
diff --git a/debian/wmShutdown.1 b/debian/wmShutdown.1
new file mode 100644
index 0000000..d824bd2
--- /dev/null
+++ b/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 <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+wmShutdown \- dockapp to shutdown or reboot your machine
+.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 <bluszcz at jabberpl.org>,
+for the Debian project (but may be used by others).
diff --git a/wmShutdown.c b/wmShutdown.c
index 7f7e14e..a94ebe0 100644
--- a/wmShutdown.c
+++ b/wmShutdown.c
@@ -57,7 +57,7 @@ int desliga(void) {
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 @@ int reinicia(void) {
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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmshutdown.git
More information about the Pkg-wmaker-commits
mailing list