]> git.donarmstrong.com Git - neurodebian.git/commitdiff
Merge branch 'enh/neurodebian-installer' -- aiming for the release
authorYaroslav Halchenko <debian@onerussian.com>
Fri, 8 Aug 2014 18:21:50 +0000 (14:21 -0400)
committerYaroslav Halchenko <debian@onerussian.com>
Fri, 8 Aug 2014 18:21:50 +0000 (14:21 -0400)
* enh/neurodebian-installer: (25 commits)
  ENH: report to debconf interface what would be the release/flavor to be used if 'auto' gets selected
  ENH: slight tune up of the test
  RF: absorb neurodebian-repository into neurodebian package (and rename debconf variables as well)
  RF: nd-aptenable -> nd-configurerepo  per our discussion
  BF: actually we need to aim for multiverse (not restricted) on ubuntus to decide for "full" flavor
  ENH: sketch for a test to check installation of the package
  BF: Disable logic for demanding netselect (absent on ubuntus)
  some notes + adding netselect into pre-depends of the neurodebian-repository
  Move keyring into Depends for repository since we do not apt-get update anyways
  BF: right -- we can't apt-get update while installing the package (via apt at least, assuming it to be default way)
  initial postinst and postrm scripts for neurodebian-repository pkg
  ENH: initial debconf .config and few tune ups for that in the nd-aptenable
  Adding neurodebian and neurodebian-repository packages
  ENH: use -I for netselect where available (ICMP is more likely to be allowed to reach than UDP)
  ENH: minor -- rename apt file into -failed.disabled (not .failed-disabled)
  BF/ENH: if apt-get update fails because of us -- move our generated file aside
  ENH: do not provide -D to netselect on older (squeeze) deployments
  ENH: Allow to pass config via environment, install needed packages (if --install), env controlled mode to just do defuns
  BF: fetching/reporting of the config file
  ENH: removed all obsolete TODOs, fix execution around netselect, added doc on depends
  ...

Conflicts:
debian/changelog

12 files changed:
artwork/Makefile
cmdsettings.sh
debian/changelog
debian/copyright
debian/neurodebian-popularity-contest.dirs [new file with mode: 0644]
debian/neurodebian-popularity-contest.install [new file with mode: 0644]
debian/neurodebian-popularity-contest.postinst
debian/neurodebian-popularity-contest.postrm
neurodebian.cfg
popcon/neurodebian-popcon.gpg [new file with mode: 0644]
popcon/neurodebian.conf [new file with mode: 0644]
sphinx/reposetup.rst

index 7bcab8581d0d28a8bd33ce9b7715ce2611fa96b5..734d958e476452d77e738f2acf54f3e431ccf88c 100644 (file)
@@ -6,7 +6,7 @@ ICONSIZED=ccn-logo_h50.png uni-md-logo_h50.png dartmouth-logo_h50.png
 pics: $(SVGIS) $(ICONSIZED)
 
 clean::
-       for p in *.svg; do rm -f $${p%*.svg}.{pdf,eps,png}; done
+       for p in *.svg; do [ "$$p" = ndhackergotchi.svg ] || rm -f $${p%*.svg}.{pdf,eps,png}; done
        rm -rf *_tuned
        rm -f  $(ICONSIZED)
 
index f9db54f3e5174d083f1a21137fc5b74cc6287a9c..dd35dad10467ff835420afeea521529468f19214 100644 (file)
@@ -7,7 +7,7 @@ buildplace="${cowbuilderroot}/build"
 
 # all currently supported dists
 allnddists="nd+debian-squeeze nd+debian-wheezy nd+debian-jessie nd+debian-sid \
-            nd+ubuntu-lucid nd+ubuntu-precise nd+ubuntu-quantal nd+ubuntu-raring nd+ubuntu-saucy nd+ubuntu-trusty"
+            nd+ubuntu-lucid nd+ubuntu-precise nd+ubuntu-raring nd+ubuntu-saucy nd+ubuntu-trusty"
 alldists="$allnddists debian-squeeze debian-wheezy debian-jessie debian-sid"
 
 # default is debian
index 319f133a5537e4a2f50b91bbbf8915c928485285..6d0d39e3575e8d240335067305e043faaf2f77a9 100644 (file)
@@ -1,11 +1,13 @@
-neurodebian (0.33~a1) unstable; urgency=medium
+neurodebian (0.33) unstable; urgency=medium
 
-  * New "upstream" release
+  * Support popularity-contest >= 1.61 encrypting submissions:
+    - provide GPG public key for encryption of submissions
+  * Updated list of currently supported Ubuntu releases
   * New features:
     - neurodebian and neurodebian packages to provide 1-click
       NeuroDebian deployment on Debian/Ubuntu boxesw
 
- -- Yaroslav Halchenko <debian@onerussian.com>  Mon, 28 Jul 2014 20:03:12 -0400
+ -- Yaroslav Halchenko <debian@onerussian.com>  Fri, 08 Aug 2014 14:21:46 -0400
 
 neurodebian (0.32) neurodebian; urgency=low
 
index 186258b6112f8938fd414eedc1b90f078fe0dbba..e9f10fbda3997139c66634889732c75868076352 100644 (file)
@@ -3,16 +3,38 @@ Upstream-Name: NeuroDebian
 Upstream-Contact: NeuroDebian team <team@neuro.debian.net>
 Source-Location: http://git.debian.org/?p=pkg-exppsy/neurodebian.git
 
-
 Files: *
-Copyright: 2009-2014 NeuroDebian Team
+Copyright: 2009-2014 NeuroDebian Team (Yaroslav Halchenko, Michael Hanke, et al.)
 License: GPL-3+
- On Debian systems the full text of the GNU General Public License can be found
- in the `/usr/share/common-licenses/GPL-3' file.
 
 Files: artwork/openlogo*.svg
 Copyright: 1999 Software in the Public Interest
-License: MIT
+License: Expat
+
+Files: sphinx/sphinxext/quote.py
+Copyright: 2010, Yaroslav O. Halchenko
+           2007-2010, Sphinx team
+License: BSD-2
+
+
+License: GPL-3+
+ 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 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.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ version 3 can be found in `/usr/share/common-licenses/GPL-3'.
+
+License: Expat
  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files (the
  "Software"), to deal in the Software without restriction, including
@@ -32,3 +54,30 @@ License: MIT
  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.
+
+License: BSD-2
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+ * Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/debian/neurodebian-popularity-contest.dirs b/debian/neurodebian-popularity-contest.dirs
new file mode 100644 (file)
index 0000000..ff41a38
--- /dev/null
@@ -0,0 +1,2 @@
+usr/share/popularity-contest
+etc/popularity-contest.d
diff --git a/debian/neurodebian-popularity-contest.install b/debian/neurodebian-popularity-contest.install
new file mode 100644 (file)
index 0000000..88ddd33
--- /dev/null
@@ -0,0 +1,2 @@
+popcon/neurodebian.conf /etc/popularity-contest.d
+popcon/neurodebian-popcon.gpg /usr/share/popularity-contest
index 3bb1437090d96622a741aa615d0fc40ca9a0f283..fb003d5226173167bc58a3de22a2789ceeeb9739 100755 (executable)
@@ -1,8 +1,25 @@
 #!/bin/bash -e
 
+# following to be duplicated within postrm as well, but may be with
+# "Removing" message
 popcon_conf=/etc/popularity-contest.conf
-if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then
+nd_popcon_conf=/etc/popularity-contest.d/neurodebian.conf
+remove_neurodebian_popcon_pre161() {
        # Adjust popularity-contest.conf
+       if [ -e "$popcon_conf" ] \
+          && grep -q "http://neuro.debian.net/cgi-bin/popcon-submit.cgi" $popcon_conf; then
+               #echo "Removing NeuroDebian url for Popularity Contest submissions."
+               # First remove any explicit mentioning and then empty additions
+               sed -i -e 's,http://neuro.debian.net/cgi-bin/popcon-submit.cgi,,g' \
+                          -e '/SUBMITURLS+=" *"/d' \
+                          -e '/SUBMITURLS="$SUBMITURLS *"/d' \
+                       "$popcon_conf"
+       fi
+}
+
+add_neurodebian_popcon_pre161() {
+       # Adjust main popularity-contest configuration file.  Should be
+       # used only with older versions of the popularity contest.
        if [ -e "$popcon_conf" ]; then
                # Fix dashism missing += operator
                if grep -q 'SUBMITURLS+="' "$popcon_conf"; then
@@ -14,6 +31,26 @@ if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then
                        echo -e 'SUBMITURLS="$SUBMITURLS http://neuro.debian.net/cgi-bin/popcon-submit.cgi"' >> "$popcon_conf"
                fi
        fi
+}
+
+add_neurodebian_popcon_161() {
+       # 1.60 introduced encryption and a way to provide multiple keys to
+       # encrypt submissions to multiple servers.
+
+       # "Installation" is taken care of through installing files under
+       # /etc/popularity-contest.d, so no additional actions necessary here
+       :
+}
+
+popcon_version=$(dpkg -l popularity-contest | tail -n 1 | awk '{print $3;}')
+
+if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then
+       if dpkg --compare-versions $popcon_version lt 1.61; then
+               add_neurodebian_popcon_pre161
+       else
+               # Assure that we have no "old" settings for submission
+               remove_neurodebian_popcon_pre161 || :
+       fi
 fi
 
 #DEBHELPER#
index 6615555b99f81749e61ae8bc544a63d76919a093..92bb35d88fc615bd3278a147dd77320a0d7ed88b 100755 (executable)
@@ -2,11 +2,12 @@
 
 #DEBHELPER#
 
-# If requested to be purged -- remove our entry
 popcon_conf=/etc/popularity-contest.conf
-if [ "$1" = "purge" ]; then
+nd_popcon_conf=/etc/popularity-contest.d/neurodebian.conf
+remove_neurodebian_popcon_pre161() {
        # Adjust popularity-contest.conf
-       if [ -e "$popcon_conf" ]; then
+       if [ -e "$popcon_conf" ] \
+          && grep -q "http://neuro.debian.net/cgi-bin/popcon-submit.cgi" $popcon_conf; then
                echo "Removing NeuroDebian url for Popularity Contest submissions."
                # First remove any explicit mentioning and then empty additions
                sed -i -e 's,http://neuro.debian.net/cgi-bin/popcon-submit.cgi,,g' \
@@ -14,4 +15,9 @@ if [ "$1" = "purge" ]; then
                           -e '/SUBMITURLS="$SUBMITURLS *"/d' \
                        "$popcon_conf"
        fi
+}
+
+# If requested to be purged -- remove our entry
+if [ "$1" = "purge" ]; then
+       remove_neurodebian_popcon_pre161
 fi
index a053a9397968e2331dc509d2fb69c5fcc723c612..3fa52dfe9b545f824453750bbf9d27412a48029f 100644 (file)
@@ -102,6 +102,7 @@ quantal = Ubuntu 12.10 "Quantal Quetzal" (quantal)
 raring = Ubuntu 13.04 "Raring Ringtail" (raring)
 saucy = Ubuntu 13.10 "Saucy Salamander" (saucy)
 trusty = Ubuntu 14.04 "Trusty Tahr" (trusty)
+utopic = Ubuntu 14.10 "Utopic Unicorn" (utopic)
 
 [metadata]
 # base url: <url>/<src_pkg-name>/<file>
@@ -122,7 +123,7 @@ source extracts filenames = upstream README.Debian copyright
 # is a tuple of a build family ID and a release name joined by a dash, e.g.
 # debian-sid
 environments = nd+debian-sid nd+debian-jessie nd+debian-wheezy nd+debian-squeeze
-  nd+ubuntu-raring nd+ubuntu-quantal nd+ubuntu-precise nd+ubuntu-lucid
+               nd+ubuntu-lucid nd+ubuntu-precise nd+ubuntu-raring nd+ubuntu-saucy nd+ubuntu-trusty
 # what command to use for package building: pbuilder or cowbuilder
 builder = pbuilder
 
@@ -212,3 +213,4 @@ quantal = nd12.10
 raring = nd13.04
 saucy = nd13.10
 trusty = nd14.04
+utopic = nd14.10
diff --git a/popcon/neurodebian-popcon.gpg b/popcon/neurodebian-popcon.gpg
new file mode 100644 (file)
index 0000000..d5e8c9b
Binary files /dev/null and b/popcon/neurodebian-popcon.gpg differ
diff --git a/popcon/neurodebian.conf b/popcon/neurodebian.conf
new file mode 100644 (file)
index 0000000..5d0ecee
--- /dev/null
@@ -0,0 +1,3 @@
+KEYRING="$KEYRING --keyring /usr/share/popularity-contest/neurodebian-popcon.gpg"
+POPCONKEY="$POPCONKEY -r 0x544665CB8B48DE1D"
+SUBMITURLS="$SUBMITURLS http://neuro.debian.net/cgi-bin/popcon-submit.cgi"
index aca750ae927a147f8baa5a59fa9fa86e36dc19fd..1cbc98a2c5fda6ce3be3938bfb9dc3e1dcd8d2c0 100644 (file)
@@ -143,7 +143,7 @@ You are ready to go -- enjoy NeuroDebian!
     if(mir in mirrors) {
         var retrepo = "wget -O- http://neuro.debian.net/lists/" + rel + "."
          + mir + "." + comp + " | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list\n"
-         + "sudo apt-key adv --recv-keys --keyserver pgp.mit.edu 2649A5A9\n";
+         + "sudo apt-key adv --recv-keys --keyserver hkp://pgp.mit.edu:80 2649A5A9\n";
         return retrepo;
     }