debian/0000775000000000000000000000000012307662752007202 5ustar debian/redshift-gtk.10000664000000000000000000000421512307662704011656 0ustar .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.9. .TH REDSHIFT "1" "June 2012" "redshift 1.7" "User Commands" .SH NAME gtk-redshift \- Set color temperature of display according to time of day (gtk-Frontend). .SH SYNOPSIS .B redshift \fI\-l LAT:LON \-t DAY:NIGHT \fR[\fIOPTIONS\fR...] .SH DESCRIPTION Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night. .TP \fB\-h\fR Display this help message .TP \fB\-v\fR Verbose output .TP \fB\-V\fR Show program version .TP \fB\-b\fR N Screen brightness to apply (max is 1.0) .TP \fB\-c\fR FILE Load settings from specified configuration file .TP \fB\-g\fR R:G:B Additional gamma correction to apply .TP \fB\-l\fR LAT:LON Your current location .TP \fB\-l\fR PROVIDER Select provider for automatic location updates (Type `list' to see available providers) .TP \fB\-m\fR METHOD Method to use to set color temperature (Type `list' to see available methods) .TP \fB\-o\fR One shot mode (do not continuously adjust color temperature) .TP \fB\-O\fR TEMP One shot manual mode (set color temperature) .TP \fB\-x\fR Reset mode (remove adjustment from screen) .TP \fB\-r\fR Disable temperature transitions .TP \fB\-t\fR DAY:NIGHT Color temperature to set at daytime/night .PP The neutral temperature is 6500K. Using this value will not change the color temperature of the display. Setting the color temperature to a value higher than this results in more blue light, and setting a lower value will result in more red light. .PP Default values: .IP Daytime temperature: 5500K Night temperature: 3700K .PP Please report bugs to .SH "SEE ALSO" The full documentation for .B redshift is maintained as a Texinfo manual. If the .B info and .B redshift programs are properly installed at your site, the command .IP .B info redshift .PP should give you access to the complete manual. .SH AUTHOR redshift was written by Martin Koelewijn and Jon Lund Steffensen. .PP This manual page was created by Franziska Lichtblau for the Debian project (and may be used by others). debian/changelog0000664000000000000000000001501012307662735011052 0ustar redshift (1.8-0ubuntu6) trusty; urgency=low * Added python-appindicator as a dependency for redshift-gtk. Fixes gtk-redshift appindicator not working in Ubuntu 13.10. (LP: #1244880) -- Svenn-Arne Dragly Mon, 10 Mar 2014 22:11:42 +0100 redshift (1.8-0ubuntu5) trusty; urgency=low * Fix Breaks/Replaces versions to be << first-version-without-new-files. Fixes upgrade failure caused by conflicting files. (LP: #1250006) -- Iain Lane Mon, 11 Nov 2013 09:36:47 +0000 redshift (1.8-0ubuntu4) trusty; urgency=low [ Mark Russell ] * Added dependency on geoclue-hostip. (LP: #868904) -- Jonathan Davies Fri, 08 Nov 2013 12:45:10 +0000 redshift (1.8-0ubuntu3) trusty; urgency=low * debian/patches/retry-geoclue.patch: Reinstated and sent to upstream developer. -- Jonathan Davies Fri, 08 Nov 2013 12:27:14 +0000 redshift (1.8-0ubuntu2) trusty; urgency=low * debian/control: Added automake to build-dependencies too. -- Jonathan Davies Fri, 08 Nov 2013 11:52:04 +0000 redshift (1.8-0ubuntu1) trusty; urgency=low * New upstream release. * debian/control: - Created transition package for gtk-redshift → redshift-gtk. - Added autoconf, autopoint and libtool to build-dependencies for upstream "bootstrap" script. - Added libxext-dev to build-dependencies, needed for vidmode check. - Updated Standards-Version. * debian/gtk-redshift.* files renamed to redshift-gtk.*. * debian/redshift-gtk.links: Created to make transitional symlink from old name to new. * Dropped: debian/patches/retry-geoclue.patch - let's try upstream's code instead. * debian/patches/retry-geoclue.patch: Also dropped, this seems to have been a provider issue. * debian/rules: - Removed dh_auto_install override. - Created dh_clean override to clean up files left behind by upstream bootstrap script. -- Jonathan Davies Fri, 08 Nov 2013 09:47:22 +0000 redshift (1.7-2ubuntu1) quantal; urgency=low * Merge from Debian unstable. Remaining Ubuntu changes: - d/control: add libgeoclue-dev to enable new geoclue support. - d/rules: add --enable-ubuntu to install ubuntu icons. - d/patches/retry-geoclue.patch: Retry geoclue a few times so redshift does not explode at startup. -- Andrew Starr-Bochicchio Wed, 18 Jul 2012 20:42:04 -0400 redshift (1.7-2) unstable; urgency=low * Changed dependency from python (>= 2.6.6-3~) to ${python:Depends} (Closes: #662155) * Updated man pages using help2man (redshift 1.7) (Closes: #676692) * Added man page for configuration file + example configuration file (Closes: #619709) * Upgrade to Standards-Versions 3.9.3, no changes needed * Added hardening flags to debian/rules * Added build-dependency to dpkg-dev (>= 1.16.1~) due to importing buildflags -- Franziska Lichtblau Fri, 15 Jun 2012 20:17:21 +0200 redshift (1.7-1ubuntu2) precise; urgency=low * d/patches/retry-geoclue.patch: Retry geoclue a few times so redshift does not explode at startup. (LP: #868904) -- Clint Byrum Fri, 02 Mar 2012 19:14:43 -0800 redshift (1.7-1ubuntu1) precise; urgency=low * Merge from debian unstable. Remaining changes: - d/control: add libgeoclue-dev to enable new geoclue support. - d/rules: add --enable-ubuntu to install ubuntu icons. -- Clint Byrum Tue, 18 Oct 2011 00:18:29 -0700 redshift (1.7-1) unstable; urgency=low * New upstream release (Closes: #634178) * Add dependency python-gtk2 for gtk-redshift (Closes: #628822) thanks to Benjamin Kay for patch * Officially overtook maintainership removed Simon Richter from Maintainer * Upgrade to Standards-Verions 3.9.2, no changes needed * Updated the manpages * Removed autostart of gtk-redshift because of freedesktop.org standard violation (Closes: #619699) + added README.Debian * Removed /usr/share/pyshared/gtk_redshift/utils.py from package as autostart is disabled * Migrated from dh_pysupport to dh_python2 (added dependency to python (>= 2.6.6-3~)) * Added Vcs + Vcs-Browser entry to debian/control -- Franziska Lichtblau Sat, 30 Jul 2011 15:38:36 +0200 redshift (1.7-0ubuntu1) oneiric; urgency=low * New upstream release. (LP: #852625) * d/control: add libgeoclue-dev to enable new geoclue support. * d/rules: add --enable-ubuntu to install ubuntu icons. * d/patches: dropped patches (merged upstream) -- Clint Byrum Mon, 19 Sep 2011 14:48:35 -0700 redshift (1.6-1ubuntu1) natty; urgency=low * debian/patches/bonoboiidfix.patch: Support the newer schema of gconf, to correctly retrieve the gnome clock applet information. Patch courtesy of Miloš Komarčević, via Fedora. (LP: #706353) -- Dave Walker (Daviey) Tue, 21 Mar 2011 22:36:23 +0000 redshift (1.6-1) unstable; urgency=low * New upstream release -- Franziska Lichtblau Sun, 24 Oct 2010 22:48:35 +0200 redshift (1.5-2) unstable; urgency=low * Enabling option for automatic location updates from GNOME clock applet * Add build-dependency libgconf2-dev for GNOME clock applet support * Add dependency for gtk-redshift python-xdg * Add versioned dependency autotools-dev (>= 20100122.1~) due to use of "dh --with autotools_dev $@" in debian/rules * Upgrade to Standards-Verions 3.9.1, no changes needed * Include NEWS and basic README from upstream (Closes: #595342) * Install .desktop and .menu file for gtk-redshift -- Franziska Lichtblau Tue, 05 Oct 2010 00:38:23 +0200 redshift (1.5-1) unstable; urgency=low * New upstream release (Closes: #590506) -- Franziska Lichtblau Thu, 09 Sep 2010 12:56:08 +0200 redshift (1.2-3) unstable; urgency=low * Add Franziska Lichtblau to uploaders * Add python dependency (Closes:#589211,#589494,#571149) thanks to Jakub Wilk for patch * Add dependency for pkg-config (>= 0.25) older version fails with XF86VM (Closes:#581895) * Add manpages for redshift and gtk-redshift (Closes:#589210) -- Franziska Lichtblau Fri, 23 Jul 2010 00:01:00 +0200 redshift (1.2-2) unstable; urgency=low * Add missing dependency on pkg-config -- Simon Richter Sun, 21 Feb 2010 15:37:11 +0100 redshift (1.2-1) unstable; urgency=low * Initial release -- Simon Richter Thu, 18 Feb 2010 09:58:46 +0100 debian/control0000664000000000000000000000375012307662715010611 0ustar Source: redshift Section: x11 Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Franziska Lichtblau Build-Depends: debhelper (>= 7.0.50~), autotools-dev (>= 20100122.1~), pkg-config (>= 0.25), dpkg-dev (>= 1.16.1~), libx11-dev, libxcb-randr0-dev, libxxf86vm-dev, libgconf2-dev, python (>= 2.6.6-3~), libgeoclue-dev, autoconf (>= 2.69), libtool, autopoint, libxext-dev, automake XS-Python-Version: >= 2.6 Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/users/rhalina-guest/redshift.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/rhalina-guest/redshift.git Homepage: https://launchpad.net/redshift Package: redshift Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, geoclue-hostip Description: Adjusts the color temperature of your screen The color temperature is set according to the position of the sun. A different color temperature is set during night and daytime. During twilight and early morning, the color temperature transitions smoothly from night to daytime temperature to allow your eyes to slowly adapt. . This package provides the base program. Package: redshift-gtk Architecture: all Depends: redshift (>= ${source:Version}), ${misc:Depends}, ${python:Depends}, python-gtk2, python-xdg, python-appindicator Replaces: gtk-redshift (<< 1.8) Breaks: gtk-redshift (<< 1.8) Description: Adjusts the color temperature of your screen with GTK+ integration The color temperature is set according to the position of the sun. A different color temperature is set during night and daytime. During twilight and early morning, the color temperature transitions smoothly from night to daytime temperature to allow your eyes to slowly adapt. . This package provides GTK+ integration. Package: gtk-redshift Depends: redshift-gtk, ${misc:Depends} Architecture: all Description: transitional dummy package This is a transitional dummy package for redshift-gtk. It can safely be removed. debian/redshift.50000664000000000000000000000342512307662704011101 0ustar .TH REDSHIFT "5" "June 2012" "redshift 1.7" "REDSHIFT.CONF(5)" .SH NAME redshift.conf - configuration file for redshift and gtk-redshift .SH DESCRIPTION A configuration file with the name `redshift.conf' can optionally be placed in `~/.config/'. The file has standard INI format. General program options are placed under the `redshift' header, while options for location providers and adjustment methods are placed under a header with the name of that provider or method. General options are: .TP \fBtemp\-day\fR = integer Daytime temperature .TP \fBtemp\-night\fR = integer Night temperature .TP \fBtransition\fR = 0 or 1 Disable or enable transitions .TP \fBbrightness\-day\fR = 0.1\-1.0 Screen brightness at daytime .TP \fBbrightness\-night\fR = 0.1\-1.0 Screen brightness at night .TP \fBgamma\fR = R:G:B Gamma adjustment to apply .TP \fBadjustment\-method\fR = name Select adjustment method. Options for the adjustment method can be given under the configuration file heading of the same name. .TP \fBlocation\-provider\fR = name Select location provider. Options for the location provider can be given under the configuration file heading of the same name. .PP Options for location providers and adjustment methods can be found in the help output of the providers and methods. .SH EXAMPLE Example for Copenhagen, Denmark: .IP \fB$\fR redshift \-l 55.7:12.6 \-t 5700:3600 \-g 0.8 \-m vidmode \-v .PP An example configuration file with the same effect as the above command line: .IP .nf [\fBredshift\fR] temp\-day=5700 temp\-night=3600 gamma=0.8 adjustment\-method=vidmode location\-provider=manual .SH AUTHOR redshift was written by Martin Koelewijn and Jon Lund Steffensen. .PP This manual page was created by Franziska Lichtblau for the Debian project (and may be used by others). debian/redshift-gtk.install0000664000000000000000000000011512307662704013157 0ustar usr/bin/redshift-gtk usr/lib/python* usr/share/icons usr/share/applications/ debian/redshift.docs0000664000000000000000000000004412307662704011657 0ustar README debian/example-redshift.conf debian/redshift-gtk.links0000664000000000000000000000005212307662704012631 0ustar usr/bin/redshift-gtk usr/bin/gtk-redshift debian/rules0000775000000000000000000000160012307662704010254 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 export DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk %: dh $@ --with autotools_dev --with python2 override_dh_auto_configure: cp INSTALL INSTALL.upstream ./bootstrap dh_auto_configure -- --enable-randr --enable-vidmode --enable-gnome-clock --enable-ubuntu override_dh_installchangelogs: dh_installchangelogs NEWS override_dh_clean: # Clean up files created by upstream bootstrap script. rm -f ABOUT-NLS config.* configure compile depcomp install-sh missing \ py-compile rm -f Makefile.in aclocal.m4 rm -f po/*.gmo po/Makefile.in.in po/Makevars.template \ po/Rules-quot po/*.sed po/*.header po/*.sin po/stamp-po rm -f src/Makefile.in src/redshift-gtk/Makefile.in rm -rf m4 # Workaround bootstrap script importing in a new INSTALL file. -mv INSTALL.upstream INSTALL dh_clean debian/watch0000664000000000000000000000011312307662704010223 0ustar version=3 http://launchpad.net/redshift/+download .*/redshift-(.*).tar.bz2 debian/redshift.manpages0000664000000000000000000000004412307662704012522 0ustar debian/redshift.1 debian/redshift.5 debian/README.Debian0000664000000000000000000000066012307662704011242 0ustar Autostart of gtk-redshift ------------------------- Autostart was removed from Debian package because of violation of 'Desktop Application Autostart Specification' (see bug #619699). If you want gtk-redshift autostarted please configure this in your specific desktop environment (e.g. by placing /usr/share/applications/gtk-redshift.desktop in $HOME/$XDG_CONFIG_HOME/gtk-redshift/ (usually defaults to $HOME/.config/gtk-redshift). debian/example-redshift.conf0000664000000000000000000000062612307662704013313 0ustar ; Global settings [redshift] temp-day=5700 temp-night=3500 transition=1 gamma=0.8:0.7:0.8 location-provider=manual adjustment-method=vidmode ; The location provider and adjustment method settings ; are in their own sections. [manual] lat=55.0 lon=12.0 ; In this example screen 1 is adjusted by vidmode. Note ; that the numbering starts from 0, so this is actually ; the second screen. [vidmode] screen=1 debian/compat0000664000000000000000000000000212307662704010375 0ustar 7 debian/redshift.install0000664000000000000000000000004212307662704012373 0ustar usr/bin/redshift usr/share/locale debian/patches/0000775000000000000000000000000012307662750010627 5ustar debian/patches/series0000664000000000000000000000002412307662704012037 0ustar retry-geoclue.patch debian/patches/retry-geoclue.patch0000664000000000000000000000350512307662704014440 0ustar Description: Retry Geoclue a few times as it seems to fail at startup a lot. Author: Clint Byrum Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/redshift/+bug/868904 Index: redshift/src/location-geoclue.c =================================================================== --- redshift.orig/src/location-geoclue.c 2012-03-02 17:45:30.000000000 -0800 +++ redshift/src/location-geoclue.c 2012-03-02 19:06:32.854211600 -0800 @@ -19,6 +19,7 @@ #include #include +#include #include #include @@ -160,17 +161,28 @@ GError *error = NULL; double latitude = 0, longitude = 0; - fields = geoclue_position_get_position(state->position, NULL, - &latitude, &longitude, NULL, - NULL, &error); - if (error) { - g_printerr(_("Could not get location: %s.\n"), error->message); - g_error_free(error); - return -1; + /* Retry 3 times because this seems to timeout quite a bit */ + int retries = 4; + while(--retries) { + fields = geoclue_position_get_position(state->position, NULL, + &latitude, &longitude, NULL, + NULL, &error); + if (error) { + g_printerr(_("Could not get location (%d retries left): %s.\n"), retries, error->message); + g_error_free(error); + return -1; + } + if (fields & GEOCLUE_POSITION_FIELDS_LATITUDE && + fields & GEOCLUE_POSITION_FIELDS_LONGITUDE) { + break; + } + g_warning(_("Could not get location, %d retries left.\n"), retries); + /* Sleep for a while to let */ + usleep(1000000); } if (fields & GEOCLUE_POSITION_FIELDS_LATITUDE && - fields & GEOCLUE_POSITION_FIELDS_LONGITUDE) { + fields & GEOCLUE_POSITION_FIELDS_LONGITUDE) { fprintf(stdout, _("According to the geoclue provider" " we're at: %.2f, %.2f\n"), latitude, longitude); debian/redshift-gtk.manpages0000664000000000000000000000002612307662704013305 0ustar debian/redshift-gtk.1 debian/redshift-gtk.menu0000664000000000000000000000015512307662704012461 0ustar ?package(redshift-gtk): \ needs="X11" \ section="Games/Toys" \ title="Redshift" \ command="redshift-gtk" debian/redshift.10000664000000000000000000000464112307662704011076 0ustar .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.9. .TH REDSHIFT "1" "June 2012" "redshift 1.7" "User Commands" .SH NAME redshift \- Set color temperature of display according to time of day. .SH SYNOPSIS .B redshift \fI \-l LAT:LON \-t DAY:NIGHT \fR[\fIOPTIONS\fR...] .SH DESCRIPTION .B redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night. The color temperature is set according to the position of the sun. A different color temperature is set during night and daytime. During twilight and early morning, the color temperature transitions smoothly from night to daytime temperature to allow your eyes to slowly adapt. .SH OPTIONS .TP \fB\-h\fR Display this help message .TP \fB\-v\fR Verbose output .TP \fB\-V\fR Show program version .TP \fB\-b\fR N Screen brightness to apply (max is 1.0) .TP \fB\-c\fR FILE Load settings from specified configuration file .TP \fB\-g\fR R:G:B Additional gamma correction to apply .TP \fB\-l\fR LAT:LON Your current location .TP \fB\-l\fR PROVIDER Select provider for automatic location updates (Type `list' to see available providers) .TP \fB\-m\fR METHOD Method to use to set color temperature (Type `list' to see available methods) .TP \fB\-o\fR One shot mode (do not continuously adjust color temperature) .TP \fB\-O\fR TEMP One shot manual mode (set color temperature) .TP \fB\-x\fR Reset mode (remove adjustment from screen) .TP \fB\-r\fR Disable temperature transitions .TP \fB\-t\fR DAY:NIGHT Color temperature to set at daytime/night .PP The neutral temperature is 6500K. Using this value will not change the color temperature of the display. Setting the color temperature to a value higher than this results in more blue light, and setting a lower value will result in more red light. .PP Default values: .IP Daytime temperature: 5500K Night temperature: 3700K .PP Please report bugs to .SH "SEE ALSO" The full documentation for .B redshift is maintained as a Texinfo manual. If the .B info and .B redshift programs are properly installed at your site, the command .IP .B info redshift .PP should give you access to the complete manual. .SH AUTHOR redshift was written by Martin Koelewijn and Jon Lund Steffensen. .PP This manual page was created by Franziska Lichtblau for the Debian project (and may be used by others). debian/copyright0000664000000000000000000000235312307662704011135 0ustar This work was packaged for Debian by: Simon Richter on Thu, 18 Feb 2010 09:58:46 +0100 It was downloaded from: https://launchpad.net/redshift Upstream Authors: Martin Koelewijn Jon Lund Steffensen Copyright: Copyright © 2010 Martin Koelewijn Copyright © 2010 Jon Lund Steffensen License: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This package 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. You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". The Debian packaging is: Copyright (C) 2010 Simon Richter and is licensed under the GPL version 3, see above. debian/redshift-gtk.docs0000664000000000000000000000003412307662704012441 0ustar README debian/README.Debian debian/source/0000775000000000000000000000000012307662750010500 5ustar debian/source/format0000664000000000000000000000001412307662704011705 0ustar 3.0 (quilt)