--- xprintidle-0.2.orig/debian/changelog +++ xprintidle-0.2/debian/changelog @@ -0,0 +1,23 @@ +xprintidle (0.2-2) unstable; urgency=low + + * Upload to unstable. + + -- Milan Zamazal Sat, 07 Mar 2009 14:30:37 +0100 + +xprintidle (0.2-1) experimental; urgency=low + + * New upstream version; closes: #502226. + * Uploaded to experimental because lenny is frozen. + * DEB_BUILD_OPTIONS updated to comply with new policy. + * Don't ignore `make clean' failure in debian/rules. + * Call `make distclean' instead of just `make clean' in debian/rules. + * Standards 3.8.0. + + -- Milan Zamazal Thu, 16 Oct 2008 13:54:54 +0200 + +xprintidle (0.1-1) unstable; urgency=low + + * Initial release; closes: #372883. + + -- Milan Zamazal Mon, 12 Jun 2006 18:25:29 +0200 + --- xprintidle-0.2.orig/debian/xprintidle.1 +++ xprintidle-0.2/debian/xprintidle.1 @@ -0,0 +1,37 @@ +.\" 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 XPRINTIDLE 1 "June 12, 2006" +.\" 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 +xprintidle \- utility printing user's idle time in X +.SH SYNOPSIS +.B xprintidle +.SH DESCRIPTION +This manual page documents briefly the +.B xprintidle +command. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBxprintidle\fP is a utility that queries the X server for the user's idle +time and prints it to stdout (in milliseconds). Just run it without any +arguments. +.SH AUTHOR +xprintidle was written by Magnus Henoch . +.PP +This manual page was written by Milan Zamazal , +for the Debian project (but may be used by others). --- xprintidle-0.2.orig/debian/rules +++ xprintidle-0.2/debian/rules @@ -0,0 +1,80 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +package = xprintidle + +CFLAGS = -Wall -g +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 +INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 +INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 +INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 + +ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + MAKEFLAGS += -j$(NUMJOBS) +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + ./configure --prefix=/usr --x-libraries=/usr/lib + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch build-stamp + +clean: configure-stamp + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + $(MAKE) distclean + rm -f xprintidle + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/$(package) + + +# 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_installchangelogs + dh_installdocs + dh_installman debian/xprintidle.1 + dh_install xprintidle /usr/bin/ + dh_link + 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 configure --- xprintidle-0.2.orig/debian/docs +++ xprintidle-0.2/debian/docs @@ -0,0 +1 @@ +README --- xprintidle-0.2.orig/debian/control +++ xprintidle-0.2/debian/control @@ -0,0 +1,13 @@ +Source: xprintidle +Section: x11 +Priority: optional +Maintainer: Milan Zamazal +Build-Depends: debhelper (>= 4.0.0), libx11-dev, libxss-dev, x11proto-scrnsaver-dev +Standards-Version: 3.8.0 + +Package: xprintidle +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Small utility that prints user's idle time in X + xprintidle is a utility that queries the X server for the user's idle + time and prints it to stdout (in milliseconds). --- xprintidle-0.2.orig/debian/copyright +++ xprintidle-0.2/debian/copyright @@ -0,0 +1,23 @@ +This package was debianized by Milan Zamazal on +Mon, 12 Jun 2006 18:25:29 +0200. + +It was downloaded from http://www.dtek.chalmers.se/~henoch/text/xprintidle.html. + +Copyright & License: + + Copyright (c) 2005, 2008 Magnus Henoch + Copyright (c) 2006, 2007 by Danny Kukawka + , + Copyright (c) 2008 Eivind Magnus Hvidevold + + This program is free software; you can redistribute it and/or modify + it under the terms of version 2 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + +On Debian systems, you can find the GNU General Public License version 2 in the +file /usr/share/common-licenses/GPL-2. --- xprintidle-0.2.orig/debian/compat +++ xprintidle-0.2/debian/compat @@ -0,0 +1 @@ +4 --- xprintidle-0.2.orig/debian/dirs +++ xprintidle-0.2/debian/dirs @@ -0,0 +1 @@ +usr/bin --- xprintidle-0.2.orig/_darcs/inventory +++ xprintidle-0.2/_darcs/inventory @@ -0,0 +1,15 @@ +Starting with tag: +[TAG UPSTREAM_xprintidle_0.1 +pdm@zamazal.org**20060612123813] +[Debianized +pdm@zamazal.org**20060612163851] +[Install the binary +pdm@zamazal.org**20060612165856] +[Install the manpage +pdm@zamazal.org**20060612175859] +[Remove xprintidle on clean +pdm@zamazal.org**20060612180035] +[Build dependencies improved +pdm@zamazal.org**20060612181330] +[Typo in the manpage fixed +pdm@zamazal.org**20060612181652] \ No newline at end of file --- xprintidle-0.2.orig/_darcs/current/COPYING +++ xprintidle-0.2/_darcs/current/COPYING @@ -0,0 +1,26 @@ +Copyright (c) 2005 Magnus Henoch +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The names of the authors and contributors may not be used to endorse + or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. --- xprintidle-0.2.orig/_darcs/current/README +++ xprintidle-0.2/_darcs/current/README @@ -0,0 +1,13 @@ +xprintidle is a utility that queries the X server for the user's idle +time and prints it to stdout (in milliseconds). + +If you don't have X installed in /usr/X11R6, you'll need to change +X11_BASE in the Makefile. + +You need the development files for the Xss library. In Debian, they +are in the package 'libxss-dev' or 'xlibs-static-dev', depending on +your version. + +Web page: http://www.dtek.chalmers.se/~henoch/text/xprintidle.html +E-mail: Magnus Henoch +Jabber/XMPP: legoscia@jabber.cd.chalmers.se --- xprintidle-0.2.orig/_darcs/current/Makefile +++ xprintidle-0.2/_darcs/current/Makefile @@ -0,0 +1,12 @@ +# Change X11_BASE to suit your system. +X11_BASE=/usr/X11R6 + +CFLAGS=-O2 +CPPFLAGS=-I$(X11_BASE)/include +LDFLAGS=-L$(X11_BASE)/lib -lX11 -lXss + +xprintidle : xprintidle.c + +install : xprintidle + @echo You have to install this program manually. + @echo Just copy '"xprintidle"' wherever you want it. --- xprintidle-0.2.orig/_darcs/current/xprintidle.c +++ xprintidle-0.2/_darcs/current/xprintidle.c @@ -0,0 +1,61 @@ +/* + +This program prints the "idle time" of the user to stdout. The "idle +time" is the number of milliseconds since input was received on any +input device. If unsuccessful, the program prints a message to stderr +and exits with a non-zero exit code. + +Copyright (c) 2005 Magnus Henoch +This program is distributed under a BSD-style license. See the file +COPYING. + +*/ + +#include +#include +#include + +void usage(char *name); + +int main(int argc, char *argv[]) +{ + XScreenSaverInfo ssi; + Display *dpy; + int event_basep, error_basep; + + if (argc != 1) { + usage(argv[0]); + return 1; + } + + dpy = XOpenDisplay(NULL); + if (dpy == NULL) { + fprintf(stderr, "couldn't open display\n"); + return 1; + } + + if (!XScreenSaverQueryExtension(dpy, &event_basep, &error_basep)) { + fprintf(stderr, "screen saver extension not supported\n"); + return 1; + } + + if (!XScreenSaverQueryInfo(dpy, DefaultRootWindow(dpy), &ssi)) { + fprintf(stderr, "couldn't query screen saver info\n"); + return 1; + } + + printf("%lu\n", ssi.idle); + + XCloseDisplay(dpy); + return 0; +} + +void usage(char *name) +{ + fprintf(stderr, + "Usage:\n" + "%s\n" + "That is, no command line arguments. The user's idle time\n" + "in milliseconds is printed on stdout.\n", + name); +} --- xprintidle-0.2.orig/_darcs/current/debian/changelog +++ xprintidle-0.2/_darcs/current/debian/changelog @@ -0,0 +1,6 @@ +xprintidle (0.1-1) unstable; urgency=low + + * Initial release; closes: #372883. + + -- Milan Zamazal Mon, 12 Jun 2006 18:25:29 +0200 + --- xprintidle-0.2.orig/_darcs/current/debian/xprintidle.1 +++ xprintidle-0.2/_darcs/current/debian/xprintidle.1 @@ -0,0 +1,37 @@ +.\" 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 XPRINTIDLE 1 "June 12, 2006" +.\" 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 +xprintidle \- utility printing user's idle time in X +.SH SYNOPSIS +.B xprintidle +.SH DESCRIPTION +This manual page documents briefly the +.B xprintidle +command. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBxprintidle\fP is a utility that queries the X server for the user's idle +time and prints it to stdout (in milliseconds). Just run it without any +arguments. +.SH AUTHOR +xprintidle was written by Magnus Henoch . +.PP +This manual page was written by Milan Zamazal , +for the Debian project (but may be used by others). --- xprintidle-0.2.orig/_darcs/current/debian/rules +++ xprintidle-0.2/_darcs/current/debian/rules @@ -0,0 +1,65 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +package = xprintidle + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +build: build-stamp + +build-stamp: + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + -$(MAKE) clean + rm -f xprintidle + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/$(package) + + +# 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_installchangelogs + dh_installdocs + dh_installman debian/xprintidle.1 + dh_install xprintidle /usr/bin/ + dh_link + 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 configure --- xprintidle-0.2.orig/_darcs/current/debian/docs +++ xprintidle-0.2/_darcs/current/debian/docs @@ -0,0 +1 @@ +README --- xprintidle-0.2.orig/_darcs/current/debian/control +++ xprintidle-0.2/_darcs/current/debian/control @@ -0,0 +1,13 @@ +Source: xprintidle +Section: x11 +Priority: optional +Maintainer: Milan Zamazal +Build-Depends: debhelper (>= 4.0.0), libx11-dev, libxss-dev, x11proto-scrnsaver-dev +Standards-Version: 3.7.2 + +Package: xprintidle +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Small utility that prints user's idle time in X + xprintidle is a utility that queries the X server for the user's idle + time and prints it to stdout (in milliseconds). --- xprintidle-0.2.orig/_darcs/current/debian/copyright +++ xprintidle-0.2/_darcs/current/debian/copyright @@ -0,0 +1,35 @@ +This package was debianized by Milan Zamazal on +Mon, 12 Jun 2006 18:25:29 +0200. + +It was downloaded from http://www.dtek.chalmers.se/~henoch/text/xprintidle.html. + +Copyright Holder: Magnus Henoch + +License: + + Copyright (c) 2005 Magnus Henoch + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. The names of the authors and contributors may not be used to endorse + or promote products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. --- xprintidle-0.2.orig/_darcs/current/debian/compat +++ xprintidle-0.2/_darcs/current/debian/compat @@ -0,0 +1 @@ +4 --- xprintidle-0.2.orig/_darcs/current/debian/dirs +++ xprintidle-0.2/_darcs/current/debian/dirs @@ -0,0 +1 @@ +usr/bin --- xprintidle-0.2.orig/_darcs/prefs/defaultrepo +++ xprintidle-0.2/_darcs/prefs/defaultrepo @@ -0,0 +1 @@ +/home/pdm/debian/packages/xprintidle --- xprintidle-0.2.orig/_darcs/prefs/repos +++ xprintidle-0.2/_darcs/prefs/repos @@ -0,0 +1 @@ +/home/pdm/debian/packages/xprintidle --- xprintidle-0.2.orig/_darcs/prefs/boring +++ xprintidle-0.2/_darcs/prefs/boring @@ -0,0 +1,34 @@ +# Boring file regexps: +\.hi$ +\.o$ +\.o\.cmd$ +# *.ko files aren't boring by default because they might +# be Korean translations rather than kernel modules. +# \.ko$ +\.ko\.cmd$ +\.mod\.c$ +(^|/)\.tmp_versions($|/) +(^|/)CVS($|/) +(^|/)RCS($|/) +~$ +#(^|/)\.[^/] +(^|/)_darcs($|/) +\.bak$ +\.BAK$ +\.orig$ +(^|/)vssver\.scc$ +\.swp$ +(^|/)MT($|/) +(^|/)\{arch\}($|/) +(^|/).arch-ids($|/) +(^|/), +\.class$ +\.prof$ +(^|/)\.DS_Store$ +(^|/)BitKeeper($|/) +(^|/)ChangeSet($|/) +(^|/)\.svn($|/) +\.py[co]$ +\# +\.cvsignore$ +(^|/)Thumbs\.db$ --- xprintidle-0.2.orig/_darcs/prefs/binaries +++ xprintidle-0.2/_darcs/prefs/binaries @@ -0,0 +1,39 @@ +# Binary file regexps: +\.png$ +\.PNG$ +\.gz$ +\.GZ$ +\.pdf$ +\.PDF$ +\.jpg$ +\.JPG$ +\.gif$ +\.GIF$ +\.tar$ +\.TAR$ +\.bz2$ +\.BZ2$ +\.z$ +\.Z$ +\.zip$ +\.ZIP$ +\.jar$ +\.JAR$ +\.so$ +\.SO$ +\.a$ +\.A$ +\.tgz$ +\.TGZ$ +\.jpeg$ +\.JPEG$ +\.mpg$ +\.MPG$ +\.mpeg$ +\.MPEG$ +\.iso$ +\.ISO$ +\.exe$ +\.EXE$ +\.doc$ +\.DOC$ --- xprintidle-0.2.orig/_darcs/inventories/20060612123813-fdef6-bd44ff9f4dbe8075233047b56ea234f68670241f.gz +++ xprintidle-0.2/_darcs/inventories/20060612123813-fdef6-bd44ff9f4dbe8075233047b56ea234f68670241f.gz @@ -0,0 +1,2 @@ +[Import upstream xprintidle version 0.1 +pdm@zamazal.org**20060612123813] \ No newline at end of file