Package: popularity-contest Severity: wishlist Tags: patch
Hi For the debian-edu CD we would like to use popcon, but as you might know we love to work with preseeding and currently it is not possible to preseed the submiturls. Enclosed I send you a patch which should enable it, please check for errors as it is a fast and dirty one and the description could get some improvements. I hope you agree in adding a debconf question for it as we for instance need it to decide which packages from the debian archive are needed on the CD and in use by the schools and unis and which aren't. Cheers Steffen
diff -Nru /tmp/9hZa9UaYwL/popularity-contest-1.33/debian/config /tmp/GEV49yCQiC/popularity-contest-1.34/debian/config --- /tmp/9hZa9UaYwL/popularity-contest-1.33/debian/config 2005-08-06 07:08:22.000000000 +1000 +++ /tmp/GEV49yCQiC/popularity-contest-1.34/debian/config 2006-08-22 16:26:51.000000000 +1000 @@ -42,3 +42,7 @@ db_input low popularity-contest/use-http || [ $? -eq 30 ] db_go || true fi + +# Ask for different URL +db_input low popularity-contest/submiturl || [ $? -eq 30 ] +db_go || true diff -Nru /tmp/9hZa9UaYwL/popularity-contest-1.33/debian/postinst /tmp/GEV49yCQiC/popularity-contest-1.34/debian/postinst --- /tmp/9hZa9UaYwL/popularity-contest-1.33/debian/postinst 2005-08-06 07:08:22.000000000 +1000 +++ /tmp/GEV49yCQiC/popularity-contest-1.34/debian/postinst 2006-08-22 16:28:55.000000000 +1000 @@ -29,6 +29,11 @@ USEHTTP="no" fi +db_get popularity-contest/submiturls || true +if [ -n "$RET" ] ; then + SUBMITURLS=$RET +fi + # The md5 sum of an empty file EMPTYID="d41d8cd98f00b204e9800998ecf8427e" @@ -56,6 +61,7 @@ MY_HOSTID="$MY_HOSTID" PARTICIPATE="$PARTICIPATE" USEHTTP="$USEHTTP" + SUBMITRULS="$SUBMITURLS" EOF # Make sure user nobody can read the file. chmod a+r $conffile diff -Nru /tmp/9hZa9UaYwL/popularity-contest-1.33/debian/templates /tmp/GEV49yCQiC/popularity-contest-1.34/debian/templates --- /tmp/9hZa9UaYwL/popularity-contest-1.33/debian/templates 2005-08-06 07:08:22.000000000 +1000 +++ /tmp/GEV49yCQiC/popularity-contest-1.34/debian/templates 2006-08-22 16:25:28.000000000 +1000 @@ -27,3 +27,9 @@ Default: true _Description: Use HTTP to submit reports? If you do not want to use HTTP, email is used instead. + +Template: poularity-contest/submiturls +Type: string +Default: http://popcon.debian.org/cgi-bin/popcon.cgi +_Description: URL for submitting reports? + Which URL do you want to use for submitting your reports?
pgp1txbfr5mU0.pgp
Description: PGP signature