[Popcon-commits] cvs commit to popularity-contest by ballombe
popcon-commits@lists.alioth.debian.org
popcon-commits@lists.alioth.debian.org
Mon, 08 Nov 2004 13:33:59 -0700
Update of /cvsroot/popcon/popularity-contest
In directory haydn:/tmp/cvs-serv19941
Modified Files:
FAQ popularity-contest
Log Message:
Document how to not send popcon email by root.
Remove regexp to catch .pyc files since there are not in packages.
Index: FAQ
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/FAQ,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- FAQ 14 May 2004 12:44:53 -0000 1.4
+++ FAQ 8 Nov 2004 20:33:56 -0000 1.5
@@ -53,3 +53,17 @@
A) popularity-contest relies on atime to know what packages were used during
the last month. This means you will only report the list of packages
installed without usage information.
+
+Q) I don't want popcon email to be send by root! How can I send that ?
+
+A) To send as user 'myuser', edit the function 'do_sendmail' in
+/etc/cron.weekly/popularity-contest to
+
+do_sendmail()
+{
+ su myuser -s /bin/sh -c "/usr/sbin/sendmail -oi \"$MAILTO\""
+}
+
+Make sure myuser account is properly configured to send email with a valid
+return address.
+
Index: popularity-contest
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/popularity-contest,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- popularity-contest 26 May 2004 13:59:13 -0000 1.10
+++ popularity-contest 8 Nov 2004 20:33:56 -0000 1.11
@@ -83,7 +83,7 @@
while (<FILES>)
{
chop;
- m{/bin/|/sbin/|^/usr/games/|\.[ah]$|\.pm$|\.pyc$} or next;
+ m{/bin/|/sbin/|^/usr/games/|\.[ah]$|\.pm$} or next;
-f $_ or next;
my($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks)