Onze laatste aanbieding van het jaar, geleverd op Oudejaarsdag! Nu met gratis fles Cava!

2014-12-30 Thread Wijnmarkt.be

Deze email nieuwsbrief werd in grafisch HTML formaat verzonden.
Als u deze tekstversie ziet, verkiest uw email programma "gewone tekst" emails.
U kan de originele nieuwsbrief online bekijken:
http://ymlp232.net/zFgBl5





_
U wilt zich uitschrijven? / U wilt uw gegevens wijzigen?: 
http://ymlp232.net/ughjmhsjgsgjyymwbgywqggmhhsbq
Powered door YourMailingListProvider



ALERTE : 115 MDH pour la couverture des étudiants

2014-12-30 Thread LES ÉCO
Se désinscrire de la liste: 
http://link.email.wib.me/u/443/159bf02e855352fdaa4bb5a5c2360688c1117f11875b2e4b

Avenue Abdelmoumen, Rue Calavon n 4, Casablanca, 2, Maroc

Bug#774247: sleepd: Option to prevent sleep on open TCP connections

2014-12-30 Thread Justus . Piater
Package: sleepd
Severity: wishlist
Tags: patch

I just scratched an itch: I want my home server to stay up as long as
there are open ssh (or scp, sftp) connections (even if these connections
are idle).

I thus added a command-line option "-p " (for my use case, -p 22).
It scans /proc/net/tcp for users of the port, and if there is more than
one (i.e., the listening sshd plus at least one forked child), it counts
it as an activity.

The included patch applies to sleepd 2.08.

Sleepd 2.08 does not run on my home server (wheezy, amd64) because it
does not provide /sys/class/power_supply (I did not investigate why not;
it does provide functional ACPI).  Thus, the patch includes another,
unrelated option "-C" to force use of ACPI.  I can tease these two
options apart into separate patches if necessary, but both are trivial.

I'd like to see this patch (or an improved version) applied upstream
(whatever this means, as it is "dead and buried" according to
http://joeyh.name/code/).  Or else, please let me know about an
alive-and-well alternative to sleepd.

Justus


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


--- a/sleepd.c
+++ b/sleepd.c
@@ -58,9 +58,11 @@
 #endif
 int use_acpi=0;
 int force_hal=0;
+int force_acpi=0;
 int require_unused_and_battery=0;	/* --and or -A option */
 double max_loadavg = 0;
 int use_utmp=0;
+int port=0;
 int use_net=0;
 int min_tx=TXRATE;
 int min_rx=RXRATE;
@@ -69,7 +71,7 @@
 int debug=0;
 
 void usage () {
-	fprintf(stderr, "Usage: sleepd [-s command] [-d command] [-u n] [-U n] [-I] [-i n] [-E] [-e filename] [-a] [-l n] [-w] [-n] [-v] [-c n] [-b n] [-A] [-H] [-N [dev] [-t n] [-r n]]\n");
+	fprintf(stderr, "Usage: sleepd [-s command] [-d command] [-u n] [-U n] [-I] [-i n] [-E] [-e filename] [-a] [-l n] [-p n] [-w] [-n] [-v] [-c n] [-b n] [-A] [-C] [-H] [-N [dev] [-t n] [-r n]]\n");
 }
 
 void parse_command_line (int argc, char **argv) {
@@ -95,7 +97,9 @@
 		{"netdev", 2, NULL, 'N'},
 		{"rx-min", 1, NULL, 'r'},
 		{"tx-min", 1, NULL, 't'},
+		{"port", 1, NULL, 'p'},
 		{"force-hal", 0, NULL, 'H'},
+		{"force-acpi", 0, NULL, 'C'},
 		{"force-upower", 0, NULL, 1},
 		{0, 0, 0, 0}
 	};
@@ -111,7 +115,7 @@
 	char rx_statfile[44];
 
 	while (c != -1) {
-		c=getopt_long(argc,argv, "s:d:nvu:U:l:wIi:Ee:hac:b:AN::r:t:H", long_options, NULL);
+		c=getopt_long(argc,argv, "s:d:nvu:U:l:p:wIi:Ee:hac:b:AN::r:t:HC", long_options, NULL);
 		switch (c) {
 			case 's':
 sleep_command=strdup(optarg);
@@ -141,6 +145,9 @@
 			case 'H':
 force_hal=1;
 break;
+			case 'C':
+force_acpi=1;
+break;
 			case 'i':
 i = atoi(optarg);
 if ((i < 0) || (i >= MAX_IRQS)) {
@@ -231,6 +238,9 @@
 			case 'r':
 min_rx = atoi(optarg);
 break;
+			case 'p':
+port = atoi(optarg);
+break;
 			case 'A':
 require_unused_and_battery=1;
 break;
@@ -388,6 +398,24 @@
 	return activity;
 }
 
+int check_port (int activity) {
+  FILE *f = fopen(TCPFILE, "r");
+  if (!f) {
+syslog(LOG_ERR, "cannot open %s", TCPFILE);
+return activity;
+  }
+  char tcpbuf[1024];
+  int portusers = 0;
+  while (fgets(tcpbuf, sizeof(tcpbuf), f)) {
+int tcpport;
+if (sscanf(tcpbuf, "%*d:%*x:%x", &tcpport) == 1 && tcpport == port)
+  portusers++;
+  }
+  fclose(f);
+  if (debug)  printf("sleepd: %d users of port %d\n", portusers, port);
+  return (portusers > 1) ? 1 : activity;
+}
+
 int check_utmp (int total_unused) {
 	/* replace total_unused with the minimum of
 	 * total_unused and the shortest utmp idle time. */
@@ -515,6 +543,10 @@
 			activity=check_net(activity);
 		}
 
+		if (port) {
+			activity=check_port(activity);
+		}
+
 		if ((max_loadavg != 0) &&
 		(getloadavg(loadavg, 1) == 1) &&
 		(loadavg[0] >= max_loadavg)) {
@@ -636,8 +668,10 @@
 			fclose(f);
 		}
 	}
-	
-	if (force_hal
+
+	if (force_acpi)
+	  use_acpi = 1;
+	else if (force_hal
 #ifdef USE_APM
 		|| apm_exists() != 0
 #else
--- a/sleepd.h
+++ b/sleepd.h
@@ -8,3 +8,4 @@
 #define TXRATE 15
 #define RXFILE "/sys/class/net/%s/statistics/rx_packets"
 #define RXRATE 25
+#define TCPFILE "/proc/net/tcp"
--- a/sleepd.8
+++ b/sleepd.8
@@ -3,7 +3,7 @@
 sleepd \- puts a laptop to sleep during inactivity or on low battery
 .SH SYNOPSIS
 .B sleepd
-.I "[-s command] [-d command] [-u n] [-U n] [-I] [-i n] [-E] [-e filename] [-a] [-l n] [-w] [-n] [-v] [-c n] [-b n] [-A] [-H] [-N [device] [-r n] [-t n]]"
+.I "[-s command] [-d command] [-u n] [-U n] [-I] [-i n] [-E] [-e filename] [-a] [-l n] [-p n] [-w] [-n] [-v] [-c n] [-b n] [-A] [-C] [-H] [-N [device] [-r n] [-t n]]"
 .SH DESCRIPTION
 .BR sleepd
 is a daemon to force laptops to go to sleep after some period of
@@ -97,6 +97,11 @@
 Set a baseline receive traffic rate in packets per 

Bug#774247: sleepd: Option to prevent sleep on open TCP connections

2014-12-30 Thread Joey Hess
justus.pia...@uibk.ac.at wrote:
> I'd like to see this patch (or an improved version) applied upstream
> (whatever this means, as it is "dead and buried" according to
> http://joeyh.name/code/).  Or else, please let me know about an
> alive-and-well alternative to sleepd.

It seems to me that systemd and logind is the modern replacement for
sleepd. They can, for example, be configured to not let the system sleep
while logind has an open login session, incuding one from ssh.

I am no longer maintaining sleepd upstream (or in Debian).
If someone wants to take over maintenance, that would be fine.

-- 
see shy jo


signature.asc
Description: Digital signature


Processed: sleepd: Option to prevent sleep on open TCP connections

2014-12-30 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> submitter 774247 !
Bug #774247 [sleepd] sleepd: Option to prevent sleep on open TCP connections
Changed Bug submitter to 'justus-...@piater.name' from 
'justus.pia...@uibk.ac.at'
>
End of message, stopping processing here.

Please contact me if you need assistance.
-- 
774247: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774247
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.c.141996772611577.transcr...@bugs.debian.org



Bug#774252: pidgin-audacious: Do not work

2014-12-30 Thread Aldo
Package: pidgin-audacious
Version: 2.0.0-4
Severity: important
Tags: upstream

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
Do not Work
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
 I install and active plugins in pidgin debian jessie
   * What was the outcome of this action?
 do not put song in status.
   * What outcome did you expect instead?
 in status of my pidgin i must have name of song that i listen
*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pidgin-audacious depends on:
ii  libaudclient2 3.5~rc2-1
ii  libc6 2.19-13
ii  libdbus-1-3   1.8.12-3
ii  libdbus-glib-1-2  0.102-1
ii  libglib2.0-0  2.42.1-1
ii  pidgin2.10.11-1

Versions of packages pidgin-audacious recommends:
ii  audacious  3.5-2

pidgin-audacious suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/20141230195306.3133.71958.report...@kzin.tasp.me



spectacle is marked for autoremoval from testing

2014-12-30 Thread Debian testing autoremoval watch
spectacle 0.22-3 is marked for autoremoval from testing on 2015-01-30

It (build-)depends on packages with these RC bugs:
715416: python-urlgrabber: Fails to download from https
722191: python-urlgrabber: yum: CURLOPT_SSL_VERIFYHOST no longer supports 1 as 
value!


-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/e1y6b3n-0005vd...@franck.debian.org