debian/0000755000000000000000000000000012246442301007164 5ustar debian/dirs0000644000000000000000000000001012246442301010037 0ustar usr/bin debian/source/0000755000000000000000000000000012246442301010464 5ustar debian/source/format0000644000000000000000000000001412246442301011672 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000400412246442301010242 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 package = xprintidle autofiles = aclocal.m4 configure Makefile.in 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 set -e; for f in $(autofiles); do if [ ! -f "$$ff.upstream" ]; then cp "$$f" "$$f.upstream"; fi; done autoreconf -fi ./configure --prefix=/usr --x-libraries=/usr/lib touch configure-stamp build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp [ ! -f Makefile ] || $(MAKE) distclean rm -f xprintidle dh_clean set -e; for f in $(autofiles); do if [ -f "$$f.upstream" ]; then mv $$f.upstream $$f; fi; done install: build dh_testdir dh_testroot dh_prep 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 debian/docs0000644000000000000000000000000712246442301010034 0ustar README debian/compat0000644000000000000000000000000212246442301010362 0ustar 7 debian/patches/0000755000000000000000000000000012246442301010613 5ustar debian/patches/full-linking.patch0000644000000000000000000000061112246442301014225 0ustar Index: xprintidle/Makefile.am =================================================================== --- xprintidle.orig/Makefile.am 2010-03-15 11:13:27.000000000 +0100 +++ xprintidle/Makefile.am 2010-03-15 11:14:02.000000000 +0100 @@ -2,4 +2,4 @@ xprintidle_SOURCES = xprintidle.c AM_CPPFLAGS = -I@x_includes@ -LDADD = -L@x_libraries@ -lX11 -lXss +LDADD = -L@x_libraries@ -lX11 -lXss -lXext debian/patches/series0000644000000000000000000000006212246442301012026 0ustar full-linking.patch allocinfo.path configure.patch debian/patches/allocinfo.path0000644000000000000000000000202412246442301013435 0ustar Index: xprintidle/xprintidle.c =================================================================== --- xprintidle.orig/xprintidle.c 2012-11-19 23:08:24.000000001 +0100 +++ xprintidle/xprintidle.c 2012-11-19 23:10:24.000000001 +0100 @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) { - XScreenSaverInfo ssi; + XScreenSaverInfo *ssi; Display *dpy; int event_basep, error_basep; @@ -59,14 +59,21 @@ fprintf(stderr, "screen saver extension not supported\n"); return 1; } + + ssi = XScreenSaverAllocInfo(); + if (ssi == NULL) { + fprintf(stderr, "couldn't allocate screen saver info\n"); + return 1; + } - if (!XScreenSaverQueryInfo(dpy, DefaultRootWindow(dpy), &ssi)) { + if (!XScreenSaverQueryInfo(dpy, DefaultRootWindow(dpy), ssi)) { fprintf(stderr, "couldn't query screen saver info\n"); return 1; } - printf("%lu\n", workaroundCreepyXServer(dpy, ssi.idle)); - + printf("%lu\n", workaroundCreepyXServer(dpy, ssi->idle)); + + XFree(ssi); XCloseDisplay(dpy); return 0; } debian/patches/configure.patch0000644000000000000000000000072612246442301013622 0ustar Index: xprintidle/configure.ac =================================================================== --- xprintidle.orig/configure.ac 2008-10-16 13:32:42.000000001 +0200 +++ xprintidle/configure.ac 2013-06-29 18:08:18.000000001 +0200 @@ -3,7 +3,7 @@ AC_PREREQ(2.62) AC_INIT([xprintidle], [0.2], [henoch@dtek.chalmers.se]) -AM_INIT_AUTOMAKE([dist-bzip2 dist-lzma -Wall]) +AM_INIT_AUTOMAKE([dist-bzip2 -Wall]) AC_CONFIG_SRCDIR([xprintidle.c]) # Checks for programs. debian/control0000644000000000000000000000104612246442301010570 0ustar Source: xprintidle Section: x11 Priority: optional Maintainer: Debian QA Group Build-Depends: debhelper (>= 7), libx11-dev, libxss-dev, x11proto-scrnsaver-dev, automake Standards-Version: 3.9.3 Homepage: http://www.dtek.chalmers.se/~henoch/text/xprintidle.html 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). debian/xprintidle.10000644000000000000000000000254312246442301011434 0ustar .\" 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). debian/copyright0000644000000000000000000000175212246442301011124 0ustar 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. debian/changelog0000644000000000000000000000447112246442301011044 0ustar xprintidle (0.2-9) unstable; urgency=low * Orphaned. -- Milan Zamazal Sat, 30 Nov 2013 21:03:33 +0100 xprintidle (0.2-8) unstable; urgency=low * Run autoreconf with `-fi'; closes: #725513, #725565. * Don't run (indirectly) configure in `clean' target. * Thanks to Hideki Yamane for these fixes. -- Milan Zamazal Sat, 19 Oct 2013 22:55:43 +0200 xprintidle (0.2-7) unstable; urgency=low * Fix of FTBFS error; closes: #713448. -- Milan Zamazal Sat, 29 Jun 2013 17:54:52 +0200 xprintidle (0.2-6) experimental; urgency=low * Upload to experimental because wheezy is frozen. * Initialize XScreenSaverInfo properly. * Standards 3.9.3 (no real change). -- Milan Zamazal Mon, 19 Nov 2012 22:45:05 +0100 xprintidle (0.2-5) unstable; urgency=low * Revert configure changes on cleanup in order to make dpkg 1.16.1 happy; closes: #652209. * build-arch and build-indep targets added to debian/rules. * Standards 3.9.2 (no real change). -- Milan Zamazal Mon, 02 Jan 2012 11:19:42 +0100 xprintidle (0.2-4) unstable; urgency=low * Switch to dpkg-source 3.0 (quilt) format. * Separate upstream patches to debian/patches/. * Mistakenly included _darcs subdirectory removed. * Homepage field added. * Standards 3.8.4. -- Milan Zamazal Mon, 15 Mar 2010 11:00:23 +0100 xprintidle (0.2-3) unstable; urgency=low * Link against libXext; closes: #556721. * Standards 3.8.3 (no real change). * Updated to debhelper 7. -- Milan Zamazal Mon, 23 Nov 2009 13:10:24 +0100 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