From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87585 invoked by alias); 7 Sep 2016 18:54:30 -0000 Mailing-List: contact cygwin-apps-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-apps-cvs-owner@sourceware.org Received: (qmail 87553 invoked by uid 9993); 7 Sep 2016 18:54:29 -0000 Date: Wed, 07 Sep 2016 18:54:00 -0000 Message-ID: <20160907185429.87521.qmail@sourceware.org> From: ffes@sourceware.org To: cygwin-apps-cvs@sourceware.org Subject: [shutdown - Shutdown, reboot, hibernate or suspend the machine] branch master, updated. 2df13b5252ae6f5b88cda05436b3a3e437f4ab44 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 4df9641af1eccf71c2477dbc2caf63ee1172504e X-Git-Newrev: 2df13b5252ae6f5b88cda05436b3a3e437f4ab44 X-SW-Source: 2016-q3/txt/msg00033.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/shutdown.git;h=2df13b5252ae6f5b88cda05436b3a3e437f4ab44 commit 2df13b5252ae6f5b88cda05436b3a3e437f4ab44 Author: Frank Fesevur Date: Fri Jul 1 15:22:54 2016 +0200 Add cygport file https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/shutdown.git;h=7251d5ecb0d5cfa306d57ba4ea1f5707681f0265 commit 7251d5ecb0d5cfa306d57ba4ea1f5707681f0265 Author: Frank Fesevur Date: Fri Jun 17 13:54:29 2016 +0200 Fix compile warning https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/shutdown.git;h=9904ce398c61b2ad1e7ba7d0a4b5801e6a7b37b7 commit 9904ce398c61b2ad1e7ba7d0a4b5801e6a7b37b7 Author: Frank Fesevur Date: Fri Jun 17 11:27:19 2016 +0200 Updated links after moving the github repo Diff: --- .gitignore | 2 ++ ReadMe.md | 6 ++++-- extras/shutdown.cygport | 23 +++++++++++++++++++++++ shutdown.c | 2 +- 4 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 25a7384..26f2530 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.o *.exe +extras/shutdown-* +extras/*.bz2 diff --git a/ReadMe.md b/ReadMe.md index 01e2c39..446ce12 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -5,9 +5,11 @@ These are the official sources of the [Cygwin](https://cygwin.com) `shutdown` co Since Cygwin is not a complete Linux kernel, some low-end stuff like shutting down the machine won't work the Linux way. Therefore Cygwin has its own shutdown program. It is a simple program that mimic the Linux [shutdown](http://linux.die.net/man/8/shutdown) command but uses the [Win32-API](https://msdn.microsoft.com/en-us/library/windows/desktop/aa376883%28v=vs.85%29.aspx) to work on Windows. -Report [issues](https://github.com/ffes/cygwin-shutdown/issues) here or on the [Cygwin mailing list](https://www.cygwin.com/ml/cygwin/). +Report [issues](https://github.com/cygwin/shutdown/issues) here or on the [Cygwin mailing list](https://www.cygwin.com/ml/cygwin/). -[Pull requests](https://github.com/ffes/cygwin-shutdown/pulls) will always be reviewed or https://cygwin.com/acronyms/#PTC +[Pull requests](https://github.com/cygwin/shutdown/pulls) will always be reviewed or https://cygwin.com/acronyms/#PTC + +The repo can also be found at https://sourceware.org/git/?p=cygwin-apps/shutdown.git Version history --------------- diff --git a/extras/shutdown.cygport b/extras/shutdown.cygport new file mode 100644 index 0000000..be2fb25 --- /dev/null +++ b/extras/shutdown.cygport @@ -0,0 +1,23 @@ +NAME="shutdown" +VERSION="1.10" +RELEASE=1 +CATEGORY="Admin" +SUMMARY="Shutdown, reboot, hibernate or suspend the machine" +DESCRIPTION="Shutdown, reboot, hibernate or suspend the machine" +HOMEPAGE="http://cygwin.com/" + +GIT_URI="https://github.com/cygwin/shutdown" +GIT_TAG="v1.10.0" +inherit git + +src_compile() { + cd ${B} + make -f ${S}/Makefile SRCDIR=${S} +} + +src_install() { + cd ${B} + make install -f ${S}/Makefile SRCDIR=${S} DESTDIR=${D} +} + +# vim: ts=4:sw=4:noet:ft=sh diff --git a/shutdown.c b/shutdown.c index 92f1418..c189a64 100644 --- a/shutdown.c +++ b/shutdown.c @@ -21,7 +21,7 @@ */ #include -#include +#include #include #include #include